mihari 7.6.4 → 8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mihari/actor.rb +1 -1
- data/lib/mihari/analyzers/base.rb +1 -1
- data/lib/mihari/commands/alert.rb +10 -11
- data/lib/mihari/commands/artifact.rb +4 -4
- data/lib/mihari/commands/rule.rb +4 -4
- data/lib/mihari/commands/search.rb +5 -8
- data/lib/mihari/commands/tag.rb +2 -2
- data/lib/mihari/database.rb +1 -1
- data/lib/mihari/emitters/base.rb +1 -1
- data/lib/mihari/enrichers/base.rb +1 -1
- data/lib/mihari/models/artifact.rb +1 -1
- data/lib/mihari/models/port.rb +1 -1
- data/lib/mihari/rule.rb +4 -4
- data/lib/mihari/service.rb +3 -3
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/endpoints/alerts.rb +3 -3
- data/lib/mihari/web/endpoints/artifacts.rb +2 -2
- data/lib/mihari/web/endpoints/ip_addresses.rb +1 -1
- data/lib/mihari/web/endpoints/rules.rb +4 -4
- data/lib/mihari/web/endpoints/tags.rb +1 -1
- data/lib/mihari/web/public/assets/index-BfEMNMrz.js +1586 -0
- data/lib/mihari/web/public/index.html +2 -2
- data/lib/mihari/web/public/redoc-static.html +15 -15
- data/mihari.gemspec +24 -23
- data/requirements.txt +2 -2
- metadata +62 -48
- data/lib/mihari/web/public/assets/index-HxkDEHGe.js +0 -1577
- /data/lib/mihari/web/public/assets/{index-BgJUBUyh.css → index-oiGfMI5B.css} +0 -0
@@ -0,0 +1,1586 @@
|
|
1
|
+
var kp=Object.defineProperty;var Mp=(e,t,n)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var De=(e,t,n)=>Mp(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 o of s)if(o.type==="childList")for(const f of o.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/*!
|
2
|
+
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2024 Fonticons, Inc.
|
5
|
+
*/function Tp(e,t,n){return(t=Lp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vl(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 ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vl(Object(n),!0).forEach(function(i){Tp(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ep(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lp(e){var t=Ep(e,"string");return typeof t=="symbol"?t:t+""}const Gl=()=>{};let Za={},qu={},Ju=null,eh={mark:Gl,measure:Gl};try{typeof window<"u"&&(Za=window),typeof document<"u"&&(qu=document),typeof MutationObserver<"u"&&(Ju=MutationObserver),typeof performance<"u"&&(eh=performance)}catch{}const{userAgent:Yl=""}=Za.navigator||{},En=Za,st=qu,Kl=Ju,zr=eh;En.document;const wn=!!st.documentElement&&!!st.head&&typeof st.addEventListener=="function"&&typeof st.createElement=="function",th=~Yl.indexOf("MSIE")||~Yl.indexOf("Trident/");var Rp=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Op=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,nh={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},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",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Ip={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ih=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],_t="classic",Fs="duotone",Np="sharp",Dp="sharp-duotone",rh=[_t,Fs,Np,Dp],Fp={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},Pp={"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",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},Wp=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),Bp={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},zp=["fak","fa-kit","fakd","fa-kit-duotone"],Zl={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},jp=["kit"],Hp={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},Up=["fak","fakd"],Vp={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Xl={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},jr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Gp=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Yp=["fak","fa-kit","fakd","fa-kit-duotone"],Kp={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Zp={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},Xp={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Jo={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},Qp=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ea=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...Gp,...Qp],qp=["solid","regular","light","thin","duotone","brands"],sh=[1,2,3,4,5,6,7,8,9,10],Jp=sh.concat([11,12,13,14,15,16,17,18,19,20]),eg=[...Object.keys(Xp),...qp,"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",jr.GROUP,jr.SWAP_OPACITY,jr.PRIMARY,jr.SECONDARY].concat(sh.map(e=>"".concat(e,"x"))).concat(Jp.map(e=>"w-".concat(e))),tg={"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"}};const vn="___FONT_AWESOME___",ta=16,oh="fa",ah="svg-inline--fa",Xn="data-fa-i2svg",na="data-fa-pseudo-element",ng="data-fa-pseudo-element-pending",Xa="data-prefix",Qa="data-icon",Ql="fontawesome-i2svg",ig="async",rg=["HTML","HEAD","STYLE","SCRIPT"],lh=(()=>{try{return!0}catch{return!1}})();function kr(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[_t]}})}const ch=ue({},nh);ch[_t]=ue(ue(ue(ue({},{"fa-duotone":"duotone"}),nh[_t]),Zl.kit),Zl["kit-duotone"]);const sg=kr(ch),ia=ue({},Bp);ia[_t]=ue(ue(ue(ue({},{duotone:"fad"}),ia[_t]),Xl.kit),Xl["kit-duotone"]);const ql=kr(ia),ra=ue({},Jo);ra[_t]=ue(ue({},ra[_t]),Vp.kit);const qa=kr(ra),sa=ue({},Zp);sa[_t]=ue(ue({},sa[_t]),Hp.kit);kr(sa);const og=Rp,uh="fa-layers-text",ag=Op,lg=ue({},Fp);kr(lg);const cg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],wo=Ip,ug=[...jp,...eg],Yi=En.FontAwesomeConfig||{};function hg(e){var t=st.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function dg(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}st&&typeof st.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=dg(hg(n));s!=null&&(Yi[i]=s)});const hh={styleDefault:"solid",familyDefault:_t,cssPrefix:oh,replacementClass:ah,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Yi.familyPrefix&&(Yi.cssPrefix=Yi.familyPrefix);const _i=ue(ue({},hh),Yi);_i.autoReplaceSvg||(_i.observeMutations=!1);const $e={};Object.keys(hh).forEach(e=>{Object.defineProperty($e,e,{enumerable:!0,set:function(t){_i[e]=t,Ki.forEach(n=>n($e))},get:function(){return _i[e]}})});Object.defineProperty($e,"familyPrefix",{enumerable:!0,set:function(e){_i.cssPrefix=e,Ki.forEach(t=>t($e))},get:function(){return _i.cssPrefix}});En.FontAwesomeConfig=$e;const Ki=[];function fg(e){return Ki.push(e),()=>{Ki.splice(Ki.indexOf(e),1)}}const Cn=ta,Jt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function pg(e){if(!e||!wn)return;const t=st.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=st.head.childNodes;let i=null;for(let s=n.length-1;s>-1;s--){const o=n[s],f=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(i=o)}return st.head.insertBefore(t,i),e}const gg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ir(){let e=12,t="";for(;e-- >0;)t+=gg[Math.random()*62|0];return t}function Li(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ja(e){return e.classList?Li(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function dh(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function mg(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(dh(e[n]),'" '),"").trim()}function Ps(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function el(e){return e.size!==Jt.size||e.x!==Jt.x||e.y!==Jt.y||e.rotate!==Jt.rotate||e.flipX||e.flipY}function vg(e){let{transform:t,containerWidth:n,iconWidth:i}=e;const s={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),f="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(o," ").concat(f," ").concat(g)},p={transform:"translate(".concat(i/2*-1," -256)")};return{outer:s,inner:l,path:p}}function yg(e){let{transform:t,width:n=ta,height:i=ta,startCentered:s=!1}=e,o="";return s&&th?o+="translate(".concat(t.x/Cn-n/2,"em, ").concat(t.y/Cn-i/2,"em) "):s?o+="translate(calc(-50% + ".concat(t.x/Cn,"em), calc(-50% + ").concat(t.y/Cn,"em)) "):o+="translate(".concat(t.x/Cn,"em, ").concat(t.y/Cn,"em) "),o+="scale(".concat(t.size/Cn*(t.flipX?-1:1),", ").concat(t.size/Cn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var bg=`:root, :host {
|
6
|
+
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
7
|
+
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
8
|
+
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
9
|
+
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
10
|
+
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
11
|
+
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
12
|
+
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
13
|
+
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
14
|
+
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
15
|
+
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
16
|
+
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
17
|
+
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
18
|
+
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
19
|
+
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
20
|
+
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
21
|
+
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
22
|
+
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
23
|
+
}
|
24
|
+
|
25
|
+
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
26
|
+
overflow: visible;
|
27
|
+
box-sizing: content-box;
|
28
|
+
}
|
29
|
+
|
30
|
+
.svg-inline--fa {
|
31
|
+
display: var(--fa-display, inline-block);
|
32
|
+
height: 1em;
|
33
|
+
overflow: visible;
|
34
|
+
vertical-align: -0.125em;
|
35
|
+
}
|
36
|
+
.svg-inline--fa.fa-2xs {
|
37
|
+
vertical-align: 0.1em;
|
38
|
+
}
|
39
|
+
.svg-inline--fa.fa-xs {
|
40
|
+
vertical-align: 0em;
|
41
|
+
}
|
42
|
+
.svg-inline--fa.fa-sm {
|
43
|
+
vertical-align: -0.0714285705em;
|
44
|
+
}
|
45
|
+
.svg-inline--fa.fa-lg {
|
46
|
+
vertical-align: -0.2em;
|
47
|
+
}
|
48
|
+
.svg-inline--fa.fa-xl {
|
49
|
+
vertical-align: -0.25em;
|
50
|
+
}
|
51
|
+
.svg-inline--fa.fa-2xl {
|
52
|
+
vertical-align: -0.3125em;
|
53
|
+
}
|
54
|
+
.svg-inline--fa.fa-pull-left {
|
55
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
56
|
+
width: auto;
|
57
|
+
}
|
58
|
+
.svg-inline--fa.fa-pull-right {
|
59
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
60
|
+
width: auto;
|
61
|
+
}
|
62
|
+
.svg-inline--fa.fa-li {
|
63
|
+
width: var(--fa-li-width, 2em);
|
64
|
+
top: 0.25em;
|
65
|
+
}
|
66
|
+
.svg-inline--fa.fa-fw {
|
67
|
+
width: var(--fa-fw-width, 1.25em);
|
68
|
+
}
|
69
|
+
|
70
|
+
.fa-layers svg.svg-inline--fa {
|
71
|
+
bottom: 0;
|
72
|
+
left: 0;
|
73
|
+
margin: auto;
|
74
|
+
position: absolute;
|
75
|
+
right: 0;
|
76
|
+
top: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
.fa-layers-counter, .fa-layers-text {
|
80
|
+
display: inline-block;
|
81
|
+
position: absolute;
|
82
|
+
text-align: center;
|
83
|
+
}
|
84
|
+
|
85
|
+
.fa-layers {
|
86
|
+
display: inline-block;
|
87
|
+
height: 1em;
|
88
|
+
position: relative;
|
89
|
+
text-align: center;
|
90
|
+
vertical-align: -0.125em;
|
91
|
+
width: 1em;
|
92
|
+
}
|
93
|
+
.fa-layers svg.svg-inline--fa {
|
94
|
+
transform-origin: center center;
|
95
|
+
}
|
96
|
+
|
97
|
+
.fa-layers-text {
|
98
|
+
left: 50%;
|
99
|
+
top: 50%;
|
100
|
+
transform: translate(-50%, -50%);
|
101
|
+
transform-origin: center center;
|
102
|
+
}
|
103
|
+
|
104
|
+
.fa-layers-counter {
|
105
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
106
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
107
|
+
box-sizing: border-box;
|
108
|
+
color: var(--fa-inverse, #fff);
|
109
|
+
line-height: var(--fa-counter-line-height, 1);
|
110
|
+
max-width: var(--fa-counter-max-width, 5em);
|
111
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
112
|
+
overflow: hidden;
|
113
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
114
|
+
right: var(--fa-right, 0);
|
115
|
+
text-overflow: ellipsis;
|
116
|
+
top: var(--fa-top, 0);
|
117
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
118
|
+
transform-origin: top right;
|
119
|
+
}
|
120
|
+
|
121
|
+
.fa-layers-bottom-right {
|
122
|
+
bottom: var(--fa-bottom, 0);
|
123
|
+
right: var(--fa-right, 0);
|
124
|
+
top: auto;
|
125
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
126
|
+
transform-origin: bottom right;
|
127
|
+
}
|
128
|
+
|
129
|
+
.fa-layers-bottom-left {
|
130
|
+
bottom: var(--fa-bottom, 0);
|
131
|
+
left: var(--fa-left, 0);
|
132
|
+
right: auto;
|
133
|
+
top: auto;
|
134
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
135
|
+
transform-origin: bottom left;
|
136
|
+
}
|
137
|
+
|
138
|
+
.fa-layers-top-right {
|
139
|
+
top: var(--fa-top, 0);
|
140
|
+
right: var(--fa-right, 0);
|
141
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
142
|
+
transform-origin: top right;
|
143
|
+
}
|
144
|
+
|
145
|
+
.fa-layers-top-left {
|
146
|
+
left: var(--fa-left, 0);
|
147
|
+
right: auto;
|
148
|
+
top: var(--fa-top, 0);
|
149
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
150
|
+
transform-origin: top left;
|
151
|
+
}
|
152
|
+
|
153
|
+
.fa-1x {
|
154
|
+
font-size: 1em;
|
155
|
+
}
|
156
|
+
|
157
|
+
.fa-2x {
|
158
|
+
font-size: 2em;
|
159
|
+
}
|
160
|
+
|
161
|
+
.fa-3x {
|
162
|
+
font-size: 3em;
|
163
|
+
}
|
164
|
+
|
165
|
+
.fa-4x {
|
166
|
+
font-size: 4em;
|
167
|
+
}
|
168
|
+
|
169
|
+
.fa-5x {
|
170
|
+
font-size: 5em;
|
171
|
+
}
|
172
|
+
|
173
|
+
.fa-6x {
|
174
|
+
font-size: 6em;
|
175
|
+
}
|
176
|
+
|
177
|
+
.fa-7x {
|
178
|
+
font-size: 7em;
|
179
|
+
}
|
180
|
+
|
181
|
+
.fa-8x {
|
182
|
+
font-size: 8em;
|
183
|
+
}
|
184
|
+
|
185
|
+
.fa-9x {
|
186
|
+
font-size: 9em;
|
187
|
+
}
|
188
|
+
|
189
|
+
.fa-10x {
|
190
|
+
font-size: 10em;
|
191
|
+
}
|
192
|
+
|
193
|
+
.fa-2xs {
|
194
|
+
font-size: 0.625em;
|
195
|
+
line-height: 0.1em;
|
196
|
+
vertical-align: 0.225em;
|
197
|
+
}
|
198
|
+
|
199
|
+
.fa-xs {
|
200
|
+
font-size: 0.75em;
|
201
|
+
line-height: 0.0833333337em;
|
202
|
+
vertical-align: 0.125em;
|
203
|
+
}
|
204
|
+
|
205
|
+
.fa-sm {
|
206
|
+
font-size: 0.875em;
|
207
|
+
line-height: 0.0714285718em;
|
208
|
+
vertical-align: 0.0535714295em;
|
209
|
+
}
|
210
|
+
|
211
|
+
.fa-lg {
|
212
|
+
font-size: 1.25em;
|
213
|
+
line-height: 0.05em;
|
214
|
+
vertical-align: -0.075em;
|
215
|
+
}
|
216
|
+
|
217
|
+
.fa-xl {
|
218
|
+
font-size: 1.5em;
|
219
|
+
line-height: 0.0416666682em;
|
220
|
+
vertical-align: -0.125em;
|
221
|
+
}
|
222
|
+
|
223
|
+
.fa-2xl {
|
224
|
+
font-size: 2em;
|
225
|
+
line-height: 0.03125em;
|
226
|
+
vertical-align: -0.1875em;
|
227
|
+
}
|
228
|
+
|
229
|
+
.fa-fw {
|
230
|
+
text-align: center;
|
231
|
+
width: 1.25em;
|
232
|
+
}
|
233
|
+
|
234
|
+
.fa-ul {
|
235
|
+
list-style-type: none;
|
236
|
+
margin-left: var(--fa-li-margin, 2.5em);
|
237
|
+
padding-left: 0;
|
238
|
+
}
|
239
|
+
.fa-ul > li {
|
240
|
+
position: relative;
|
241
|
+
}
|
242
|
+
|
243
|
+
.fa-li {
|
244
|
+
left: calc(-1 * var(--fa-li-width, 2em));
|
245
|
+
position: absolute;
|
246
|
+
text-align: center;
|
247
|
+
width: var(--fa-li-width, 2em);
|
248
|
+
line-height: inherit;
|
249
|
+
}
|
250
|
+
|
251
|
+
.fa-border {
|
252
|
+
border-color: var(--fa-border-color, #eee);
|
253
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
254
|
+
border-style: var(--fa-border-style, solid);
|
255
|
+
border-width: var(--fa-border-width, 0.08em);
|
256
|
+
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
257
|
+
}
|
258
|
+
|
259
|
+
.fa-pull-left {
|
260
|
+
float: left;
|
261
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
262
|
+
}
|
263
|
+
|
264
|
+
.fa-pull-right {
|
265
|
+
float: right;
|
266
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
267
|
+
}
|
268
|
+
|
269
|
+
.fa-beat {
|
270
|
+
animation-name: fa-beat;
|
271
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
272
|
+
animation-direction: var(--fa-animation-direction, normal);
|
273
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
274
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
275
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
276
|
+
}
|
277
|
+
|
278
|
+
.fa-bounce {
|
279
|
+
animation-name: fa-bounce;
|
280
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
281
|
+
animation-direction: var(--fa-animation-direction, normal);
|
282
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
283
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
284
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
285
|
+
}
|
286
|
+
|
287
|
+
.fa-fade {
|
288
|
+
animation-name: fa-fade;
|
289
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
290
|
+
animation-direction: var(--fa-animation-direction, normal);
|
291
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
292
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
293
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
294
|
+
}
|
295
|
+
|
296
|
+
.fa-beat-fade {
|
297
|
+
animation-name: fa-beat-fade;
|
298
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
299
|
+
animation-direction: var(--fa-animation-direction, normal);
|
300
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
301
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
302
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
303
|
+
}
|
304
|
+
|
305
|
+
.fa-flip {
|
306
|
+
animation-name: fa-flip;
|
307
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
308
|
+
animation-direction: var(--fa-animation-direction, normal);
|
309
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
310
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
311
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
312
|
+
}
|
313
|
+
|
314
|
+
.fa-shake {
|
315
|
+
animation-name: fa-shake;
|
316
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
317
|
+
animation-direction: var(--fa-animation-direction, normal);
|
318
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
319
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
320
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
321
|
+
}
|
322
|
+
|
323
|
+
.fa-spin {
|
324
|
+
animation-name: fa-spin;
|
325
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
326
|
+
animation-direction: var(--fa-animation-direction, normal);
|
327
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
328
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
329
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
330
|
+
}
|
331
|
+
|
332
|
+
.fa-spin-reverse {
|
333
|
+
--fa-animation-direction: reverse;
|
334
|
+
}
|
335
|
+
|
336
|
+
.fa-pulse,
|
337
|
+
.fa-spin-pulse {
|
338
|
+
animation-name: fa-spin;
|
339
|
+
animation-direction: var(--fa-animation-direction, normal);
|
340
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
341
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
342
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
343
|
+
}
|
344
|
+
|
345
|
+
@media (prefers-reduced-motion: reduce) {
|
346
|
+
.fa-beat,
|
347
|
+
.fa-bounce,
|
348
|
+
.fa-fade,
|
349
|
+
.fa-beat-fade,
|
350
|
+
.fa-flip,
|
351
|
+
.fa-pulse,
|
352
|
+
.fa-shake,
|
353
|
+
.fa-spin,
|
354
|
+
.fa-spin-pulse {
|
355
|
+
animation-delay: -1ms;
|
356
|
+
animation-duration: 1ms;
|
357
|
+
animation-iteration-count: 1;
|
358
|
+
transition-delay: 0s;
|
359
|
+
transition-duration: 0s;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
@keyframes fa-beat {
|
363
|
+
0%, 90% {
|
364
|
+
transform: scale(1);
|
365
|
+
}
|
366
|
+
45% {
|
367
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
368
|
+
}
|
369
|
+
}
|
370
|
+
@keyframes fa-bounce {
|
371
|
+
0% {
|
372
|
+
transform: scale(1, 1) translateY(0);
|
373
|
+
}
|
374
|
+
10% {
|
375
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
376
|
+
}
|
377
|
+
30% {
|
378
|
+
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));
|
379
|
+
}
|
380
|
+
50% {
|
381
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
382
|
+
}
|
383
|
+
57% {
|
384
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
385
|
+
}
|
386
|
+
64% {
|
387
|
+
transform: scale(1, 1) translateY(0);
|
388
|
+
}
|
389
|
+
100% {
|
390
|
+
transform: scale(1, 1) translateY(0);
|
391
|
+
}
|
392
|
+
}
|
393
|
+
@keyframes fa-fade {
|
394
|
+
50% {
|
395
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
396
|
+
}
|
397
|
+
}
|
398
|
+
@keyframes fa-beat-fade {
|
399
|
+
0%, 100% {
|
400
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
401
|
+
transform: scale(1);
|
402
|
+
}
|
403
|
+
50% {
|
404
|
+
opacity: 1;
|
405
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
406
|
+
}
|
407
|
+
}
|
408
|
+
@keyframes fa-flip {
|
409
|
+
50% {
|
410
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
411
|
+
}
|
412
|
+
}
|
413
|
+
@keyframes fa-shake {
|
414
|
+
0% {
|
415
|
+
transform: rotate(-15deg);
|
416
|
+
}
|
417
|
+
4% {
|
418
|
+
transform: rotate(15deg);
|
419
|
+
}
|
420
|
+
8%, 24% {
|
421
|
+
transform: rotate(-18deg);
|
422
|
+
}
|
423
|
+
12%, 28% {
|
424
|
+
transform: rotate(18deg);
|
425
|
+
}
|
426
|
+
16% {
|
427
|
+
transform: rotate(-22deg);
|
428
|
+
}
|
429
|
+
20% {
|
430
|
+
transform: rotate(22deg);
|
431
|
+
}
|
432
|
+
32% {
|
433
|
+
transform: rotate(-12deg);
|
434
|
+
}
|
435
|
+
36% {
|
436
|
+
transform: rotate(12deg);
|
437
|
+
}
|
438
|
+
40%, 100% {
|
439
|
+
transform: rotate(0deg);
|
440
|
+
}
|
441
|
+
}
|
442
|
+
@keyframes fa-spin {
|
443
|
+
0% {
|
444
|
+
transform: rotate(0deg);
|
445
|
+
}
|
446
|
+
100% {
|
447
|
+
transform: rotate(360deg);
|
448
|
+
}
|
449
|
+
}
|
450
|
+
.fa-rotate-90 {
|
451
|
+
transform: rotate(90deg);
|
452
|
+
}
|
453
|
+
|
454
|
+
.fa-rotate-180 {
|
455
|
+
transform: rotate(180deg);
|
456
|
+
}
|
457
|
+
|
458
|
+
.fa-rotate-270 {
|
459
|
+
transform: rotate(270deg);
|
460
|
+
}
|
461
|
+
|
462
|
+
.fa-flip-horizontal {
|
463
|
+
transform: scale(-1, 1);
|
464
|
+
}
|
465
|
+
|
466
|
+
.fa-flip-vertical {
|
467
|
+
transform: scale(1, -1);
|
468
|
+
}
|
469
|
+
|
470
|
+
.fa-flip-both,
|
471
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
472
|
+
transform: scale(-1, -1);
|
473
|
+
}
|
474
|
+
|
475
|
+
.fa-rotate-by {
|
476
|
+
transform: rotate(var(--fa-rotate-angle, 0));
|
477
|
+
}
|
478
|
+
|
479
|
+
.fa-stack {
|
480
|
+
display: inline-block;
|
481
|
+
vertical-align: middle;
|
482
|
+
height: 2em;
|
483
|
+
position: relative;
|
484
|
+
width: 2.5em;
|
485
|
+
}
|
486
|
+
|
487
|
+
.fa-stack-1x,
|
488
|
+
.fa-stack-2x {
|
489
|
+
bottom: 0;
|
490
|
+
left: 0;
|
491
|
+
margin: auto;
|
492
|
+
position: absolute;
|
493
|
+
right: 0;
|
494
|
+
top: 0;
|
495
|
+
z-index: var(--fa-stack-z-index, auto);
|
496
|
+
}
|
497
|
+
|
498
|
+
.svg-inline--fa.fa-stack-1x {
|
499
|
+
height: 1em;
|
500
|
+
width: 1.25em;
|
501
|
+
}
|
502
|
+
.svg-inline--fa.fa-stack-2x {
|
503
|
+
height: 2em;
|
504
|
+
width: 2.5em;
|
505
|
+
}
|
506
|
+
|
507
|
+
.fa-inverse {
|
508
|
+
color: var(--fa-inverse, #fff);
|
509
|
+
}
|
510
|
+
|
511
|
+
.sr-only,
|
512
|
+
.fa-sr-only {
|
513
|
+
position: absolute;
|
514
|
+
width: 1px;
|
515
|
+
height: 1px;
|
516
|
+
padding: 0;
|
517
|
+
margin: -1px;
|
518
|
+
overflow: hidden;
|
519
|
+
clip: rect(0, 0, 0, 0);
|
520
|
+
white-space: nowrap;
|
521
|
+
border-width: 0;
|
522
|
+
}
|
523
|
+
|
524
|
+
.sr-only-focusable:not(:focus),
|
525
|
+
.fa-sr-only-focusable:not(:focus) {
|
526
|
+
position: absolute;
|
527
|
+
width: 1px;
|
528
|
+
height: 1px;
|
529
|
+
padding: 0;
|
530
|
+
margin: -1px;
|
531
|
+
overflow: hidden;
|
532
|
+
clip: rect(0, 0, 0, 0);
|
533
|
+
white-space: nowrap;
|
534
|
+
border-width: 0;
|
535
|
+
}
|
536
|
+
|
537
|
+
.svg-inline--fa .fa-primary {
|
538
|
+
fill: var(--fa-primary-color, currentColor);
|
539
|
+
opacity: var(--fa-primary-opacity, 1);
|
540
|
+
}
|
541
|
+
|
542
|
+
.svg-inline--fa .fa-secondary {
|
543
|
+
fill: var(--fa-secondary-color, currentColor);
|
544
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
545
|
+
}
|
546
|
+
|
547
|
+
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
548
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
549
|
+
}
|
550
|
+
|
551
|
+
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
552
|
+
opacity: var(--fa-primary-opacity, 1);
|
553
|
+
}
|
554
|
+
|
555
|
+
.svg-inline--fa mask .fa-primary,
|
556
|
+
.svg-inline--fa mask .fa-secondary {
|
557
|
+
fill: black;
|
558
|
+
}`;function fh(){const e=oh,t=ah,n=$e.cssPrefix,i=$e.replacementClass;let s=bg;if(n!==e||i!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),f=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");s=s.replace(o,".".concat(n,"-")).replace(f,"--".concat(n,"-")).replace(g,".".concat(i))}return s}let Jl=!1;function _o(){$e.autoAddCss&&!Jl&&(pg(fh()),Jl=!0)}var wg={mixout(){return{dom:{css:fh,insertCss:_o}}},hooks(){return{beforeDOMElementCreation(){_o()},beforeI2svg(){_o()}}}};const yn=En||{};yn[vn]||(yn[vn]={});yn[vn].styles||(yn[vn].styles={});yn[vn].hooks||(yn[vn].hooks={});yn[vn].shims||(yn[vn].shims=[]);var en=yn[vn];const ph=[],gh=function(){st.removeEventListener("DOMContentLoaded",gh),ds=1,ph.map(e=>e())};let ds=!1;wn&&(ds=(st.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(st.readyState),ds||st.addEventListener("DOMContentLoaded",gh));function _g(e){wn&&(ds?setTimeout(e,0):ph.push(e))}function Mr(e){const{tag:t,attributes:n={},children:i=[]}=e;return typeof e=="string"?dh(e):"<".concat(t," ").concat(mg(n),">").concat(i.map(Mr).join(""),"</").concat(t,">")}function ec(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var So=function(t,n,i,s){var o=Object.keys(t),f=o.length,g=n,l,p,r;for(i===void 0?(l=1,r=t[o[0]]):(l=0,r=i);l<f;l++)p=o[l],r=g(r,t[p],p,t);return r};function Sg(e){const t=[];let n=0;const i=e.length;for(;n<i;){const s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<i){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((s&1023)<<10)+(o&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}function oa(e){const t=Sg(e);return t.length===1?t[0].toString(16):null}function xg(e,t){const n=e.length;let i=e.charCodeAt(t),s;return i>=55296&&i<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(i-55296)*1024+s-56320+65536:i}function tc(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 aa(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=n,s=tc(t);typeof en.hooks.addPack=="function"&&!i?en.hooks.addPack(e,tc(t)):en.styles[e]=ue(ue({},en.styles[e]||{}),s),e==="fas"&&aa("fa",t)}const{styles:rr,shims:Cg}=en,mh=Object.keys(qa),$g=mh.reduce((e,t)=>(e[t]=Object.keys(qa[t]),e),{});let tl=null,vh={},yh={},bh={},wh={},_h={};function Ag(e){return~ug.indexOf(e)}function kg(e,t){const n=t.split("-"),i=n[0],s=n.slice(1).join("-");return i===e&&s!==""&&!Ag(s)?s:null}const Sh=()=>{const e=i=>So(rr,(s,o,f)=>(s[f]=So(o,i,{}),s),{});vh=e((i,s,o)=>(s[3]&&(i[s[3]]=o),s[2]&&s[2].filter(g=>typeof g=="number").forEach(g=>{i[g.toString(16)]=o}),i)),yh=e((i,s,o)=>(i[o]=o,s[2]&&s[2].filter(g=>typeof g=="string").forEach(g=>{i[g]=o}),i)),_h=e((i,s,o)=>{const f=s[2];return i[o]=o,f.forEach(g=>{i[g]=o}),i});const t="far"in rr||$e.autoFetchSvg,n=So(Cg,(i,s)=>{const o=s[0];let f=s[1];const g=s[2];return f==="far"&&!t&&(f="fas"),typeof o=="string"&&(i.names[o]={prefix:f,iconName:g}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:f,iconName:g}),i},{names:{},unicodes:{}});bh=n.names,wh=n.unicodes,tl=Ws($e.styleDefault,{family:$e.familyDefault})};fg(e=>{tl=Ws(e.styleDefault,{family:$e.familyDefault})});Sh();function nl(e,t){return(vh[e]||{})[t]}function Mg(e,t){return(yh[e]||{})[t]}function Vn(e,t){return(_h[e]||{})[t]}function xh(e){return bh[e]||{prefix:null,iconName:null}}function Tg(e){const t=wh[e],n=nl("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ln(){return tl}const Ch=()=>({prefix:null,iconName:null,rest:[]});function Eg(e){let t=_t;const n=mh.reduce((i,s)=>(i[s]="".concat($e.cssPrefix,"-").concat(s),i),{});return rh.forEach(i=>{(e.includes(n[i])||e.some(s=>$g[i].includes(s)))&&(t=i)}),t}function Ws(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=_t}=t,i=sg[n][e];if(n===Fs&&!e)return"fad";const s=ql[n][e]||ql[n][i],o=e in en.styles?e:null;return s||o||null}function Lg(e){let t=[],n=null;return e.forEach(i=>{const s=kg($e.cssPrefix,i);s?n=s:i&&t.push(i)}),{iconName:n,rest:t}}function nc(e){return e.sort().filter((t,n,i)=>i.indexOf(t)===n)}function Bs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let i=null;const s=ea.concat(Yp),o=nc(e.filter(a=>s.includes(a))),f=nc(e.filter(a=>!ea.includes(a))),g=o.filter(a=>(i=a,!ih.includes(a))),[l=null]=g,p=Eg(o),r=ue(ue({},Lg(f)),{},{prefix:Ws(l,{family:p})});return ue(ue(ue({},r),Ng({values:e,family:p,styles:rr,config:$e,canonical:r,givenPrefix:i})),Rg(n,i,r))}function Rg(e,t,n){let{prefix:i,iconName:s}=n;if(e||!i||!s)return{prefix:i,iconName:s};const o=t==="fa"?xh(s):{},f=Vn(i,s);return s=o.iconName||f||s,i=o.prefix||i,i==="far"&&!rr.far&&rr.fas&&!$e.autoFetchSvg&&(i="fas"),{prefix:i,iconName:s}}const Og=rh.filter(e=>e!==_t||e!==Fs),Ig=Object.keys(Jo).filter(e=>e!==_t).map(e=>Object.keys(Jo[e])).flat();function Ng(e){const{values:t,family:n,canonical:i,givenPrefix:s="",styles:o={},config:f={}}=e,g=n===Fs,l=t.includes("fa-duotone")||t.includes("fad"),p=f.familyDefault==="duotone",r=i.prefix==="fad"||i.prefix==="fa-duotone";if(!g&&(l||p||r)&&(i.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(i.prefix="fab"),!i.prefix&&Og.includes(n)&&(Object.keys(o).find(c=>Ig.includes(c))||f.autoFetchSvg)){const c=Wp.get(n).defaultShortPrefixId;i.prefix=c,i.iconName=Vn(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||s==="fa")&&(i.prefix=Ln()||"fas"),i}class Dg{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const s=n.reduce(this._pullDefinitions,{});Object.keys(s).forEach(o=>{this.definitions[o]=ue(ue({},this.definitions[o]||{}),s[o]),aa(o,s[o]);const f=qa[_t][o];f&&aa(f,s[o]),Sh()})}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:o,iconName:f,icon:g}=i[s],l=g[2];t[o]||(t[o]={}),l.length>0&&l.forEach(p=>{typeof p=="string"&&(t[o][p]=g)}),t[o][f]=g}),t}}let ic=[],hi={};const pi={},Fg=Object.keys(pi);function Pg(e,t){let{mixoutsTo:n}=t;return ic=e,hi={},Object.keys(pi).forEach(i=>{Fg.indexOf(i)===-1&&delete pi[i]}),ic.forEach(i=>{const s=i.mixout?i.mixout():{};if(Object.keys(s).forEach(o=>{typeof s[o]=="function"&&(n[o]=s[o]),typeof s[o]=="object"&&Object.keys(s[o]).forEach(f=>{n[o]||(n[o]={}),n[o][f]=s[o][f]})}),i.hooks){const o=i.hooks();Object.keys(o).forEach(f=>{hi[f]||(hi[f]=[]),hi[f].push(o[f])})}i.provides&&i.provides(pi)}),n}function la(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return(hi[e]||[]).forEach(f=>{t=f.apply(null,[t,...i])}),t}function Qn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(hi[e]||[]).forEach(o=>{o.apply(null,n)})}function Rn(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return pi[e]?pi[e].apply(null,t):void 0}function ca(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ln();if(t)return t=Vn(n,t)||t,ec($h.definitions,n,t)||ec(en.styles,n,t)}const $h=new Dg,Wg=()=>{$e.autoReplaceSvg=!1,$e.observeMutations=!1,Qn("noAuto")},Bg={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wn?(Qn("beforeI2svg",e),Rn("pseudoElements2svg",e),Rn("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,_g(()=>{jg({autoReplaceSvgRoot:t}),Qn("watch",e)})}},zg={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Vn(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=Ws(e[0]);return{prefix:n,iconName:Vn(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat($e.cssPrefix,"-"))>-1||e.match(og))){const t=Bs(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ln(),iconName:Vn(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Ln();return{prefix:t,iconName:Vn(t,e)||e}}}},Pt={noAuto:Wg,config:$e,dom:Bg,parse:zg,library:$h,findIconDefinition:ca,toHtml:Mr},jg=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=st}=e;(Object.keys(en.styles).length>0||$e.autoFetchSvg)&&wn&&$e.autoReplaceSvg&&Pt.dom.i2svg({node:t})};function zs(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Mr(n))}}),Object.defineProperty(e,"node",{get:function(){if(!wn)return;const n=st.createElement("div");return n.innerHTML=e.html,n.children}}),e}function Hg(e){let{children:t,main:n,mask:i,attributes:s,styles:o,transform:f}=e;if(el(f)&&n.found&&!i.found){const{width:g,height:l}=n,p={x:g/l/2,y:.5};s.style=Ps(ue(ue({},o),{},{"transform-origin":"".concat(p.x+f.x/16,"em ").concat(p.y+f.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function Ug(e){let{prefix:t,iconName:n,children:i,attributes:s,symbol:o}=e;const f=o===!0?"".concat(t,"-").concat($e.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ue(ue({},s),{},{id:f}),children:i}]}]}function il(e){const{icons:{main:t,mask:n},prefix:i,iconName:s,transform:o,symbol:f,title:g,maskId:l,titleId:p,extra:r,watchable:a=!1}=e,{width:c,height:u}=n.found?n:t,h=Up.includes(i),d=[$e.replacementClass,s?"".concat($e.cssPrefix,"-").concat(s):""].filter(_=>r.classes.indexOf(_)===-1).filter(_=>_!==""||!!_).concat(r.classes).join(" ");let m={children:[],attributes:ue(ue({},r.attributes),{},{"data-prefix":i,"data-icon":s,class:d,role:r.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(c," ").concat(u)})};const b=h&&!~r.classes.indexOf("fa-fw")?{width:"".concat(c/u*16*.0625,"em")}:{};a&&(m.attributes[Xn]=""),g&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(p||ir())},children:[g]}),delete m.attributes.title);const y=ue(ue({},m),{},{prefix:i,iconName:s,main:t,mask:n,maskId:l,transform:o,symbol:f,styles:ue(ue({},b),r.styles)}),{children:$,attributes:S}=n.found&&t.found?Rn("generateAbstractMask",y)||{children:[],attributes:{}}:Rn("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=$,y.attributes=S,f?Ug(y):Hg(y)}function rc(e){const{content:t,width:n,height:i,transform:s,title:o,extra:f,watchable:g=!1}=e,l=ue(ue(ue({},f.attributes),o?{title:o}:{}),{},{class:f.classes.join(" ")});g&&(l[Xn]="");const p=ue({},f.styles);el(s)&&(p.transform=yg({transform:s,startCentered:!0,width:n,height:i}),p["-webkit-transform"]=p.transform);const r=Ps(p);r.length>0&&(l.style=r);const a=[];return a.push({tag:"span",attributes:l,children:[t]}),o&&a.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),a}function Vg(e){const{content:t,title:n,extra:i}=e,s=ue(ue(ue({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),o=Ps(i.styles);o.length>0&&(s.style=o);const f=[];return f.push({tag:"span",attributes:s,children:[t]}),n&&f.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),f}const{styles:xo}=en;function ua(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(wo.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(wo.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(wo.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}const Gg={found:!1,width:512,height:512};function Yg(e,t){!lh&&!$e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function ha(e,t){let n=t;return t==="fa"&&$e.styleDefault!==null&&(t=Ln()),new Promise((i,s)=>{if(n==="fa"){const o=xh(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&xo[t]&&xo[t][e]){const o=xo[t][e];return i(ua(o))}Yg(e,t),i(ue(ue({},Gg),{},{icon:$e.showMissingIcons&&e?Rn("missingIconAbstract")||{}:{}}))})}const sc=()=>{},da=$e.measurePerformance&&zr&&zr.mark&&zr.measure?zr:{mark:sc,measure:sc},Hi='FA "6.7.1"',Kg=e=>(da.mark("".concat(Hi," ").concat(e," begins")),()=>Ah(e)),Ah=e=>{da.mark("".concat(Hi," ").concat(e," ends")),da.measure("".concat(Hi," ").concat(e),"".concat(Hi," ").concat(e," begins"),"".concat(Hi," ").concat(e," ends"))};var rl={begin:Kg,end:Ah};const Xr=()=>{};function oc(e){return typeof(e.getAttribute?e.getAttribute(Xn):null)=="string"}function Zg(e){const t=e.getAttribute?e.getAttribute(Xa):null,n=e.getAttribute?e.getAttribute(Qa):null;return t&&n}function Xg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains($e.replacementClass)}function Qg(){return $e.autoReplaceSvg===!0?Qr.replace:Qr[$e.autoReplaceSvg]||Qr.replace}function qg(e){return st.createElementNS("http://www.w3.org/2000/svg",e)}function Jg(e){return st.createElement(e)}function kh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?qg:Jg}=t;if(typeof e=="string")return st.createTextNode(e);const i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){i.appendChild(kh(o,{ceFn:n}))}),i}function em(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Qr={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(kh(n),t)}),t.getAttribute(Xn)===null&&$e.keepOriginalSource){let n=st.createComment(em(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ja(t).indexOf($e.replacementClass))return Qr.replace(e);const i=new RegExp("".concat($e.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((f,g)=>(g===$e.replacementClass||g.match(i)?f.toSvg.push(g):f.toNode.push(g),f),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const s=n.map(o=>Mr(o)).join(`
|
559
|
+
`);t.setAttribute(Xn,""),t.innerHTML=s}};function ac(e){e()}function Mh(e,t){const n=typeof t=="function"?t:Xr;if(e.length===0)n();else{let i=ac;$e.mutateApproach===ig&&(i=En.requestAnimationFrame||ac),i(()=>{const s=Qg(),o=rl.begin("mutate");e.map(s),o(),n()})}}let sl=!1;function Th(){sl=!0}function fa(){sl=!1}let fs=null;function lc(e){if(!Kl||!$e.observeMutations)return;const{treeCallback:t=Xr,nodeCallback:n=Xr,pseudoElementsCallback:i=Xr,observeMutationsRoot:s=st}=e;fs=new Kl(o=>{if(sl)return;const f=Ln();Li(o).forEach(g=>{if(g.type==="childList"&&g.addedNodes.length>0&&!oc(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"&&oc(g.target)&&~cg.indexOf(g.attributeName))if(g.attributeName==="class"&&Zg(g.target)){const{prefix:l,iconName:p}=Bs(Ja(g.target));g.target.setAttribute(Xa,l||f),p&&g.target.setAttribute(Qa,p)}else Xg(g.target)&&n(g.target)})}),wn&&fs.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function tm(){fs&&fs.disconnect()}function nm(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((i,s)=>{const o=s.split(":"),f=o[0],g=o.slice(1);return f&&g.length>0&&(i[f]=g.join(":").trim()),i},{})),n}function im(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let s=Bs(Ja(e));return s.prefix||(s.prefix=Ln()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&i.length>0&&(s.iconName=Mg(s.prefix,e.innerText)||nl(s.prefix,oa(e.innerText))),!s.iconName&&$e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function rm(e){const t=Li(e.attributes).reduce((s,o)=>(s.name!=="class"&&s.name!=="style"&&(s[o.name]=o.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||ir()):(t["aria-hidden"]="true",t.focusable="false")),t}function sm(){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 cc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:i,rest:s}=im(e),o=rm(e),f=la("parseNodeAttributes",{},e);let g=t.styleParser?nm(e):[];return ue({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:o}},f)}const{styles:om}=en;function Eh(e){const t=$e.autoReplaceSvg==="nest"?cc(e,{styleParser:!1}):cc(e);return~t.extra.classes.indexOf(uh)?Rn("generateLayersText",e,t):Rn("generateSvgReplacementMutation",e,t)}function am(){return[...zp,...ea]}function uc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!wn)return Promise.resolve();const n=st.documentElement.classList,i=r=>n.add("".concat(Ql,"-").concat(r)),s=r=>n.remove("".concat(Ql,"-").concat(r)),o=$e.autoFetchSvg?am():ih.concat(Object.keys(om));o.includes("fa")||o.push("fa");const f=[".".concat(uh,":not([").concat(Xn,"])")].concat(o.map(r=>".".concat(r,":not([").concat(Xn,"])"))).join(", ");if(f.length===0)return Promise.resolve();let g=[];try{g=Li(e.querySelectorAll(f))}catch{}if(g.length>0)i("pending"),s("complete");else return Promise.resolve();const l=rl.begin("onTree"),p=g.reduce((r,a)=>{try{const c=Eh(a);c&&r.push(c)}catch(c){lh||c.name==="MissingIcon"&&console.error(c)}return r},[]);return new Promise((r,a)=>{Promise.all(p).then(c=>{Mh(c,()=>{i("active"),i("complete"),s("pending"),typeof t=="function"&&t(),l(),r()})}).catch(c=>{l(),a(c)})})}function lm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Eh(e).then(n=>{n&&Mh([n],t)})}function cm(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(t||{}).icon?t:ca(t||{});let{mask:s}=n;return s&&(s=(s||{}).icon?s:ca(s||{})),e(i,ue(ue({},n),{},{mask:s}))}}const um=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Jt,symbol:i=!1,mask:s=null,maskId:o=null,title:f=null,titleId:g=null,classes:l=[],attributes:p={},styles:r={}}=t;if(!e)return;const{prefix:a,iconName:c,icon:u}=e;return zs(ue({type:"icon"},e),()=>(Qn("beforeDOMElementCreation",{iconDefinition:e,params:t}),$e.autoA11y&&(f?p["aria-labelledby"]="".concat($e.replacementClass,"-title-").concat(g||ir()):(p["aria-hidden"]="true",p.focusable="false")),il({icons:{main:ua(u),mask:s?ua(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:a,iconName:c,transform:ue(ue({},Jt),n),symbol:i,title:f,maskId:o,titleId:g,extra:{attributes:p,styles:r,classes:l}})))};var hm={mixout(){return{icon:cm(um)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=uc,e.nodeCallback=lm,e}}},provides(e){e.i2svg=function(t){const{node:n=st,callback:i=()=>{}}=t;return uc(n,i)},e.generateSvgReplacementMutation=function(t,n){const{iconName:i,title:s,titleId:o,prefix:f,transform:g,symbol:l,mask:p,maskId:r,extra:a}=n;return new Promise((c,u)=>{Promise.all([ha(i,f),p.iconName?ha(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[d,m]=h;c([t,il({icons:{main:d,mask:m},prefix:f,iconName:i,transform:g,symbol:l,maskId:r,title:s,titleId:o,extra:a,watchable:!0})])}).catch(u)})},e.generateAbstractIcon=function(t){let{children:n,attributes:i,main:s,transform:o,styles:f}=t;const g=Ps(f);g.length>0&&(i.style=g);let l;return el(o)&&(l=Rn("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),n.push(l||s.icon),{children:n,attributes:i}}}},dm={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return zs({type:"layer"},()=>{Qn("beforeDOMElementCreation",{assembler:e,params:t});let i=[];return e(s=>{Array.isArray(s)?s.map(o=>{i=i.concat(o.abstract)}):i=i.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat($e.cssPrefix,"-layers"),...n].join(" ")},children:i}]})}}}},fm={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:i=[],attributes:s={},styles:o={}}=t;return zs({type:"counter",content:e},()=>(Qn("beforeDOMElementCreation",{content:e,params:t}),Vg({content:e.toString(),title:n,extra:{attributes:s,styles:o,classes:["".concat($e.cssPrefix,"-layers-counter"),...i]}})))}}}},pm={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:o={},styles:f={}}=t;return zs({type:"text",content:e},()=>(Qn("beforeDOMElementCreation",{content:e,params:t}),rc({content:e,transform:ue(ue({},Jt),n),title:i,extra:{attributes:o,styles:f,classes:["".concat($e.cssPrefix,"-layers-text"),...s]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:i,transform:s,extra:o}=n;let f=null,g=null;if(th){const l=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();f=p.width/l,g=p.height/l}return $e.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,rc({content:t.innerHTML,width:f,height:g,transform:s,title:i,extra:o,watchable:!0})])}}};const gm=new RegExp('"',"ug"),hc=[1105920,1112319],dc=ue(ue(ue(ue({},{FontAwesome:{normal:"fas",400:"fas"}}),Pp),tg),Kp),pa=Object.keys(dc).reduce((e,t)=>(e[t.toLowerCase()]=dc[t],e),{}),mm=Object.keys(pa).reduce((e,t)=>{const n=pa[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function vm(e){const t=e.replace(gm,""),n=xg(t,0),i=n>=hc[0]&&n<=hc[1],s=t.length===2?t[0]===t[1]:!1;return{value:oa(s?t[0]:t),isSecondary:i||s}}function ym(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),s=isNaN(i)?"normal":i;return(pa[n]||{})[s]||mm[n]}function fc(e,t){const n="".concat(ng).concat(t.replace(":","-"));return new Promise((i,s)=>{if(e.getAttribute(n)!==null)return i();const f=Li(e.children).filter(c=>c.getAttribute(na)===t)[0],g=En.getComputedStyle(e,t),l=g.getPropertyValue("font-family"),p=l.match(ag),r=g.getPropertyValue("font-weight"),a=g.getPropertyValue("content");if(f&&!p)return e.removeChild(f),i();if(p&&a!=="none"&&a!==""){const c=g.getPropertyValue("content");let u=ym(l,r);const{value:h,isSecondary:d}=vm(c),m=p[0].startsWith("FontAwesome");let b=nl(u,h),y=b;if(m){const $=Tg(h);$.iconName&&$.prefix&&(b=$.iconName,u=$.prefix)}if(b&&!d&&(!f||f.getAttribute(Xa)!==u||f.getAttribute(Qa)!==y)){e.setAttribute(n,y),f&&e.removeChild(f);const $=sm(),{extra:S}=$;S.attributes[na]=t,ha(b,u).then(_=>{const w=il(ue(ue({},$),{},{icons:{main:_,mask:Ch()},prefix:u,iconName:y,extra:S,watchable:!0})),A=st.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(A,e.firstChild):e.appendChild(A),A.outerHTML=w.map(L=>Mr(L)).join(`
|
560
|
+
`),e.removeAttribute(n),i()}).catch(s)}else i()}else i()})}function bm(e){return Promise.all([fc(e,"::before"),fc(e,"::after")])}function wm(e){return e.parentNode!==document.head&&!~rg.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(na)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function pc(e){if(wn)return new Promise((t,n)=>{const i=Li(e.querySelectorAll("*")).filter(wm).map(bm),s=rl.begin("searchPseudoElements");Th(),Promise.all(i).then(()=>{s(),fa(),t()}).catch(()=>{s(),fa(),n()})})}var _m={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=pc,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=st}=t;$e.searchPseudoElements&&pc(n)}}};let gc=!1;var Sm={mixout(){return{dom:{unwatch(){Th(),gc=!0}}}},hooks(){return{bootstrap(){lc(la("mutationObserverCallbacks",{}))},noAuto(){tm()},watch(e){const{observeMutationsRoot:t}=e;gc?fa():lc(la("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const mc=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("-"),o=s[0];let f=s.slice(1).join("-");if(o&&f==="h")return n.flipX=!0,n;if(o&&f==="v")return n.flipY=!0,n;if(f=parseFloat(f),isNaN(f))return n;switch(o){case"grow":n.size=n.size+f;break;case"shrink":n.size=n.size-f;break;case"left":n.x=n.x-f;break;case"right":n.x=n.x+f;break;case"up":n.y=n.y-f;break;case"down":n.y=n.y+f;break;case"rotate":n.rotate=n.rotate+f;break}return n},t)};var xm={mixout(){return{parse:{transform:e=>mc(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=mc(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:i,containerWidth:s,iconWidth:o}=t;const f={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)"),r={transform:"".concat(g," ").concat(l," ").concat(p)},a={transform:"translate(".concat(o/2*-1," -256)")},c={outer:f,inner:r,path:a};return{tag:"g",attributes:ue({},c.outer),children:[{tag:"g",attributes:ue({},c.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ue(ue({},n.icon.attributes),c.path)}]}]}}}};const Co={x:0,y:0,width:"100%",height:"100%"};function vc(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 Cm(e){return e.tag==="g"?e.children:[e]}var $m={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),i=n?Bs(n.split(" ").map(s=>s.trim())):Ch();return i.prefix||(i.prefix=Ln()),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:o,maskId:f,transform:g}=t;const{width:l,icon:p}=s,{width:r,icon:a}=o,c=vg({transform:g,containerWidth:r,iconWidth:l}),u={tag:"rect",attributes:ue(ue({},Co),{},{fill:"white"})},h=p.children?{children:p.children.map(vc)}:{},d={tag:"g",attributes:ue({},c.inner),children:[vc(ue({tag:p.tag,attributes:ue(ue({},p.attributes),c.path)},h))]},m={tag:"g",attributes:ue({},c.outer),children:[d]},b="mask-".concat(f||ir()),y="clip-".concat(f||ir()),$={tag:"mask",attributes:ue(ue({},Co),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,m]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:Cm(a)},$]};return n.push(S,{tag:"rect",attributes:ue({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},Co)}),{children:n,attributes:i}}}},Am={provides(e){let t=!1;En.matchMedia&&(t=En.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:ue(ue({},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 o=ue(ue({},s),{},{attributeName:"opacity"}),f={tag:"circle",attributes:ue(ue({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||f.children.push({tag:"animate",attributes:ue(ue({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ue(ue({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(f),n.push({tag:"path",attributes:ue(ue({},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:ue(ue({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:ue(ue({},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:ue(ue({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},km={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),i=n===null?!1:n===""?!0:n;return e.symbol=i,e}}}},Mm=[wg,hm,dm,fm,pm,_m,Sm,xm,$m,Am,km];Pg(Mm,{mixoutsTo:Pt});Pt.noAuto;Pt.config;const Tm=Pt.library;Pt.dom;const ga=Pt.parse;Pt.findIconDefinition;Pt.toHtml;const Em=Pt.icon;Pt.layer;Pt.text;Pt.counter;/*!
|
561
|
+
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
562
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
563
|
+
* Copyright 2024 Fonticons, Inc.
|
564
|
+
*/const Lm={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"]},Rm={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"]},Om=Rm,Im={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"]},Nm={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"]},Dm={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"]},Fm=Dm,Pm={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"]},Wm={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"]},Bm={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"]},zm={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"]},Lh={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"]},jm=Lh,Hm={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"]},Um={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"]},Vm=Um,Gm={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"]},Ym={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"]},Km={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"]},Zm={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"]},Xm={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"]},Qm={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"]};/**
|
565
|
+
* @vue/shared v3.5.13
|
566
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
567
|
+
* @license MIT
|
568
|
+
**//*! #__NO_SIDE_EFFECTS__ */function ol(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Je={},gi=[],tn=()=>{},qm=()=>!1,js=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),al=e=>e.startsWith("onUpdate:"),ht=Object.assign,ll=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jm=Object.prototype.hasOwnProperty,Xe=(e,t)=>Jm.call(e,t),Oe=Array.isArray,mi=e=>Hs(e)==="[object Map]",Rh=e=>Hs(e)==="[object Set]",Ie=e=>typeof e=="function",ut=e=>typeof e=="string",Fn=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Oh=e=>(ot(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),Ih=Object.prototype.toString,Hs=e=>Ih.call(e),ev=e=>Hs(e).slice(8,-1),Nh=e=>Hs(e)==="[object Object]",cl=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zi=ol(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tv=/-(\w)/g,zt=Us(e=>e.replace(tv,(t,n)=>n?n.toUpperCase():"")),nv=/\B([A-Z])/g,si=Us(e=>e.replace(nv,"-$1").toLowerCase()),Tr=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),$o=Us(e=>e?`on${Tr(e)}`:""),Tn=(e,t)=>!Object.is(e,t),qr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Dh=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},ma=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yc;const Vs=()=>yc||(yc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ul(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],s=ut(i)?ov(i):ul(i);if(s)for(const o in s)t[o]=s[o]}return t}else if(ut(e)||ot(e))return e}const iv=/;(?![^(]*\))/g,rv=/:([^]+)/,sv=/\/\*[^]*?\*\//g;function ov(e){const t={};return e.replace(sv,"").split(iv).forEach(n=>{if(n){const i=n.split(rv);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Er(e){let t="";if(ut(e))t=e;else if(Oe(e))for(let n=0;n<e.length;n++){const i=Er(e[n]);i&&(t+=i+" ")}else if(ot(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const av="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lv=ol(av);function Fh(e){return!!e||e===""}const Ph=e=>!!(e&&e.__v_isRef===!0),_e=e=>ut(e)?e:e==null?"":Oe(e)||ot(e)&&(e.toString===Ih||!Ie(e.toString))?Ph(e)?_e(e.value):JSON.stringify(e,Wh,2):String(e),Wh=(e,t)=>Ph(t)?Wh(e,t.value):mi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],o)=>(n[Ao(i,o)+" =>"]=s,n),{})}:Rh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ao(n))}:Fn(t)?Ao(t):ot(t)&&!Oe(t)&&!Nh(t)?String(t):t,Ao=(e,t="")=>{var n;return Fn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
569
|
+
* @vue/reactivity v3.5.13
|
570
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
571
|
+
* @license MIT
|
572
|
+
**/let At;class Bh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=At,!t&&At&&(this.index=(At.scopes||(At.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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=At;try{return At=this,t()}finally{At=n}}}on(){At=this}off(){At=this.parent}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function cv(e){return new Bh(e)}function zh(){return At}function uv(e,t=!1){At&&At.cleanups.push(e)}let tt;const ko=new WeakSet;class jh{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,At&&At.active&&At.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ko.has(this)&&(ko.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Uh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,bc(this),Vh(this);const t=tt,n=Ht;tt=this,Ht=!0;try{return this.fn()}finally{Gh(this),tt=t,Ht=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)fl(t);this.deps=this.depsTail=void 0,bc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ko.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){va(this)&&this.run()}get dirty(){return va(this)}}let Hh=0,Xi,Qi;function Uh(e,t=!1){if(e.flags|=8,t){e.next=Qi,Qi=e;return}e.next=Xi,Xi=e}function hl(){Hh++}function dl(){if(--Hh>0)return;if(Qi){let t=Qi;for(Qi=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xi;){let t=Xi;for(Xi=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 Vh(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gh(e){let t,n=e.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),fl(i),hv(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=t,e.depsTail=n}function va(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yh(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===sr))return;e.globalVersion=sr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!va(e)){e.flags&=-3;return}const n=tt,i=Ht;tt=e,Ht=!0;try{Vh(e);const s=e.fn(e._value);(t.version===0||Tn(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{tt=n,Ht=i,Gh(e),e.flags&=-3}}function fl(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 o=n.computed.deps;o;o=o.nextDep)fl(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function hv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ht=!0;const Kh=[];function Pn(){Kh.push(Ht),Ht=!1}function Wn(){const e=Kh.pop();Ht=e===void 0?!0:e}function bc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=tt;tt=void 0;try{t()}finally{tt=n}}}let sr=0,dv=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 Gs{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(!tt||!Ht||tt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==tt)n=this.activeLink=new dv(tt,this),tt.deps?(n.prevDep=tt.depsTail,tt.depsTail.nextDep=n,tt.depsTail=n):tt.deps=tt.depsTail=n,Zh(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=tt.depsTail,n.nextDep=void 0,tt.depsTail.nextDep=n,tt.depsTail=n,tt.deps===n&&(tt.deps=i)}return n}trigger(t){this.version++,sr++,this.notify(t)}notify(t){hl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{dl()}}}function Zh(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)Zh(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ps=new WeakMap,Yn=Symbol(""),ya=Symbol(""),or=Symbol("");function yt(e,t,n){if(Ht&&tt){let i=ps.get(e);i||ps.set(e,i=new Map);let s=i.get(n);s||(i.set(n,s=new Gs),s.map=i,s.key=n),s.track()}}function fn(e,t,n,i,s,o){const f=ps.get(e);if(!f){sr++;return}const g=l=>{l&&l.trigger()};if(hl(),t==="clear")f.forEach(g);else{const l=Oe(e),p=l&&cl(n);if(l&&n==="length"){const r=Number(i);f.forEach((a,c)=>{(c==="length"||c===or||!Fn(c)&&c>=r)&&g(a)})}else switch((n!==void 0||f.has(void 0))&&g(f.get(n)),p&&g(f.get(or)),t){case"add":l?p&&g(f.get("length")):(g(f.get(Yn)),mi(e)&&g(f.get(ya)));break;case"delete":l||(g(f.get(Yn)),mi(e)&&g(f.get(ya)));break;case"set":mi(e)&&g(f.get(Yn));break}}dl()}function fv(e,t){const n=ps.get(e);return n&&n.get(t)}function oi(e){const t=Ye(e);return t===e?t:(yt(t,"iterate",or),Bt(e)?t:t.map(bt))}function Ys(e){return yt(e=Ye(e),"iterate",or),e}const pv={__proto__:null,[Symbol.iterator](){return Mo(this,Symbol.iterator,bt)},concat(...e){return oi(this).concat(...e.map(t=>Oe(t)?oi(t):t))},entries(){return Mo(this,"entries",e=>(e[1]=bt(e[1]),e))},every(e,t){return ln(this,"every",e,t,void 0,arguments)},filter(e,t){return ln(this,"filter",e,t,n=>n.map(bt),arguments)},find(e,t){return ln(this,"find",e,t,bt,arguments)},findIndex(e,t){return ln(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ln(this,"findLast",e,t,bt,arguments)},findLastIndex(e,t){return ln(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ln(this,"forEach",e,t,void 0,arguments)},includes(...e){return To(this,"includes",e)},indexOf(...e){return To(this,"indexOf",e)},join(e){return oi(this).join(e)},lastIndexOf(...e){return To(this,"lastIndexOf",e)},map(e,t){return ln(this,"map",e,t,void 0,arguments)},pop(){return Pi(this,"pop")},push(...e){return Pi(this,"push",e)},reduce(e,...t){return wc(this,"reduce",e,t)},reduceRight(e,...t){return wc(this,"reduceRight",e,t)},shift(){return Pi(this,"shift")},some(e,t){return ln(this,"some",e,t,void 0,arguments)},splice(...e){return Pi(this,"splice",e)},toReversed(){return oi(this).toReversed()},toSorted(e){return oi(this).toSorted(e)},toSpliced(...e){return oi(this).toSpliced(...e)},unshift(...e){return Pi(this,"unshift",e)},values(){return Mo(this,"values",bt)}};function Mo(e,t,n){const i=Ys(e),s=i[t]();return i!==e&&!Bt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const gv=Array.prototype;function ln(e,t,n,i,s,o){const f=Ys(e),g=f!==e&&!Bt(e),l=f[t];if(l!==gv[t]){const a=l.apply(e,o);return g?bt(a):a}let p=n;f!==e&&(g?p=function(a,c){return n.call(this,bt(a),c,e)}:n.length>2&&(p=function(a,c){return n.call(this,a,c,e)}));const r=l.call(f,p,i);return g&&s?s(r):r}function wc(e,t,n,i){const s=Ys(e);let o=n;return s!==e&&(Bt(e)?n.length>3&&(o=function(f,g,l){return n.call(this,f,g,l,e)}):o=function(f,g,l){return n.call(this,f,bt(g),l,e)}),s[t](o,...i)}function To(e,t,n){const i=Ye(e);yt(i,"iterate",or);const s=i[t](...n);return(s===-1||s===!1)&&ml(n[0])?(n[0]=Ye(n[0]),i[t](...n)):s}function Pi(e,t,n=[]){Pn(),hl();const i=Ye(e)[t].apply(e,n);return dl(),Wn(),i}const mv=ol("__proto__,__v_isRef,__isVue"),Xh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fn));function vv(e){Fn(e)||(e=String(e));const t=Ye(this);return yt(t,"has",e),t.hasOwnProperty(e)}class Qh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(s?o?kv:td:o?ed:Jh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const f=Oe(t);if(!s){let l;if(f&&(l=pv[n]))return l;if(n==="hasOwnProperty")return vv}const g=Reflect.get(t,n,lt(t)?t:i);return(Fn(n)?Xh.has(n):mv(n))||(s||yt(t,"get",n),o)?g:lt(g)?f&&cl(n)?g:g.value:ot(g)?s?Ks(g):Ri(g):g}}class qh extends Qh{constructor(t=!1){super(!1,t)}set(t,n,i,s){let o=t[n];if(!this._isShallow){const l=qn(o);if(!Bt(i)&&!qn(i)&&(o=Ye(o),i=Ye(i)),!Oe(t)&<(o)&&!lt(i))return l?!1:(o.value=i,!0)}const f=Oe(t)&&cl(n)?Number(n)<t.length:Xe(t,n),g=Reflect.set(t,n,i,lt(t)?t:s);return t===Ye(s)&&(f?Tn(i,o)&&fn(t,"set",n,i):fn(t,"add",n,i)),g}deleteProperty(t,n){const i=Xe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&i&&fn(t,"delete",n,void 0),s}has(t,n){const i=Reflect.has(t,n);return(!Fn(n)||!Xh.has(n))&&yt(t,"has",n),i}ownKeys(t){return yt(t,"iterate",Oe(t)?"length":Yn),Reflect.ownKeys(t)}}class yv extends Qh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const bv=new qh,wv=new yv,_v=new qh(!0);const ba=e=>e,Hr=e=>Reflect.getPrototypeOf(e);function Sv(e,t,n){return function(...i){const s=this.__v_raw,o=Ye(s),f=mi(o),g=e==="entries"||e===Symbol.iterator&&f,l=e==="keys"&&f,p=s[e](...i),r=n?ba:t?wa:bt;return!t&&yt(o,"iterate",l?ya:Yn),{next(){const{value:a,done:c}=p.next();return c?{value:a,done:c}:{value:g?[r(a[0]),r(a[1])]:r(a),done:c}},[Symbol.iterator](){return this}}}}function Ur(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xv(e,t){const n={get(s){const o=this.__v_raw,f=Ye(o),g=Ye(s);e||(Tn(s,g)&&yt(f,"get",s),yt(f,"get",g));const{has:l}=Hr(f),p=t?ba:e?wa:bt;if(l.call(f,s))return p(o.get(s));if(l.call(f,g))return p(o.get(g));o!==f&&o.get(s)},get size(){const s=this.__v_raw;return!e&&yt(Ye(s),"iterate",Yn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,f=Ye(o),g=Ye(s);return e||(Tn(s,g)&&yt(f,"has",s),yt(f,"has",g)),s===g?o.has(s):o.has(s)||o.has(g)},forEach(s,o){const f=this,g=f.__v_raw,l=Ye(g),p=t?ba:e?wa:bt;return!e&&yt(l,"iterate",Yn),g.forEach((r,a)=>s.call(o,p(r),p(a),f))}};return ht(n,e?{add:Ur("add"),set:Ur("set"),delete:Ur("delete"),clear:Ur("clear")}:{add(s){!t&&!Bt(s)&&!qn(s)&&(s=Ye(s));const o=Ye(this);return Hr(o).has.call(o,s)||(o.add(s),fn(o,"add",s,s)),this},set(s,o){!t&&!Bt(o)&&!qn(o)&&(o=Ye(o));const f=Ye(this),{has:g,get:l}=Hr(f);let p=g.call(f,s);p||(s=Ye(s),p=g.call(f,s));const r=l.call(f,s);return f.set(s,o),p?Tn(o,r)&&fn(f,"set",s,o):fn(f,"add",s,o),this},delete(s){const o=Ye(this),{has:f,get:g}=Hr(o);let l=f.call(o,s);l||(s=Ye(s),l=f.call(o,s)),g&&g.call(o,s);const p=o.delete(s);return l&&fn(o,"delete",s,void 0),p},clear(){const s=Ye(this),o=s.size!==0,f=s.clear();return o&&fn(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Sv(s,e,t)}),n}function pl(e,t){const n=xv(e,t);return(i,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(Xe(n,s)&&s in i?n:i,s,o)}const Cv={get:pl(!1,!1)},$v={get:pl(!1,!0)},Av={get:pl(!0,!1)};const Jh=new WeakMap,ed=new WeakMap,td=new WeakMap,kv=new WeakMap;function Mv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tv(e){return e.__v_skip||!Object.isExtensible(e)?0:Mv(ev(e))}function Ri(e){return qn(e)?e:gl(e,!1,bv,Cv,Jh)}function nd(e){return gl(e,!1,_v,$v,ed)}function Ks(e){return gl(e,!0,wv,Av,td)}function gl(e,t,n,i,s){if(!ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const f=Tv(e);if(f===0)return e;const g=new Proxy(e,f===2?i:n);return s.set(e,g),g}function vi(e){return qn(e)?vi(e.__v_raw):!!(e&&e.__v_isReactive)}function qn(e){return!!(e&&e.__v_isReadonly)}function Bt(e){return!!(e&&e.__v_isShallow)}function ml(e){return e?!!e.__v_raw:!1}function Ye(e){const t=e&&e.__v_raw;return t?Ye(t):e}function id(e){return!Xe(e,"__v_skip")&&Object.isExtensible(e)&&Dh(e,"__v_skip",!0),e}const bt=e=>ot(e)?Ri(e):e,wa=e=>ot(e)?Ks(e):e;function lt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return sd(e,!1)}function rd(e){return sd(e,!0)}function sd(e,t){return lt(e)?e:new Ev(e,t)}class Ev{constructor(t,n){this.dep=new Gs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ye(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||Bt(t)||qn(t);t=i?t:Ye(t),Tn(t,n)&&(this._rawValue=t,this._value=i?t:bt(t),this.dep.trigger())}}function he(e){return lt(e)?e.value:e}const Lv={get:(e,t,n)=>t==="__v_raw"?e:he(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 od(e){return vi(e)?e:new Proxy(e,Lv)}class Rv{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gs,{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 ad(e){return new Rv(e)}class Ov{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 fv(Ye(this._object),this._key)}}class Iv{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 vl(e,t,n){return lt(e)?e:Ie(e)?new Iv(e):ot(e)&&arguments.length>1?Nv(e,t,n):Ue(e)}function Nv(e,t,n){const i=e[t];return lt(i)?i:new Ov(e,t,n)}class Dv{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=sr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&tt!==this)return Uh(this,!0),!0}get value(){const t=this.dep.track();return Yh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fv(e,t,n=!1){let i,s;return Ie(e)?i=e:(i=e.get,s=e.set),new Dv(i,s,n)}const Vr={},gs=new WeakMap;let jn;function Pv(e,t=!1,n=jn){if(n){let i=gs.get(n);i||gs.set(n,i=[]),i.push(e)}}function Wv(e,t,n=Je){const{immediate:i,deep:s,once:o,scheduler:f,augmentJob:g,call:l}=n,p=S=>s?S:Bt(S)||s===!1||s===0?pn(S,1):pn(S);let r,a,c,u,h=!1,d=!1;if(lt(e)?(a=()=>e.value,h=Bt(e)):vi(e)?(a=()=>p(e),h=!0):Oe(e)?(d=!0,h=e.some(S=>vi(S)||Bt(S)),a=()=>e.map(S=>{if(lt(S))return S.value;if(vi(S))return p(S);if(Ie(S))return l?l(S,2):S()})):Ie(e)?t?a=l?()=>l(e,2):e:a=()=>{if(c){Pn();try{c()}finally{Wn()}}const S=jn;jn=r;try{return l?l(e,3,[u]):e(u)}finally{jn=S}}:a=tn,t&&s){const S=a,_=s===!0?1/0:s;a=()=>pn(S(),_)}const m=zh(),b=()=>{r.stop(),m&&m.active&&ll(m.effects,r)};if(o&&t){const S=t;t=(..._)=>{S(..._),b()}}let y=d?new Array(e.length).fill(Vr):Vr;const $=S=>{if(!(!(r.flags&1)||!r.dirty&&!S))if(t){const _=r.run();if(s||h||(d?_.some((w,A)=>Tn(w,y[A])):Tn(_,y))){c&&c();const w=jn;jn=r;try{const A=[_,y===Vr?void 0:d&&y[0]===Vr?[]:y,u];l?l(t,3,A):t(...A),y=_}finally{jn=w}}}else r.run()};return g&&g($),r=new jh(a),r.scheduler=f?()=>f($,!1):$,u=S=>Pv(S,!1,r),c=r.onStop=()=>{const S=gs.get(r);if(S){if(l)l(S,4);else for(const _ of S)_();gs.delete(r)}},t?i?$(!0):y=r.run():f?f($.bind(null,!0),!0):r.run(),b.pause=r.pause.bind(r),b.resume=r.resume.bind(r),b.stop=b,b}function pn(e,t=1/0,n){if(t<=0||!ot(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,lt(e))pn(e.value,t,n);else if(Oe(e))for(let i=0;i<e.length;i++)pn(e[i],t,n);else if(Rh(e)||mi(e))e.forEach(i=>{pn(i,t,n)});else if(Nh(e)){for(const i in e)pn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&pn(e[i],t,n)}return e}/**
|
573
|
+
* @vue/runtime-core v3.5.13
|
574
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
575
|
+
* @license MIT
|
576
|
+
**/function Lr(e,t,n,i){try{return i?e(...i):e()}catch(s){Zs(s,t,n)}}function rn(e,t,n,i){if(Ie(e)){const s=Lr(e,t,n,i);return s&&Oh(s)&&s.catch(o=>{Zs(o,t,n)}),s}if(Oe(e)){const s=[];for(let o=0;o<e.length;o++)s.push(rn(e[o],t,n,i));return s}}function Zs(e,t,n,i=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||Je;if(t){let g=t.parent;const l=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;g;){const r=g.ec;if(r){for(let a=0;a<r.length;a++)if(r[a](e,l,p)===!1)return}g=g.parent}if(o){Pn(),Lr(o,null,10,[e,l,p]),Wn();return}}Bv(e,n,s,i,f)}function Bv(e,t,n,i=!0,s=!1){if(s)throw e;console.error(e)}const kt=[];let Qt=-1;const yi=[];let An=null,ai=0;const ld=Promise.resolve();let ms=null;function Rr(e){const t=ms||ld;return e?t.then(this?e.bind(this):e):t}function zv(e){let t=Qt+1,n=kt.length;for(;t<n;){const i=t+n>>>1,s=kt[i],o=ar(s);o<e||o===e&&s.flags&2?t=i+1:n=i}return t}function yl(e){if(!(e.flags&1)){const t=ar(e),n=kt[kt.length-1];!n||!(e.flags&2)&&t>=ar(n)?kt.push(e):kt.splice(zv(t),0,e),e.flags|=1,cd()}}function cd(){ms||(ms=ld.then(hd))}function jv(e){Oe(e)?yi.push(...e):An&&e.id===-1?An.splice(ai+1,0,e):e.flags&1||(yi.push(e),e.flags|=1),cd()}function _c(e,t,n=Qt+1){for(;n<kt.length;n++){const i=kt[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;kt.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function ud(e){if(yi.length){const t=[...new Set(yi)].sort((n,i)=>ar(n)-ar(i));if(yi.length=0,An){An.push(...t);return}for(An=t,ai=0;ai<An.length;ai++){const n=An[ai];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}An=null,ai=0}}const ar=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hd(e){try{for(Qt=0;Qt<kt.length;Qt++){const t=kt[Qt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Lr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Qt<kt.length;Qt++){const t=kt[Qt];t&&(t.flags&=-2)}Qt=-1,kt.length=0,ud(),ms=null,(kt.length||yi.length)&&hd()}}let Et=null,dd=null;function vs(e){const t=Et;return Et=e,dd=e&&e.type.__scopeId||null,t}function it(e,t=Et,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&Ec(-1);const o=vs(t);let f;try{f=e(...s)}finally{vs(o),i._d&&Ec(1)}return f};return i._n=!0,i._c=!0,i._d=!0,i}function bl(e,t){if(Et===null)return e;const n=Js(Et),i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,f,g,l=Je]=t[s];o&&(Ie(o)&&(o={mounted:o,updated:o}),o.deep&&pn(f),i.push({dir:o,instance:n,value:f,oldValue:void 0,arg:g,modifiers:l}))}return e}function Bn(e,t,n,i){const s=e.dirs,o=t&&t.dirs;for(let f=0;f<s.length;f++){const g=s[f];o&&(g.oldValue=o[f].value);let l=g.dir[i];l&&(Pn(),rn(l,n,8,[e.el,g,e,t]),Wn())}}const Hv=Symbol("_vte"),Uv=e=>e.__isTeleport;function wl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,wl(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 Ie(e)?ht({name:e.name},t,{setup:e}):e}function fd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ys(e,t,n,i,s=!1){if(Oe(e)){e.forEach((h,d)=>ys(h,t&&(Oe(t)?t[d]:t),n,i,s));return}if(qi(i)&&!s){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ys(e,t,n,i.component.subTree);return}const o=i.shapeFlag&4?Js(i.component):i.el,f=s?null:o,{i:g,r:l}=e,p=t&&t.r,r=g.refs===Je?g.refs={}:g.refs,a=g.setupState,c=Ye(a),u=a===Je?()=>!1:h=>Xe(c,h);if(p!=null&&p!==l&&(ut(p)?(r[p]=null,u(p)&&(a[p]=null)):lt(p)&&(p.value=null)),Ie(l))Lr(l,g,12,[f,r]);else{const h=ut(l),d=lt(l);if(h||d){const m=()=>{if(e.f){const b=h?u(l)?a[l]:r[l]:l.value;s?Oe(b)&&ll(b,o):Oe(b)?b.includes(o)||b.push(o):h?(r[l]=[o],u(l)&&(a[l]=r[l])):(l.value=[o],e.k&&(r[e.k]=l.value))}else h?(r[l]=f,u(l)&&(a[l]=f)):d&&(l.value=f,e.k&&(r[e.k]=f))};f?(m.id=-1,Ot(m,n)):m()}}}Vs().requestIdleCallback;Vs().cancelIdleCallback;const qi=e=>!!e.type.__asyncLoader,pd=e=>e.type.__isKeepAlive;function Vv(e,t){gd(e,"a",t)}function Gv(e,t){gd(e,"da",t)}function gd(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(Xs(t,i,n),n){let s=n.parent;for(;s&&s.parent;)pd(s.parent.vnode)&&Yv(i,t,n,s),s=s.parent}}function Yv(e,t,n,i){const s=Xs(t,e,i,!0);md(()=>{ll(i[t],s)},n)}function Xs(e,t,n=gt,i=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...f)=>{Pn();const g=Or(n),l=rn(t,n,e,f);return g(),Wn(),l});return i?s.unshift(o):s.push(o),o}}const _n=e=>(t,n=gt)=>{(!cr||e==="sp")&&Xs(e,(...i)=>t(...i),n)},Kv=_n("bm"),ct=_n("m"),Zv=_n("bu"),Xv=_n("u"),_l=_n("bum"),md=_n("um"),Qv=_n("sp"),qv=_n("rtg"),Jv=_n("rtc");function ey(e,t=gt){Xs("ec",e,t)}const ty="components";function Qe(e,t){return iy(ty,e,!0,t)||e}const ny=Symbol.for("v-ndc");function iy(e,t,n=!0,i=!1){const s=Et||gt;if(s){const o=s.type;{const g=Hy(o,!1);if(g&&(g===t||g===zt(t)||g===Tr(zt(t))))return o}const f=Sc(s[e]||o[e],t)||Sc(s.appContext[e],t);return!f&&i?o:f}}function Sc(e,t){return e&&(e[t]||e[zt(t)]||e[Tr(zt(t))])}function Ft(e,t,n,i){let s;const o=n,f=Oe(e);if(f||ut(e)){const g=f&&vi(e);let l=!1;g&&(l=!Bt(e),e=Ys(e)),s=new Array(e.length);for(let p=0,r=e.length;p<r;p++)s[p]=t(l?bt(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let g=0;g<e;g++)s[g]=t(g+1,g,void 0,o)}else if(ot(e))if(e[Symbol.iterator])s=Array.from(e,(g,l)=>t(g,l,void 0,o));else{const g=Object.keys(e);s=new Array(g.length);for(let l=0,p=g.length;l<p;l++){const r=g[l];s[l]=t(e[r],r,l,o)}}else s=[];return s}const _a=e=>e?Nd(e)?Js(e):_a(e.parent):null,Ji=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=>_a(e.parent),$root:e=>_a(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sl(e),$forceUpdate:e=>e.f||(e.f=()=>{yl(e.update)}),$nextTick:e=>e.n||(e.n=Rr.bind(e.proxy)),$watch:e=>Cy.bind(e)}),Eo=(e,t)=>e!==Je&&!e.__isScriptSetup&&Xe(e,t),ry={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:o,accessCache:f,type:g,appContext:l}=e;let p;if(t[0]!=="$"){const u=f[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 o[t]}else{if(Eo(i,t))return f[t]=1,i[t];if(s!==Je&&Xe(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&Xe(p,t))return f[t]=3,o[t];if(n!==Je&&Xe(n,t))return f[t]=4,n[t];Sa&&(f[t]=0)}}const r=Ji[t];let a,c;if(r)return t==="$attrs"&&yt(e.attrs,"get",""),r(e);if((a=g.__cssModules)&&(a=a[t]))return a;if(n!==Je&&Xe(n,t))return f[t]=4,n[t];if(c=l.config.globalProperties,Xe(c,t))return c[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:o}=e;return Eo(s,t)?(s[t]=n,!0):i!==Je&&Xe(i,t)?(i[t]=n,!0):Xe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:o}},f){let g;return!!n[f]||e!==Je&&Xe(e,f)||Eo(t,f)||(g=o[0])&&Xe(g,f)||Xe(i,f)||Xe(Ji,f)||Xe(s.config.globalProperties,f)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Xe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xc(e){return Oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Sa=!0;function sy(e){const t=Sl(e),n=e.proxy,i=e.ctx;Sa=!1,t.beforeCreate&&Cc(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:f,watch:g,provide:l,inject:p,created:r,beforeMount:a,mounted:c,beforeUpdate:u,updated:h,activated:d,deactivated:m,beforeDestroy:b,beforeUnmount:y,destroyed:$,unmounted:S,render:_,renderTracked:w,renderTriggered:A,errorCaptured:L,serverPrefetch:E,expose:M,inheritAttrs:O,components:C,directives:v,filters:x}=t;if(p&&oy(p,i,null),f)for(const R in f){const I=f[R];Ie(I)&&(i[R]=I.bind(n))}if(s){const R=s.call(n,n);ot(R)&&(e.data=Ri(R))}if(Sa=!0,o)for(const R in o){const I=o[R],N=Ie(I)?I.bind(n,n):Ie(I.get)?I.get.bind(n,n):tn,F=!Ie(I)&&Ie(I.set)?I.set.bind(n):tn,W=ke({get:N,set:F});Object.defineProperty(i,R,{enumerable:!0,configurable:!0,get:()=>W.value,set:V=>W.value=V})}if(g)for(const R in g)vd(g[R],i,n,R);if(l){const R=Ie(l)?l.call(n):l;Reflect.ownKeys(R).forEach(I=>{Jr(I,R[I])})}r&&Cc(r,e,"c");function T(R,I){Oe(I)?I.forEach(N=>R(N.bind(n))):I&&R(I.bind(n))}if(T(Kv,a),T(ct,c),T(Zv,u),T(Xv,h),T(Vv,d),T(Gv,m),T(ey,L),T(Jv,w),T(qv,A),T(_l,y),T(md,S),T(Qv,E),Oe(M))if(M.length){const R=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(R,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});_&&e.render===tn&&(e.render=_),O!=null&&(e.inheritAttrs=O),C&&(e.components=C),v&&(e.directives=v),E&&fd(e)}function oy(e,t,n=tn){Oe(e)&&(e=xa(e));for(const i in e){const s=e[i];let o;ot(s)?"default"in s?o=Ut(s.from||i,s.default,!0):o=Ut(s.from||i):o=Ut(s),lt(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:f=>o.value=f}):t[i]=o}}function Cc(e,t,n){rn(Oe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function vd(e,t,n,i){let s=i.includes(".")?Ed(n,i):()=>n[i];if(ut(e)){const o=t[e];Ie(o)&&et(s,o)}else if(Ie(e))et(s,e.bind(n));else if(ot(e))if(Oe(e))e.forEach(o=>vd(o,t,n,i));else{const o=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(o)&&et(s,o,e)}}function Sl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:f}}=e.appContext,g=o.get(t);let l;return g?l=g:!s.length&&!n&&!i?l=t:(l={},s.length&&s.forEach(p=>bs(l,p,f,!0)),bs(l,t,f)),ot(t)&&o.set(t,l),l}function bs(e,t,n,i=!1){const{mixins:s,extends:o}=t;o&&bs(e,o,n,!0),s&&s.forEach(f=>bs(e,f,n,!0));for(const f in t)if(!(i&&f==="expose")){const g=ay[f]||n&&n[f];e[f]=g?g(e[f],t[f]):t[f]}return e}const ay={data:$c,props:Ac,emits:Ac,methods:Ui,computed:Ui,beforeCreate:$t,created:$t,beforeMount:$t,mounted:$t,beforeUpdate:$t,updated:$t,beforeDestroy:$t,beforeUnmount:$t,destroyed:$t,unmounted:$t,activated:$t,deactivated:$t,errorCaptured:$t,serverPrefetch:$t,components:Ui,directives:Ui,watch:cy,provide:$c,inject:ly};function $c(e,t){return t?e?function(){return ht(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function ly(e,t){return Ui(xa(e),xa(t))}function xa(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function $t(e,t){return e?[...new Set([].concat(e,t))]:t}function Ui(e,t){return e?ht(Object.create(null),e,t):t}function Ac(e,t){return e?Oe(e)&&Oe(t)?[...new Set([...e,...t])]:ht(Object.create(null),xc(e),xc(t??{})):t}function cy(e,t){if(!e)return t;if(!t)return e;const n=ht(Object.create(null),e);for(const i in t)n[i]=$t(e[i],t[i]);return n}function yd(){return{app:null,config:{isNativeTag:qm,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uy=0;function hy(e,t){return function(i,s=null){Ie(i)||(i=ht({},i)),s!=null&&!ot(s)&&(s=null);const o=yd(),f=new WeakSet,g=[];let l=!1;const p=o.app={_uid:uy++,_component:i,_props:s,_container:null,_context:o,_instance:null,version:Vy,get config(){return o.config},set config(r){},use(r,...a){return f.has(r)||(r&&Ie(r.install)?(f.add(r),r.install(p,...a)):Ie(r)&&(f.add(r),r(p,...a))),p},mixin(r){return o.mixins.includes(r)||o.mixins.push(r),p},component(r,a){return a?(o.components[r]=a,p):o.components[r]},directive(r,a){return a?(o.directives[r]=a,p):o.directives[r]},mount(r,a,c){if(!l){const u=p._ceVNode||se(i,s);return u.appContext=o,c===!0?c="svg":c===!1&&(c=void 0),a&&t?t(u,r):e(u,r,c),l=!0,p._container=r,r.__vue_app__=p,Js(u.component)}},onUnmount(r){g.push(r)},unmount(){l&&(rn(g,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(r,a){return o.provides[r]=a,p},runWithContext(r){const a=bi;bi=p;try{return r()}finally{bi=a}}};return p}}let bi=null;function Jr(e,t){if(gt){let n=gt.provides;const i=gt.parent&>.parent.provides;i===n&&(n=gt.provides=Object.create(i)),n[e]=t}}function Ut(e,t,n=!1){const i=gt||Et;if(i||bi){const s=bi?bi._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Ie(t)?t.call(i&&i.proxy):t}}const bd={},wd=()=>Object.create(bd),_d=e=>Object.getPrototypeOf(e)===bd;function dy(e,t,n,i=!1){const s={},o=wd();e.propsDefaults=Object.create(null),Sd(e,t,s,o);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);n?e.props=i?s:nd(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function fy(e,t,n,i){const{props:s,attrs:o,vnode:{patchFlag:f}}=e,g=Ye(s),[l]=e.propsOptions;let p=!1;if((i||f>0)&&!(f&16)){if(f&8){const r=e.vnode.dynamicProps;for(let a=0;a<r.length;a++){let c=r[a];if(Qs(e.emitsOptions,c))continue;const u=t[c];if(l)if(Xe(o,c))u!==o[c]&&(o[c]=u,p=!0);else{const h=zt(c);s[h]=Ca(l,g,h,u,e,!1)}else u!==o[c]&&(o[c]=u,p=!0)}}}else{Sd(e,t,s,o)&&(p=!0);let r;for(const a in g)(!t||!Xe(t,a)&&((r=si(a))===a||!Xe(t,r)))&&(l?n&&(n[a]!==void 0||n[r]!==void 0)&&(s[a]=Ca(l,g,a,void 0,e,!0)):delete s[a]);if(o!==g)for(const a in o)(!t||!Xe(t,a))&&(delete o[a],p=!0)}p&&fn(e.attrs,"set","")}function Sd(e,t,n,i){const[s,o]=e.propsOptions;let f=!1,g;if(t)for(let l in t){if(Zi(l))continue;const p=t[l];let r;s&&Xe(s,r=zt(l))?!o||!o.includes(r)?n[r]=p:(g||(g={}))[r]=p:Qs(e.emitsOptions,l)||(!(l in i)||p!==i[l])&&(i[l]=p,f=!0)}if(o){const l=Ye(n),p=g||Je;for(let r=0;r<o.length;r++){const a=o[r];n[a]=Ca(s,l,a,p[a],e,!Xe(p,a))}}return f}function Ca(e,t,n,i,s,o){const f=e[n];if(f!=null){const g=Xe(f,"default");if(g&&i===void 0){const l=f.default;if(f.type!==Function&&!f.skipFactory&&Ie(l)){const{propsDefaults:p}=s;if(n in p)i=p[n];else{const r=Or(s);i=p[n]=l.call(null,t),r()}}else i=l;s.ce&&s.ce._setProp(n,i)}f[0]&&(o&&!g?i=!1:f[1]&&(i===""||i===si(n))&&(i=!0))}return i}const py=new WeakMap;function xd(e,t,n=!1){const i=n?py:t.propsCache,s=i.get(e);if(s)return s;const o=e.props,f={},g=[];let l=!1;if(!Ie(e)){const r=a=>{l=!0;const[c,u]=xd(a,t,!0);ht(f,c),u&&g.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!l)return ot(e)&&i.set(e,gi),gi;if(Oe(o))for(let r=0;r<o.length;r++){const a=zt(o[r]);kc(a)&&(f[a]=Je)}else if(o)for(const r in o){const a=zt(r);if(kc(a)){const c=o[r],u=f[a]=Oe(c)||Ie(c)?{type:c}:ht({},c),h=u.type;let d=!1,m=!0;if(Oe(h))for(let b=0;b<h.length;++b){const y=h[b],$=Ie(y)&&y.name;if($==="Boolean"){d=!0;break}else $==="String"&&(m=!1)}else d=Ie(h)&&h.name==="Boolean";u[0]=d,u[1]=m,(d||Xe(u,"default"))&&g.push(a)}}const p=[f,g];return ot(e)&&i.set(e,p),p}function kc(e){return e[0]!=="$"&&!Zi(e)}const Cd=e=>e[0]==="_"||e==="$stable",xl=e=>Oe(e)?e.map(qt):[qt(e)],gy=(e,t,n)=>{if(t._n)return t;const i=it((...s)=>xl(t(...s)),n);return i._c=!1,i},$d=(e,t,n)=>{const i=e._ctx;for(const s in e){if(Cd(s))continue;const o=e[s];if(Ie(o))t[s]=gy(s,o,i);else if(o!=null){const f=xl(o);t[s]=()=>f}}},Ad=(e,t)=>{const n=xl(t);e.slots.default=()=>n},kd=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},my=(e,t,n)=>{const i=e.slots=wd();if(e.vnode.shapeFlag&32){const s=t._;s?(kd(i,t,n),n&&Dh(i,"_",s,!0)):$d(t,i)}else t&&Ad(e,t)},vy=(e,t,n)=>{const{vnode:i,slots:s}=e;let o=!0,f=Je;if(i.shapeFlag&32){const g=t._;g?n&&g===1?o=!1:kd(s,t,n):(o=!t.$stable,$d(t,s)),f=t}else t&&(Ad(e,t),f={default:1});if(o)for(const g in s)!Cd(g)&&f[g]==null&&delete s[g]},Ot=Ly;function yy(e){return by(e)}function by(e,t){const n=Vs();n.__VUE__=!0;const{insert:i,remove:s,patchProp:o,createElement:f,createText:g,createComment:l,setText:p,setElementText:r,parentNode:a,nextSibling:c,setScopeId:u=tn,insertStaticContent:h}=e,d=(P,z,G,ne=null,ee=null,re=null,ge=void 0,fe=null,de=!!z.dynamicChildren)=>{if(P===z)return;P&&!Wi(P,z)&&(ne=j(P),V(P,ee,re,!0),P=null),z.patchFlag===-2&&(de=!1,z.dynamicChildren=null);const{type:oe,ref:Te,shapeFlag:ye}=z;switch(oe){case qs:m(P,z,G,ne);break;case Jn:b(P,z,G,ne);break;case es:P==null&&y(z,G,ne,ge);break;case We:C(P,z,G,ne,ee,re,ge,fe,de);break;default:ye&1?_(P,z,G,ne,ee,re,ge,fe,de):ye&6?v(P,z,G,ne,ee,re,ge,fe,de):(ye&64||ye&128)&&oe.process(P,z,G,ne,ee,re,ge,fe,de,X)}Te!=null&&ee&&ys(Te,P&&P.ref,re,z||P,!z)},m=(P,z,G,ne)=>{if(P==null)i(z.el=g(z.children),G,ne);else{const ee=z.el=P.el;z.children!==P.children&&p(ee,z.children)}},b=(P,z,G,ne)=>{P==null?i(z.el=l(z.children||""),G,ne):z.el=P.el},y=(P,z,G,ne)=>{[P.el,P.anchor]=h(P.children,z,G,ne,P.el,P.anchor)},$=({el:P,anchor:z},G,ne)=>{let ee;for(;P&&P!==z;)ee=c(P),i(P,G,ne),P=ee;i(z,G,ne)},S=({el:P,anchor:z})=>{let G;for(;P&&P!==z;)G=c(P),s(P),P=G;s(z)},_=(P,z,G,ne,ee,re,ge,fe,de)=>{z.type==="svg"?ge="svg":z.type==="math"&&(ge="mathml"),P==null?w(z,G,ne,ee,re,ge,fe,de):E(P,z,ee,re,ge,fe,de)},w=(P,z,G,ne,ee,re,ge,fe)=>{let de,oe;const{props:Te,shapeFlag:ye,transition:Ae,dirs:Z}=P;if(de=P.el=f(P.type,re,Te&&Te.is,Te),ye&8?r(de,P.children):ye&16&&L(P.children,de,null,ne,ee,Lo(P,re),ge,fe),Z&&Bn(P,null,ne,"created"),A(de,P,P.scopeId,ge,ne),Te){for(const pe in Te)pe!=="value"&&!Zi(pe)&&o(de,pe,null,Te[pe],re,ne);"value"in Te&&o(de,"value",null,Te.value,re),(oe=Te.onVnodeBeforeMount)&&Zt(oe,ne,P)}Z&&Bn(P,null,ne,"beforeMount");const le=wy(ee,Ae);le&&Ae.beforeEnter(de),i(de,z,G),((oe=Te&&Te.onVnodeMounted)||le||Z)&&Ot(()=>{oe&&Zt(oe,ne,P),le&&Ae.enter(de),Z&&Bn(P,null,ne,"mounted")},ee)},A=(P,z,G,ne,ee)=>{if(G&&u(P,G),ne)for(let re=0;re<ne.length;re++)u(P,ne[re]);if(ee){let re=ee.subTree;if(z===re||Rd(re.type)&&(re.ssContent===z||re.ssFallback===z)){const ge=ee.vnode;A(P,ge,ge.scopeId,ge.slotScopeIds,ee.parent)}}},L=(P,z,G,ne,ee,re,ge,fe,de=0)=>{for(let oe=de;oe<P.length;oe++){const Te=P[oe]=fe?kn(P[oe]):qt(P[oe]);d(null,Te,z,G,ne,ee,re,ge,fe)}},E=(P,z,G,ne,ee,re,ge)=>{const fe=z.el=P.el;let{patchFlag:de,dynamicChildren:oe,dirs:Te}=z;de|=P.patchFlag&16;const ye=P.props||Je,Ae=z.props||Je;let Z;if(G&&zn(G,!1),(Z=Ae.onVnodeBeforeUpdate)&&Zt(Z,G,z,P),Te&&Bn(z,P,G,"beforeUpdate"),G&&zn(G,!0),(ye.innerHTML&&Ae.innerHTML==null||ye.textContent&&Ae.textContent==null)&&r(fe,""),oe?M(P.dynamicChildren,oe,fe,G,ne,Lo(z,ee),re):ge||I(P,z,fe,null,G,ne,Lo(z,ee),re,!1),de>0){if(de&16)O(fe,ye,Ae,G,ee);else if(de&2&&ye.class!==Ae.class&&o(fe,"class",null,Ae.class,ee),de&4&&o(fe,"style",ye.style,Ae.style,ee),de&8){const le=z.dynamicProps;for(let pe=0;pe<le.length;pe++){const we=le[pe],Ne=ye[we],ze=Ae[we];(ze!==Ne||we==="value")&&o(fe,we,Ne,ze,ee,G)}}de&1&&P.children!==z.children&&r(fe,z.children)}else!ge&&oe==null&&O(fe,ye,Ae,G,ee);((Z=Ae.onVnodeUpdated)||Te)&&Ot(()=>{Z&&Zt(Z,G,z,P),Te&&Bn(z,P,G,"updated")},ne)},M=(P,z,G,ne,ee,re,ge)=>{for(let fe=0;fe<z.length;fe++){const de=P[fe],oe=z[fe],Te=de.el&&(de.type===We||!Wi(de,oe)||de.shapeFlag&70)?a(de.el):G;d(de,oe,Te,null,ne,ee,re,ge,!0)}},O=(P,z,G,ne,ee)=>{if(z!==G){if(z!==Je)for(const re in z)!Zi(re)&&!(re in G)&&o(P,re,z[re],null,ee,ne);for(const re in G){if(Zi(re))continue;const ge=G[re],fe=z[re];ge!==fe&&re!=="value"&&o(P,re,fe,ge,ee,ne)}"value"in G&&o(P,"value",z.value,G.value,ee)}},C=(P,z,G,ne,ee,re,ge,fe,de)=>{const oe=z.el=P?P.el:g(""),Te=z.anchor=P?P.anchor:g("");let{patchFlag:ye,dynamicChildren:Ae,slotScopeIds:Z}=z;Z&&(fe=fe?fe.concat(Z):Z),P==null?(i(oe,G,ne),i(Te,G,ne),L(z.children||[],G,Te,ee,re,ge,fe,de)):ye>0&&ye&64&&Ae&&P.dynamicChildren?(M(P.dynamicChildren,Ae,G,ee,re,ge,fe),(z.key!=null||ee&&z===ee.subTree)&&Md(P,z,!0)):I(P,z,G,Te,ee,re,ge,fe,de)},v=(P,z,G,ne,ee,re,ge,fe,de)=>{z.slotScopeIds=fe,P==null?z.shapeFlag&512?ee.ctx.activate(z,G,ne,ge,de):x(z,G,ne,ee,re,ge,de):k(P,z,de)},x=(P,z,G,ne,ee,re,ge)=>{const fe=P.component=Py(P,ne,ee);if(pd(P)&&(fe.ctx.renderer=X),Wy(fe,!1,ge),fe.asyncDep){if(ee&&ee.registerDep(fe,T,ge),!P.el){const de=fe.subTree=se(Jn);b(null,de,z,G)}}else T(fe,P,z,G,ee,re,ge)},k=(P,z,G)=>{const ne=z.component=P.component;if(Ty(P,z,G))if(ne.asyncDep&&!ne.asyncResolved){R(ne,z,G);return}else ne.next=z,ne.update();else z.el=P.el,ne.vnode=z},T=(P,z,G,ne,ee,re,ge)=>{const fe=()=>{if(P.isMounted){let{next:ye,bu:Ae,u:Z,parent:le,vnode:pe}=P;{const je=Td(P);if(je){ye&&(ye.el=pe.el,R(P,ye,ge)),je.asyncDep.then(()=>{P.isUnmounted||fe()});return}}let we=ye,Ne;zn(P,!1),ye?(ye.el=pe.el,R(P,ye,ge)):ye=pe,Ae&&qr(Ae),(Ne=ye.props&&ye.props.onVnodeBeforeUpdate)&&Zt(Ne,le,ye,pe),zn(P,!0);const ze=Ro(P),Ve=P.subTree;P.subTree=ze,d(Ve,ze,a(Ve.el),j(Ve),P,ee,re),ye.el=ze.el,we===null&&Ey(P,ze.el),Z&&Ot(Z,ee),(Ne=ye.props&&ye.props.onVnodeUpdated)&&Ot(()=>Zt(Ne,le,ye,pe),ee)}else{let ye;const{el:Ae,props:Z}=z,{bm:le,m:pe,parent:we,root:Ne,type:ze}=P,Ve=qi(z);if(zn(P,!1),le&&qr(le),!Ve&&(ye=Z&&Z.onVnodeBeforeMount)&&Zt(ye,we,z),zn(P,!0),Ae&&Me){const je=()=>{P.subTree=Ro(P),Me(Ae,P.subTree,P,ee,null)};Ve&&ze.__asyncHydrate?ze.__asyncHydrate(Ae,P,je):je()}else{Ne.ce&&Ne.ce._injectChildStyle(ze);const je=P.subTree=Ro(P);d(null,je,G,ne,P,ee,re),z.el=je.el}if(pe&&Ot(pe,ee),!Ve&&(ye=Z&&Z.onVnodeMounted)){const je=z;Ot(()=>Zt(ye,we,je),ee)}(z.shapeFlag&256||we&&qi(we.vnode)&&we.vnode.shapeFlag&256)&&P.a&&Ot(P.a,ee),P.isMounted=!0,z=G=ne=null}};P.scope.on();const de=P.effect=new jh(fe);P.scope.off();const oe=P.update=de.run.bind(de),Te=P.job=de.runIfDirty.bind(de);Te.i=P,Te.id=P.uid,de.scheduler=()=>yl(Te),zn(P,!0),oe()},R=(P,z,G)=>{z.component=P;const ne=P.vnode.props;P.vnode=z,P.next=null,fy(P,z.props,ne,G),vy(P,z.children,G),Pn(),_c(P),Wn()},I=(P,z,G,ne,ee,re,ge,fe,de=!1)=>{const oe=P&&P.children,Te=P?P.shapeFlag:0,ye=z.children,{patchFlag:Ae,shapeFlag:Z}=z;if(Ae>0){if(Ae&128){F(oe,ye,G,ne,ee,re,ge,fe,de);return}else if(Ae&256){N(oe,ye,G,ne,ee,re,ge,fe,de);return}}Z&8?(Te&16&&U(oe,ee,re),ye!==oe&&r(G,ye)):Te&16?Z&16?F(oe,ye,G,ne,ee,re,ge,fe,de):U(oe,ee,re,!0):(Te&8&&r(G,""),Z&16&&L(ye,G,ne,ee,re,ge,fe,de))},N=(P,z,G,ne,ee,re,ge,fe,de)=>{P=P||gi,z=z||gi;const oe=P.length,Te=z.length,ye=Math.min(oe,Te);let Ae;for(Ae=0;Ae<ye;Ae++){const Z=z[Ae]=de?kn(z[Ae]):qt(z[Ae]);d(P[Ae],Z,G,null,ee,re,ge,fe,de)}oe>Te?U(P,ee,re,!0,!1,ye):L(z,G,ne,ee,re,ge,fe,de,ye)},F=(P,z,G,ne,ee,re,ge,fe,de)=>{let oe=0;const Te=z.length;let ye=P.length-1,Ae=Te-1;for(;oe<=ye&&oe<=Ae;){const Z=P[oe],le=z[oe]=de?kn(z[oe]):qt(z[oe]);if(Wi(Z,le))d(Z,le,G,null,ee,re,ge,fe,de);else break;oe++}for(;oe<=ye&&oe<=Ae;){const Z=P[ye],le=z[Ae]=de?kn(z[Ae]):qt(z[Ae]);if(Wi(Z,le))d(Z,le,G,null,ee,re,ge,fe,de);else break;ye--,Ae--}if(oe>ye){if(oe<=Ae){const Z=Ae+1,le=Z<Te?z[Z].el:ne;for(;oe<=Ae;)d(null,z[oe]=de?kn(z[oe]):qt(z[oe]),G,le,ee,re,ge,fe,de),oe++}}else if(oe>Ae)for(;oe<=ye;)V(P[oe],ee,re,!0),oe++;else{const Z=oe,le=oe,pe=new Map;for(oe=le;oe<=Ae;oe++){const qe=z[oe]=de?kn(z[oe]):qt(z[oe]);qe.key!=null&&pe.set(qe.key,oe)}let we,Ne=0;const ze=Ae-le+1;let Ve=!1,je=0;const Ke=new Array(ze);for(oe=0;oe<ze;oe++)Ke[oe]=0;for(oe=Z;oe<=ye;oe++){const qe=P[oe];if(Ne>=ze){V(qe,ee,re,!0);continue}let vt;if(qe.key!=null)vt=pe.get(qe.key);else for(we=le;we<=Ae;we++)if(Ke[we-le]===0&&Wi(qe,z[we])){vt=we;break}vt===void 0?V(qe,ee,re,!0):(Ke[vt-le]=oe+1,vt>=je?je=vt:Ve=!0,d(qe,z[vt],G,null,ee,re,ge,fe,de),Ne++)}const Ge=Ve?_y(Ke):gi;for(we=Ge.length-1,oe=ze-1;oe>=0;oe--){const qe=le+oe,vt=z[qe],Fi=qe+1<Te?z[qe+1].el:ne;Ke[oe]===0?d(null,vt,G,Fi,ee,re,ge,fe,de):Ve&&(we<0||oe!==Ge[we]?W(vt,G,Fi,2):we--)}}},W=(P,z,G,ne,ee=null)=>{const{el:re,type:ge,transition:fe,children:de,shapeFlag:oe}=P;if(oe&6){W(P.component.subTree,z,G,ne);return}if(oe&128){P.suspense.move(z,G,ne);return}if(oe&64){ge.move(P,z,G,X);return}if(ge===We){i(re,z,G);for(let ye=0;ye<de.length;ye++)W(de[ye],z,G,ne);i(P.anchor,z,G);return}if(ge===es){$(P,z,G);return}if(ne!==2&&oe&1&&fe)if(ne===0)fe.beforeEnter(re),i(re,z,G),Ot(()=>fe.enter(re),ee);else{const{leave:ye,delayLeave:Ae,afterLeave:Z}=fe,le=()=>i(re,z,G),pe=()=>{ye(re,()=>{le(),Z&&Z()})};Ae?Ae(re,le,pe):pe()}else i(re,z,G)},V=(P,z,G,ne=!1,ee=!1)=>{const{type:re,props:ge,ref:fe,children:de,dynamicChildren:oe,shapeFlag:Te,patchFlag:ye,dirs:Ae,cacheIndex:Z}=P;if(ye===-2&&(ee=!1),fe!=null&&ys(fe,null,G,P,!0),Z!=null&&(z.renderCache[Z]=void 0),Te&256){z.ctx.deactivate(P);return}const le=Te&1&&Ae,pe=!qi(P);let we;if(pe&&(we=ge&&ge.onVnodeBeforeUnmount)&&Zt(we,z,P),Te&6)K(P.component,G,ne);else{if(Te&128){P.suspense.unmount(G,ne);return}le&&Bn(P,null,z,"beforeUnmount"),Te&64?P.type.remove(P,z,G,X,ne):oe&&!oe.hasOnce&&(re!==We||ye>0&&ye&64)?U(oe,z,G,!1,!0):(re===We&&ye&384||!ee&&Te&16)&&U(de,z,G),ne&&B(P)}(pe&&(we=ge&&ge.onVnodeUnmounted)||le)&&Ot(()=>{we&&Zt(we,z,P),le&&Bn(P,null,z,"unmounted")},G)},B=P=>{const{type:z,el:G,anchor:ne,transition:ee}=P;if(z===We){H(G,ne);return}if(z===es){S(P);return}const re=()=>{s(G),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(P.shapeFlag&1&&ee&&!ee.persisted){const{leave:ge,delayLeave:fe}=ee,de=()=>ge(G,re);fe?fe(P.el,re,de):de()}else re()},H=(P,z)=>{let G;for(;P!==z;)G=c(P),s(P),P=G;s(z)},K=(P,z,G)=>{const{bum:ne,scope:ee,job:re,subTree:ge,um:fe,m:de,a:oe}=P;Mc(de),Mc(oe),ne&&qr(ne),ee.stop(),re&&(re.flags|=8,V(ge,P,z,G)),fe&&Ot(fe,z),Ot(()=>{P.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},U=(P,z,G,ne=!1,ee=!1,re=0)=>{for(let ge=re;ge<P.length;ge++)V(P[ge],z,G,ne,ee)},j=P=>{if(P.shapeFlag&6)return j(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const z=c(P.anchor||P.el),G=z&&z[Hv];return G?c(G):z};let Q=!1;const q=(P,z,G)=>{P==null?z._vnode&&V(z._vnode,null,null,!0):d(z._vnode||null,P,z,null,null,null,G),z._vnode=P,Q||(Q=!0,_c(),ud(),Q=!1)},X={p:d,um:V,m:W,r:B,mt:x,mc:L,pc:I,pbc:M,n:j,o:e};let ce,Me;return{render:q,hydrate:ce,createApp:hy(q,ce)}}function Lo({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 zn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wy(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Md(e,t,n=!1){const i=e.children,s=t.children;if(Oe(i)&&Oe(s))for(let o=0;o<i.length;o++){const f=i[o];let g=s[o];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=s[o]=kn(s[o]),g.el=f.el),!n&&g.patchFlag!==-2&&Md(f,g)),g.type===qs&&(g.el=f.el)}}function _y(e){const t=e.slice(),n=[0];let i,s,o,f,g;const l=e.length;for(i=0;i<l;i++){const p=e[i];if(p!==0){if(s=n[n.length-1],e[s]<p){t[i]=s,n.push(i);continue}for(o=0,f=n.length-1;o<f;)g=o+f>>1,e[n[g]]<p?o=g+1:f=g;p<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,f=n[o-1];o-- >0;)n[o]=f,f=t[f];return n}function Td(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Td(t)}function Mc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Sy=Symbol.for("v-scx"),xy=()=>Ut(Sy);function Cl(e,t){return $l(e,null,t)}function et(e,t,n){return $l(e,t,n)}function $l(e,t,n=Je){const{immediate:i,deep:s,flush:o,once:f}=n,g=ht({},n),l=t&&i||!t&&o!=="post";let p;if(cr){if(o==="sync"){const u=xy();p=u.__watcherHandles||(u.__watcherHandles=[])}else if(!l){const u=()=>{};return u.stop=tn,u.resume=tn,u.pause=tn,u}}const r=gt;g.call=(u,h,d)=>rn(u,r,h,d);let a=!1;o==="post"?g.scheduler=u=>{Ot(u,r&&r.suspense)}:o!=="sync"&&(a=!0,g.scheduler=(u,h)=>{h?u():yl(u)}),g.augmentJob=u=>{t&&(u.flags|=4),a&&(u.flags|=2,r&&(u.id=r.uid,u.i=r))};const c=Wv(e,t,g);return cr&&(p?p.push(c):l&&c()),c}function Cy(e,t,n){const i=this.proxy,s=ut(e)?e.includes(".")?Ed(i,e):()=>i[e]:e.bind(i,i);let o;Ie(t)?o=t:(o=t.handler,n=t);const f=Or(this),g=$l(s,o.bind(i),n);return f(),g}function Ed(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}const $y=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${zt(t)}Modifiers`]||e[`${si(t)}Modifiers`];function Ay(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Je;let s=n;const o=t.startsWith("update:"),f=o&&$y(i,t.slice(7));f&&(f.trim&&(s=n.map(r=>ut(r)?r.trim():r)),f.number&&(s=n.map(ma)));let g,l=i[g=$o(t)]||i[g=$o(zt(t))];!l&&o&&(l=i[g=$o(si(t))]),l&&rn(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,rn(p,e,6,s)}}function Ld(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const o=e.emits;let f={},g=!1;if(!Ie(e)){const l=p=>{const r=Ld(p,t,!0);r&&(g=!0,ht(f,r))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!g?(ot(e)&&i.set(e,null),null):(Oe(o)?o.forEach(l=>f[l]=null):ht(f,o),ot(e)&&i.set(e,f),f)}function Qs(e,t){return!e||!js(t)?!1:(t=t.slice(2).replace(/Once$/,""),Xe(e,t[0].toLowerCase()+t.slice(1))||Xe(e,si(t))||Xe(e,t))}function Ro(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[o],slots:f,attrs:g,emit:l,render:p,renderCache:r,props:a,data:c,setupState:u,ctx:h,inheritAttrs:d}=e,m=vs(e);let b,y;try{if(n.shapeFlag&4){const S=s||i,_=S;b=qt(p.call(_,S,r,a,u,c,h)),y=g}else{const S=t;b=qt(S.length>1?S(a,{attrs:g,slots:f,emit:l}):S(a,null)),y=t.props?g:ky(g)}}catch(S){er.length=0,Zs(S,e,1),b=se(Jn)}let $=b;if(y&&d!==!1){const S=Object.keys(y),{shapeFlag:_}=$;S.length&&_&7&&(o&&S.some(al)&&(y=My(y,o)),$=Si($,y,!1,!0))}return n.dirs&&($=Si($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&wl($,n.transition),b=$,vs(m),b}const ky=e=>{let t;for(const n in e)(n==="class"||n==="style"||js(n))&&((t||(t={}))[n]=e[n]);return t},My=(e,t)=>{const n={};for(const i in e)(!al(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ty(e,t,n){const{props:i,children:s,component:o}=e,{props:f,children:g,patchFlag:l}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Tc(i,f,p):!!f;if(l&8){const r=t.dynamicProps;for(let a=0;a<r.length;a++){const c=r[a];if(f[c]!==i[c]&&!Qs(p,c))return!0}}}else return(s||g)&&(!g||!g.$stable)?!0:i===f?!1:i?f?Tc(i,f,p):!0:!!f;return!1}function Tc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let s=0;s<i.length;s++){const o=i[s];if(t[o]!==e[o]&&!Qs(n,o))return!0}return!1}function Ey({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const Rd=e=>e.__isSuspense;function Ly(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):jv(e)}const We=Symbol.for("v-fgt"),qs=Symbol.for("v-txt"),Jn=Symbol.for("v-cmt"),es=Symbol.for("v-stc"),er=[];let It=null;function Y(e=!1){er.push(It=e?null:[])}function Ry(){er.pop(),It=er[er.length-1]||null}let lr=1;function Ec(e,t=!1){lr+=e,e<0&&It&&t&&(It.hasOnce=!0)}function Od(e){return e.dynamicChildren=lr>0?It||gi:null,Ry(),lr>0&&It&&It.push(e),e}function ie(e,t,n,i,s,o){return Od(D(e,t,n,i,s,o,!0))}function xe(e,t,n,i,s){return Od(se(e,t,n,i,s,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function Wi(e,t){return e.type===t.type&&e.key===t.key}const Id=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||lt(e)||Ie(e)?{i:Et,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,i=0,s=null,o=e===We?0:1,f=!1,g=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Id(t),ref:t&&ts(t),scopeId:dd,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:o,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Et};return g?(kl(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ut(n)?8:16),lr>0&&!f&&It&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&It.push(l),l}const se=Oy;function Oy(e,t=null,n=null,i=0,s=null,o=!1){if((!e||e===ny)&&(e=Jn),ws(e)){const g=Si(e,t,!0);return n&&kl(g,n),lr>0&&!o&&It&&(g.shapeFlag&6?It[It.indexOf(e)]=g:It.push(g)),g.patchFlag=-2,g}if(Uy(e)&&(e=e.__vccOpts),t){t=Iy(t);let{class:g,style:l}=t;g&&!ut(g)&&(t.class=Er(g)),ot(l)&&(ml(l)&&!Oe(l)&&(l=ht({},l)),t.style=ul(l))}const f=ut(e)?1:Rd(e)?128:Uv(e)?64:ot(e)?4:Ie(e)?2:0;return D(e,t,n,i,s,f,o,!0)}function Iy(e){return e?ml(e)||_d(e)?ht({},e):e:null}function Si(e,t,n=!1,i=!1){const{props:s,ref:o,patchFlag:f,children:g,transition:l}=e,p=t?Ny(s||{},t):s,r={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Id(p),ref:t&&t.ref?n&&o?Oe(o)?o.concat(ts(t)):[o,ts(t)]:ts(t):o,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!==We?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Si(e.ssContent),ssFallback:e.ssFallback&&Si(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&wl(r,l.clone(r)),r}function rt(e=" ",t=0){return se(qs,null,e,t)}function Al(e,t){const n=se(es,null,e);return n.staticCount=t,n}function me(e="",t=!1){return t?(Y(),xe(Jn,null,e)):se(Jn,null,e)}function qt(e){return e==null||typeof e=="boolean"?se(Jn):Oe(e)?se(We,null,e.slice()):ws(e)?kn(e):se(qs,null,String(e))}function kn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Si(e)}function kl(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Oe(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),kl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!_d(t)?t._ctx=Et:s===3&&Et&&(Et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ie(t)?(t={default:t,_ctx:Et},n=32):(t=String(t),i&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ny(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const s in i)if(s==="class")t.class!==i.class&&(t.class=Er([t.class,i.class]));else if(s==="style")t.style=ul([t.style,i.style]);else if(js(s)){const o=t[s],f=i[s];f&&o!==f&&!(Oe(o)&&o.includes(f))&&(t[s]=o?[].concat(o,f):f)}else s!==""&&(t[s]=i[s])}return t}function Zt(e,t,n,i=null){rn(e,t,7,[n,i])}const Dy=yd();let Fy=0;function Py(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||Dy,o={uid:Fy++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Bh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xd(i,s),emitsOptions:Ld(i,s),emit:null,emitted:null,propsDefaults:Je,inheritAttrs:i.inheritAttrs,ctx:Je,data:Je,props:Je,attrs:Je,slots:Je,refs:Je,setupState:Je,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ay.bind(null,o),e.ce&&e.ce(o),o}let gt=null;const Ml=()=>gt||Et;let _s,$a;{const e=Vs(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),o=>{s.length>1?s.forEach(f=>f(o)):s[0](o)}};_s=t("__VUE_INSTANCE_SETTERS__",n=>gt=n),$a=t("__VUE_SSR_SETTERS__",n=>cr=n)}const Or=e=>{const t=gt;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Lc=()=>{gt&>.scope.off(),_s(null)};function Nd(e){return e.vnode.shapeFlag&4}let cr=!1;function Wy(e,t=!1,n=!1){t&&$a(t);const{props:i,children:s}=e.vnode,o=Nd(e);dy(e,i,o,t),my(e,s,n);const f=o?By(e,t):void 0;return t&&$a(!1),f}function By(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ry);const{setup:i}=n;if(i){Pn();const s=e.setupContext=i.length>1?jy(e):null,o=Or(e),f=Lr(i,e,0,[e.props,s]),g=Oh(f);if(Wn(),o(),(g||e.sp)&&!qi(e)&&fd(e),g){if(f.then(Lc,Lc),t)return f.then(l=>{Rc(e,l,t)}).catch(l=>{Zs(l,e,0)});e.asyncDep=f}else Rc(e,f,t)}else Dd(e,t)}function Rc(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ot(t)&&(e.setupState=od(t)),Dd(e,n)}let Oc;function Dd(e,t,n){const i=e.type;if(!e.render){if(!t&&Oc&&!i.render){const s=i.template||Sl(e).template;if(s){const{isCustomElement:o,compilerOptions:f}=e.appContext.config,{delimiters:g,compilerOptions:l}=i,p=ht(ht({isCustomElement:o,delimiters:g},f),l);i.render=Oc(s,p)}}e.render=i.render||tn}{const s=Or(e);Pn();try{sy(e)}finally{Wn(),s()}}}const zy={get(e,t){return yt(e,"get",""),e[t]}};function jy(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,zy),slots:e.slots,emit:e.emit,expose:t}}function Js(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(od(id(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ji)return Ji[n](e)},has(t,n){return n in t||n in Ji}})):e.proxy}function Hy(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Uy(e){return Ie(e)&&"__vccOpts"in e}const ke=(e,t)=>Fv(e,t,cr);function eo(e,t,n){const i=arguments.length;return i===2?ot(t)&&!Oe(t)?ws(t)?se(e,null,[t]):se(e,t):se(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&ws(n)&&(n=[n]),se(e,t,n))}const Vy="3.5.13";/**
|
577
|
+
* @vue/runtime-dom v3.5.13
|
578
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
579
|
+
* @license MIT
|
580
|
+
**/let Aa;const Ic=typeof window<"u"&&window.trustedTypes;if(Ic)try{Aa=Ic.createPolicy("vue",{createHTML:e=>e})}catch{}const Fd=Aa?e=>Aa.createHTML(e):e=>e,Gy="http://www.w3.org/2000/svg",Yy="http://www.w3.org/1998/Math/MathML",hn=typeof document<"u"?document:null,Nc=hn&&hn.createElement("template"),Ky={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"?hn.createElementNS(Gy,e):t==="mathml"?hn.createElementNS(Yy,e):n?hn.createElement(e,{is:n}):hn.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>hn.createTextNode(e),createComment:e=>hn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,o){const f=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Nc.innerHTML=Fd(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const g=Nc.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[f?f.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Zy=Symbol("_vtc");function Xy(e,t,n){const i=e[Zy];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Dc=Symbol("_vod"),Qy=Symbol("_vsh"),qy=Symbol(""),Jy=/(^|;)\s*display\s*:/;function e0(e,t,n){const i=e.style,s=ut(n);let o=!1;if(n&&!s){if(t)if(ut(t))for(const f of t.split(";")){const g=f.slice(0,f.indexOf(":")).trim();n[g]==null&&ns(i,g,"")}else for(const f in t)n[f]==null&&ns(i,f,"");for(const f in n)f==="display"&&(o=!0),ns(i,f,n[f])}else if(s){if(t!==n){const f=i[qy];f&&(n+=";"+f),i.cssText=n,o=Jy.test(n)}}else t&&e.removeAttribute("style");Dc in e&&(e[Dc]=o?i.display:"",e[Qy]&&(i.display="none"))}const Fc=/\s*!important$/;function ns(e,t,n){if(Oe(n))n.forEach(i=>ns(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=t0(e,t);Fc.test(n)?e.setProperty(si(i),n.replace(Fc,""),"important"):e[i]=n}}const Pc=["Webkit","Moz","ms"],Oo={};function t0(e,t){const n=Oo[t];if(n)return n;let i=zt(t);if(i!=="filter"&&i in e)return Oo[t]=i;i=Tr(i);for(let s=0;s<Pc.length;s++){const o=Pc[s]+i;if(o in e)return Oo[t]=o}return t}const Wc="http://www.w3.org/1999/xlink";function Bc(e,t,n,i,s,o=lv(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Wc,t.slice(6,t.length)):e.setAttributeNS(Wc,t,n):n==null||o&&!Fh(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Fn(n)?String(n):n)}function zc(e,t,n,i,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Fd(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const g=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(g!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let f=!1;if(n===""||n==null){const g=typeof e[t];g==="boolean"?n=Fh(n):n==null&&g==="string"?(n="",f=!0):g==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(s||t)}function li(e,t,n,i){e.addEventListener(t,n,i)}function n0(e,t,n,i){e.removeEventListener(t,n,i)}const jc=Symbol("_vei");function i0(e,t,n,i,s=null){const o=e[jc]||(e[jc]={}),f=o[t];if(i&&f)f.value=i;else{const[g,l]=r0(t);if(i){const p=o[t]=a0(i,s);li(e,g,p,l)}else f&&(n0(e,g,f,l),o[t]=void 0)}}const Hc=/(?:Once|Passive|Capture)$/;function r0(e){let t;if(Hc.test(e)){t={};let i;for(;i=e.match(Hc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):si(e.slice(2)),t]}let Io=0;const s0=Promise.resolve(),o0=()=>Io||(s0.then(()=>Io=0),Io=Date.now());function a0(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;rn(l0(i,n.value),t,5,[i])};return n.value=e,n.attached=o0(),n}function l0(e,t){if(Oe(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 Uc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,c0=(e,t,n,i,s,o)=>{const f=s==="svg";t==="class"?Xy(e,i,f):t==="style"?e0(e,n,i):js(t)?al(t)||i0(e,t,n,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):u0(e,t,i,f))?(zc(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Bc(e,t,i,f,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ut(i))?zc(e,zt(t),i,o,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Bc(e,t,i,f))};function u0(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Uc(t)&&Ie(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 Uc(t)&&ut(n)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Oe(t)?n=>qr(t,n):t};function h0(e){e.target.composing=!0}function Gc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const No=Symbol("_assign"),Tl={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[No]=Vc(s);const o=i||s.props&&s.props.type==="number";li(e,t?"change":"input",f=>{if(f.target.composing)return;let g=e.value;n&&(g=g.trim()),o&&(g=ma(g)),e[No](g)}),n&&li(e,"change",()=>{e.value=e.value.trim()}),t||(li(e,"compositionstart",h0),li(e,"compositionend",Gc),li(e,"change",Gc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:s,number:o}},f){if(e[No]=Vc(f),e.composing)return;const g=(o||e.type==="number")&&!/^0\d/.test(e.value)?ma(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))}},d0=ht({patchProp:c0},Ky);let Yc;function f0(){return Yc||(Yc=yy(d0))}const p0=(...e)=>{const t=f0().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=m0(i);if(!s)return;const o=t._component;!Ie(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=n(s,!1,g0(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function g0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function m0(e){return ut(e)?document.querySelector(e):e}function Kc(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 gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kc(Object(n),!0).forEach(function(i){Tt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function v0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y0(e){var t=v0(e,"string");return typeof t=="symbol"?t:t+""}function Ss(e){"@babel/helpers - typeof";return Ss=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},Ss(e)}function Tt(e,t,n){return t=y0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function w0(e,t){if(e==null)return{};var n=b0(e,t),i,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)i=o[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var _0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pd={exports:{}};(function(e){(function(t){var n=function(b,y,$){if(!p(y)||a(y)||c(y)||u(y)||l(y))return y;var S,_=0,w=0;if(r(y))for(S=[],w=y.length;_<w;_++)S.push(n(b,y[_],$));else{S={};for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&(S[b(A,$)]=n(b,y[A],$))}return S},i=function(b,y){y=y||{};var $=y.separator||"_",S=y.split||/(?=[A-Z])/;return b.split(S).join($)},s=function(b){return h(b)?b:(b=b.replace(/[\-_\s]+(.)?/g,function(y,$){return $?$.toUpperCase():""}),b.substr(0,1).toLowerCase()+b.substr(1))},o=function(b){var y=s(b);return y.substr(0,1).toUpperCase()+y.substr(1)},f=function(b,y){return i(b,y).toLowerCase()},g=Object.prototype.toString,l=function(b){return typeof b=="function"},p=function(b){return b===Object(b)},r=function(b){return g.call(b)=="[object Array]"},a=function(b){return g.call(b)=="[object Date]"},c=function(b){return g.call(b)=="[object RegExp]"},u=function(b){return g.call(b)=="[object Boolean]"},h=function(b){return b=b-0,b===b},d=function(b,y){var $=y&&"process"in y?y.process:y;return typeof $!="function"?b:function(S,_){return $(S,b,_)}},m={camelize:s,decamelize:f,pascalize:o,depascalize:f,camelizeKeys:function(b,y){return n(d(s,y),b)},decamelizeKeys:function(b,y){return n(d(f,y),b,y)},pascalizeKeys:function(b,y){return n(d(o,y),b)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(_0)})(Pd);var S0=Pd.exports,x0=["class","style"];function C0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),s=S0.camelize(n.slice(0,i)),o=n.slice(i+1).trim();return t[s]=o,t},{})}function $0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Wd(e){var t=arguments.length>1&&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 Wd(l)}),s=Object.keys(e.attributes||{}).reduce(function(l,p){var r=e.attributes[p];switch(p){case"class":l.class=$0(r);break;case"style":l.style=C0(r);break;default:l.attrs[p]=r}return l},{attrs:{},class:{},style:{}});n.class;var o=n.style,f=o===void 0?{}:o,g=w0(n,x0);return eo(e.tag,gn(gn(gn({},t),{},{class:s.class,style:gn(gn({},s.style),f)},s.attrs),g),i)}var Bd=!1;try{Bd=!0}catch{}function A0(){if(!Bd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Do(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Tt({},e,t):{}}function k0(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"},Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(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),Tt(Tt(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 Zc(e){if(e&&Ss(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ga.icon)return ga.icon(e);if(e===null)return null;if(Ss(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 M0=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 Zc(t.icon)}),o=ke(function(){return Do("classes",k0(t))}),f=ke(function(){return Do("transform",typeof t.transform=="string"?ga.transform(t.transform):t.transform)}),g=ke(function(){return Do("mask",Zc(t.mask))}),l=ke(function(){return Em(s.value,gn(gn(gn(gn({},o.value),f.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});et(l,function(r){if(!r)return A0("Could not find one or more icon(s)",s.value,g.value)},{immediate:!0});var p=ke(function(){return l.value?Wd(l.value.abstract[0],{},i):null});return function(){return p.value}}});function to(e){return zh()?(uv(e),!0):!1}function sn(e){return typeof e=="function"?e():he(e)}const zd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const T0=e=>e!=null,E0=Object.prototype.toString,L0=e=>E0.call(e)==="[object Object]",jd=()=>{};function R0(e,t){function n(...i){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(s).catch(o)})}return n}const Hd=e=>e();function O0(e=Hd){const t=Ue(!0);function n(){t.value=!1}function i(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:Ks(t),pause:n,resume:i,eventFilter:s}}function Ud(e){return Ml()}function Vd(...e){if(e.length!==1)return vl(...e);const t=e[0];return typeof t=="function"?Ks(ad(()=>({get:t,set:jd}))):Ue(t)}function I0(e,t,n={}){const{eventFilter:i=Hd,...s}=n;return et(e,R0(i,t),s)}function N0(e,t,n={}){const{eventFilter:i,...s}=n,{eventFilter:o,pause:f,resume:g,isActive:l}=O0(i);return{stop:I0(e,t,{...s,eventFilter:o}),pause:f,resume:g,isActive:l}}function D0(e,t){Ud()&&_l(e,t)}function Gd(e,t=!0,n){Ud()?ct(e,n):t?e():Rr(e)}function Ir(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,s=lt(e),o=Ue(e);function f(g){if(arguments.length)return o.value=g,o.value;{const l=sn(n);return o.value=o.value===l?sn(i):l,o.value}}return s?f:[o,f]}const xi=zd?window:void 0,F0=zd?window.document:void 0;function El(e){var t;const n=sn(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Xc(...e){let t,n,i,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,s]=e,t=xi):[t,n,i,s]=e,!t)return jd;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],f=()=>{o.forEach(r=>r()),o.length=0},g=(r,a,c,u)=>(r.addEventListener(a,c,u),()=>r.removeEventListener(a,c,u)),l=et(()=>[El(t),sn(s)],([r,a])=>{if(f(),!r)return;const c=L0(a)?{...a}:a;o.push(...n.flatMap(u=>i.map(h=>g(r,u,h,c))))},{immediate:!0,flush:"post"}),p=()=>{l(),f()};return to(p),p}function P0(){const e=Ue(!1),t=Ml();return t&&ct(()=>{e.value=!0},t),e}function Yd(e){const t=P0();return ke(()=>(t.value,!!e()))}function W0(e,t,n={}){const{window:i=xi,...s}=n;let o;const f=Yd(()=>i&&"MutationObserver"in i),g=()=>{o&&(o.disconnect(),o=void 0)},l=ke(()=>{const c=sn(e),u=(Array.isArray(c)?c:[c]).map(El).filter(T0);return new Set(u)}),p=et(()=>l.value,c=>{g(),f.value&&c.size&&(o=new MutationObserver(t),c.forEach(u=>o.observe(u,s)))},{immediate:!0,flush:"post"}),r=()=>o==null?void 0:o.takeRecords(),a=()=>{p(),g()};return to(a),{isSupported:f,stop:a,takeRecords:r}}function B0(e,t={}){const{window:n=xi}=t,i=Yd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=Ue(!1),f=p=>{o.value=p.matches},g=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},l=Cl(()=>{i.value&&(g(),s=n.matchMedia(sn(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),o.value=s.matches)});return to(()=>{l(),g(),s=void 0}),o}const Gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yr="__vueuse_ssr_handlers__",z0=j0();function j0(){return Yr in Gr||(Gr[Yr]=Gr[Yr]||{}),Gr[Yr]}function Kd(e,t){return z0[e]||t}function H0(e){return B0("(prefers-color-scheme: dark)",e)}function U0(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 V0={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()}},Qc="vueuse-storage";function G0(e,t,n,i={}){var s;const{flush:o="pre",deep:f=!0,listenToStorageChanges:g=!0,writeDefaults:l=!0,mergeDefaults:p=!1,shallow:r,window:a=xi,eventFilter:c,onError:u=M=>{console.error(M)},initOnMounted:h}=i,d=(r?rd:Ue)(typeof t=="function"?t():t);if(!n)try{n=Kd("getDefaultStorage",()=>{var M;return(M=xi)==null?void 0:M.localStorage})()}catch(M){u(M)}if(!n)return d;const m=sn(t),b=U0(m),y=(s=i.serializer)!=null?s:V0[b],{pause:$,resume:S}=N0(d,()=>w(d.value),{flush:o,deep:f,eventFilter:c});a&&g&&Gd(()=>{n instanceof Storage?Xc(a,"storage",L):Xc(a,Qc,E),h&&L()}),h||L();function _(M,O){if(a){const C={key:e,oldValue:M,newValue:O,storageArea:n};a.dispatchEvent(n instanceof Storage?new StorageEvent("storage",C):new CustomEvent(Qc,{detail:C}))}}function w(M){try{const O=n.getItem(e);if(M==null)_(O,null),n.removeItem(e);else{const C=y.write(M);O!==C&&(n.setItem(e,C),_(O,C))}}catch(O){u(O)}}function A(M){const O=M?M.newValue:n.getItem(e);if(O==null)return l&&m!=null&&n.setItem(e,y.write(m)),m;if(!M&&p){const C=y.read(O);return typeof p=="function"?p(C,m):b==="object"&&!Array.isArray(C)?{...m,...C}:C}else return typeof O!="string"?O:y.read(O)}function L(M){if(!(M&&M.storageArea!==n)){if(M&&M.key==null){d.value=m;return}if(!(M&&M.key!==e)){$();try{(M==null?void 0:M.newValue)!==y.write(d.value)&&(d.value=A(M))}catch(O){u(O)}finally{M?Rr(S):S()}}}}function E(M){L(M.detail)}return d}const Y0="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function K0(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:s=xi,storage:o,storageKey:f="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:l,emitAuto:p,disableTransition:r=!0}=e,a={auto:"",light:"light",dark:"dark",...e.modes||{}},c=H0({window:s}),u=ke(()=>c.value?"dark":"light"),h=l||(f==null?Vd(i):G0(f,i,o,{window:s,listenToStorageChanges:g})),d=ke(()=>h.value==="auto"?u.value:h.value),m=Kd("updateHTMLAttrs",(S,_,w)=>{const A=typeof S=="string"?s==null?void 0:s.document.querySelector(S):El(S);if(!A)return;const L=new Set,E=new Set;let M=null;if(_==="class"){const C=w.split(/\s/g);Object.values(a).flatMap(v=>(v||"").split(/\s/g)).filter(Boolean).forEach(v=>{C.includes(v)?L.add(v):E.add(v)})}else M={key:_,value:w};if(L.size===0&&E.size===0&&M===null)return;let O;r&&(O=s.document.createElement("style"),O.appendChild(document.createTextNode(Y0)),s.document.head.appendChild(O));for(const C of L)A.classList.add(C);for(const C of E)A.classList.remove(C);M&&A.setAttribute(M.key,M.value),r&&(s.getComputedStyle(O).opacity,document.head.removeChild(O))});function b(S){var _;m(t,n,(_=a[S])!=null?_:S)}function y(S){e.onChanged?e.onChanged(S,b):b(S)}et(d,y,{flush:"post",immediate:!0}),Gd(()=>y(d.value));const $=ke({get(){return p?h.value:d.value},set(S){h.value=S}});return Object.assign($,{store:h,system:u,state:d})}function Zd(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=K0({...e,onChanged:(f,g)=>{var l;e.onChanged?(l=e.onChanged)==null||l.call(e,f==="dark",g,f):g(f)},modes:{dark:t,light:n}}),s=ke(()=>i.system.value);return ke({get(){return i.value==="dark"},set(f){const g=f?"dark":"light";s.value===g?i.value="auto":i.value=g}})}function Sn(e=null,t={}){var n,i,s;const{document:o=F0,restoreOnUnmount:f=a=>a}=t,g=(n=o==null?void 0:o.title)!=null?n:"",l=Vd((i=e??(o==null?void 0:o.title))!=null?i:null),p=e&&typeof e=="function";function r(a){if(!("titleTemplate"in t))return a;const c=t.titleTemplate||"%s";return typeof c=="function"?c(a):sn(c).replace(/%s/g,a)}return et(l,(a,c)=>{a!==c&&o&&(o.title=r(typeof a=="string"?a:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!p&&W0((s=o.head)==null?void 0:s.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=r(o.title))},{childList:!0}),D0(()=>{if(f){const a=f(g,l.value||"");a!=null&&o&&(o.title=a)}}),l}const Z0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},X0={class:"navbar-menu"},Q0={class:"navbar-start"},q0={class:"navbar-end"},J0={class:"navbar-item"},eb=Ce({__name:"NavbarItem",setup(e){const t=Zd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=Ir(t);return(i,s)=>{const o=Qe("router-link"),f=Qe("font-awesome-icon");return Y(),ie("nav",Z0,[s[8]||(s[8]=D("div",{class:"navbar-brand"},[D("a",{class:"navbar-item"},[D("h1",{class:"title"},"Mihari")])],-1)),D("div",X0,[D("div",Q0,[se(o,{class:"navbar-item",to:{name:"Alerts"}},{default:it(()=>s[1]||(s[1]=[rt("Alerts")])),_:1}),se(o,{class:"navbar-item",to:{name:"Artifacts"}},{default:it(()=>s[2]||(s[2]=[rt("Artifacts")])),_:1}),se(o,{class:"navbar-item",to:{name:"Rules"}},{default:it(()=>s[3]||(s[3]=[rt("Rules")])),_:1}),se(o,{class:"navbar-item",to:{name:"NewRule"}},{default:it(()=>s[4]||(s[4]=[rt("New Rule")])),_:1}),se(o,{class:"navbar-item",to:{name:"Config"}},{default:it(()=>s[5]||(s[5]=[rt("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",q0,[D("div",J0,[D("span",{class:"icon",onClick:s[0]||(s[0]=g=>he(n)())},[se(f,{icon:he(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),Nr=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},tb=Nr(eb,[["__scopeId","data-v-a9b95eb0"]]),nb={class:"section is-medium"},ib={class:"container"},rb=Ce({__name:"App",setup(e){return(t,n)=>{const i=Qe("router-view");return Y(),ie(We,null,[se(tb),D("section",nb,[D("div",ib,[se(i)])])],64)}}});/*!
|
581
|
+
* vue-router v4.5.0
|
582
|
+
* (c) 2024 Eduardo San Martin Morote
|
583
|
+
* @license MIT
|
584
|
+
*/const ci=typeof document<"u";function Xd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Xd(e.default)}const Ze=Object.assign;function Fo(e,t){const n={};for(const i in t){const s=t[i];n[i]=Gt(s)?s.map(e):e(s)}return n}const tr=()=>{},Gt=Array.isArray,Qd=/#/g,ob=/&/g,ab=/\//g,lb=/=/g,cb=/\?/g,qd=/\+/g,ub=/%5B/g,hb=/%5D/g,Jd=/%5E/g,db=/%60/g,ef=/%7B/g,fb=/%7C/g,tf=/%7D/g,pb=/%20/g;function Ll(e){return encodeURI(""+e).replace(fb,"|").replace(ub,"[").replace(hb,"]")}function gb(e){return Ll(e).replace(ef,"{").replace(tf,"}").replace(Jd,"^")}function ka(e){return Ll(e).replace(qd,"%2B").replace(pb,"+").replace(Qd,"%23").replace(ob,"%26").replace(db,"`").replace(ef,"{").replace(tf,"}").replace(Jd,"^")}function mb(e){return ka(e).replace(lb,"%3D")}function vb(e){return Ll(e).replace(Qd,"%23").replace(cb,"%3F")}function yb(e){return e==null?"":vb(e).replace(ab,"%2F")}function ur(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bb=/\/$/,wb=e=>e.replace(bb,"");function Po(e,t,n="/"){let i,s={},o="",f="";const g=t.indexOf("#");let l=t.indexOf("?");return g<l&&g>=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,g>-1?g:t.length),s=e(o)),g>-1&&(i=i||t.slice(0,g),f=t.slice(g,t.length)),i=Cb(i??t,n),{fullPath:i+(o&&"?")+o+f,path:i,query:s,hash:ur(f)}}function _b(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function qc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Sb(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&Ci(t.matched[i],n.matched[s])&&nf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ci(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!xb(e[n],t[n]))return!1;return!0}function xb(e,t){return Gt(e)?Jc(e,t):Gt(t)?Jc(t,e):e===t}function Jc(e,t){return Gt(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 o=n.length-1,f,g;for(f=0;f<i.length;f++)if(g=i[f],g!==".")if(g==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(f).join("/")}const $n={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var hr;(function(e){e.pop="pop",e.push="push"})(hr||(hr={}));var nr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nr||(nr={}));function $b(e){if(!e)if(ci){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wb(e)}const Ab=/^[^#]+#/;function kb(e,t){return e.replace(Ab,"#")+t}function Mb(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 no=()=>({left:window.scrollX,top:window.scrollY});function Tb(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=Mb(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 eu(e,t){return(history.state?history.state.position-t:-1)+e}const Ma=new Map;function Eb(e,t){Ma.set(e,t)}function Lb(e){const t=Ma.get(e);return Ma.delete(e),t}let Rb=()=>location.protocol+"//"+location.host;function rf(e,t){const{pathname:n,search:i,hash:s}=t,o=e.indexOf("#");if(o>-1){let g=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(g);return l[0]!=="/"&&(l="/"+l),qc(l,"")}return qc(n,e)+i+s}function Ob(e,t,n,i){let s=[],o=[],f=null;const g=({state:c})=>{const u=rf(e,location),h=n.value,d=t.value;let m=0;if(c){if(n.value=u,t.value=c,f&&f===h){f=null;return}m=d?c.position-d.position:0}else i(u);s.forEach(b=>{b(n.value,h,{delta:m,type:hr.pop,direction:m?m>0?nr.forward:nr.back:nr.unknown})})};function l(){f=n.value}function p(c){s.push(c);const u=()=>{const h=s.indexOf(c);h>-1&&s.splice(h,1)};return o.push(u),u}function r(){const{history:c}=window;c.state&&c.replaceState(Ze({},c.state,{scroll:no()}),"")}function a(){for(const c of o)c();o=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",r)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",r,{passive:!0}),{pauseListeners:l,listen:p,destroy:a}}function tu(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?no():null}}function Ib(e){const{history:t,location:n}=window,i={value:rf(e,n)},s={value:t.state};s.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,p,r){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+l:Rb()+e+l;try{t[r?"replaceState":"pushState"](p,"",c),s.value=p}catch(u){console.error(u),n[r?"replace":"assign"](c)}}function f(l,p){const r=Ze({},t.state,tu(s.value.back,l,s.value.forward,!0),p,{position:s.value.position});o(l,r,!0),i.value=l}function g(l,p){const r=Ze({},s.value,t.state,{forward:l,scroll:no()});o(r.current,r,!0);const a=Ze({},tu(i.value,l,null),{position:r.position+1},p);o(l,a,!1),i.value=l}return{location:i,state:s,push:g,replace:f}}function Nb(e){e=$b(e);const t=Ib(e),n=Ob(e,t.state,t.location,t.replace);function i(o,f=!0){f||n.pauseListeners(),history.go(o)}const s=Ze({location:"",base:e,go:i,createHref:kb.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 Db(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Nb(e)}function Fb(e){return typeof e=="string"||e&&typeof e=="object"}function sf(e){return typeof e=="string"||typeof e=="symbol"}const of=Symbol("");var nu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(nu||(nu={}));function $i(e,t){return Ze(new Error,{type:e,[of]:!0},t)}function cn(e,t){return e instanceof Error&&of in e&&(t==null||!!(e.type&t))}const iu="[^/]+?",Pb={sensitive:!1,strict:!1,start:!0,end:!0},Wb=/[.+*?^${}()[\]/\\]/g;function Bb(e,t){const n=Ze({},Pb,t),i=[];let s=n.start?"^":"";const o=[];for(const p of e){const r=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let a=0;a<p.length;a++){const c=p[a];let u=40+(n.sensitive?.25:0);if(c.type===0)a||(s+="/"),s+=c.value.replace(Wb,"\\$&"),u+=40;else if(c.type===1){const{value:h,repeatable:d,optional:m,regexp:b}=c;o.push({name:h,repeatable:d,optional:m});const y=b||iu;if(y!==iu){u+=10;try{new RegExp(`(${y})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+S.message)}}let $=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||($=m&&p.length<2?`(?:/${$})`:"/"+$),m&&($+="?"),s+=$,u+=20,m&&(u+=-8),d&&(u+=-20),y===".*"&&(u+=-50)}r.push(u)}i.push(r)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,n.sensitive?"":"i");function g(p){const r=p.match(f),a={};if(!r)return null;for(let c=1;c<r.length;c++){const u=r[c]||"",h=o[c-1];a[h.name]=u&&h.repeatable?u.split("/"):u}return a}function l(p){let r="",a=!1;for(const c of e){(!a||!r.endsWith("/"))&&(r+="/"),a=!1;for(const u of c)if(u.type===0)r+=u.value;else if(u.type===1){const{value:h,repeatable:d,optional:m}=u,b=h in p?p[h]:"";if(Gt(b)&&!d)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=Gt(b)?b.join("/"):b;if(!y)if(m)c.length<2&&(r.endsWith("/")?r=r.slice(0,-1):a=!0);else throw new Error(`Missing required param "${h}"`);r+=y}}return r||"/"}return{re:f,score:i,keys:o,parse:g,stringify:l}}function zb(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function af(e,t){let n=0;const i=e.score,s=t.score;for(;n<i.length&&n<s.length;){const o=zb(i[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-i.length)===1){if(ru(i))return 1;if(ru(s))return-1}return s.length-i.length}function ru(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const jb={type:0,value:""},Hb=/[a-zA-Z0-9_]/;function Ub(e){if(!e)return[[]];if(e==="/")return[[jb]];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 o;function f(){o&&s.push(o),o=[]}let g=0,l,p="",r="";function a(){p&&(n===0?o.push({type:0,value:p}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:p,regexp:r,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=l}for(;g<e.length;){if(l=e[g++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(p&&a(),f()):l===":"?(a(),n=1):c();break;case 4:c(),n=i;break;case 1:l==="("?n=2:Hb.test(l)?c():(a(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&g--);break;case 2:l===")"?r[r.length-1]=="\\"?r=r.slice(0,-1)+l:n=3:r+=l;break;case 3:a(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&g--,r="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),a(),f(),s}function Vb(e,t,n){const i=Bb(Ub(e.path),n),s=Ze(i,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Gb(e,t){const n=[],i=new Map;t=lu({strict:!1,end:!0,sensitive:!1},t);function s(a){return i.get(a)}function o(a,c,u){const h=!u,d=ou(a);d.aliasOf=u&&u.record;const m=lu(t,a),b=[d];if("alias"in a){const S=typeof a.alias=="string"?[a.alias]:a.alias;for(const _ of S)b.push(ou(Ze({},d,{components:u?u.record.components:d.components,path:_,aliasOf:u?u.record:d})))}let y,$;for(const S of b){const{path:_}=S;if(c&&_[0]!=="/"){const w=c.record.path,A=w[w.length-1]==="/"?"":"/";S.path=c.record.path+(_&&A+_)}if(y=Vb(S,c,m),u?u.alias.push(y):($=$||y,$!==y&&$.alias.push(y),h&&a.name&&!au(y)&&f(a.name)),lf(y)&&l(y),d.children){const w=d.children;for(let A=0;A<w.length;A++)o(w[A],y,u&&u.children[A])}u=u||y}return $?()=>{f($)}:tr}function f(a){if(sf(a)){const c=i.get(a);c&&(i.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(f),c.alias.forEach(f))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&i.delete(a.record.name),a.children.forEach(f),a.alias.forEach(f))}}function g(){return n}function l(a){const c=Zb(a,n);n.splice(c,0,a),a.record.name&&!au(a)&&i.set(a.record.name,a)}function p(a,c){let u,h={},d,m;if("name"in a&&a.name){if(u=i.get(a.name),!u)throw $i(1,{location:a});m=u.record.name,h=Ze(su(c.params,u.keys.filter($=>!$.optional).concat(u.parent?u.parent.keys.filter($=>$.optional):[]).map($=>$.name)),a.params&&su(a.params,u.keys.map($=>$.name))),d=u.stringify(h)}else if(a.path!=null)d=a.path,u=n.find($=>$.re.test(d)),u&&(h=u.parse(d),m=u.record.name);else{if(u=c.name?i.get(c.name):n.find($=>$.re.test(c.path)),!u)throw $i(1,{location:a,currentLocation:c});m=u.record.name,h=Ze({},c.params,a.params),d=u.stringify(h)}const b=[];let y=u;for(;y;)b.unshift(y.record),y=y.parent;return{name:m,path:d,params:h,matched:b,meta:Kb(b)}}e.forEach(a=>o(a));function r(){n.length=0,i.clear()}return{addRoute:o,resolve:p,removeRoute:f,clearRoutes:r,getRoutes:g,getRecordMatcher:s}}function su(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function ou(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yb(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 Yb(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 au(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kb(e){return e.reduce((t,n)=>Ze(t,n.meta),{})}function lu(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Zb(e,t){let n=0,i=t.length;for(;n!==i;){const o=n+i>>1;af(e,t[o])<0?i=o:n=o+1}const s=Xb(e);return s&&(i=t.lastIndexOf(s,i-1)),i}function Xb(e){let t=e;for(;t=t.parent;)if(lf(t)&&af(e,t)===0)return t}function lf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Qb(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<i.length;++s){const o=i[s].replace(qd," "),f=o.indexOf("="),g=ur(f<0?o:o.slice(0,f)),l=f<0?null:ur(o.slice(f+1));if(g in t){let p=t[g];Gt(p)||(p=t[g]=[p]),p.push(l)}else t[g]=l}return t}function cu(e){let t="";for(let n in e){const i=e[n];if(n=mb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Gt(i)?i.map(o=>o&&ka(o)):[i&&ka(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function qb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Gt(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}const Jb=Symbol(""),uu=Symbol(""),io=Symbol(""),Rl=Symbol(""),Ta=Symbol("");function Bi(){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 Mn(e,t,n,i,s,o=f=>f()){const f=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((g,l)=>{const p=c=>{c===!1?l($i(4,{from:n,to:t})):c instanceof Error?l(c):Fb(c)?l($i(2,{from:t,to:c})):(f&&i.enterCallbacks[s]===f&&typeof c=="function"&&f.push(c),g())},r=o(()=>e.call(i&&i.instances[s],t,n,p));let a=Promise.resolve(r);e.length<3&&(a=a.then(p)),a.catch(c=>l(c))})}function Wo(e,t,n,i,s=o=>o()){const o=[];for(const f of e)for(const g in f.components){let l=f.components[g];if(!(t!=="beforeRouteEnter"&&!f.instances[g]))if(Xd(l)){const r=(l.__vccOpts||l)[t];r&&o.push(Mn(r,n,i,f,g,s))}else{let p=l();o.push(()=>p.then(r=>{if(!r)throw new Error(`Couldn't resolve component "${g}" at "${f.path}"`);const a=sb(r)?r.default:r;f.mods[g]=r,f.components[g]=a;const u=(a.__vccOpts||a)[t];return u&&Mn(u,n,i,f,g,s)()}))}}return o}function hu(e){const t=Ut(io),n=Ut(Rl),i=ke(()=>{const l=he(e.to);return t.resolve(l)}),s=ke(()=>{const{matched:l}=i.value,{length:p}=l,r=l[p-1],a=n.matched;if(!r||!a.length)return-1;const c=a.findIndex(Ci.bind(null,r));if(c>-1)return c;const u=du(l[p-2]);return p>1&&du(r)===u&&a[a.length-1].path!==u?a.findIndex(Ci.bind(null,l[p-2])):c}),o=ke(()=>s.value>-1&&r1(n.params,i.value.params)),f=ke(()=>s.value>-1&&s.value===n.matched.length-1&&nf(n.params,i.value.params));function g(l={}){if(i1(l)){const p=t[he(e.replace)?"replace":"push"](he(e.to)).catch(tr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:ke(()=>i.value.href),isActive:o,isExactActive:f,navigate:g}}function e1(e){return e.length===1?e[0]:e}const t1=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:hu,setup(e,{slots:t}){const n=Ri(hu(e)),{options:i}=Ut(io),s=ke(()=>({[fu(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[fu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&e1(t.default(n));return e.custom?o:eo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),n1=t1;function i1(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 r1(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(!Gt(s)||s.length!==i.length||i.some((o,f)=>o!==s[f]))return!1}return!0}function du(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fu=(e,t,n)=>e??t??n,s1=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Ut(Ta),s=ke(()=>e.route||i.value),o=Ut(uu,0),f=ke(()=>{let p=he(o);const{matched:r}=s.value;let a;for(;(a=r[p])&&!a.components;)p++;return p}),g=ke(()=>s.value.matched[f.value]);Jr(uu,ke(()=>f.value+1)),Jr(Jb,g),Jr(Ta,s);const l=Ue();return et(()=>[l.value,g.value,e.name],([p,r,a],[c,u,h])=>{r&&(r.instances[a]=p,u&&u!==r&&p&&p===c&&(r.leaveGuards.size||(r.leaveGuards=u.leaveGuards),r.updateGuards.size||(r.updateGuards=u.updateGuards))),p&&r&&(!u||!Ci(r,u)||!c)&&(r.enterCallbacks[a]||[]).forEach(d=>d(p))},{flush:"post"}),()=>{const p=s.value,r=e.name,a=g.value,c=a&&a.components[r];if(!c)return pu(n.default,{Component:c,route:p});const u=a.props[r],h=u?u===!0?p.params:typeof u=="function"?u(p):u:null,m=eo(c,Ze({},h,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(a.instances[r]=null)},ref:l}));return pu(n.default,{Component:m,route:p})||m}}});function pu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const o1=s1;function a1(e){const t=Gb(e.routes,e),n=e.parseQuery||Qb,i=e.stringifyQuery||cu,s=e.history,o=Bi(),f=Bi(),g=Bi(),l=rd($n);let p=$n;ci&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const r=Fo.bind(null,j=>""+j),a=Fo.bind(null,yb),c=Fo.bind(null,ur);function u(j,Q){let q,X;return sf(j)?(q=t.getRecordMatcher(j),X=Q):X=j,t.addRoute(X,q)}function h(j){const Q=t.getRecordMatcher(j);Q&&t.removeRoute(Q)}function d(){return t.getRoutes().map(j=>j.record)}function m(j){return!!t.getRecordMatcher(j)}function b(j,Q){if(Q=Ze({},Q||l.value),typeof j=="string"){const z=Po(n,j,Q.path),G=t.resolve({path:z.path},Q),ne=s.createHref(z.fullPath);return Ze(z,G,{params:c(G.params),hash:ur(z.hash),redirectedFrom:void 0,href:ne})}let q;if(j.path!=null)q=Ze({},j,{path:Po(n,j.path,Q.path).path});else{const z=Ze({},j.params);for(const G in z)z[G]==null&&delete z[G];q=Ze({},j,{params:a(z)}),Q.params=a(Q.params)}const X=t.resolve(q,Q),ce=j.hash||"";X.params=r(c(X.params));const Me=_b(i,Ze({},j,{hash:gb(ce),path:X.path})),P=s.createHref(Me);return Ze({fullPath:Me,hash:ce,query:i===cu?qb(j.query):j.query||{}},X,{redirectedFrom:void 0,href:P})}function y(j){return typeof j=="string"?Po(n,j,l.value.path):Ze({},j)}function $(j,Q){if(p!==j)return $i(8,{from:Q,to:j})}function S(j){return A(j)}function _(j){return S(Ze(y(j),{replace:!0}))}function w(j){const Q=j.matched[j.matched.length-1];if(Q&&Q.redirect){const{redirect:q}=Q;let X=typeof q=="function"?q(j):q;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=y(X):{path:X},X.params={}),Ze({query:j.query,hash:j.hash,params:X.path!=null?{}:j.params},X)}}function A(j,Q){const q=p=b(j),X=l.value,ce=j.state,Me=j.force,P=j.replace===!0,z=w(q);if(z)return A(Ze(y(z),{state:typeof z=="object"?Ze({},ce,z.state):ce,force:Me,replace:P}),Q||q);const G=q;G.redirectedFrom=Q;let ne;return!Me&&Sb(i,X,q)&&(ne=$i(16,{to:G,from:X}),W(X,X,!0,!1)),(ne?Promise.resolve(ne):M(G,X)).catch(ee=>cn(ee)?cn(ee,2)?ee:F(ee):I(ee,G,X)).then(ee=>{if(ee){if(cn(ee,2))return A(Ze({replace:P},y(ee.to),{state:typeof ee.to=="object"?Ze({},ce,ee.to.state):ce,force:Me}),Q||G)}else ee=C(G,X,!0,P,ce);return O(G,X,ee),ee})}function L(j,Q){const q=$(j,Q);return q?Promise.reject(q):Promise.resolve()}function E(j){const Q=H.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(j):j()}function M(j,Q){let q;const[X,ce,Me]=l1(j,Q);q=Wo(X.reverse(),"beforeRouteLeave",j,Q);for(const z of X)z.leaveGuards.forEach(G=>{q.push(Mn(G,j,Q))});const P=L.bind(null,j,Q);return q.push(P),U(q).then(()=>{q=[];for(const z of o.list())q.push(Mn(z,j,Q));return q.push(P),U(q)}).then(()=>{q=Wo(ce,"beforeRouteUpdate",j,Q);for(const z of ce)z.updateGuards.forEach(G=>{q.push(Mn(G,j,Q))});return q.push(P),U(q)}).then(()=>{q=[];for(const z of Me)if(z.beforeEnter)if(Gt(z.beforeEnter))for(const G of z.beforeEnter)q.push(Mn(G,j,Q));else q.push(Mn(z.beforeEnter,j,Q));return q.push(P),U(q)}).then(()=>(j.matched.forEach(z=>z.enterCallbacks={}),q=Wo(Me,"beforeRouteEnter",j,Q,E),q.push(P),U(q))).then(()=>{q=[];for(const z of f.list())q.push(Mn(z,j,Q));return q.push(P),U(q)}).catch(z=>cn(z,8)?z:Promise.reject(z))}function O(j,Q,q){g.list().forEach(X=>E(()=>X(j,Q,q)))}function C(j,Q,q,X,ce){const Me=$(j,Q);if(Me)return Me;const P=Q===$n,z=ci?history.state:{};q&&(X||P?s.replace(j.fullPath,Ze({scroll:P&&z&&z.scroll},ce)):s.push(j.fullPath,ce)),l.value=j,W(j,Q,q,P),F()}let v;function x(){v||(v=s.listen((j,Q,q)=>{if(!K.listening)return;const X=b(j),ce=w(X);if(ce){A(Ze(ce,{replace:!0,force:!0}),X).catch(tr);return}p=X;const Me=l.value;ci&&Eb(eu(Me.fullPath,q.delta),no()),M(X,Me).catch(P=>cn(P,12)?P:cn(P,2)?(A(Ze(y(P.to),{force:!0}),X).then(z=>{cn(z,20)&&!q.delta&&q.type===hr.pop&&s.go(-1,!1)}).catch(tr),Promise.reject()):(q.delta&&s.go(-q.delta,!1),I(P,X,Me))).then(P=>{P=P||C(X,Me,!1),P&&(q.delta&&!cn(P,8)?s.go(-q.delta,!1):q.type===hr.pop&&cn(P,20)&&s.go(-1,!1)),O(X,Me,P)}).catch(tr)}))}let k=Bi(),T=Bi(),R;function I(j,Q,q){F(j);const X=T.list();return X.length?X.forEach(ce=>ce(j,Q,q)):console.error(j),Promise.reject(j)}function N(){return R&&l.value!==$n?Promise.resolve():new Promise((j,Q)=>{k.add([j,Q])})}function F(j){return R||(R=!j,x(),k.list().forEach(([Q,q])=>j?q(j):Q()),k.reset()),j}function W(j,Q,q,X){const{scrollBehavior:ce}=e;if(!ci||!ce)return Promise.resolve();const Me=!q&&Lb(eu(j.fullPath,0))||(X||!q)&&history.state&&history.state.scroll||null;return Rr().then(()=>ce(j,Q,Me)).then(P=>P&&Tb(P)).catch(P=>I(P,j,Q))}const V=j=>s.go(j);let B;const H=new Set,K={currentRoute:l,listening:!0,addRoute:u,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:d,resolve:b,options:e,push:S,replace:_,go:V,back:()=>V(-1),forward:()=>V(1),beforeEach:o.add,beforeResolve:f.add,afterEach:g.add,onError:T.add,isReady:N,install(j){const Q=this;j.component("RouterLink",n1),j.component("RouterView",o1),j.config.globalProperties.$router=Q,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>he(l)}),ci&&!B&&l.value===$n&&(B=!0,S(s.location).catch(ce=>{}));const q={};for(const ce in $n)Object.defineProperty(q,ce,{get:()=>l.value[ce],enumerable:!0});j.provide(io,Q),j.provide(Rl,nd(q)),j.provide(Ta,l);const X=j.unmount;H.add(j),j.unmount=function(){H.delete(j),H.size<1&&(p=$n,v&&v(),v=null,l.value=$n,B=!1,R=!1),X()}}};function U(j){return j.reduce((Q,q)=>Q.then(()=>E(q)),Promise.resolve())}return K}function l1(e,t){const n=[],i=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let f=0;f<o;f++){const g=t.matched[f];g&&(e.matched.find(p=>Ci(p,g))?i.push(g):n.push(g));const l=e.matched[f];l&&(t.matched.find(p=>Ci(p,l))||s.push(l))}return[n,i,s]}function Oi(){return Ut(io)}function c1(e){return Ut(Rl)}const Bo=new WeakMap;function Ai(e,t,n={}){const{mode:i="replace",route:s=c1(),router:o=Oi(),transform:f}=n,g=f&&"get"in f?f.get:f??(u=>u),l=f&&"set"in f?f.set:u=>u;Bo.has(o)||Bo.set(o,new Map);const p=Bo.get(o);let r=s.query[e];to(()=>{r=void 0});let a;const c=ad((u,h)=>(a=h,{get(){return u(),g(r!==void 0?r:sn(t))},set(d){d=l(d),r!==d&&(r=d===t||d===null?void 0:d,p.set(e,d===t||d===null?void 0:d),h(),Rr(()=>{if(p.size===0)return;const m=Object.fromEntries(p.entries());p.clear();const{params:b,query:y,hash:$}=s;o[sn(i)]({params:b,query:{...y,...m},hash:$})}))}}));return et(()=>s.query[e],u=>{r!==g(u)&&(r=u,a())},{flush:"sync"}),c}/*! CAF: shared.mjs
|
585
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
586
|
+
MIT License: http://getify.mit-license.org
|
587
|
+
*/const mn=Symbol("Cleanup Function"),Ol=Symbol("Timeout Token"),di=Symbol("Signal Reason"),pt=Symbol("Unset"),[is,u1]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Nl(t.signal.reason)]}();class ei{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[di]=pt;var i=(s,o)=>{var f=()=>{if(o&&this.signal){let g=Dr(this.signal);this._trackSignalReason(g),o(g!==pt?g:void 0)}o=null};this.signal.addEventListener("abort",f,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",f,!1),this.signal.pr&&(this.signal.pr[mn]=null)),f=null}};this.signal.pr=new Promise(i),this.signal.pr[mn]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:pt;this._trackSignalReason(n),this.controller&&(is&&n!==pt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[mn]&&this.signal.pr[mn](),this.signal.pr=null),delete this.signal[di],is||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==pt&&(is||"reason"in this.signal||(this.signal.reason=t),this.signal[di]===pt&&(this.signal[di]=t))}}function Dr(e){return e&&e.aborted?is&&u1?Nl(e.reason)?pt:e.reason:di in e?e[di]:pt:pt}function cf(e){if(e.pr)return e.pr;var t,n=new Promise(function(s,o){t=()=>{if(o&&e){let f=Dr(e);o(f!==pt?f:void 0)}o=null},e.addEventListener("abort",t,!1)});return n[mn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[mn]=t=null)},n.catch(n[mn]),n}function Il(e){e instanceof AbortController&&(e=new ei(e));var t=e&&e instanceof ei?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:cf(t)}}function Ea(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Hn(e){return typeof e=="function"}function h1(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Nl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function ro(e,t){Nl(t)||t===pt?e.abort():e.abort(t)}/*! CAF: caf.mjs
|
588
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
589
|
+
MIT License: http://getify.mit-license.org
|
590
|
+
*/const La=Object.assign(d1,{cancelToken:ei,delay:uf,timeout:f1,signalRace:p1,signalAll:g1,tokenCycle:m1});function d1(e){return function(n,...i){var s,o;if({tokenOrSignal:n,signal:s,signalPr:o}=Il(n),s.aborted)return o;var f=o.catch(function(a){var c=Dr(s);c=c!==pt?c:a;try{var u=g.return();throw u.value!==void 0?u.value:c!==pt?c:void 0}finally{g=l=f=p=null}}),{it:g,result:l}=v1.call(this,e,s,...i),p=Promise.race([l,f]);if(n!==s&&n[Ol]){let r=function(c){ro(n,c),Hn(n.discard)&&n.discard(),n=r=null};p.then(r,r)}else p.catch(()=>{}),n=null;return i=null,p}}function uf(e,t){var n,i;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:i}=Il(e)),n&&n.aborted?i:new Promise(function(o,f){n&&(i.catch(function(){if(f&&n&&g){let p=Dr(n);clearTimeout(g),f(p!==pt?p:`delay (${t}) interrupted`),o=f=g=n=null}}),i=null);var g=setTimeout(function(){o(`delayed: ${t}`),o=f=g=n=null},t)})}function f1(e,t="Timeout"){e=Number(e)||0;var n=new ei;return uf(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,Ol,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...s){ro(n,s.length>0?s[0]:pt),n.discard(),n=null}}function hf(e){return e.reduce(function(n,i){var s=cf(i);return n[0].push(s),i.pr||n[1].push(s),n},[[],[]])}function df(e,t,n){e.then(function(s){ro(t,s),t.discard(),t=null}).then(function(){for(let s of n)s[mn]&&s[mn]();n=null})}function ff(e){return e.catch(t=>t)}function p1(e){var t=new ei,[n,i]=hf(e);return df(ff(Promise.race(n)),t,i),t.signal}function g1(e){var t=new ei,[n,i]=hf(e);return df(Promise.all(n.map(ff)),t,i),t.signal}function m1(){var e;return function(...n){return e&&(ro(e,n.length>0?n[0]:pt),e.discard()),e=new ei}}function v1(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(s){try{var o=n.next(s);s=null}catch(f){return Promise.reject(f)}return function f(g){var l=Promise.resolve(g.value);return g.done?n=null:(l=l.then(i,function(r){return Promise.resolve(n.throw(r)).then(f)})).catch(function(){n=null}),g=null,l}(o)}()}}/*! CAF: cag.mjs
|
591
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
592
|
+
MIT License: http://getify.mit-license.org
|
593
|
+
*/Oa=La(Oa);Object.assign(gf,{onEvent:mf,onceEvent:Oa});var Ra=new WeakSet;const zo=Symbol("unset"),pf=Symbol("returned"),gu=Symbol("canceled");function gf(e){return function(n,...i){var s,o;if({tokenOrSignal:n,signal:s,signalPr:o}=Il(n),s.aborted){let a=Dr(s);throw a=a!==pt?a:"Aborted",a}var f=Ea(),{it:g,ait:l}=b1(e,f.pr,r,s,...i),p=l.return;return l.return=function(c){try{return f.pr.resolved=!0,f.resolve(pf),Promise.resolve(g.return(c))}finally{p.call(l),r()}},l;function r(){n&&n!==s&&n[Ol]&&n.abort(),l&&(l.return=p,n=f=g=l=p=null)}}}function mf(e,t,n,i=!1){var s,o,f=!1,g=gf(function*({pwait:a}){f||l();try{for(;;){if(s.length==0){let{pr:c,resolve:u}=Ea();s.push(c),o.push(u)}yield yield a(s.shift())}}finally{Hn(t.removeEventListener)?t.removeEventListener(n,p,i):Hn(t.removeListener)?t.removeListener(n,p):Hn(t.off)&&t.off(n,p),s.length=o.length=0}})(e,t,n,i);return g.start=l,g;function l(){f||(f=!0,s=[],o=[],Hn(t.addEventListener)?t.addEventListener(n,p,i):Hn(t.addListener)?t.addListener(n,p):Hn(t.on)&&t.on(n,p))}function p(r){if(o.length>0)o.shift()(r);else{let{pr:a,resolve:c}=Ea();s.push(a),c(r)}}}function*Oa(e,t,n,i=!1){try{var s=mf(e,t,n,i);return(yield s.next()).value}finally{s.return()}}function y1(e){var t=Promise.resolve(e);return Ra.add(t),t}function b1(e,t,n,i,...s){var o=e.call(this,{signal:i,pwait:y1},...s);e=s=null;var f=i.pr.catch(g=>{throw{[gu]:!0,reason:g}});return f.catch(()=>{}),{it:o,ait:async function*(){var l,p=zo;try{for(;!t.resolved;)if(p!==zo?(l=p,p=zo,l=o.throw(l)):l=o.next(l),h1(l.value))if(Ra.has(l.value)){Ra.delete(l.value);try{if((l=await Promise.race([t,f,l.value]))===pf)return}catch(r){if(r[gu]){let a=o.return();throw a.value!==void 0?a.value:r.reason}p=r}}else l=yield l.value;else{if(l.done)return l.value;l=yield l.value}}finally{o=t=null,n()}}()}}const w1=e=>e._runningInstances.length>=e._maxConcurrency,_1=e=>{const t=e._activeInstances[0];t&&t.cancel()},S1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function zi(e,t){return t?x1(()=>e()._instances,t):ke(()=>[])}function x1(e,t,n){return ke(()=>e().filter(i=>i[t]))}function C1(e){return ke(()=>e().length)}function mu(e){return ke(()=>{const t=e();return t[t.length-1]})}function $1(e){return ke(()=>e()[0])}const vf=e=>e;function yf(e){return Ri(e)}function A1(){const e={},t=new Promise((n,i)=>{e.resolve=n,e.reject=i});return e.promise=t,e}function xt(e){return T1(function*(t,...n){return e(t,...n)})}function k1(e,t,n){const i=vf({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 f=s,g=[[f.isRunning,"running"],[f.isEnqueued,"enqueued"],[f.isCanceled,"canceled"],[f.isCanceling,"canceling"],[f.isDropped,"dropped"],[f.isError,"error"],[f.isSuccessful,"success"]].find(([l])=>l);return g&&g[1]}),error:null,value:null,cancel({force:f}={force:!1}){if(f||(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(f){return f.pr.catch(()=>{s.cancel()}),s},_run(){M1(s,e,t,n)},_handled:!0,_deferredObject:A1(),_shouldThrow:!1,_canAbort:!0,then(f,g){return s._shouldThrow=!0,s._deferredObject.promise.then(f,g)},catch(f,g=!0){return s._shouldThrow=g,s._deferredObject.promise.catch(f)},finally(f){return s._shouldThrow=!0,s._deferredObject.promise.finally(f)}}),s=yf(i),{modifiers:o}=n;return o.drop?s.isDropped=!0:o.enqueue?s.isEnqueued=!0:s._run(),s}function M1(e,t,n,i){const s=new La.cancelToken,o=La(t,s);e.token=s,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function f(){e.isRunning=!1,e.isFinished=!0}o.call(e,s,...n).then(g=>{e.value=g,e.isSuccessful=!0,f(),e._deferredObject.resolve(g),e._canAbort=!1,i.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),f(),e._shouldThrow&&e._deferredObject.reject(g),i.onFinish(e)})}function T1(e,t={cancelOnUnmount:!0}){const n=Ml(),i=cv(),s=vf({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ke(()=>o._isRestartable||o._isDropping||o._isEnqueuing||o._isKeepingLatest),isIdle:ke(()=>!o.isRunning),isRunning:ke(()=>!!o._instances.find(f=>f.isRunning)),isError:ke(()=>!!(o.last&&o.last.isError)),_instances:[],_successfulInstances:zi(()=>o,"isSuccessful"),_runningInstances:zi(()=>o,"isRunning"),_enqueuedInstances:zi(()=>o,"isEnqueued"),_notDroppedInstances:zi(()=>o,"isNotDropped"),_activeInstances:zi(()=>o,"isActive"),performCount:C1(()=>o._instances),last:mu(()=>o._notDroppedInstances),lastSuccessful:mu(()=>o._successfulInstances),firstEnqueued:$1(()=>o._enqueuedInstances),cancelAll({force:f}={force:!1}){o._instances.forEach(g=>{try{(f||!g.isDropped&&!g.isFinished)&&g.cancel({force:f})}catch(l){if(l!=="cancel")throw l}})},perform(...f){const g={enqueue:!1,drop:!1};o._hasConcurrency&&w1(o)&&(o._isDropping&&(g.drop=!0),o._isRestartable&&_1(o),o._isKeepingLatest&&S1(o),(o._isEnqueuing||o._isKeepingLatest)&&(g.enqueue=!0));const l=()=>E1(o),p=()=>k1(e,f,{modifiers:g,onFinish:l,scope:i,id:o._instances.length+1}),r=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?"),o._instances=[...o._instances,r],r},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){i.stop(),this.clear()},restartable(){return o._resetModifierFlags(),o._isRestartable=!0,o},drop(){return o._resetModifierFlags(),o._isDropping=!0,o},enqueue(){return o._resetModifierFlags(),o._isEnqueuing=!0,o},keepLatest(){return o._resetModifierFlags(),o._isKeepingLatest=!0,o},_resetModifierFlags(){o._isKeepingLatest=!1,o._isRestartable=!1,o._isEnqueuing=!1,o._isDropping=!1},maxConcurrency(f){return o._maxConcurrency=f,o}}),o=yf(s);return n&&t.cancelOnUnmount&&_l(()=>{o._instances&&o.destroy()}),o}function E1(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function bf(e,t){return function(){return e.apply(t,arguments)}}const{toString:L1}=Object.prototype,{getPrototypeOf:Dl}=Object,so=(e=>t=>{const n=L1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>so(t)===e),oo=e=>t=>typeof t===e,{isArray:Ii}=Array,dr=oo("undefined");function R1(e){return e!==null&&!dr(e)&&e.constructor!==null&&!dr(e.constructor)&&Nt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wf=Kt("ArrayBuffer");function O1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wf(e.buffer),t}const I1=oo("string"),Nt=oo("function"),_f=oo("number"),ao=e=>e!==null&&typeof e=="object",N1=e=>e===!0||e===!1,rs=e=>{if(so(e)!=="object")return!1;const t=Dl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D1=Kt("Date"),F1=Kt("File"),P1=Kt("Blob"),W1=Kt("FileList"),B1=e=>ao(e)&&Nt(e.pipe),z1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nt(e.append)&&((t=so(e))==="formdata"||t==="object"&&Nt(e.toString)&&e.toString()==="[object FormData]"))},j1=Kt("URLSearchParams"),[H1,U1,V1,G1]=["ReadableStream","Request","Response","Headers"].map(Kt),Y1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),Ii(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),f=o.length;let g;for(i=0;i<f;i++)g=o[i],t.call(null,e[g],g,e)}}function Sf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,s;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xf=e=>!dr(e)&&e!==Gn;function Ia(){const{caseless:e}=xf(this)&&this||{},t={},n=(i,s)=>{const o=e&&Sf(t,s)||s;rs(t[o])&&rs(i)?t[o]=Ia(t[o],i):rs(i)?t[o]=Ia({},i):Ii(i)?t[o]=i.slice():t[o]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Fr(arguments[i],n);return t}const K1=(e,t,n,{allOwnKeys:i}={})=>(Fr(t,(s,o)=>{n&&Nt(s)?e[o]=bf(s,n):e[o]=s},{allOwnKeys:i}),e),Z1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),X1=(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)},Q1=(e,t,n,i)=>{let s,o,f;const g={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)f=s[o],(!i||i(f,e,t))&&!g[f]&&(t[f]=e[f],g[f]=!0);e=n!==!1&&Dl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},q1=(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},J1=e=>{if(!e)return null;if(Ii(e))return e;let t=e.length;if(!_f(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ew=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dl(Uint8Array)),tw=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=i.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},nw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},iw=Kt("HTMLFormElement"),rw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),vu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sw=Kt("RegExp"),Cf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Fr(n,(s,o)=>{let f;(f=t(s,o,e))!==!1&&(i[o]=f||s)}),Object.defineProperties(e,i)},ow=e=>{Cf(e,(t,n)=>{if(Nt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Nt(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+"'")})}})},aw=(e,t)=>{const n={},i=s=>{s.forEach(o=>{n[o]=!0})};return Ii(e)?i(e):i(String(e).split(t)),n},lw=()=>{},cw=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,jo="abcdefghijklmnopqrstuvwxyz",yu="0123456789",$f={DIGIT:yu,ALPHA:jo,ALPHA_DIGIT:jo+jo.toUpperCase()+yu},uw=(e=16,t=$f.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function hw(e){return!!(e&&Nt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dw=e=>{const t=new Array(10),n=(i,s)=>{if(ao(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[s]=i;const o=Ii(i)?[]:{};return Fr(i,(f,g)=>{const l=n(f,s+1);!dr(l)&&(o[g]=l)}),t[s]=void 0,o}}return i};return n(e,0)},fw=Kt("AsyncFunction"),pw=e=>e&&(ao(e)||Nt(e))&&Nt(e.then)&&Nt(e.catch),Af=((e,t)=>e?setImmediate:t?((n,i)=>(Gn.addEventListener("message",({source:s,data:o})=>{s===Gn&&o===n&&i.length&&i.shift()()},!1),s=>{i.push(s),Gn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nt(Gn.postMessage)),gw=typeof queueMicrotask<"u"?queueMicrotask.bind(Gn):typeof process<"u"&&process.nextTick||Af,J={isArray:Ii,isArrayBuffer:wf,isBuffer:R1,isFormData:z1,isArrayBufferView:O1,isString:I1,isNumber:_f,isBoolean:N1,isObject:ao,isPlainObject:rs,isReadableStream:H1,isRequest:U1,isResponse:V1,isHeaders:G1,isUndefined:dr,isDate:D1,isFile:F1,isBlob:P1,isRegExp:sw,isFunction:Nt,isStream:B1,isURLSearchParams:j1,isTypedArray:ew,isFileList:W1,forEach:Fr,merge:Ia,extend:K1,trim:Y1,stripBOM:Z1,inherits:X1,toFlatObject:Q1,kindOf:so,kindOfTest:Kt,endsWith:q1,toArray:J1,forEachEntry:tw,matchAll:nw,isHTMLForm:iw,hasOwnProperty:vu,hasOwnProp:vu,reduceDescriptors:Cf,freezeMethods:ow,toObjectSet:aw,toCamelCase:rw,noop:lw,toFiniteNumber:cw,findKey:Sf,global:Gn,isContextDefined:xf,ALPHABET:$f,generateString:uw,isSpecCompliantForm:hw,toJSONObject:dw,isAsyncFn:fw,isThenable:pw,setImmediate:Af,asap:gw};function Fe(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(Fe,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 kf=Fe.prototype,Mf={};["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=>{Mf[e]={value:e}});Object.defineProperties(Fe,Mf);Object.defineProperty(kf,"isAxiosError",{value:!0});Fe.from=(e,t,n,i,s,o)=>{const f=Object.create(kf);return J.toFlatObject(e,f,function(l){return l!==Error.prototype},g=>g!=="isAxiosError"),Fe.call(f,e.message,t,n,i,s),f.cause=e,f.name=e.name,o&&Object.assign(f,o),f};const mw=null;function Na(e){return J.isPlainObject(e)||J.isArray(e)}function Tf(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function bu(e,t,n){return e?e.concat(t).map(function(s,o){return s=Tf(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function vw(e){return J.isArray(e)&&!e.some(Na)}const yw=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function lo(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(d,m){return!J.isUndefined(m[d])});const i=n.metaTokens,s=n.visitor||r,o=n.dots,f=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 Fe("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 r(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(J.endsWith(d,"{}"))d=i?d:d.slice(0,-2),h=JSON.stringify(h);else if(J.isArray(h)&&vw(h)||(J.isFileList(h)||J.endsWith(d,"[]"))&&(b=J.toArray(h)))return d=Tf(d),b.forEach(function($,S){!(J.isUndefined($)||$===null)&&t.append(f===!0?bu([d],S,o):f===null?d:d+"[]",p($))}),!1}return Na(h)?!0:(t.append(bu(m,d,o),p(h)),!1)}const a=[],c=Object.assign(yw,{defaultVisitor:r,convertValue:p,isVisitable:Na});function u(h,d){if(!J.isUndefined(h)){if(a.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));a.push(h),J.forEach(h,function(b,y){(!(J.isUndefined(b)||b===null)&&s.call(t,b,J.isString(y)?y.trim():y,d,c))===!0&&u(b,d?d.concat(y):[y])}),a.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return u(e),t}function wu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Fl(e,t){this._pairs=[],e&&lo(e,this,t)}const Ef=Fl.prototype;Ef.append=function(t,n){this._pairs.push([t,n])};Ef.toString=function(t){const n=t?function(i){return t.call(this,i,wu)}:wu;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function bw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lf(e,t,n){if(!t)return e;const i=n&&n.encode||bw;J.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=J.isURLSearchParams(t)?t.toString():new Fl(t,n).toString(i),o){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _u{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 Rf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ww=typeof URLSearchParams<"u"?URLSearchParams:Fl,_w=typeof FormData<"u"?FormData:null,Sw=typeof Blob<"u"?Blob:null,xw={isBrowser:!0,classes:{URLSearchParams:ww,FormData:_w,Blob:Sw},protocols:["http","https","file","blob","url","data"]},Pl=typeof window<"u"&&typeof document<"u",Da=typeof navigator=="object"&&navigator||void 0,Cw=Pl&&(!Da||["ReactNative","NativeScript","NS"].indexOf(Da.product)<0),$w=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Aw=Pl&&window.location.href||"http://localhost",kw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pl,hasStandardBrowserEnv:Cw,hasStandardBrowserWebWorkerEnv:$w,navigator:Da,origin:Aw},Symbol.toStringTag,{value:"Module"})),wt={...kw,...xw};function Mw(e,t){return lo(e,new wt.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,o){return wt.isNode&&J.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Tw(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ew(e){const t={},n=Object.keys(e);let i;const s=n.length;let o;for(i=0;i<s;i++)o=n[i],t[o]=e[o];return t}function Of(e){function t(n,i,s,o){let f=n[o++];if(f==="__proto__")return!0;const g=Number.isFinite(+f),l=o>=n.length;return f=!f&&J.isArray(s)?s.length:f,l?(J.hasOwnProp(s,f)?s[f]=[s[f],i]:s[f]=i,!g):((!s[f]||!J.isObject(s[f]))&&(s[f]=[]),t(n,i,s[f],o)&&J.isArray(s[f])&&(s[f]=Ew(s[f])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(i,s)=>{t(Tw(i),s,n,0)}),n}return null}function Lw(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 Pr={transitional:Rf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,o=J.isObject(t);if(o&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return s?JSON.stringify(Of(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(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Mw(t,this.formSerializer).toString();if((g=J.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return lo(g?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Lw(t)):t}],transformResponse:[function(t){const n=this.transitional||Pr.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 f=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(g){if(f)throw g.name==="SyntaxError"?Fe.from(g,Fe.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:wt.classes.FormData,Blob:wt.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=>{Pr.headers[e]={}});const Rw=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"]),Ow=e=>{const t={};let n,i,s;return e&&e.split(`
|
594
|
+
`).forEach(function(f){s=f.indexOf(":"),n=f.substring(0,s).trim().toLowerCase(),i=f.substring(s+1).trim(),!(!n||t[n]&&Rw[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Su=Symbol("internals");function ji(e){return e&&String(e).trim().toLowerCase()}function ss(e){return e===!1||e==null?e:J.isArray(e)?e.map(ss):String(e)}function Iw(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 Nw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ho(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 Dw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Fw(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(s,o,f){return this[i].call(this,t,s,o,f)},configurable:!0})})}let Lt=class{constructor(t){t&&this.set(t)}set(t,n,i){const s=this;function o(g,l,p){const r=ji(l);if(!r)throw new Error("header name must be a non-empty string");const a=J.findKey(s,r);(!a||s[a]===void 0||p===!0||p===void 0&&s[a]!==!1)&&(s[a||l]=ss(g))}const f=(g,l)=>J.forEach(g,(p,r)=>o(p,r,l));if(J.isPlainObject(t)||t instanceof this.constructor)f(t,n);else if(J.isString(t)&&(t=t.trim())&&!Nw(t))f(Ow(t),n);else if(J.isHeaders(t))for(const[g,l]of t.entries())o(l,g,i);else t!=null&&o(n,t,i);return this}get(t,n){if(t=ji(t),t){const i=J.findKey(this,t);if(i){const s=this[i];if(!n)return s;if(n===!0)return Iw(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=ji(t),t){const i=J.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Ho(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let s=!1;function o(f){if(f=ji(f),f){const g=J.findKey(i,f);g&&(!n||Ho(i,i[g],g,n))&&(delete i[g],s=!0)}}return J.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const o=n[i];(!t||Ho(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,i={};return J.forEach(this,(s,o)=>{const f=J.findKey(i,o);if(f){n[f]=ss(s),delete n[o];return}const g=t?Dw(o):String(o).trim();g!==o&&delete n[o],n[g]=ss(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(`
|
595
|
+
`)}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[Su]=this[Su]={accessors:{}}).accessors,s=this.prototype;function o(f){const g=ji(f);i[g]||(Fw(s,f),i[g]=!0)}return J.isArray(t)?t.forEach(o):o(t),this}};Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Lt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});J.freezeMethods(Lt);function Uo(e,t){const n=this||Pr,i=t||n,s=Lt.from(i.headers);let o=i.data;return J.forEach(e,function(g){o=g.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function If(e){return!!(e&&e.__CANCEL__)}function Ni(e,t,n){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(Ni,Fe,{__CANCEL__:!0});function Nf(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Pw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ww(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,o=0,f;return t=t!==void 0?t:1e3,function(l){const p=Date.now(),r=i[o];f||(f=p),n[s]=l,i[s]=p;let a=o,c=0;for(;a!==s;)c+=n[a++],a=a%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),p-f<t)return;const u=r&&p-r;return u?Math.round(c*1e3/u):void 0}}function Bw(e,t){let n=0,i=1e3/t,s,o;const f=(p,r=Date.now())=>{n=r,s=null,o&&(clearTimeout(o),o=null),e.apply(null,p)};return[(...p)=>{const r=Date.now(),a=r-n;a>=i?f(p,r):(s=p,o||(o=setTimeout(()=>{o=null,f(s)},i-a)))},()=>s&&f(s)]}const xs=(e,t,n=3)=>{let i=0;const s=Ww(50,250);return Bw(o=>{const f=o.loaded,g=o.lengthComputable?o.total:void 0,l=f-i,p=s(l),r=f<=g;i=f;const a={loaded:f,total:g,progress:g?f/g:void 0,bytes:l,rate:p||void 0,estimated:p&&g&&r?(g-f)/p:void 0,event:o,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(a)},n)},xu=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Cu=e=>(...t)=>J.asap(()=>e(...t)),zw=wt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,jw=wt.hasStandardBrowserEnv?{write(e,t,n,i,s,o){const f=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),J.isString(i)&&f.push("path="+i),J.isString(s)&&f.push("domain="+s),o===!0&&f.push("secure"),document.cookie=f.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 Hw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Uw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Df(e,t){return e&&!Hw(t)?Uw(e,t):t}const $u=e=>e instanceof Lt?{...e}:e;function ti(e,t){t=t||{};const n={};function i(p,r,a,c){return J.isPlainObject(p)&&J.isPlainObject(r)?J.merge.call({caseless:c},p,r):J.isPlainObject(r)?J.merge({},r):J.isArray(r)?r.slice():r}function s(p,r,a,c){if(J.isUndefined(r)){if(!J.isUndefined(p))return i(void 0,p,a,c)}else return i(p,r,a,c)}function o(p,r){if(!J.isUndefined(r))return i(void 0,r)}function f(p,r){if(J.isUndefined(r)){if(!J.isUndefined(p))return i(void 0,p)}else return i(void 0,r)}function g(p,r,a){if(a in t)return i(p,r);if(a in e)return i(void 0,p)}const l={url:o,method:o,data:o,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:g,headers:(p,r,a)=>s($u(p),$u(r),a,!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(r){const a=l[r]||s,c=a(e[r],t[r],r);J.isUndefined(c)&&a!==g||(n[r]=c)}),n}const Ff=e=>{const t=ti({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:o,headers:f,auth:g}=t;t.headers=f=Lt.from(f),t.url=Lf(Df(t.baseURL,t.url),e.params,e.paramsSerializer),g&&f.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let l;if(J.isFormData(n)){if(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((l=f.getContentType())!==!1){const[p,...r]=l?l.split(";").map(a=>a.trim()).filter(Boolean):[];f.setContentType([p||"multipart/form-data",...r].join("; "))}}if(wt.hasStandardBrowserEnv&&(i&&J.isFunction(i)&&(i=i(t)),i||i!==!1&&zw(t.url))){const p=s&&o&&jw.read(o);p&&f.set(s,p)}return t},Vw=typeof XMLHttpRequest<"u",Gw=Vw&&function(e){return new Promise(function(n,i){const s=Ff(e);let o=s.data;const f=Lt.from(s.headers).normalize();let{responseType:g,onUploadProgress:l,onDownloadProgress:p}=s,r,a,c,u,h;function d(){u&&u(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(r),s.signal&&s.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function b(){if(!m)return;const $=Lt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:$,config:e,request:m};Nf(function(A){n(A),d()},function(A){i(A),d()},_),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(i(new Fe("Request aborted",Fe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){i(new Fe("Network Error",Fe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const _=s.transitional||Rf;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),i(new Fe(S,_.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,m)),m=null},o===void 0&&f.setContentType(null),"setRequestHeader"in m&&J.forEach(f.toJSON(),function(S,_){m.setRequestHeader(_,S)}),J.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),g&&g!=="json"&&(m.responseType=s.responseType),p&&([c,h]=xs(p,!0),m.addEventListener("progress",c)),l&&m.upload&&([a,u]=xs(l),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(s.cancelToken||s.signal)&&(r=$=>{m&&(i(!$||$.type?new Ni(null,e,m):$),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(r),s.signal&&(s.signal.aborted?r():s.signal.addEventListener("abort",r)));const y=Pw(s.url);if(y&&wt.protocols.indexOf(y)===-1){i(new Fe("Unsupported protocol "+y+":",Fe.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Yw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,s;const o=function(p){if(!s){s=!0,g();const r=p instanceof Error?p:this.reason;i.abort(r instanceof Fe?r:new Ni(r instanceof Error?r.message:r))}};let f=t&&setTimeout(()=>{f=null,o(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))},t);const g=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),e=null)};e.forEach(p=>p.addEventListener("abort",o));const{signal:l}=i;return l.unsubscribe=()=>J.asap(g),l}},Kw=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,s;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},Zw=async function*(e,t){for await(const n of Xw(e))yield*Kw(n,t)},Xw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},Au=(e,t,n,i)=>{const s=Zw(e,t);let o=0,f,g=l=>{f||(f=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:p,value:r}=await s.next();if(p){g(),l.close();return}let a=r.byteLength;if(n){let c=o+=a;n(c)}l.enqueue(new Uint8Array(r))}catch(p){throw g(p),p}},cancel(l){return g(l),s.return()}},{highWaterMark:2})},co=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pf=co&&typeof ReadableStream=="function",Qw=co&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qw=Pf&&Wf(()=>{let e=!1;const t=new Request(wt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ku=64*1024,Fa=Pf&&Wf(()=>J.isReadableStream(new Response("").body)),Cs={stream:Fa&&(e=>e.body)};co&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Cs[t]&&(Cs[t]=J.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new Fe(`Response type '${t}' is not supported`,Fe.ERR_NOT_SUPPORT,i)})})})(new Response);const Jw=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(wt.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 Qw(e)).byteLength},e_=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n??Jw(t)},t_=co&&(async e=>{let{url:t,method:n,data:i,signal:s,cancelToken:o,timeout:f,onDownloadProgress:g,onUploadProgress:l,responseType:p,headers:r,withCredentials:a="same-origin",fetchOptions:c}=Ff(e);p=p?(p+"").toLowerCase():"text";let u=Yw([s,o&&o.toAbortSignal()],f),h;const d=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let m;try{if(l&&qw&&n!=="get"&&n!=="head"&&(m=await e_(r,i))!==0){let _=new Request(t,{method:"POST",body:i,duplex:"half"}),w;if(J.isFormData(i)&&(w=_.headers.get("content-type"))&&r.setContentType(w),_.body){const[A,L]=xu(m,xs(Cu(l)));i=Au(_.body,ku,A,L)}}J.isString(a)||(a=a?"include":"omit");const b="credentials"in Request.prototype;h=new Request(t,{...c,signal:u,method:n.toUpperCase(),headers:r.normalize().toJSON(),body:i,duplex:"half",credentials:b?a:void 0});let y=await fetch(h);const $=Fa&&(p==="stream"||p==="response");if(Fa&&(g||$&&d)){const _={};["status","statusText","headers"].forEach(E=>{_[E]=y[E]});const w=J.toFiniteNumber(y.headers.get("content-length")),[A,L]=g&&xu(w,xs(Cu(g),!0))||[];y=new Response(Au(y.body,ku,A,()=>{L&&L(),d&&d()}),_)}p=p||"text";let S=await Cs[J.findKey(Cs,p)||"text"](y,e);return!$&&d&&d(),await new Promise((_,w)=>{Nf(_,w,{data:S,headers:Lt.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(b){throw d&&d(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,h),{cause:b.cause||b}):Fe.from(b,b&&b.code,e,h)}}),Pa={http:mw,xhr:Gw,fetch:t_};J.forEach(Pa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mu=e=>`- ${e}`,n_=e=>J.isFunction(e)||e===null||e===!1,Bf={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,i;const s={};for(let o=0;o<t;o++){n=e[o];let f;if(i=n,!n_(n)&&(i=Pa[(f=String(n)).toLowerCase()],i===void 0))throw new Fe(`Unknown adapter '${f}'`);if(i)break;s[f||"#"+o]=i}if(!i){const o=Object.entries(s).map(([g,l])=>`adapter ${g} `+(l===!1?"is not supported by the environment":"is not available in the build"));let f=t?o.length>1?`since :
|
596
|
+
`+o.map(Mu).join(`
|
597
|
+
`):" "+Mu(o[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i},adapters:Pa};function Vo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ni(null,e)}function Tu(e){return Vo(e),e.headers=Lt.from(e.headers),e.data=Uo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bf.getAdapter(e.adapter||Pr.adapter)(e).then(function(i){return Vo(e),i.data=Uo.call(e,e.transformResponse,i),i.headers=Lt.from(i.headers),i},function(i){return If(i)||(Vo(e),i&&i.response&&(i.response.data=Uo.call(e,e.transformResponse,i.response),i.response.headers=Lt.from(i.response.headers))),Promise.reject(i)})}const zf="1.7.9",uo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uo[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Eu={};uo.transitional=function(t,n,i){function s(o,f){return"[Axios v"+zf+"] Transitional option '"+o+"'"+f+(i?". "+i:"")}return(o,f,g)=>{if(t===!1)throw new Fe(s(f," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!Eu[f]&&(Eu[f]=!0,console.warn(s(f," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,f,g):!0}};uo.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function i_(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const o=i[s],f=t[o];if(f){const g=e[o],l=g===void 0||f(g,o,e);if(l!==!0)throw new Fe("option "+o+" must be "+l,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+o,Fe.ERR_BAD_OPTION)}}const os={assertOptions:i_,validators:uo},Xt=os.validators;let Kn=class{constructor(t){this.defaults=t,this.interceptors={request:new _u,response:new _u}}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 o=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
598
|
+
`+o):i.stack=o}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ti(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:o}=n;i!==void 0&&os.assertOptions(i,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean)},!1),s!=null&&(J.isFunction(s)?n.paramsSerializer={serialize:s}:os.assertOptions(s,{encode:Xt.function,serialize:Xt.function},!0)),os.assertOptions(n,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=o&&J.merge(o.common,o[n.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=Lt.concat(f,o);const g=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(l=l&&d.synchronous,g.unshift(d.fulfilled,d.rejected))});const p=[];this.interceptors.response.forEach(function(d){p.push(d.fulfilled,d.rejected)});let r,a=0,c;if(!l){const h=[Tu.bind(this),void 0];for(h.unshift.apply(h,g),h.push.apply(h,p),c=h.length,r=Promise.resolve(n);a<c;)r=r.then(h[a++],h[a++]);return r}c=g.length;let u=n;for(a=0;a<c;){const h=g[a++],d=g[a++];try{u=h(u)}catch(m){d.call(this,m);break}}try{r=Tu.call(this,u)}catch(h){return Promise.reject(h)}for(a=0,c=p.length;a<c;)r=r.then(p[a++],p[a++]);return r}getUri(t){t=ti(this.defaults,t);const n=Df(t.baseURL,t.url);return Lf(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Kn.prototype[t]=function(n,i){return this.request(ti(i||{},{method:t,url:n,data:(i||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(i){return function(o,f,g){return this.request(ti(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:f}))}}Kn.prototype[t]=n(),Kn.prototype[t+"Form"]=n(!0)});let r_=class jf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const i=this;this.promise.then(s=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const f=new Promise(g=>{i.subscribe(g),o=g}).then(s);return f.cancel=function(){i.unsubscribe(o)},f},t(function(o,f,g){i.reason||(i.reason=new Ni(o,f,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 jf(function(s){t=s}),cancel:t}}};function s_(e){return function(n){return e.apply(null,n)}}function o_(e){return J.isObject(e)&&e.isAxiosError===!0}const Wa={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(Wa).forEach(([e,t])=>{Wa[t]=e});function Hf(e){const t=new Kn(e),n=bf(Kn.prototype.request,t);return J.extend(n,Kn.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Hf(ti(e,s))},n}const nt=Hf(Pr);nt.Axios=Kn;nt.CanceledError=Ni;nt.CancelToken=r_;nt.isCancel=If;nt.VERSION=zf;nt.toFormData=lo;nt.AxiosError=Fe;nt.Cancel=nt.CanceledError;nt.all=function(t){return Promise.all(t)};nt.spread=s_;nt.isAxiosError=o_;nt.mergeConfig=ti;nt.AxiosHeaders=Lt;nt.formToJSON=e=>Of(J.isHTMLForm(e)?new FormData(e):e);nt.getAdapter=Bf.getAdapter;nt.HttpStatusCode=Wa;nt.default=nt;const{Axios:eM,AxiosError:a_,CanceledError:tM,isCancel:nM,CancelToken:iM,VERSION:rM,all:sM,Cancel:oM,isAxiosError:aM,spread:lM,toFormData:cM,AxiosHeaders:uM,HttpStatusCode:hM,formToJSON:dM,getAdapter:fM,mergeConfig:pM}=nt;var He;(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 o={};for(const f of s)o[f]=f;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(g=>typeof s[s[g]]!="number"),f={};for(const g of o)f[g]=s[g];return e.objectValues(f)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const f in s)Object.prototype.hasOwnProperty.call(s,f)&&o.push(f);return o},e.find=(s,o)=>{for(const f of s)if(o(f))return f},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function i(s,o=" | "){return s.map(f=>typeof f=="string"?`'${f}'`:f).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(He||(He={}));var Ba;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ba||(Ba={}));const be=He.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dn=e=>{switch(typeof e){case"undefined":return be.undefined;case"string":return be.string;case"number":return isNaN(e)?be.nan:be.number;case"boolean":return be.boolean;case"function":return be.function;case"bigint":return be.bigint;case"symbol":return be.symbol;case"object":return Array.isArray(e)?be.array:e===null?be.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?be.promise:typeof Map<"u"&&e instanceof Map?be.map:typeof Set<"u"&&e instanceof Set?be.set:typeof Date<"u"&&e instanceof Date?be.date:be.object;default:return be.unknown}},ae=He.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"]),l_=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Dt extends Error{get errors(){return this.issues}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}format(t){const n=t||function(o){return o.message},i={_errors:[]},s=o=>{for(const f of o.issues)if(f.code==="invalid_union")f.unionErrors.map(s);else if(f.code==="invalid_return_type")s(f.returnTypeError);else if(f.code==="invalid_arguments")s(f.argumentsError);else if(f.path.length===0)i._errors.push(n(f));else{let g=i,l=0;for(;l<f.path.length;){const p=f.path[l];l===f.path.length-1?(g[p]=g[p]||{_errors:[]},g[p]._errors.push(n(f))):g[p]=g[p]||{_errors:[]},g=g[p],l++}}};return s(this),i}static assert(t){if(!(t instanceof Dt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,He.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.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()}}Dt.create=e=>new Dt(e);const ki=(e,t)=>{let n;switch(e.code){case ae.invalid_type:e.received===be.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ae.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,He.jsonStringifyReplacer)}`;break;case ae.unrecognized_keys:n=`Unrecognized key(s) in object: ${He.joinValues(e.keys,", ")}`;break;case ae.invalid_union:n="Invalid input";break;case ae.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${He.joinValues(e.options)}`;break;case ae.invalid_enum_value:n=`Invalid enum value. Expected ${He.joinValues(e.options)}, received '${e.received}'`;break;case ae.invalid_arguments:n="Invalid function arguments";break;case ae.invalid_return_type:n="Invalid function return type";break;case ae.invalid_date:n="Invalid date";break;case ae.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}"`:He.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ae.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 ae.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 ae.custom:n="Invalid input";break;case ae.invalid_intersection_types:n="Intersection results could not be merged";break;case ae.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ae.not_finite:n="Number must be finite";break;default:n=t.defaultError,He.assertNever(e)}return{message:n}};let Uf=ki;function c_(e){Uf=e}function $s(){return Uf}const As=e=>{const{data:t,path:n,errorMaps:i,issueData:s}=e,o=[...n,...s.path||[]],f={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let g="";const l=i.filter(p=>!!p).slice().reverse();for(const p of l)g=p(f,{data:t,defaultError:g}).message;return{...s,path:o,message:g}},u_=[];function ve(e,t){const n=$s(),i=As({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ki?void 0:ki].filter(s=>!!s)});e.common.issues.push(i)}class St{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 Re;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 o=await s.key,f=await s.value;i.push({key:o,value:f})}return St.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const s of n){const{key:o,value:f}=s;if(o.status==="aborted"||f.status==="aborted")return Re;o.status==="dirty"&&t.dirty(),f.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof f.value<"u"||s.alwaysSet)&&(i[o.value]=f.value)}return{status:t.value,value:i}}}const Re=Object.freeze({status:"aborted"}),fi=e=>({status:"dirty",value:e}),Mt=e=>({status:"valid",value:e}),za=e=>e.status==="aborted",ja=e=>e.status==="dirty",ni=e=>e.status==="valid",fr=e=>typeof Promise<"u"&&e instanceof Promise;function ks(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 Vf(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 Se;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Se||(Se={}));var Vi,Gi;class on{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 Lu=(e,t)=>{if(ni(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 Dt(e.common.issues);return this._error=n,this._error}}};function Pe(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:(f,g)=>{var l,p;const{message:r}=e;return f.code==="invalid_enum_value"?{message:r??g.defaultError}:typeof g.data>"u"?{message:(l=r??i)!==null&&l!==void 0?l:g.defaultError}:f.code!=="invalid_type"?{message:g.defaultError}:{message:(p=r??n)!==null&&p!==void 0?p:g.defaultError}},description:s}}class Be{get description(){return this._def.description}_getType(t){return dn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new St,ctx:{common:t.parent.common,data:t.data,parsedType:dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(fr(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:dn(t)},o=this._parseSync({data:t,path:s.path,parent:s});return Lu(s,o)}"~validate"(t){var n,i;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dn(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:s});return ni(o)?{value:o.value}:{issues:s.common.issues}}catch(o){!((i=(n=o==null?void 0:o.message)===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(o=>ni(o)?{value:o.value}:{issues:s.common.issues})}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:dn(t)},s=this._parse({data:t,path:i.path,parent:i}),o=await(fr(s)?s:Promise.resolve(s));return Lu(i,o)}refine(t,n){const i=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const f=t(s),g=()=>o.addIssue({code:ae.custom,...i(s)});return typeof Promise<"u"&&f instanceof Promise?f.then(l=>l?!0:(g(),!1)):f?!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 Yt({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}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),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return nn.create(this,this._def)}nullable(){return Dn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vt.create(this)}promise(){return Ti.create(this,this._def)}or(t){return vr.create([this,t],this._def)}and(t){return yr.create(this,t,this._def)}transform(t){return new Yt({...Pe(this._def),schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new xr({...Pe(this._def),innerType:this,defaultValue:n,typeName:Le.ZodDefault})}brand(){return new Wl({typeName:Le.ZodBranded,type:this,...Pe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Cr({...Pe(this._def),innerType:this,catchValue:n,typeName:Le.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Wr.create(this,t)}readonly(){return $r.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const h_=/^c[^\s-]{8,}$/i,d_=/^[0-9a-z]+$/,f_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,p_=/^[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,g_=/^[a-z0-9_-]{21}$/i,m_=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,v_=/^[-+]?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)?)??$/,y_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,b_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Go;const w_=/^(?:(?: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])$/,__=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,S_=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,x_=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,C_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$_=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Gf="((\\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])))",A_=new RegExp(`^${Gf}$`);function Yf(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 k_(e){return new RegExp(`^${Yf(e)}$`)}function Kf(e){let t=`${Gf}T${Yf(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 M_(e,t){return!!((t==="v4"||!t)&&w_.test(e)||(t==="v6"||!t)&&S_.test(e))}function T_(e,t){if(!m_.test(e))return!1;try{const[n]=e.split("."),i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(i));return!(typeof s!="object"||s===null||!s.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function E_(e,t){return!!((t==="v4"||!t)&&__.test(e)||(t==="v6"||!t)&&x_.test(e))}class jt extends Be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==be.string){const o=this._getOrReturnCtx(t);return ve(o,{code:ae.invalid_type,expected:be.string,received:o.parsedType}),Re}const i=new St;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){const f=t.data.length>o.value,g=t.data.length<o.value;(f||g)&&(s=this._getOrReturnCtx(t,s),f?ve(s,{code:ae.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):g&&ve(s,{code:ae.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")y_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"email",code:ae.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Go||(Go=new RegExp(b_,"u")),Go.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"emoji",code:ae.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")p_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"uuid",code:ae.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")g_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"nanoid",code:ae.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")h_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"cuid",code:ae.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")d_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"cuid2",code:ae.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")f_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"ulid",code:ae.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ve(s,{validation:"url",code:ae.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"regex",code:ae.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?Kf(o).test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?A_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?k_(o).test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?v_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"duration",code:ae.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?M_(t.data,o.version)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"ip",code:ae.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?T_(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"jwt",code:ae.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?E_(t.data,o.version)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"cidr",code:ae.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?C_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"base64",code:ae.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?$_.test(t.data)||(s=this._getOrReturnCtx(t,s),ve(s,{validation:"base64url",code:ae.invalid_string,message:o.message}),i.dirty()):He.assertNever(o);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(s=>t.test(s),{validation:n,code:ae.invalid_string,...Se.errToObj(i)})}_addCheck(t){return new jt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Se.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Se.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Se.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Se.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Se.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Se.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,...Se.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,...Se.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Se.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Se.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Se.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Se.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Se.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Se.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Se.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Se.errToObj(n)})}nonempty(t){return this.min(1,Se.errToObj(t))}trim(){return new jt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new jt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new jt({...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 isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}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<t)&&(t=n.value);return t}}jt.create=e=>{var t;return new jt({checks:[],typeName:Le.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};function L_(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,s=n>i?n:i,o=parseInt(e.toFixed(s).replace(".","")),f=parseInt(t.toFixed(s).replace(".",""));return o%f/Math.pow(10,s)}class On extends Be{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)!==be.number){const o=this._getOrReturnCtx(t);return ve(o,{code:ae.invalid_type,expected:be.number,received:o.parsedType}),Re}let i;const s=new St;for(const o of this._def.checks)o.kind==="int"?He.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?L_(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.not_finite,message:o.message}),s.dirty()):He.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Se.toString(n))}setLimit(t,n,i,s){return new On({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Se.toString(s)}]})}_addCheck(t){return new On({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.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.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&He.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.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}On.create=e=>new On({checks:[],typeName:Le.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class In extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==be.bigint)return this._getInvalidInput(t);let i;const s=new St;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:ae.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):He.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ve(n,{code:ae.invalid_type,expected:be.bigint,received:n.parsedType}),Re}gte(t,n){return this.setLimit("min",t,!0,Se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Se.toString(n))}setLimit(t,n,i,s){return new In({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Se.toString(s)}]})}_addCheck(t){return new In({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Se.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<t)&&(t=n.value);return t}}In.create=e=>{var t;return new In({checks:[],typeName:Le.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};class pr extends Be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==be.boolean){const i=this._getOrReturnCtx(t);return ve(i,{code:ae.invalid_type,expected:be.boolean,received:i.parsedType}),Re}return Mt(t.data)}}pr.create=e=>new pr({typeName:Le.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class ii extends Be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==be.date){const o=this._getOrReturnCtx(t);return ve(o,{code:ae.invalid_type,expected:be.date,received:o.parsedType}),Re}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ve(o,{code:ae.invalid_date}),Re}const i=new St;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),ve(s,{code:ae.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):He.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ii({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Se.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Se.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.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ii.create=e=>new ii({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Le.ZodDate,...Pe(e)});class Ms extends Be{_parse(t){if(this._getType(t)!==be.symbol){const i=this._getOrReturnCtx(t);return ve(i,{code:ae.invalid_type,expected:be.symbol,received:i.parsedType}),Re}return Mt(t.data)}}Ms.create=e=>new Ms({typeName:Le.ZodSymbol,...Pe(e)});class gr extends Be{_parse(t){if(this._getType(t)!==be.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:ae.invalid_type,expected:be.undefined,received:i.parsedType}),Re}return Mt(t.data)}}gr.create=e=>new gr({typeName:Le.ZodUndefined,...Pe(e)});class mr extends Be{_parse(t){if(this._getType(t)!==be.null){const i=this._getOrReturnCtx(t);return ve(i,{code:ae.invalid_type,expected:be.null,received:i.parsedType}),Re}return Mt(t.data)}}mr.create=e=>new mr({typeName:Le.ZodNull,...Pe(e)});class Mi extends Be{constructor(){super(...arguments),this._any=!0}_parse(t){return Mt(t.data)}}Mi.create=e=>new Mi({typeName:Le.ZodAny,...Pe(e)});class Zn extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Mt(t.data)}}Zn.create=e=>new Zn({typeName:Le.ZodUnknown,...Pe(e)});class bn extends Be{_parse(t){const n=this._getOrReturnCtx(t);return ve(n,{code:ae.invalid_type,expected:be.never,received:n.parsedType}),Re}}bn.create=e=>new bn({typeName:Le.ZodNever,...Pe(e)});class Ts extends Be{_parse(t){if(this._getType(t)!==be.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:ae.invalid_type,expected:be.void,received:i.parsedType}),Re}return Mt(t.data)}}Ts.create=e=>new Ts({typeName:Le.ZodVoid,...Pe(e)});class Vt extends Be{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),s=this._def;if(n.parsedType!==be.array)return ve(n,{code:ae.invalid_type,expected:be.array,received:n.parsedType}),Re;if(s.exactLength!==null){const f=n.data.length>s.exactLength.value,g=n.data.length<s.exactLength.value;(f||g)&&(ve(n,{code:f?ae.too_big:ae.too_small,minimum:g?s.exactLength.value:void 0,maximum:f?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),i.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(ve(n,{code:ae.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),i.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(ve(n,{code:ae.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((f,g)=>s.type._parseAsync(new on(n,f,n.path,g)))).then(f=>St.mergeArray(i,f));const o=[...n.data].map((f,g)=>s.type._parseSync(new on(n,f,n.path,g)));return St.mergeArray(i,o)}get element(){return this._def.type}min(t,n){return new Vt({...this._def,minLength:{value:t,message:Se.toString(n)}})}max(t,n){return new Vt({...this._def,maxLength:{value:t,message:Se.toString(n)}})}length(t,n){return new Vt({...this._def,exactLength:{value:t,message:Se.toString(n)}})}nonempty(t){return this.min(1,t)}}Vt.create=(e,t)=>new Vt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray,...Pe(t)});function ui(e){if(e instanceof at){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=nn.create(ui(i))}return new at({...e._def,shape:()=>t})}else return e instanceof Vt?new Vt({...e._def,type:ui(e.element)}):e instanceof nn?nn.create(ui(e.unwrap())):e instanceof Dn?Dn.create(ui(e.unwrap())):e instanceof an?an.create(e.items.map(t=>ui(t))):e}class at extends Be{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=He.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==be.object){const p=this._getOrReturnCtx(t);return ve(p,{code:ae.invalid_type,expected:be.object,received:p.parsedType}),Re}const{status:i,ctx:s}=this._processInputParams(t),{shape:o,keys:f}=this._getCached(),g=[];if(!(this._def.catchall instanceof bn&&this._def.unknownKeys==="strip"))for(const p in s.data)f.includes(p)||g.push(p);const l=[];for(const p of f){const r=o[p],a=s.data[p];l.push({key:{status:"valid",value:p},value:r._parse(new on(s,a,s.path,p)),alwaysSet:p in s.data})}if(this._def.catchall instanceof bn){const p=this._def.unknownKeys;if(p==="passthrough")for(const r of g)l.push({key:{status:"valid",value:r},value:{status:"valid",value:s.data[r]}});else if(p==="strict")g.length>0&&(ve(s,{code:ae.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 r of g){const a=s.data[r];l.push({key:{status:"valid",value:r},value:p._parse(new on(s,a,s.path,r)),alwaysSet:r in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const p=[];for(const r of l){const a=await r.key,c=await r.value;p.push({key:a,value:c,alwaysSet:r.alwaysSet})}return p}).then(p=>St.mergeObjectSync(i,p)):St.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return Se.errToObj,new at({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var s,o,f,g;const l=(f=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,i).message)!==null&&f!==void 0?f:i.defaultError;return n.code==="unrecognized_keys"?{message:(g=Se.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:Le.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new at({...this._def,catchall:t})}pick(t){const n={};return He.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 He.objectKeys(this.shape).forEach(i=>{t[i]||(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}deepPartial(){return ui(this)}partial(t){const n={};return He.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 He.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])n[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof nn;)o=o._def.innerType;n[i]=o}}),new at({...this._def,shape:()=>n})}keyof(){return Zf(He.objectKeys(this.shape))}}at.create=(e,t)=>new at({shape:()=>e,unknownKeys:"strip",catchall:bn.create(),typeName:Le.ZodObject,...Pe(t)});at.strictCreate=(e,t)=>new at({shape:()=>e,unknownKeys:"strict",catchall:bn.create(),typeName:Le.ZodObject,...Pe(t)});at.lazycreate=(e,t)=>new at({shape:e,unknownKeys:"strip",catchall:bn.create(),typeName:Le.ZodObject,...Pe(t)});class vr extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function s(o){for(const g of o)if(g.result.status==="valid")return g.result;for(const g of o)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;const f=o.map(g=>new Dt(g.ctx.common.issues));return ve(n,{code:ae.invalid_union,unionErrors:f}),Re}if(n.common.async)return Promise.all(i.map(async o=>{const f={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:f}),ctx:f}})).then(s);{let o;const f=[];for(const l of i){const p={...n,common:{...n.common,issues:[]},parent:null},r=l._parseSync({data:n.data,path:n.path,parent:p});if(r.status==="valid")return r;r.status==="dirty"&&!o&&(o={result:r,ctx:p}),p.common.issues.length&&f.push(p.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const g=f.map(l=>new Dt(l));return ve(n,{code:ae.invalid_union,unionErrors:g}),Re}}get options(){return this._def.options}}vr.create=(e,t)=>new vr({options:e,typeName:Le.ZodUnion,...Pe(t)});const un=e=>e instanceof wr?un(e.schema):e instanceof Yt?un(e.innerType()):e instanceof _r?[e.value]:e instanceof Nn?e.options:e instanceof Sr?He.objectValues(e.enum):e instanceof xr?un(e._def.innerType):e instanceof gr?[void 0]:e instanceof mr?[null]:e instanceof nn?[void 0,...un(e.unwrap())]:e instanceof Dn?[null,...un(e.unwrap())]:e instanceof Wl||e instanceof $r?un(e.unwrap()):e instanceof Cr?un(e._def.innerType):[];class ho extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==be.object)return ve(n,{code:ae.invalid_type,expected:be.object,received:n.parsedType}),Re;const i=this.discriminator,s=n.data[i],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ve(n,{code:ae.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Re)}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 o of n){const f=un(o.shape[t]);if(!f.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const g of f){if(s.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);s.set(g,o)}}return new ho({typeName:Le.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...Pe(i)})}}function Ha(e,t){const n=dn(e),i=dn(t);if(e===t)return{valid:!0,data:e};if(n===be.object&&i===be.object){const s=He.objectKeys(t),o=He.objectKeys(e).filter(g=>s.indexOf(g)!==-1),f={...e,...t};for(const g of o){const l=Ha(e[g],t[g]);if(!l.valid)return{valid:!1};f[g]=l.data}return{valid:!0,data:f}}else if(n===be.array&&i===be.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const f=e[o],g=t[o],l=Ha(f,g);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===be.date&&i===be.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class yr extends Be{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),s=(o,f)=>{if(za(o)||za(f))return Re;const g=Ha(o.value,f.value);return g.valid?((ja(o)||ja(f))&&n.dirty(),{status:n.value,value:g.data}):(ve(i,{code:ae.invalid_intersection_types}),Re)};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(([o,f])=>s(o,f)):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}))}}yr.create=(e,t,n)=>new yr({left:e,right:t,typeName:Le.ZodIntersection,...Pe(n)});class an extends Be{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==be.array)return ve(i,{code:ae.invalid_type,expected:be.array,received:i.parsedType}),Re;if(i.data.length<this._def.items.length)return ve(i,{code:ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&i.data.length>this._def.items.length&&(ve(i,{code:ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...i.data].map((f,g)=>{const l=this._def.items[g]||this._def.rest;return l?l._parse(new on(i,f,i.path,g)):null}).filter(f=>!!f);return i.common.async?Promise.all(o).then(f=>St.mergeArray(n,f)):St.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new an({...this._def,rest:t})}}an.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new an({items:e,typeName:Le.ZodTuple,rest:null,...Pe(t)})};class br extends Be{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!==be.object)return ve(i,{code:ae.invalid_type,expected:be.object,received:i.parsedType}),Re;const s=[],o=this._def.keyType,f=this._def.valueType;for(const g in i.data)s.push({key:o._parse(new on(i,g,i.path,g)),value:f._parse(new on(i,i.data[g],i.path,g)),alwaysSet:g in i.data});return i.common.async?St.mergeObjectAsync(n,s):St.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof Be?new br({keyType:t,valueType:n,typeName:Le.ZodRecord,...Pe(i)}):new br({keyType:jt.create(),valueType:t,typeName:Le.ZodRecord,...Pe(n)})}}class Es extends Be{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!==be.map)return ve(i,{code:ae.invalid_type,expected:be.map,received:i.parsedType}),Re;const s=this._def.keyType,o=this._def.valueType,f=[...i.data.entries()].map(([g,l],p)=>({key:s._parse(new on(i,g,i.path,[p,"key"])),value:o._parse(new on(i,l,i.path,[p,"value"]))}));if(i.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const l of f){const p=await l.key,r=await l.value;if(p.status==="aborted"||r.status==="aborted")return Re;(p.status==="dirty"||r.status==="dirty")&&n.dirty(),g.set(p.value,r.value)}return{status:n.value,value:g}})}else{const g=new Map;for(const l of f){const p=l.key,r=l.value;if(p.status==="aborted"||r.status==="aborted")return Re;(p.status==="dirty"||r.status==="dirty")&&n.dirty(),g.set(p.value,r.value)}return{status:n.value,value:g}}}}Es.create=(e,t,n)=>new Es({valueType:t,keyType:e,typeName:Le.ZodMap,...Pe(n)});class ri extends Be{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==be.set)return ve(i,{code:ae.invalid_type,expected:be.set,received:i.parsedType}),Re;const s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(ve(i,{code:ae.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&i.data.size>s.maxSize.value&&(ve(i,{code:ae.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function f(l){const p=new Set;for(const r of l){if(r.status==="aborted")return Re;r.status==="dirty"&&n.dirty(),p.add(r.value)}return{status:n.value,value:p}}const g=[...i.data.values()].map((l,p)=>o._parse(new on(i,l,i.path,p)));return i.common.async?Promise.all(g).then(l=>f(l)):f(g)}min(t,n){return new ri({...this._def,minSize:{value:t,message:Se.toString(n)}})}max(t,n){return new ri({...this._def,maxSize:{value:t,message:Se.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ri.create=(e,t)=>new ri({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet,...Pe(t)});class wi extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==be.function)return ve(n,{code:ae.invalid_type,expected:be.function,received:n.parsedType}),Re;function i(g,l){return As({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),ki].filter(p=>!!p),issueData:{code:ae.invalid_arguments,argumentsError:l}})}function s(g,l){return As({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),ki].filter(p=>!!p),issueData:{code:ae.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},f=n.data;if(this._def.returns instanceof Ti){const g=this;return Mt(async function(...l){const p=new Dt([]),r=await g._def.args.parseAsync(l,o).catch(u=>{throw p.addIssue(i(l,u)),p}),a=await Reflect.apply(f,this,r);return await g._def.returns._def.type.parseAsync(a,o).catch(u=>{throw p.addIssue(s(a,u)),p})})}else{const g=this;return Mt(function(...l){const p=g._def.args.safeParse(l,o);if(!p.success)throw new Dt([i(l,p.error)]);const r=Reflect.apply(f,this,p.data),a=g._def.returns.safeParse(r,o);if(!a.success)throw new Dt([s(r,a.error)]);return a.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new wi({...this._def,args:an.create(t).rest(Zn.create())})}returns(t){return new wi({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new wi({args:t||an.create([]).rest(Zn.create()),returns:n||Zn.create(),typeName:Le.ZodFunction,...Pe(i)})}}class wr extends Be{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})}}wr.create=(e,t)=>new wr({getter:e,typeName:Le.ZodLazy,...Pe(t)});class _r extends Be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ve(n,{received:n.data,code:ae.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}}_r.create=(e,t)=>new _r({value:e,typeName:Le.ZodLiteral,...Pe(t)});function Zf(e,t){return new Nn({values:e,typeName:Le.ZodEnum,...Pe(t)})}class Nn extends Be{constructor(){super(...arguments),Vi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ve(n,{expected:He.joinValues(i),received:n.parsedType,code:ae.invalid_type}),Re}if(ks(this,Vi)||Vf(this,Vi,new Set(this._def.values)),!ks(this,Vi).has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ve(n,{received:n.data,code:ae.invalid_enum_value,options:i}),Re}return Mt(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 Nn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Nn.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}Vi=new WeakMap;Nn.create=Zf;class Sr extends Be{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=He.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==be.string&&i.parsedType!==be.number){const s=He.objectValues(n);return ve(i,{expected:He.joinValues(s),received:i.parsedType,code:ae.invalid_type}),Re}if(ks(this,Gi)||Vf(this,Gi,new Set(He.getValidEnumValues(this._def.values))),!ks(this,Gi).has(t.data)){const s=He.objectValues(n);return ve(i,{received:i.data,code:ae.invalid_enum_value,options:s}),Re}return Mt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;Sr.create=(e,t)=>new Sr({values:e,typeName:Le.ZodNativeEnum,...Pe(t)});class Ti extends Be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==be.promise&&n.common.async===!1)return ve(n,{code:ae.invalid_type,expected:be.promise,received:n.parsedType}),Re;const i=n.parsedType===be.promise?n.data:Promise.resolve(n.data);return Mt(i.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ti.create=(e,t)=>new Ti({type:e,typeName:Le.ZodPromise,...Pe(t)});class Yt extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:f=>{ve(i,f),f.fatal?n.abort():n.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const f=s.transform(i.data,o);if(i.common.async)return Promise.resolve(f).then(async g=>{if(n.value==="aborted")return Re;const l=await this._def.schema._parseAsync({data:g,path:i.path,parent:i});return l.status==="aborted"?Re:l.status==="dirty"||n.value==="dirty"?fi(l.value):l});{if(n.value==="aborted")return Re;const g=this._def.schema._parseSync({data:f,path:i.path,parent:i});return g.status==="aborted"?Re:g.status==="dirty"||n.value==="dirty"?fi(g.value):g}}if(s.type==="refinement"){const f=g=>{const l=s.refinement(g,o);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"?Re:(g.status==="dirty"&&n.dirty(),f(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"?Re:(g.status==="dirty"&&n.dirty(),f(g.value).then(()=>({status:n.value,value:g.value}))))}if(s.type==="transform")if(i.common.async===!1){const f=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!ni(f))return f;const g=s.transform(f.value,o);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(f=>ni(f)?Promise.resolve(s.transform(f.value,o)).then(g=>({status:n.value,value:g})):f);He.assertNever(s)}}Yt.create=(e,t,n)=>new Yt({schema:e,typeName:Le.ZodEffects,effect:t,...Pe(n)});Yt.createWithPreprocess=(e,t,n)=>new Yt({schema:t,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects,...Pe(n)});class nn extends Be{_parse(t){return this._getType(t)===be.undefined?Mt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nn.create=(e,t)=>new nn({innerType:e,typeName:Le.ZodOptional,...Pe(t)});class Dn extends Be{_parse(t){return this._getType(t)===be.null?Mt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Dn.create=(e,t)=>new Dn({innerType:e,typeName:Le.ZodNullable,...Pe(t)});class xr extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===be.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}xr.create=(e,t)=>new xr({innerType:e,typeName:Le.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Pe(t)});class Cr extends Be{_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 fr(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Dt(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Dt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Cr.create=(e,t)=>new Cr({innerType:e,typeName:Le.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Pe(t)});class Ls extends Be{_parse(t){if(this._getType(t)!==be.nan){const i=this._getOrReturnCtx(t);return ve(i,{code:ae.invalid_type,expected:be.nan,received:i.parsedType}),Re}return{status:"valid",value:t.data}}}Ls.create=e=>new Ls({typeName:Le.ZodNaN,...Pe(e)});const R_=Symbol("zod_brand");class Wl extends Be{_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 Wr extends Be{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?Re:o.status==="dirty"?(n.dirty(),fi(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const s=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?Re: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 Wr({in:t,out:n,typeName:Le.ZodPipeline})}}class $r extends Be{_parse(t){const n=this._def.innerType._parse(t),i=s=>(ni(s)&&(s.value=Object.freeze(s.value)),s);return fr(n)?n.then(s=>i(s)):i(n)}unwrap(){return this._def.innerType}}$r.create=(e,t)=>new $r({innerType:e,typeName:Le.ZodReadonly,...Pe(t)});function Xf(e,t={},n){return e?Mi.create().superRefine((i,s)=>{var o,f;if(!e(i)){const g=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,l=(f=(o=g.fatal)!==null&&o!==void 0?o:n)!==null&&f!==void 0?f:!0,p=typeof g=="string"?{message:g}:g;s.addIssue({code:"custom",...p,fatal:l})}}):Mi.create()}const O_={object:at.lazycreate};var Le;(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"})(Le||(Le={}));const I_=(e,t={message:`Input not instance of ${e.name}`})=>Xf(n=>n instanceof e,t),Qf=jt.create,qf=On.create,N_=Ls.create,D_=In.create,Jf=pr.create,F_=ii.create,P_=Ms.create,W_=gr.create,B_=mr.create,z_=Mi.create,j_=Zn.create,H_=bn.create,U_=Ts.create,V_=Vt.create,G_=at.create,Y_=at.strictCreate,K_=vr.create,Z_=ho.create,X_=yr.create,Q_=an.create,q_=br.create,J_=Es.create,eS=ri.create,tS=wi.create,nS=wr.create,iS=_r.create,rS=Nn.create,sS=Sr.create,oS=Ti.create,Ru=Yt.create,aS=nn.create,lS=Dn.create,cS=Yt.createWithPreprocess,uS=Wr.create,hS=()=>Qf().optional(),dS=()=>qf().optional(),fS=()=>Jf().optional(),pS={string:e=>jt.create({...e,coerce:!0}),number:e=>On.create({...e,coerce:!0}),boolean:e=>pr.create({...e,coerce:!0}),bigint:e=>In.create({...e,coerce:!0}),date:e=>ii.create({...e,coerce:!0})},gS=Re;var te=Object.freeze({__proto__:null,defaultErrorMap:ki,setErrorMap:c_,getErrorMap:$s,makeIssue:As,EMPTY_PATH:u_,addIssueToContext:ve,ParseStatus:St,INVALID:Re,DIRTY:fi,OK:Mt,isAborted:za,isDirty:ja,isValid:ni,isAsync:fr,get util(){return He},get objectUtil(){return Ba},ZodParsedType:be,getParsedType:dn,ZodType:Be,datetimeRegex:Kf,ZodString:jt,ZodNumber:On,ZodBigInt:In,ZodBoolean:pr,ZodDate:ii,ZodSymbol:Ms,ZodUndefined:gr,ZodNull:mr,ZodAny:Mi,ZodUnknown:Zn,ZodNever:bn,ZodVoid:Ts,ZodArray:Vt,ZodObject:at,ZodUnion:vr,ZodDiscriminatedUnion:ho,ZodIntersection:yr,ZodTuple:an,ZodRecord:br,ZodMap:Es,ZodSet:ri,ZodFunction:wi,ZodLazy:wr,ZodLiteral:_r,ZodEnum:Nn,ZodNativeEnum:Sr,ZodPromise:Ti,ZodEffects:Yt,ZodTransformer:Yt,ZodOptional:nn,ZodNullable:Dn,ZodDefault:xr,ZodCatch:Cr,ZodNaN:Ls,BRAND:R_,ZodBranded:Wl,ZodPipeline:Wr,ZodReadonly:$r,custom:Xf,Schema:Be,ZodSchema:Be,late:O_,get ZodFirstPartyTypeKind(){return Le},coerce:pS,any:z_,array:V_,bigint:D_,boolean:Jf,date:F_,discriminatedUnion:Z_,effect:Ru,enum:rS,function:tS,instanceof:I_,intersection:X_,lazy:nS,literal:iS,map:J_,nan:N_,nativeEnum:sS,never:H_,null:B_,nullable:lS,number:qf,object:G_,oboolean:fS,onumber:dS,optional:aS,ostring:hS,pipeline:uS,preprocess:cS,promise:oS,record:q_,set:eS,strictObject:Y_,string:Qf,symbol:P_,transformer:Ru,tuple:Q_,undefined:W_,union:K_,unknown:j_,void:U_,NEVER:gS,ZodIssueCode:ae,quotelessJson:l_,ZodError:Dt});const fo=te.object({total:te.number(),currentPage:te.number(),pageSize:te.number()}),mS=te.object({key:te.string(),value:te.string().nullish()}),vS=te.object({name:te.string(),configured:te.boolean(),items:te.array(mS).nullish(),type:te.string()}),yS=te.object({results:te.array(vS)}),po=te.object({id:te.number(),name:te.string()}),bS=fo.extend({results:te.array(po)}),wS=te.object({resource:te.string(),value:te.string()}),Ou=te.object({name:te.string().nullish()}),_S=te.object({createdOn:te.string().nullish(),updatedOn:te.string().nullish(),expiresOn:te.string().nullish(),registrar:Ou.nullish(),contacts:te.array(Ou)}),SS=te.object({number:te.number()}),xS=te.object({country:te.string(),countryCode:te.string()}),CS=te.object({name:te.string()}),$S=te.object({name:te.string()}),AS=te.object({name:te.string()}),kS=te.object({number:te.number()}),Bl=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:SS.nullish(),whoisRecord:_S.nullish(),geolocation:xS.nullish(),dnsRecords:te.array(wS).nullish(),reverseDnsNames:te.array(CS).nullish(),cpes:te.array($S).nullish(),ports:te.array(kS).nullish(),vulnerabilities:te.array(AS).nullish(),tags:te.array(po)}),ep=te.object({id:te.number(),ruleId:te.string(),createdAt:te.string(),tags:te.array(po),artifacts:te.array(Bl)}),MS=fo.extend({results:te.array(ep)});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 as=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 TS=fo.extend({results:te.array(as)}),ES=fo.extend({results:te.array(Bl)}),tp=te.object({message:te.string()});tp.extend({detail:te.any().nullish()});const Iu=tp.extend({queued:te.boolean()});te.union([te.literal("Alerts"),te.literal("Rules"),te.literal("Artifacts")]);const dt=nt.create(),Ct={async getConfigs(){const e=await dt.get("/api/configs");return yS.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await dt.get("/api/alerts",{params:e});return MS.parse(t.data)},async getAlert(e){const t=await dt.get(`/api/alerts/${e}`);return ep.parse(t.data)},async getTags(){const e=await dt.get("/api/tags");return bS.parse(e.data)},async deleteAlert(e){await dt.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await dt.get(`/api/artifacts/${e}`);return Bl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await dt.get("/api/artifacts",{params:e});return ES.parse(t.data)},async enrichArtifact(e){const t=await dt.post(`/api/artifacts/${e}/enrich`);return Iu.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 TS.parse(t.data)},async getRule(e){const t=await dt.get(`/api/rules/${e}`);return as.parse(t.data)},async searchRule(e){const t=await dt.post(`/api/rules/${e}/search`);return Iu.parse(t.data)},async createRule(e){const t=await dt.post("/api/rules/",e);return as.parse(t.data)},async updateRule(e){const t=await dt.put("/api/rules/",e);return as.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 xt(async(e,t)=>await Ct.getAlerts(t))}function LS(){return xt(async(e,t)=>await Ct.deleteAlert(t))}function RS(){return xt(async(e,t)=>await Ct.deleteTag(t))}function OS(){return xt(async(e,t)=>await Ct.getArtifact(t))}function np(){return xt(async(e,t)=>await Ct.deleteArtifact(t))}function IS(){return xt(async(e,t)=>await Ct.enrichArtifact(t))}function NS(){return xt(async()=>await Ct.getConfigs())}function DS(){return xt(async(e,t)=>await Ct.getIpInfo(t))}function ip(){return xt(async(e,t)=>await Ct.getRules(t))}function rp(){return xt(async(e,t)=>await Ct.getRule(t))}function FS(){return xt(async(e,t)=>await Ct.deleteRule(t))}function PS(){return xt(async(e,t)=>await Ct.searchRule(t))}function WS(){return xt(async(e,t)=>await Ct.createRule(t))}function BS(){return xt(async(e,t)=>await Ct.updateRule(t))}function zl(){return xt(async(e,t)=>await Ct.getArtifacts(t))}function zS(){return xt(async(e,t)=>await Ct.getAlert(t))}const jS={class:"buttons is-pulled-right"},HS=["href"],US={class:"icon is-small"},VS={class:"icon is-small"},sp=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}`),o=LS(),f=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await o.perform(n.alert.id),i("delete")}catch(l){nt.isAxiosError(l)&&i("set-error",l)}};return(g,l)=>{const p=Qe("font-awesome-icon");return Y(),ie("span",jS,[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",US,[se(p,{icon:"barcode"})])],8,HS),D("button",{class:"button is-light is-small",onClick:f},[l[1]||(l[1]=D("span",null,"Delete",-1)),D("span",VS,[se(p,{icon:"times"})])])])}}});var Ar=GS;function GS(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const YS={key:0,class:"control"},KS=Ce({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,s=Ue(!1),o=Ue(!1),f=np(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await f.perform(n.artifact.id),s.value=!0,i("delete"))},l=()=>{o.value=!0},p=()=>{o.value=!1};return(r,a)=>{const c=Qe("router-link");return s.value?me("",!0):(Y(),ie("div",YS,[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:it(()=>[rt(_e(he(Ar)(e.artifact.data,32)),1)]),_:1},8,["to"]),o.value?(Y(),ie("span",{key:0,class:"tag is-delete",onClick:g})):me("",!0)],32)]))}}}),ZS={class:"field is-grouped is-grouped-multiline"},op=Ce({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,s=Ue(0),o=()=>{s.value+=1};return et(s,()=>{s.value>=n.artifacts.length&&i("delete")}),(f,g)=>(Y(),ie("div",ZS,[(Y(!0),ie(We,null,Ft(e.artifacts,l=>(Y(),xe(KS,{key:l.id,artifact:l,onDelete:o},null,8,["artifact"]))),128))]))}});var Rs={d:(e,t)=>{for(var n in t)Rs.o(t,n)&&!Rs.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ap={};function Ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function lp(e,t){if(e){if(typeof e=="string")return Ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ua(e,t):void 0}}function Os(e){return function(t){if(Array.isArray(t))return Ua(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||lp(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
599
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Is(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Rs.d(ap,{Z:()=>ex});const Ee=(Nu={computed:()=>ke,createTextVNode:()=>rt,createVNode:()=>se,defineComponent:()=>Ce,reactive:()=>Ri,ref:()=>Ue,watch:()=>et,watchEffect:()=>Cl},Yo={},Rs.d(Yo,Nu),Yo),XS=(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])}}),QS=(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)])}}),qS=(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 Nu,Yo;function Va(e){return Va=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},Va(e)}function cp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Un(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||{},o=s.key,f=s.index,g=s.type,l=g===void 0?"content":g,p=s.showComma,r=p!==void 0&&p,a=s.length,c=a===void 0?1:a,u=cp(e);if(u==="array"){var h=Du(e.map(function(b,y,$){return Un(b,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==$.length-1,length:c,type:l})}));return[Un("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(h,Un("]",t,n,{showComma:r,length:e.length,type:"arrayEnd"})[0])}if(u==="object"){var d=Object.keys(e),m=Du(d.map(function(b,y,$){return Un(e[b],/^[a-zA-Z_]\w*$/.test(b)?"".concat(t,".").concat(b):"".concat(t,'["').concat(b,'"]'),n+1,{key:b,showComma:y!==$.length-1,length:c,type:l})}));return[Un("{",t,n,{showComma:!1,key:o,index:f,length:d.length,type:"objectStart"})[0]].concat(m,Un("}",t,n,{showComma:r,length:d.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:f,path:t,showComma:r,length:c,type:l}]}function Du(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Os(e),n=[];t.length;){var i=t.shift();Array.isArray(i)?t.unshift.apply(t,Os(i)):n.push(i)}return n}function Ga(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(Va(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return Ga(o,t)});return t.set(e,n),n}var i={};for(var s in e)i[s]=Ga(e[s],t);return t.set(e,i),i}function Fu(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 Pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fu(Object(n),!0).forEach(function(i){Is(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var up={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const JS=(0,Ee.defineComponent)({name:"TreeNode",props:Pu(Pu({},up),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,i=(0,Ee.computed)(function(){return cp(e.node.content)}),s=(0,Ee.computed)(function(){return"vjs-value vjs-value-".concat(i.value)}),o=(0,Ee.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),f=(0,Ee.computed)(function(){return e.selectableType==="multiple"}),g=(0,Ee.computed)(function(){return e.selectableType==="single"}),l=(0,Ee.computed)(function(){return e.nodeSelectable(e.node)&&(f.value||g.value)}),p=(0,Ee.reactive)({editing:!1}),r=function(y){var $,S,_=(S=($=y.target)===null||$===void 0?void 0:$.value)==="null"?null:S==="undefined"?void 0:S==="true"||S!=="false"&&(S[0]+S[S.length-1]==='""'||S[0]+S[S.length-1]==="''"?S.slice(1,-1):typeof Number(S)=="number"&&!isNaN(Number(S))||S==="NaN"?Number(S):S);n("valueChange",_,e.node.path)},a=(0,Ee.computed)(function(){var y,$=(y=e.node)===null||y===void 0?void 0:y.content;return $===null?$="null":$===void 0&&($="undefined"),i.value==="string"?'"'.concat($,'"'):$+""}),c=function(){var y=e.renderNodeValue;return y?y({node:e.node,defaultValue:a.value}):a.value},u=function(){n("bracketsClick",!e.collapsed,e.node)},h=function(){n("iconClick",!e.collapsed,e.node)},d=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},b=function(y){if(e.editable&&!p.editing){p.editing=!0;var $=function S(_){var w;_.target!==y.target&&((w=_.target)===null||w===void 0?void 0:w.parentElement)!==y.target&&(p.editing=!1,document.removeEventListener("click",S))};document.removeEventListener("click",$),document.addEventListener("click",$)}};return function(){var y,$=e.node;return(0,Ee.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,style:e.style},[e.showLineNumber&&(0,Ee.createVNode)("span",{class:"vjs-node-index"},[$.id+1]),e.showSelectController&&l.value&&$.type!=="objectEnd"&&$.type!=="arrayEnd"&&(0,Ee.createVNode)(QS,{isMultiple:f.value,checked:e.checked,onChange:d},null),(0,Ee.createVNode)("div",{class:"vjs-indent"},[Array.from(Array($.level)).map(function(S,_){return(0,Ee.createVNode)("div",{key:_,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,Ee.createVNode)(qS,{nodeType:$.type,onClick:h},null)]),$.key&&(0,Ee.createVNode)("span",{class:"vjs-key"},[(y=e.renderNodeKey,y?y({node:e.node,defaultKey:o.value||""}):o.value),(0,Ee.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,Ee.createVNode)("span",null,[$.type!=="content"&&$.content?(0,Ee.createVNode)(XS,{data:$.content.toString(),onClick:u},null):(0,Ee.createVNode)("span",{class:s.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:b,onDblclick:e.editable&&e.editableTrigger==="dblclick"?b:void 0},[e.editable&&p.editing?(0,Ee.createVNode)("input",{value:a.value,onChange:r,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):c()]),$.showComma&&(0,Ee.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,Ee.createVNode)("span",{class:"vjs-comment"},[(0,Ee.createTextVNode)(" // "),$.length,(0,Ee.createTextVNode)(" items ")])])])}}});function Wu(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 Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wu(Object(n),!0).forEach(function(i){Is(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}const ex=(0,Ee.defineComponent)({name:"Tree",props:Rt(Rt({},up),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,i=t.slots,s=(0,Ee.ref)(),o=(0,Ee.computed)(function(){return Un(e.data,e.rootPath)}),f=function($,S){return o.value.reduce(function(_,w){var A,L=w.level>=$||w.length>=S,E=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,w);return w.type!=="objectStart"&&w.type!=="arrayStart"||!L&&!E?_:Rt(Rt({},_),{},Is({},w.path,1))},{})},g=(0,Ee.reactive)({translateY:0,visibleData:null,hiddenPaths:f(e.deep,e.collapsedNodeLength)}),l=(0,Ee.computed)(function(){for(var $=null,S=[],_=o.value.length,w=0;w<_;w++){var A=Rt(Rt({},o.value[w]),{},{id:w}),L=g.hiddenPaths[A.path];if($&&$.path===A.path){var E=$.type==="objectStart",M=Rt(Rt(Rt({},A),$),{},{showComma:A.showComma,content:E?"{...}":"[...]",type:E?"objectCollapsed":"arrayCollapsed"});$=null,S.push(M)}else{if(L&&!$){$=A;continue}if($)continue;S.push(A)}}return S}),p=(0,Ee.computed)(function(){var $=e.selectedValue;return $&&e.selectableType==="multiple"&&Array.isArray($)?$:[$]}),r=(0,Ee.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),a=function(){var $=l.value;if(e.virtual){var S,_=e.height/e.itemHeight,w=((S=s.value)===null||S===void 0?void 0:S.scrollTop)||0,A=Math.floor(w/e.itemHeight),L=A<0?0:A+_>$.length?$.length-_:A;L<0&&(L=0);var E=L+_;g.translateY=L*e.itemHeight,g.visibleData=$.filter(function(M,O){return O>=L&&O<E})}else g.visibleData=$},c=function(){a()},u=function($){var S,_,w=$.path,A=e.selectableType;if(A==="multiple"){var L=p.value.findIndex(function(C){return C===w}),E=Os(p.value);L!==-1?E.splice(L,1):E.push(w),n("update:selectedValue",E),n("selectedChange",E,Os(p.value))}else if(A==="single"&&p.value[0]!==w){var M=(S=p.value,_=1,function(C){if(Array.isArray(C))return C}(S)||function(C,v){var x=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(x!=null){var k,T,R=[],I=!0,N=!1;try{for(x=x.call(C);!(I=(k=x.next()).done)&&(R.push(k.value),!v||R.length!==v);I=!0);}catch(F){N=!0,T=F}finally{try{I||x.return==null||x.return()}finally{if(N)throw T}}return R}}(S,_)||lp(S,_)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
600
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],O=w;n("update:selectedValue",O),n("selectedChange",O,M)}},h=function($){n("nodeClick",$)},d=function($,S){if($)g.hiddenPaths=Rt(Rt({},g.hiddenPaths),{},Is({},S,1));else{var _=Rt({},g.hiddenPaths);delete _[S],g.hiddenPaths=_}},m=function($,S){e.collapsedOnClickBrackets&&d($,S.path),n("bracketsClick",$,S)},b=function($,S){d($,S.path),n("iconClick",$,S)},y=function($,S){var _=Ga(e.data),w=e.rootPath;new Function("data","val","data".concat(S.slice(w.length),"=val"))(_,$),n("update:data",_)};return(0,Ee.watchEffect)(function(){r.value&&function($){throw new Error("[VueJSONPretty] ".concat($))}(r.value)}),(0,Ee.watchEffect)(function(){l.value&&a()}),(0,Ee.watch)(function(){return e.deep},function($){$&&(g.hiddenPaths=f($,e.collapsedNodeLength))}),(0,Ee.watch)(function(){return e.collapsedNodeLength},function($){$&&(g.hiddenPaths=f(e.deep,$))}),function(){var $,S,_=($=e.renderNodeKey)!==null&&$!==void 0?$:i.renderNodeKey,w=(S=e.renderNodeValue)!==null&&S!==void 0?S:i.renderNodeValue,A=g.visibleData&&g.visibleData.map(function(L){return(0,Ee.createVNode)(JS,{key:L.id,node:L,collapsed:!!g.hiddenPaths[L.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:p.value.includes(L.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:_,renderNodeValue:w,onNodeClick:h,onBracketsClick:m,onIconClick:b,onSelectedChange:u,onValueChange:y,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,Ee.createVNode)("div",{ref:s,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?c:void 0,style:e.showLineNumber?Rt({paddingLeft:"".concat(12*Number(o.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,Ee.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,Ee.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,Ee.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[A])])]):A])}}});var hp=ap.Z;const tx={class:"notification is-danger is-light"},nx={key:1},ix={key:2},rx={key:0,class:"message"},sx={class:"message-body"},mt=Ce({__name:"ErrorMessage",props:{error:{type:a_,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,i=t,s=ke(()=>{var f;if(n.error.response)return(f=n.error.response)==null?void 0:f.data}),o=()=>{i("dispose")};return(f,g)=>{var l;return Y(),ie(We,null,[D("div",tx,[e.disposable?(Y(),ie("button",{key:0,class:"delete",onClick:o})):me("",!0),s.value?(Y(),ie("p",nx,_e(s.value.message),1)):(Y(),ie("p",ix,_e(e.error),1))]),(l=s.value)!=null&&l.detail?(Y(),ie("article",rx,[D("div",sx,[se(he(hp),{data:s.value.detail},null,8,["data"])])])):me("",!0)],64)}}}),ox={key:0,class:"control"},ax=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=Ue(!1),i=Ue(!1),s=RS(),o=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)},f=()=>{i.value=!0},g=()=>{i.value=!1},l=p=>`tag:"${p}"`;return(p,r)=>{const a=Qe("router-link");return n.value?me("",!0):(Y(),ie("div",ox,[D("div",{class:"tags has-addons are-medium",onMouseover:f,onMouseleave:g},[se(a,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:l(e.tag.name)}}},{default:it(()=>[rt(_e(e.tag.name),1)]),_:1},8,["to"]),i.value&&e.deletable?(Y(),ie("a",{key:0,class:"tag is-delete",onClick:o})):me("",!0)],32)]))}}}),lx={class:"field is-grouped is-grouped-multiline"},Br=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",lx,[(Y(!0),ie(We,null,Ft(e.tags,i=>(Y(),xe(ax,{tag:i,key:i.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),cx={key:0,class:"box"},ux={class:"table is-fullwidth is-completely-borderless"},hx={key:0},dx={class:"help"},fx=Ce({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(!1),s=Ue(),o=p=>{s.value=p},f=()=>{s.value=void 0},g=()=>{n("delete")},l=()=>{i.value=!0};return(p,r)=>{const a=Qe("router-link");return i.value?me("",!0):(Y(),ie("div",cx,[s.value?(Y(),xe(mt,{key:0,class:"block",error:s.value,disposable:!0,onDispose:f},null,8,["error"])):me("",!0),D("p",null,[se(sp,{alert:e.alert,onDelete:g,onSetError:o},null,8,["alert"])]),se(a,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:it(()=>[rt(_e(e.alert.id),1)]),_:1},8,["to"]),D("table",ux,[D("tr",null,[r[0]||(r[0]=D("th",null,"Rule",-1)),D("td",null,[se(a,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:it(()=>[rt(_e(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[r[1]||(r[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(op,{artifacts:e.alert.artifacts,onDelete:l},null,8,["artifacts"])])]),e.alert.tags.length>0?(Y(),ie("tr",hx,[r[2]||(r[2]=D("th",null,"Tags",-1)),D("td",null,[se(Br,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):me("",!0)]),D("p",dx,"Created at: "+_e(e.alert.createdAt),1)]))}}}),px={key:0,class:"message is-warning"},gx={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},mx={key:0,class:"pagination-list"},vx={key:1,class:"pagination-list"},yx={key:0},bx={key:1},wx={key:2},_x={key:3},Sx={key:4},xx={key:5},jl=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,o=ke(()=>Math.ceil(n.total/n.pageSize)),f=ke(()=>o.value===1),g=ke(()=>n.currentPage>1),l=ke(()=>n.currentPage-1===1),p=ke(()=>n.currentPage<o.value),r=ke(()=>n.currentPage+1===o.value),a=c=>{i("update-page",c)};return(c,u)=>e.total===0?(Y(),ie("article",px,u[6]||(u[6]=[D("div",{class:"message-body"},"There is no result to show.",-1)]))):(Y(),ie("nav",gx,[f.value?(Y(),ie("ul",mx,[D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:u[0]||(u[0]=h=>a(1))},"1")])])):(Y(),ie("ul",vx,[g.value&&!l.value?(Y(),ie("li",yx,[D("a",{class:"pagination-link mt-2",onClick:u[1]||(u[1]=h=>a(1))}," 1")])):me("",!0),g.value&&!l.value&&!s(2)?(Y(),ie("li",bx,u[7]||(u[7]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):me("",!0),g.value?(Y(),ie("li",wx,[D("a",{class:"pagination-link mt-2",onClick:u[2]||(u[2]=h=>a(e.currentPage-1))},_e(e.currentPage-1),1)])):me("",!0),D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:u[3]||(u[3]=h=>a(e.currentPage))},_e(e.currentPage),1)]),p.value?(Y(),ie("li",_x,[D("a",{class:"pagination-link mt-2",onClick:u[4]||(u[4]=h=>a(e.currentPage+1))},_e(e.currentPage+1),1)])):me("",!0),p.value&&!r.value&&!s(o.value-1)?(Y(),ie("li",Sx,u[8]||(u[8]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):me("",!0),p.value&&!r.value?(Y(),ie("li",xx,[D("a",{class:"pagination-link mt-2",onClick:u[5]||(u[5]=h=>a(o.value))},_e(o.value),1)])):me("",!0)]))]))}}),Cx={key:0},$x={class:"help"},Ax={key:1},dp=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)},o=()=>{i("refresh")},f=ke(()=>n.alerts.results.length>0);return(g,l)=>f.value?(Y(),ie("div",Cx,[(Y(!0),ie(We,null,Ft(e.alerts.results,p=>(Y(),xe(fx,{alert:p,key:p.id,onDelete:o},null,8,["alert"]))),128)),se(jl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:s},null,8,["total","currentPage","pageSize"]),D("p",$x,"("+_e(e.alerts.total)+" results in total, "+_e(e.alerts.results.length)+" shown)",1)])):(Y(),ie("div",Ax,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),kx=Ce({name:"LoadingItem"}),Mx={class:"has-text-centered"},Tx={class:"fa-3x"};function Ex(e,t,n,i,s,o){const f=Qe("font-awesome-icon");return Y(),ie("div",Mx,[D("div",Tx,[se(f,{icon:"spinner",spin:""})])])}const xn=Nr(kx,[["render",Ex]]),Lx={class:"block"},Rx={class:"field has-addons"},Ox={class:"control is-expanded"},Ix={class:"control"},Nx={class:"icon is-small"},Dx={class:"control"},Fx={class:"icon is-small"},Px={key:0,class:"content"},Wx={key:0,class:"block"},Bx=Ce({__name:"AlertsWrapper",setup(e){const t=Ai("page","1"),n=Ai("q",""),i=Ue(!1),s=go(),o=async()=>{const r={q:n.value,page:parseInt(t.value)};return await s.perform(r)},f=r=>{t.value=r.toString()},g=async()=>{t.value="1",await o()},l=g,p=Ir(i);return ct(async()=>{await o()}),et(t,async()=>{await o()}),et(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(r,a)=>{var h,d;const c=Qe("font-awesome-icon"),u=Qe("router-link");return Y(),ie(We,null,[D("div",Lx,[D("div",Rx,[D("p",Ox,[bl(D("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=m=>lt(n)?n.value=m:null)},null,512),[[Tl,he(n)]])]),D("p",Ix,[D("a",{class:"button is-primary",onClick:g},[D("span",Nx,[se(c,{icon:"search"})]),a[2]||(a[2]=D("span",null,"Search",-1))])]),D("p",Dx,[D("a",{class:"button is-info",onClick:a[1]||(a[1]=m=>he(p)())},[D("span",Fx,[se(c,{icon:"question"})]),a[3]||(a[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",Px,[a[6]||(a[6]=Al('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),D("ul",null,[D("li",null,[se(u,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:it(()=>a[4]||(a[4]=[rt("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:it(()=>a[5]||(a[5]=[rt("tag:foo AND created_at >= 2020-01-01")])),_:1})])])])):me("",!0)]),he(s).performCount>0?(Y(),ie("div",Wx,[he(s).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(s).isError?(Y(),xe(mt,{key:1,error:(h=he(s).last)==null?void 0:h.error},null,8,["error"])):me("",!0),(d=he(s).last)!=null&&d.value?(Y(),xe(dp,{key:2,alerts:he(s).last.value,page:he(t),onUpdatePage:f,onRefresh:he(l)},null,8,["alerts","page","onRefresh"])):me("",!0)])):me("",!0)],64)}}}),zx={class:"columns"},jx={class:"column is-one-third"},Hx={class:"card"},Ux={class:"card-content"},Vx={class:"level is-mobile"},Gx={class:"level-item"},Yx={class:"title"},Kx={class:"level-item"},Zx={class:"icon"},Xx={class:"column is-one-third"},Qx={class:"card"},qx={class:"card-content"},Jx={class:"level is-mobile"},eC={class:"level-item"},tC={class:"title"},nC={class:"level-item"},iC={class:"icon"},rC={class:"column is-one-third"},sC={class:"card"},oC={class:"card-content"},aC={class:"level is-mobile"},lC={class:"level-item"},cC={class:"title"},uC={class:"level-item"},hC={class:"icon"},dC=Ce({__name:"OverviewCards",setup(e){const t=go(),n=ip(),i=zl();return ct(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),i.perform({q:"",page:1,limit:0})}),(s,o)=>{var g,l,p,r,a,c;const f=Qe("font-awesome-icon");return Y(),ie("div",zx,[D("div",jx,[D("div",Hx,[D("div",Ux,[D("div",Vx,[D("div",Gx,[D("div",null,[o[0]||(o[0]=D("h3",{class:"subtitle is-spaced"},"Rules",-1)),D("h1",Yx,_e(((l=(g=he(n).last)==null?void 0:g.value)==null?void 0:l.total)??"N/A"),1)])]),D("div",Kx,[D("span",Zx,[se(f,{icon:"file",size:"2x"})])])])])])]),D("div",Xx,[D("div",Qx,[D("div",qx,[D("div",Jx,[D("div",eC,[D("div",null,[o[1]||(o[1]=D("h3",{class:"subtitle is-spaced"},"Alerts",-1)),D("h1",tC,_e(((r=(p=he(t).last)==null?void 0:p.value)==null?void 0:r.total)??"N/A"),1)])]),D("div",nC,[D("span",iC,[se(f,{icon:"bell",size:"2x"})])])])])])]),D("div",rC,[D("div",sC,[D("div",oC,[D("div",aC,[D("div",lC,[D("div",null,[o[2]||(o[2]=D("h3",{class:"subtitle is-spaced"},"Artifacts",-1)),D("h1",cC,_e(((c=(a=he(i).last)==null?void 0:a.value)==null?void 0:c.total)??"N/A"),1)])]),D("div",uC,[D("span",hC,[se(f,{icon:"ticket",size:"2x"})])])])])])])])}}}),fC=Ce({__name:"AlertsView",setup(e){return Sn("Alerts - Mihari"),(t,n)=>(Y(),ie(We,null,[se(dC),n[0]||(n[0]=D("hr",null,null,-1)),se(Bx)],64))}}),fp=Ce({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=Ue(1),i=ke(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),s=go(),o=async()=>{const g={q:i.value,page:n.value};return await s.perform(g)},f=g=>{n.value=g};return ct(async()=>{await o()}),et([t,n],async()=>{await o()}),(g,l)=>{var p,r;return Y(),ie(We,null,[he(s).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(s).isError?(Y(),xe(mt,{key:1,error:(p=he(s).last)==null?void 0:p.error},null,8,["error"])):me("",!0),(r=he(s).last)!=null&&r.value?(Y(),xe(dp,{key:2,page:n.value.toString(),alerts:he(s).last.value,onUpdatePage:f},null,8,["page","alerts"])):me("",!0)],64)}}}),pC={class:"block"},gC={class:"is-size-2"},mC={class:"is-clearfix"},vC={class:"table is-fullwidth is-completely-borderless"},yC={key:0},bC={class:"help"},wC={class:"block"},_C=Ce({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(),s=l=>{i.value=l},o=()=>{i.value=void 0},f=()=>{n("delete")},g=f;return(l,p)=>{const r=Qe("router-link");return Y(),ie(We,null,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:o},null,8,["error"])):me("",!0),D("div",pC,[D("h2",gC,_e(e.alert.id),1),D("p",mC,[se(sp,{alert:e.alert,onDelete:f,onSetError:s},null,8,["alert"])]),D("table",vC,[D("tr",null,[p[0]||(p[0]=D("th",null,"Rule",-1)),D("td",null,[se(r,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:it(()=>[rt(_e(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[p[1]||(p[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(op,{artifacts:e.alert.artifacts,onDelete:he(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Y(),ie("tr",yC,[p[2]||(p[2]=D("th",null,"Tags",-1)),D("td",null,[se(Br,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):me("",!0)]),D("p",bC,"Created at: "+_e(e.alert.createdAt),1)]),p[4]||(p[4]=D("hr",null,null,-1)),D("div",wC,[p[3]||(p[3]=D("h2",{class:"is-size-2 block"},"Related Alerts",-1)),se(fp,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),SC=Ce({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=Oi(),i=zS(),s=()=>{n.push("/")};return ct(async()=>{await i.perform(t.id)}),(o,f)=>{var g,l;return Y(),ie(We,null,[he(i).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(i).isError?(Y(),xe(mt,{key:1,error:(g=he(i).last)==null?void 0:g.error},null,8,["error"])):me("",!0),(l=he(i).last)!=null&&l.value?(Y(),xe(_C,{key:2,alert:he(i).last.value,onDelete:s},null,8,["alert"])):me("",!0)],64)}}}),xC=Ce({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Alert:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(SC,{id:parseInt(e.id)},null,8,["id"]))}}),CC={class:"buttons is-pulled-right"},$C=["href"],AC={class:"icon is-small"},kC={class:"icon is-small"},MC={class:"icon is-small"},TC={class:"icon is-small"},EC={key:0},LC={class:"modal is-active"},RC={class:"modal-card"},OC={class:"modal-card-head"},IC={class:"modal-card-body"},NC=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}`),o=Ue(!1),f=np(),g=IS(),l=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await f.perform(n.artifact.id),i("delete")}catch(c){nt.isAxiosError(c)&&i("set-error",c)}},p=async()=>{try{const a=await g.perform(n.artifact.id);i("set-message",a)}catch(a){nt.isAxiosError(a)&&i("set-error",a)}},r=Ir(o);return(a,c)=>{const u=Qe("font-awesome-icon");return Y(),ie(We,null,[D("span",CC,[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",AC,[se(u,{icon:"barcode"})])],8,$C),e.artifact.metadata?(Y(),ie("button",{key:0,class:"button is-info is-light is-small",onClick:c[0]||(c[0]=h=>he(r)())},[c[4]||(c[4]=D("span",null,"Metadata",-1)),D("span",kC,[se(u,{icon:"info-circle"})])])):me("",!0),D("button",{class:"button is-primary is-light is-small",onClick:p},[c[5]||(c[5]=D("span",null,"Enrich",-1)),D("span",MC,[he(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",TC,[se(u,{icon:"times"})])])]),e.artifact.metadata&&o.value?(Y(),ie("div",EC,[D("div",LC,[D("div",{class:"modal-background",onClick:c[1]||(c[1]=h=>he(r)())}),D("div",RC,[D("header",OC,[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=>he(r)())})]),D("section",IC,[se(he(hp),{data:e.artifact.metadata},null,8,["data"])])])])])):me("",!0)],64)}}}),pp=Nr(NC,[["__scopeId","data-v-dac610f8"]]),DC={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,o)=>(Y(),ie("div",DC,[e.disposable?(Y(),ie("button",{key:0,class:"delete",onClick:i})):me("",!0),D("p",null,_e(e.message.message),1)]))}}),FC={class:"box"},PC={class:"block"},WC={class:"table is-fullwidth is-completely-borderless"},BC={key:0},zC={class:"help"},jC=Ce({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(),s=Ue(),o=r=>{i.value=r},f=()=>{i.value=void 0},g=()=>{n("delete")},l=r=>{r.queued&&(s.value=r)},p=()=>{s.value=void 0};return(r,a)=>{const c=Qe("router-link");return Y(),ie("div",FC,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:f},null,8,["error"])):me("",!0),s.value?(Y(),xe(mo,{key:1,class:"block",message:s.value,disposable:!0,onDispose:p},null,8,["message"])):me("",!0),D("div",PC,[D("p",null,[se(pp,{artifact:e.artifact,onDelete:g,onSetError:o,onSetMessage:l},null,8,["artifact"])]),se(c,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:it(()=>[rt(_e(e.artifact.id),1)]),_:1},8,["to"])]),D("table",WC,[D("tr",null,[a[0]||(a[0]=D("th",null,"Data",-1)),D("td",null,_e(e.artifact.data),1)]),D("tr",null,[a[1]||(a[1]=D("th",null,"Data Type",-1)),D("td",null,_e(e.artifact.dataType),1)]),D("tr",null,[a[2]||(a[2]=D("th",null,"Source",-1)),D("td",null,_e(e.artifact.source),1)]),D("tr",null,[a[3]||(a[3]=D("th",null,"Query",-1)),D("td",null,_e(he(Ar)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),ie("tr",BC,[a[4]||(a[4]=D("th",null,"Tags",-1)),D("td",null,[se(Br,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):me("",!0)]),a[5]||(a[5]=D("p",{class:"block is-clearfix"},null,-1)),D("p",zC,"Created at: "+_e(e.artifact.createdAt),1)])}}}),HC={key:0},UC={class:"help"},VC={key:1},GC=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),o=g=>{i("update-page",g)},f=()=>{i("refresh")};return(g,l)=>s.value?(Y(),ie("div",HC,[(Y(!0),ie(We,null,Ft(e.artifacts.results,p=>(Y(),xe(jC,{artifact:p,key:p.id,onDelete:f},null,8,["artifact"]))),128)),se(jl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:o},null,8,["total","currentPage","pageSize"]),D("p",UC," ("+_e(e.artifacts.total)+" results in total, "+_e(e.artifacts.results.length)+" shown) ",1)])):(Y(),ie("div",VC,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1)])))}}),YC={class:"block"},KC={class:"field has-addons"},ZC={class:"control is-expanded"},XC={class:"control"},QC={class:"icon is-small"},qC={class:"control"},JC={class:"icon is-small"},e$={key:0,class:"content mt-3"},t$={key:0,class:"block"},n$=Ce({__name:"ArtifactsWrapper",setup(e){const t=Ai("page","1"),n=Ai("q",""),i=Ue(!1),s=zl(),o=async()=>{const r={q:n.value,page:parseInt(t.value)};return await s.perform(r)},f=r=>{t.value=r.toString()},g=async()=>{t.value="1",await o()},l=g,p=Ir(i);return ct(async()=>{await o()}),et(t,async()=>{await o()}),et(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(r,a)=>{var u,h;const c=Qe("font-awesome-icon");return Y(),ie(We,null,[D("div",YC,[D("div",KC,[D("p",ZC,[bl(D("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=d=>lt(n)?n.value=d:null)},null,512),[[Tl,he(n)]])]),D("p",XC,[D("a",{class:"button is-primary",onClick:g},[D("span",QC,[se(c,{icon:"search"})]),a[2]||(a[2]=D("span",null,"Search",-1))])]),D("p",qC,[D("a",{class:"button is-info",onClick:a[1]||(a[1]=d=>he(p)())},[D("span",JC,[se(c,{icon:"question"})]),a[3]||(a[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",e$,a[4]||(a[4]=[Al('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li><code>id</code>, <code>data</code>, <code>data_type</code>, <code>source</code>, <code>query</code>, <code>tag</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>tag</code>,<code>created_at</code>, <code>asn</code>, <code>country_code</code>, <code>dns_record.value</code>, <code>dns_record.resource</code>, <code>reverse_dns_name</code>, <code>cpe</code>, <code>vuln</code> and <code>port</code>. </li></ul>',2)]))):me("",!0)]),he(s).performCount>0?(Y(),ie("div",t$,[he(s).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(s).isError?(Y(),xe(mt,{key:1,error:(u=he(s).last)==null?void 0:u.error},null,8,["error"])):me("",!0),(h=he(s).last)!=null&&h.value?(Y(),xe(GC,{key:2,artifacts:he(s).last.value,onUpdatePage:f,onRefresh:he(l)},null,8,["artifacts","onRefresh"])):me("",!0)])):me("",!0)],64)}}}),i$=Ce({__name:"ArtifactsView",setup(e){const t=()=>{Sn("Artifacts - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),xe(n$))}}),r$={class:"tags are-medium"},s$=Ce({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,i)=>{const s=Qe("router-link");return Y(),ie("div",r$,[se(s,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:it(()=>[rt(_e(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),o$={class:"tags are-medium"},a$=Ce({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,i)=>{const s=Qe("router-link");return Y(),ie("div",o$,[(Y(!0),ie(We,null,Ft(e.cpes,o=>(Y(),xe(s,{class:"tag",key:o.name,to:{name:"Artifacts",query:{q:t(o.name)}}},{default:it(()=>[rt(_e(o.name),1)]),_:2},1032,["to"]))),128))])}}}),l$={class:"field is-grouped is-grouped-multiline"},c$={class:"tags has-addons are-medium"},u$={class:"tag is-dark"},h$=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=Qe("router-link");return Y(),ie("div",l$,[(Y(!0),ie(We,null,Ft(e.dnsRecords,(o,f)=>(Y(),ie("div",{class:"control",key:f},[D("div",c$,[D("span",u$,_e(o.resource),1),se(s,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:o.resource,value:o.value})}}},{default:it(()=>[rt(_e(he(Ar)(o.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),d$={class:"tags are-medium"},f$=Ce({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,i)=>{const s=Qe("router-link");return Y(),ie("div",d$,[(Y(!0),ie(We,null,Ft(e.ports,o=>(Y(),xe(s,{class:"tag",key:o.number,to:{name:"Artifacts",query:{q:t(o.number)}}},{default:it(()=>[rt(_e(o.number),1)]),_:2},1032,["to"]))),128))])}}}),p$={class:"tags are-medium"},g$=Ce({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,i)=>{const s=Qe("router-link");return Y(),ie("div",p$,[(Y(!0),ie(We,null,Ft(e.reverseDnsNames,o=>(Y(),xe(s,{class:"tag",key:o.name,to:{name:"Artifacts",query:{q:t(o.name)}}},{default:it(()=>[rt(_e(o.name),1)]),_:2},1032,["to"]))),128))])}}}),m$={class:"tags are-medium"},v$=Ce({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,i)=>{const s=Qe("router-link");return Y(),ie("div",m$,[(Y(!0),ie(We,null,Ft(e.vulnerabilities,o=>(Y(),xe(s,{class:"tag",key:o.name,to:{name:"Artifacts",query:{q:t(o.name)}}},{default:it(()=>[rt(_e(o.name),1)]),_:2},1032,["to"]))),128))])}}}),y$={class:"field is-grouped is-grouped-multiline"},b$={class:"control"},w$={class:"tags has-addons are-medium"},_$={class:"tag"},S$={class:"control"},x$={class:"tags has-addons are-medium"},C$={class:"tag"},$$={class:"control"},A$={class:"tags has-addons are-medium"},k$={class:"tag"},M$={class:"control"},T$={class:"tags has-addons are-medium"},E$={class:"tag"},L$=Ce({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>{var i;return Y(),ie("div",y$,[D("div",b$,[D("div",w$,[n[0]||(n[0]=D("span",{class:"tag is-dark"},"Registrar",-1)),D("span",_$,_e(((i=e.whoisRecord.registrar)==null?void 0:i.name)||"N/A"),1)])]),D("div",S$,[D("div",x$,[n[1]||(n[1]=D("span",{class:"tag is-dark"},"Created on",-1)),D("span",C$,_e(e.whoisRecord.createdOn||"N/A"),1)])]),D("div",$$,[D("div",A$,[n[2]||(n[2]=D("span",{class:"tag is-dark"},"Updated on",-1)),D("span",k$,_e(e.whoisRecord.updatedOn||"N/A"),1)])]),D("div",M$,[D("div",T$,[n[3]||(n[3]=D("span",{class:"tag is-dark"},"Expires on",-1)),D("span",E$,_e(e.whoisRecord.expiresOn||"N/A"),1)])])])}}}),R$=["href"],O$=["src"],I$=Ce({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Zd();return(n,i)=>(Y(),ie("a",{href:e.link.href(e.data),class:Er(["tag",he(t)?"":"is-white"]),target:"_blank"},[D("img",{src:e.link.favicon(),alt:"favicon"},null,8,O$),D("span",null,_e(e.link.name),1)],10,R$))}}),N$=Nr(I$,[["__scopeId","data-v-d0b695fc"]]);class Wt{constructor(){De(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 D$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class F$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class P$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class W$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class B$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class z$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class j$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class H$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class gp extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class U$ extends gp{constructor(){super();De(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class mp extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class V$ extends mp{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class G$ extends mp{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class Y$ extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Hl extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class K$ extends Hl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class Z$ extends Hl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class X$ extends Hl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q$(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 Ko={exports:{}};const q$={},J$=Object.freeze(Object.defineProperty({__proto__:null,default:q$},Symbol.toStringTag,{value:"Module"})),Bu=Q$(J$);/**
|
601
|
+
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
602
|
+
*
|
603
|
+
* @version 0.11.0
|
604
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
605
|
+
* @copyright Chen, Yi-Cyuan 2014-2024
|
606
|
+
* @license MIT
|
607
|
+
*/var zu;function eA(){return zu||(zu=1,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",o=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=Ya:s&&(i=self);var f=!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],r=[24,16,8,0],a=[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(w){return Object.prototype.toString.call(w)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(w){return typeof w=="object"&&w.buffer&&w.buffer.constructor===ArrayBuffer});var h=function(w,A){return function(L){return new $(A,!0).update(L)[w]()}},d=function(w){var A=h("hex",w);o&&(A=m(A,w)),A.create=function(){return new $(w)},A.update=function(M){return A.create().update(M)};for(var L=0;L<c.length;++L){var E=c[L];A[E]=h(E,w)}return A},m=function(w,A){var L=Bu,E=Bu.Buffer,M=A?"sha224":"sha256",O;E.from&&!i.JS_SHA256_NO_BUFFER_FROM?O=E.from:O=function(v){return new E(v)};var C=function(v){if(typeof v=="string")return L.createHash(M).update(v,"utf8").digest("hex");if(v==null)throw new Error(t);return v.constructor===ArrayBuffer&&(v=new Uint8Array(v)),Array.isArray(v)||ArrayBuffer.isView(v)||v.constructor===E?L.createHash(M).update(O(v)).digest("hex"):w(v)};return C},b=function(w,A){return function(L,E){return new S(L,A,!0).update(E)[w]()}},y=function(w){var A=b("hex",w);A.create=function(M){return new S(M,w)},A.update=function(M,O){return A.create(M).update(O)};for(var L=0;L<c.length;++L){var E=c[L];A[E]=b(E,w)}return A};function $(w,A){A?(u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=w}$.prototype.update=function(w){if(!this.finalized){var A,L=typeof w;if(L!=="string"){if(L==="object"){if(w===null)throw new Error(t);if(g&&w.constructor===ArrayBuffer)w=new Uint8Array(w);else if(!Array.isArray(w)&&(!g||!ArrayBuffer.isView(w)))throw new Error(t)}else throw new Error(t);A=!0}for(var E,M=0,O,C=w.length,v=this.blocks;M<C;){if(this.hashed&&(this.hashed=!1,v[0]=this.block,this.block=v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),A)for(O=this.start;M<C&&O<64;++M)v[O>>>2]|=w[M]<<r[O++&3];else for(O=this.start;M<C&&O<64;++M)E=w.charCodeAt(M),E<128?v[O>>>2]|=E<<r[O++&3]:E<2048?(v[O>>>2]|=(192|E>>>6)<<r[O++&3],v[O>>>2]|=(128|E&63)<<r[O++&3]):E<55296||E>=57344?(v[O>>>2]|=(224|E>>>12)<<r[O++&3],v[O>>>2]|=(128|E>>>6&63)<<r[O++&3],v[O>>>2]|=(128|E&63)<<r[O++&3]):(E=65536+((E&1023)<<10|w.charCodeAt(++M)&1023),v[O>>>2]|=(240|E>>>18)<<r[O++&3],v[O>>>2]|=(128|E>>>12&63)<<r[O++&3],v[O>>>2]|=(128|E>>>6&63)<<r[O++&3],v[O>>>2]|=(128|E&63)<<r[O++&3]);this.lastByteIndex=O,this.bytes+=O-this.start,O>=64?(this.block=v[16],this.start=O-64,this.hash(),this.hashed=!0):this.start=O}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 w=this.blocks,A=this.lastByteIndex;w[16]=this.block,w[A>>>2]|=p[A&3],this.block=w[16],A>=56&&(this.hashed||this.hash(),w[0]=this.block,w[16]=w[1]=w[2]=w[3]=w[4]=w[5]=w[6]=w[7]=w[8]=w[9]=w[10]=w[11]=w[12]=w[13]=w[14]=w[15]=0),w[14]=this.hBytes<<3|this.bytes>>>29,w[15]=this.bytes<<3,this.hash()}},$.prototype.hash=function(){var w=this.h0,A=this.h1,L=this.h2,E=this.h3,M=this.h4,O=this.h5,C=this.h6,v=this.h7,x=this.blocks,k,T,R,I,N,F,W,V,B,H,K;for(k=16;k<64;++k)N=x[k-15],T=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=x[k-2],R=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,x[k]=x[k-16]+T+x[k-7]+R<<0;for(K=A&L,k=0;k<64;k+=4)this.first?(this.is224?(V=300032,N=x[0]-1413257819,v=N-150054599<<0,E=N+24177077<<0):(V=704751109,N=x[0]-210244248,v=N-1521486534<<0,E=N+143694565<<0),this.first=!1):(T=(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10),R=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),V=w&A,I=V^w&L^K,W=M&O^~M&C,N=v+R+W+a[k]+x[k],F=T+I,v=E+N<<0,E=N+F<<0),T=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),R=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),B=E&w,I=B^E&A^V,W=v&M^~v&O,N=C+R+W+a[k+1]+x[k+1],F=T+I,C=L+N<<0,L=N+F<<0,T=(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),H=L&E,I=H^L&w^B,W=C&v^~C&M,N=O+R+W+a[k+2]+x[k+2],F=T+I,O=A+N<<0,A=N+F<<0,T=(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),R=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),K=A&L,I=K^A&E^H,W=O&C^~O&v,N=M+R+W+a[k+3]+x[k+3],F=T+I,M=w+N<<0,w=N+F<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+w<<0,this.h1=this.h1+A<<0,this.h2=this.h2+L<<0,this.h3=this.h3+E<<0,this.h4=this.h4+M<<0,this.h5=this.h5+O<<0,this.h6=this.h6+C<<0,this.h7=this.h7+v<<0},$.prototype.hex=function(){this.finalize();var w=this.h0,A=this.h1,L=this.h2,E=this.h3,M=this.h4,O=this.h5,C=this.h6,v=this.h7,x=l[w>>>28&15]+l[w>>>24&15]+l[w>>>20&15]+l[w>>>16&15]+l[w>>>12&15]+l[w>>>8&15]+l[w>>>4&15]+l[w&15]+l[A>>>28&15]+l[A>>>24&15]+l[A>>>20&15]+l[A>>>16&15]+l[A>>>12&15]+l[A>>>8&15]+l[A>>>4&15]+l[A&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[E>>>28&15]+l[E>>>24&15]+l[E>>>20&15]+l[E>>>16&15]+l[E>>>12&15]+l[E>>>8&15]+l[E>>>4&15]+l[E&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[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];return this.is224||(x+=l[v>>>28&15]+l[v>>>24&15]+l[v>>>20&15]+l[v>>>16&15]+l[v>>>12&15]+l[v>>>8&15]+l[v>>>4&15]+l[v&15]),x},$.prototype.toString=$.prototype.hex,$.prototype.digest=function(){this.finalize();var w=this.h0,A=this.h1,L=this.h2,E=this.h3,M=this.h4,O=this.h5,C=this.h6,v=this.h7,x=[w>>>24&255,w>>>16&255,w>>>8&255,w&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,O>>>24&255,O>>>16&255,O>>>8&255,O&255,C>>>24&255,C>>>16&255,C>>>8&255,C&255];return this.is224||x.push(v>>>24&255,v>>>16&255,v>>>8&255,v&255),x},$.prototype.array=$.prototype.digest,$.prototype.arrayBuffer=function(){this.finalize();var w=new ArrayBuffer(this.is224?28:32),A=new DataView(w);return A.setUint32(0,this.h0),A.setUint32(4,this.h1),A.setUint32(8,this.h2),A.setUint32(12,this.h3),A.setUint32(16,this.h4),A.setUint32(20,this.h5),A.setUint32(24,this.h6),this.is224||A.setUint32(28,this.h7),w};function S(w,A,L){var E,M=typeof w;if(M==="string"){var O=[],C=w.length,v=0,x;for(E=0;E<C;++E)x=w.charCodeAt(E),x<128?O[v++]=x:x<2048?(O[v++]=192|x>>>6,O[v++]=128|x&63):x<55296||x>=57344?(O[v++]=224|x>>>12,O[v++]=128|x>>>6&63,O[v++]=128|x&63):(x=65536+((x&1023)<<10|w.charCodeAt(++E)&1023),O[v++]=240|x>>>18,O[v++]=128|x>>>12&63,O[v++]=128|x>>>6&63,O[v++]=128|x&63);w=O}else if(M==="object"){if(w===null)throw new Error(t);if(g&&w.constructor===ArrayBuffer)w=new Uint8Array(w);else if(!Array.isArray(w)&&(!g||!ArrayBuffer.isView(w)))throw new Error(t)}else throw new Error(t);w.length>64&&(w=new $(A,!0).update(w).array());var k=[],T=[];for(E=0;E<64;++E){var R=w[E]||0;k[E]=92^R,T[E]=54^R}$.call(this,A,L),this.update(T),this.oKeyPad=k,this.inner=!0,this.sharedMemory=L}S.prototype=new $,S.prototype.finalize=function(){if($.prototype.finalize.call(this),this.inner){this.inner=!1;var w=this.array();$.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(w),$.prototype.finalize.call(this)}};var _=d();_.sha256=_,_.sha224=d(!0),_.sha256.hmac=y(),_.sha224.hmac=y(!0),f?e.exports=_:(i.sha256=_.sha256,i.sha224=_.sha224)})()}(Ko)),Ko.exports}var tA=eA(),Zo,ju;function nA(){return ju||(ju=1,Zo=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}),Zo}var Kr={},Hu;function iA(){if(Hu)return Kr;Hu=1;var e=Object.prototype.hasOwnProperty,t;function n(f){try{return decodeURIComponent(f.replace(/\+/g," "))}catch{return null}}function i(f){try{return encodeURIComponent(f)}catch{return null}}function s(f){for(var g=/([^=?#&]+)=?([^&]*)/g,l={},p;p=g.exec(f);){var r=n(p[1]),a=n(p[2]);r===null||a===null||r in l||(l[r]=a)}return l}function o(f,g){g=g||"";var l=[],p,r;typeof g!="string"&&(g="?");for(r in f)if(e.call(f,r)){if(p=f[r],!p&&(p===null||p===t||isNaN(p))&&(p=""),r=i(r),p=i(p),r===null||p===null)continue;l.push(r+"="+p)}return l.length?g+l.join("&"):""}return Kr.stringify=o,Kr.parse=s,Kr}var Xo,Uu;function rA(){if(Uu)return Xo;Uu=1;var e=nA(),t=iA(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,o=/:\d+$/,f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function l(y){return(y||"").toString().replace(n,"")}var p=[["#","hash"],["?","query"],function($,S){return c(S.protocol)?$.replace(/\\/g,"/"):$},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],r={hash:1,query:1};function a(y){var $;typeof window<"u"?$=window:typeof Ya<"u"?$=Ya:typeof self<"u"?$=self:$={};var S=$.location||{};y=y||S;var _={},w=typeof y,A;if(y.protocol==="blob:")_=new d(unescape(y.pathname),{});else if(w==="string"){_=new d(y,{});for(A in r)delete _[A]}else if(w==="object"){for(A in y)A in r||(_[A]=y[A]);_.slashes===void 0&&(_.slashes=s.test(y.href))}return _}function c(y){return y==="file:"||y==="ftp:"||y==="http:"||y==="https:"||y==="ws:"||y==="wss:"}function u(y,$){y=l(y),y=y.replace(i,""),$=$||{};var S=f.exec(y),_=S[1]?S[1].toLowerCase():"",w=!!S[2],A=!!S[3],L=0,E;return w?A?(E=S[2]+S[3]+S[4],L=S[2].length+S[3].length):(E=S[2]+S[4],L=S[2].length):A?(E=S[3]+S[4],L=S[3].length):E=S[4],_==="file:"?L>=2&&(E=E.slice(2)):c(_)?E=S[4]:_?w&&(E=E.slice(2)):L>=2&&c($.protocol)&&(E=S[4]),{protocol:_,slashes:w||c(_),slashesCount:L,rest:E}}function h(y,$){if(y==="")return $;for(var S=($||"/").split("/").slice(0,-1).concat(y.split("/")),_=S.length,w=S[_-1],A=!1,L=0;_--;)S[_]==="."?S.splice(_,1):S[_]===".."?(S.splice(_,1),L++):L&&(_===0&&(A=!0),S.splice(_,1),L--);return A&&S.unshift(""),(w==="."||w==="..")&&S.push(""),S.join("/")}function d(y,$,S){if(y=l(y),y=y.replace(i,""),!(this instanceof d))return new d(y,$,S);var _,w,A,L,E,M,O=p.slice(),C=typeof $,v=this,x=0;for(C!=="object"&&C!=="string"&&(S=$,$=null),S&&typeof S!="function"&&(S=t.parse),$=a($),w=u(y||"",$),_=!w.protocol&&!w.slashes,v.slashes=w.slashes||_&&$.slashes,v.protocol=w.protocol||$.protocol||"",y=w.rest,(w.protocol==="file:"&&(w.slashesCount!==2||g.test(y))||!w.slashes&&(w.protocol||w.slashesCount<2||!c(v.protocol)))&&(O[3]=[/(.*)/,"pathname"]);x<O.length;x++){if(L=O[x],typeof L=="function"){y=L(y,v);continue}A=L[0],M=L[1],A!==A?v[M]=y:typeof A=="string"?(E=A==="@"?y.lastIndexOf(A):y.indexOf(A),~E&&(typeof L[2]=="number"?(v[M]=y.slice(0,E),y=y.slice(E+L[2])):(v[M]=y.slice(E),y=y.slice(0,E)))):(E=A.exec(y))&&(v[M]=E[1],y=y.slice(0,E.index)),v[M]=v[M]||_&&L[3]&&$[M]||"",L[4]&&(v[M]=v[M].toLowerCase())}S&&(v.query=S(v.query)),_&&$.slashes&&v.pathname.charAt(0)!=="/"&&(v.pathname!==""||$.pathname!=="")&&(v.pathname=h(v.pathname,$.pathname)),v.pathname.charAt(0)!=="/"&&c(v.protocol)&&(v.pathname="/"+v.pathname),e(v.port,v.protocol)||(v.host=v.hostname,v.port=""),v.username=v.password="",v.auth&&(E=v.auth.indexOf(":"),~E?(v.username=v.auth.slice(0,E),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=v.auth.slice(E+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(v.auth)),v.auth=v.password?v.username+":"+v.password:v.username),v.origin=v.protocol!=="file:"&&c(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString()}function m(y,$,S){var _=this;switch(y){case"query":typeof $=="string"&&$.length&&($=(S||t.parse)($)),_[y]=$;break;case"port":_[y]=$,e($,_.protocol)?$&&(_.host=_.hostname+":"+$):(_.host=_.hostname,_[y]="");break;case"hostname":_[y]=$,_.port&&($+=":"+_.port),_.host=$;break;case"host":_[y]=$,o.test($)?($=$.split(":"),_.port=$.pop(),_.hostname=$.join(":")):(_.hostname=$,_.port="");break;case"protocol":_.protocol=$.toLowerCase(),_.slashes=!S;break;case"pathname":case"hash":if($){var w=y==="pathname"?"/":"#";_[y]=$.charAt(0)!==w?w+$:$}else _[y]=$;break;case"username":case"password":_[y]=encodeURIComponent($);break;case"auth":var A=$.indexOf(":");~A?(_.username=$.slice(0,A),_.username=encodeURIComponent(decodeURIComponent(_.username)),_.password=$.slice(A+1),_.password=encodeURIComponent(decodeURIComponent(_.password))):_.username=encodeURIComponent(decodeURIComponent($))}for(var L=0;L<p.length;L++){var E=p[L];E[4]&&(_[E[1]]=_[E[1]].toLowerCase())}return _.auth=_.password?_.username+":"+_.password:_.username,_.origin=_.protocol!=="file:"&&c(_.protocol)&&_.host?_.protocol+"//"+_.host:"null",_.href=_.toString(),_}function b(y){(!y||typeof y!="function")&&(y=t.stringify);var $,S=this,_=S.host,w=S.protocol;w&&w.charAt(w.length-1)!==":"&&(w+=":");var A=w+(S.protocol&&S.slashes||c(S.protocol)?"//":"");return S.username?(A+=S.username,S.password&&(A+=":"+S.password),A+="@"):S.password?(A+=":"+S.password,A+="@"):S.protocol!=="file:"&&c(S.protocol)&&!_&&S.pathname!=="/"&&(A+="@"),(_[_.length-1]===":"||o.test(S.hostname)&&!S.port)&&(_+=":"),A+=_+S.pathname,$=typeof S.query=="object"?y(S.query):S.query,$&&(A+=$.charAt(0)!=="?"?"?"+$:$),S.hash&&(A+=S.hash),A}return d.prototype={set:m,toString:b},d.extractProtocol=u,d.location=a,d.trimLeft=l,d.qs=t,Xo=d,Xo}var sA=rA();const oA=Di(sA);class vo extends Wt{constructor(){super();De(this,"baseURL");De(this,"name");De(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class aA extends vo{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class lA extends vo{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class cA extends vo{constructor(){super(),this.type="url"}href(t){const n=tA.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new oA(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class uA extends vo{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const hA=[new D$,new F$,new P$,new B$,new W$,new z$,new j$,new H$,new U$,new gp,new V$,new G$,new Y$,new K$,new Z$,new X$,new aA,new uA,new lA,new cA],dA={class:"tags are-medium"},fA=Ce({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=ke(()=>hA.filter(i=>i.type===t.type));return(i,s)=>(Y(),ie("div",dA,[(Y(!0),ie(We,null,Ft(n.value,o=>(Y(),xe(N$,{data:e.data,link:o,key:o.name},null,8,["data","link"]))),128))]))}});var ls={exports:{}},pA=ls.exports,Vu;function gA(){return Vu||(Vu=1,function(e,t){(function(n,i){e.exports=i()})(pA,function(){var n=1e3,i=6e4,s=36e5,o="millisecond",f="second",g="minute",l="hour",p="day",r="week",a="month",c="quarter",u="year",h="date",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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(x){var k=["th","st","nd","rd"],T=x%100;return"["+x+(k[(T-20)%10]||k[T]||k[0])+"]"}},$=function(x,k,T){var R=String(x);return!R||R.length>=k?x:""+Array(k+1-R.length).join(T)+x},S={s:$,z:function(x){var k=-x.utcOffset(),T=Math.abs(k),R=Math.floor(T/60),I=T%60;return(k<=0?"+":"-")+$(R,2,"0")+":"+$(I,2,"0")},m:function x(k,T){if(k.date()<T.date())return-x(T,k);var R=12*(T.year()-k.year())+(T.month()-k.month()),I=k.clone().add(R,a),N=T-I<0,F=k.clone().add(R+(N?-1:1),a);return+(-(R+(T-I)/(N?I-F:F-I))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:a,y:u,w:r,d:p,D:h,h:l,m:g,s:f,ms:o,Q:c}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},_="en",w={};w[_]=y;var A="$isDayjsObject",L=function(x){return x instanceof C||!(!x||!x[A])},E=function x(k,T,R){var I;if(!k)return _;if(typeof k=="string"){var N=k.toLowerCase();w[N]&&(I=N),T&&(w[N]=T,I=N);var F=k.split("-");if(!I&&F.length>1)return x(F[0])}else{var W=k.name;w[W]=k,I=W}return!R&&I&&(_=I),I||!R&&_},M=function(x,k){if(L(x))return x.clone();var T=typeof k=="object"?k:{};return T.date=x,T.args=arguments,new C(T)},O=S;O.l=E,O.i=L,O.w=function(x,k){return M(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var C=function(){function x(T){this.$L=E(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[A]=!0}var k=x.prototype;return k.parse=function(T){this.$d=function(R){var I=R.date,N=R.utc;if(I===null)return new Date(NaN);if(O.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 W=F[2]-1||0,V=(F[7]||"0").substring(0,3);return N?new Date(Date.UTC(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,V)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,V)}}return new Date(I)}(T),this.init()},k.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},k.$utils=function(){return O},k.isValid=function(){return this.$d.toString()!==d},k.isSame=function(T,R){var I=M(T);return this.startOf(R)<=I&&I<=this.endOf(R)},k.isAfter=function(T,R){return M(T)<this.startOf(R)},k.isBefore=function(T,R){return this.endOf(R)<M(T)},k.$g=function(T,R,I){return O.u(T)?this[R]:this.set(I,T)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(T,R){var I=this,N=!!O.u(R)||R,F=O.p(T),W=function(q,X){var ce=O.w(I.$u?Date.UTC(I.$y,X,q):new Date(I.$y,X,q),I);return N?ce:ce.endOf(p)},V=function(q,X){return O.w(I.toDate()[q].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(X)),I)},B=this.$W,H=this.$M,K=this.$D,U="set"+(this.$u?"UTC":"");switch(F){case u:return N?W(1,0):W(31,11);case a:return N?W(1,H):W(0,H+1);case r:var j=this.$locale().weekStart||0,Q=(B<j?B+7:B)-j;return W(N?K-Q:K+(6-Q),H);case p:case h:return V(U+"Hours",0);case l:return V(U+"Minutes",1);case g:return V(U+"Seconds",2);case f:return V(U+"Milliseconds",3);default:return this.clone()}},k.endOf=function(T){return this.startOf(T,!1)},k.$set=function(T,R){var I,N=O.p(T),F="set"+(this.$u?"UTC":""),W=(I={},I[p]=F+"Date",I[h]=F+"Date",I[a]=F+"Month",I[u]=F+"FullYear",I[l]=F+"Hours",I[g]=F+"Minutes",I[f]=F+"Seconds",I[o]=F+"Milliseconds",I)[N],V=N===p?this.$D+(R-this.$W):R;if(N===a||N===u){var B=this.clone().set(h,1);B.$d[W](V),B.init(),this.$d=B.set(h,Math.min(this.$D,B.daysInMonth())).$d}else W&&this.$d[W](V);return this.init(),this},k.set=function(T,R){return this.clone().$set(T,R)},k.get=function(T){return this[O.p(T)]()},k.add=function(T,R){var I,N=this;T=Number(T);var F=O.p(R),W=function(H){var K=M(N);return O.w(K.date(K.date()+Math.round(H*T)),N)};if(F===a)return this.set(a,this.$M+T);if(F===u)return this.set(u,this.$y+T);if(F===p)return W(1);if(F===r)return W(7);var V=(I={},I[g]=i,I[l]=s,I[f]=n,I)[F]||1,B=this.$d.getTime()+T*V;return O.w(B,this)},k.subtract=function(T,R){return this.add(-1*T,R)},k.format=function(T){var R=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var N=T||"YYYY-MM-DDTHH:mm:ssZ",F=O.z(this),W=this.$H,V=this.$m,B=this.$M,H=I.weekdays,K=I.months,U=I.meridiem,j=function(X,ce,Me,P){return X&&(X[ce]||X(R,N))||Me[ce].slice(0,P)},Q=function(X){return O.s(W%12||12,X,"0")},q=U||function(X,ce,Me){var P=X<12?"AM":"PM";return Me?P.toLowerCase():P};return N.replace(b,function(X,ce){return ce||function(Me){switch(Me){case"YY":return String(R.$y).slice(-2);case"YYYY":return O.s(R.$y,4,"0");case"M":return B+1;case"MM":return O.s(B+1,2,"0");case"MMM":return j(I.monthsShort,B,K,3);case"MMMM":return j(K,B);case"D":return R.$D;case"DD":return O.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return j(I.weekdaysMin,R.$W,H,2);case"ddd":return j(I.weekdaysShort,R.$W,H,3);case"dddd":return H[R.$W];case"H":return String(W);case"HH":return O.s(W,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return q(W,V,!0);case"A":return q(W,V,!1);case"m":return String(V);case"mm":return O.s(V,2,"0");case"s":return String(R.$s);case"ss":return O.s(R.$s,2,"0");case"SSS":return O.s(R.$ms,3,"0");case"Z":return F}return null}(X)||F.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(T,R,I){var N,F=this,W=O.p(R),V=M(T),B=(V.utcOffset()-this.utcOffset())*i,H=this-V,K=function(){return O.m(F,V)};switch(W){case u:N=K()/12;break;case a:N=K();break;case c:N=K()/3;break;case r:N=(H-B)/6048e5;break;case p:N=(H-B)/864e5;break;case l:N=H/s;break;case g:N=H/i;break;case f:N=H/n;break;default:N=H}return I?N:O.a(N)},k.daysInMonth=function(){return this.endOf(a).$D},k.$locale=function(){return w[this.$L]},k.locale=function(T,R){if(!T)return this.$L;var I=this.clone(),N=E(T,R,!0);return N&&(I.$L=N),I},k.clone=function(){return O.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},x}(),v=C.prototype;return M.prototype=v,[["$ms",o],["$s",f],["$m",g],["$H",l],["$W",p],["$M",a],["$y",u],["$D",h]].forEach(function(x){v[x[1]]=function(k){return this.$g(k,x[0],x[1])}}),M.extend=function(x,k){return x.$i||(x(k,C,M),x.$i=!0),M},M.locale=E,M.isDayjs=L,M.unix=function(x){return M(1e3*x)},M.en=w[_],M.Ls=w,M.p={},M})}(ls)),ls.exports}var mA=gA();const yo=Di(mA);var cs={exports:{}},vA=cs.exports,Gu;function yA(){return Gu||(Gu=1,function(e,t){(function(n,i){e.exports=i()})(vA,function(){return function(n,i,s){n=n||{};var o=i.prototype,f={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,r,a,c){return o.fromToBase(p,r,a,c)}s.en.relativeTime=f,o.fromToBase=function(p,r,a,c,u){for(var h,d,m,b=a.$locale().relativeTime||f,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],$=y.length,S=0;S<$;S+=1){var _=y[S];_.d&&(h=c?s(p).diff(a,_.d,!0):a.diff(p,_.d,!0));var w=(n.rounding||Math.round)(Math.abs(h));if(m=h>0,w<=_.r||!_.r){w<=1&&S>0&&(_=y[S-1]);var A=b[_.l];u&&(w=u(""+w)),d=typeof A=="string"?A.replace("%d",w):A(w,r,_.l,m);break}}if(r)return d;var L=m?b.future:b.past;return typeof L=="function"?L(d):L.replace("%s",d)},o.to=function(p,r){return g(p,r,this,!0)},o.from=function(p,r){return g(p,r,this)};var l=function(p){return p.$u?s.utc():s()};o.toNow=function(p){return this.to(l(this),p)},o.fromNow=function(p){return this.from(l(this),p)}}})}(cs)),cs.exports}var bA=yA();const wA=Di(bA);var us={exports:{}},_A=us.exports,Yu;function SA(){return Yu||(Yu=1,function(e,t){(function(n,i){e.exports=i()})(_A,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(s,o,f){var g,l=function(c,u,h){h===void 0&&(h={});var d=new Date(c),m=function(b,y){y===void 0&&(y={});var $=y.timeZoneName||"short",S=b+"|"+$,_=i[S];return _||(_=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),i[S]=_),_}(u,h);return m.formatToParts(d)},p=function(c,u){for(var h=l(c,u),d=[],m=0;m<h.length;m+=1){var b=h[m],y=b.type,$=b.value,S=n[y];S>=0&&(d[S]=parseInt($,10))}var _=d[3],w=_===24?0:_,A=d[0]+"-"+d[1]+"-"+d[2]+" "+w+":"+d[4]+":"+d[5]+":000",L=+c;return(f.utc(A).valueOf()-(L-=L%1e3))/6e4},r=o.prototype;r.tz=function(c,u){c===void 0&&(c=g);var h,d=this.utcOffset(),m=this.toDate(),b=m.toLocaleString("en-US",{timeZone:c}),y=Math.round((m-new Date(b))/1e3/60),$=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number($))h=this.utcOffset(0,u);else if(h=f(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset($,!0),u){var S=h.utcOffset();h=h.add(d-S,"minute")}return h.$x.$timezone=c,h},r.offsetName=function(c){var u=this.$x.$timezone||f.tz.guess(),h=l(this.valueOf(),u,{timeZoneName:c}).find(function(d){return d.type.toLowerCase()==="timezonename"});return h&&h.value};var a=r.startOf;r.startOf=function(c,u){if(!this.$x||!this.$x.$timezone)return a.call(this,c,u);var h=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(h,c,u).tz(this.$x.$timezone,!0)},f.tz=function(c,u,h){var d=h&&u,m=h||u||g,b=p(+f(),m);if(typeof c!="string")return f(c).tz(m);var y=function(w,A,L){var E=w-60*A*1e3,M=p(E,L);if(A===M)return[E,A];var O=p(E-=60*(M-A)*1e3,L);return M===O?[E,M]:[w-60*Math.min(M,O)*1e3,Math.max(M,O)]}(f.utc(c,d).valueOf(),b,m),$=y[0],S=y[1],_=f($).utcOffset(S);return _.$x.$timezone=m,_},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(c){g=c}}})}(us)),us.exports}var xA=SA();const CA=Di(xA);var hs={exports:{}},$A=hs.exports,Ku;function AA(){return Ku||(Ku=1,function(e,t){(function(n,i){e.exports=i()})($A,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(o,f,g){var l=f.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new f(m)},l.utc=function(d){var m=g(this.toDate(),{locale:this.$L,utc:!0});return d?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(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),p.call(this,d)};var r=l.init;l.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else r.call(this)};var a=l.utcOffset;l.utcOffset=function(d,m){var b=this.$utils().u;if(b(d))return this.$u?0:b(this.$offset)?a.call(this):this.$offset;if(typeof d=="string"&&(d=function(_){_===void 0&&(_="");var w=_.match(i);if(!w)return null;var A=(""+w[0]).match(s)||["-",0,0],L=A[0],E=60*+A[1]+ +A[2];return E===0?0:L==="+"?E:-E}(d),d===null))return this;var y=Math.abs(d)<=16?60*d:d,$=this;if(m)return $.$offset=y,$.$u=d===0,$;if(d!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(y+S,n)).$offset=y,$.$x.$localOffset=S}else $=this.utc();return $};var c=l.format;l.format=function(d){var m=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},l.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},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(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=l.diff;l.diff=function(d,m,b){if(d&&this.$u===d.$u)return h.call(this,d,m,b);var y=this.local(),$=g(d).local();return h.call(y,$,m,b)}}})}(hs)),hs.exports}var kA=AA();const MA=Di(kA),TA=[{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 EA(e){return TA.find(n=>n.code===e)}yo.extend(wA);yo.extend(CA);yo.extend(MA);function vp(e){const t=EA(e);if(t)return{lat:t.lat,long:t.long}}function LA(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 RA={class:"block"},OA={class:"is-size-2"},IA={class:"is-clearfix"},NA={class:"columns"},DA={key:0,class:"column is-half"},FA={key:0},PA={class:"is-size-4"},WA={class:"has-text-grey"},BA=["src"],zA={key:1},jA=["src"],HA={class:"column"},UA={class:"table is-fullwidth is-completely-borderless"},VA={key:0},GA={class:"help"},YA={class:"block"},KA={class:"block"},ZA={key:0,class:"block"},XA={key:1,class:"block"},QA={key:2,class:"block"},qA={key:3,class:"block"},JA={key:4,class:"block"},e2={key:5,class:"block"},t2={key:6,class:"block"},n2=Ce({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,i=t,s=Ue(),o=Ue(),f=Ue(),g=Ue(),l=m=>{f.value=m},p=()=>{f.value=void 0},r=()=>{i("delete")},a=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`},d=DS();return ct(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=vp(n.artifact.geolocation.countryCode);else{const b=await d.perform(n.artifact.data);m=LA(b),o.value=b.countryCode}s.value=h(m)}}),(m,b)=>{var y;return Y(),ie(We,null,[f.value?(Y(),xe(mt,{key:0,class:"block",error:f.value,disposable:!0,onDispose:p},null,8,["error"])):me("",!0),g.value?(Y(),xe(mo,{key:1,class:"block",message:g.value,disposable:!0,onDispose:c},null,8,["message"])):me("",!0),D("div",RA,[D("h2",OA,_e(e.artifact.id),1),D("p",IA,[se(pp,{artifact:e.artifact,onDelete:r,onSetError:l,onSetMessage:a},null,8,["artifact"])])]),D("div",NA,[s.value||u.value?(Y(),ie("div",DA,[s.value?(Y(),ie("div",FA,[D("h4",PA,[b[0]||(b[0]=rt(" Geolocation ")),D("span",WA,_e(o.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,BA)])):me("",!0),u.value?(Y(),ie("div",zA,[b[1]||(b[1]=D("h4",{class:"is-size-4"},"Live screenshot",-1)),b[2]||(b[2]=D("p",{class:"help"},"Hover to expand",-1)),D("img",{src:u.value,class:"liveshot",alt:"liveshot"},null,8,jA)])):me("",!0)])):me("",!0),D("div",HA,[b[9]||(b[9]=D("h4",{class:"is-size-4"},"Information",-1)),D("table",UA,[D("tr",null,[b[3]||(b[3]=D("th",null,"Data",-1)),D("td",null,_e(he(Ar)(e.artifact.data,64)),1)]),D("tr",null,[b[4]||(b[4]=D("th",null,"Data type",-1)),D("td",null,_e(e.artifact.dataType),1)]),D("tr",null,[b[5]||(b[5]=D("th",null,"Source",-1)),D("td",null,_e(e.artifact.source),1)]),D("tr",null,[b[6]||(b[6]=D("th",null,"Query",-1)),D("td",null,_e(he(Ar)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),ie("tr",VA,[b[8]||(b[8]=D("th",null,"Tags",-1)),D("td",null,[se(Br,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),b[7]||(b[7]=rt("/td>"))])])):me("",!0)]),D("p",GA,"Created at: "+_e(e.artifact.createdAt),1)])]),D("div",YA,[se(fA,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),D("div",KA,[e.artifact.autonomousSystem?(Y(),ie("div",ZA,[b[10]||(b[10]=D("h4",{class:"is-size-4 mb-2"},"AS",-1)),se(s$,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):me("",!0),e.artifact.reverseDnsNames?(Y(),ie("div",XA,[b[11]||(b[11]=D("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),se(g$,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):me("",!0),e.artifact.dnsRecords?(Y(),ie("div",QA,[b[12]||(b[12]=D("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),se(h$,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):me("",!0),e.artifact.cpes?(Y(),ie("div",qA,[b[13]||(b[13]=D("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),se(a$,{cpes:e.artifact.cpes},null,8,["cpes"])])):me("",!0),e.artifact.vulnerabilities?(Y(),ie("div",JA,[b[14]||(b[14]=D("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),se(v$,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):me("",!0),e.artifact.ports?(Y(),ie("div",e2,[b[15]||(b[15]=D("h4",{class:"is-size-4 mb-2"},"Ports",-1)),se(f$,{ports:e.artifact.ports},null,8,["ports"])])):me("",!0),e.artifact.whoisRecord?(Y(),ie("div",t2,[b[16]||(b[16]=D("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),se(L$,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):me("",!0)])],64)}}}),i2=Nr(n2,[["__scopeId","data-v-aadb0460"]]),r2=Ce({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=OS(),i=Oi(),s=async()=>{await n.perform(t.id)},o=async()=>{await s()},f=async()=>{i.push("/")};return ct(async()=>{await s()}),et(t,async()=>{await s()}),(g,l)=>{var p,r;return Y(),ie(We,null,[he(n).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(n).isError?(Y(),xe(mt,{key:1,error:(p=he(n).last)==null?void 0:p.error},null,8,["error"])):me("",!0),(r=he(n).last)!=null&&r.value?(Y(),xe(i2,{key:2,artifact:he(n).last.value,onRefresh:o,onDelete:f},null,8,["artifact"])):me("",!0)],64)}}}),s2=Ce({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Artifact:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(r2,{id:parseInt(e.id)},null,8,["id"]))}}),o2={class:"box"},a2={class:"table-container"},l2={class:"table is-fullwidth"},c2={key:0,class:"button is-success is-small ml-1"},u2={class:"icon is-small"},h2={key:1,class:"button is-warning is-small ml-1"},d2={class:"icon is-small"},f2={class:"field is-grouped is-grouped-multiline"},p2={class:"tags has-addons"},g2={class:"tag is-dark"},m2=Ce({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const i=Qe("font-awesome-icon");return Y(),ie("div",o2,[D("div",a2,[D("table",l2,[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(We,null,Ft(e.configs.results,s=>(Y(),ie("tr",{key:s.name},[D("td",null,_e(s.name),1),D("td",null,_e(s.type),1),D("td",null,[s.configured?(Y(),ie("button",c2,[D("span",u2,[se(i,{icon:"check"})]),n[0]||(n[0]=D("span",null,"Yes",-1))])):(Y(),ie("button",h2,[D("span",d2,[se(i,{icon:"exclamation"})]),n[1]||(n[1]=D("span",null,"No",-1))]))]),D("td",null,[D("div",f2,[(Y(!0),ie(We,null,Ft(s.items,(o,f)=>(Y(),ie("div",{class:"control",key:f},[D("div",p2,[D("span",g2,_e(o.key),1),D("span",{class:Er(["tag",{"is-success":o.value,"is-warning":!o.value}])},_e(o.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),v2=Ce({__name:"ConfigsWrapper",setup(e){const t=NS();return ct(async()=>{await t.perform()}),(n,i)=>{var s,o;return Y(),ie(We,null,[he(t).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(t).isError?(Y(),xe(mt,{key:1,error:(s=he(t).last)==null?void 0:s.error},null,8,["error"])):me("",!0),(o=he(t).last)!=null&&o.value?(Y(),xe(m2,{key:2,configs:he(t).last.value},null,8,["configs"])):me("",!0)],64)}}}),y2=Ce({__name:"ConfigView",setup(e){return Sn("Configuration - Mihari"),(t,n)=>(Y(),xe(v2))}});var Qo={exports:{}},Zu;function b2(){return Zu||(Zu=1,function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var s=function(r,a,c){if(typeof r!="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=a),s.modules[r]||(s.payloads[r]=c,s.modules[r]=null)};s.modules={},s.payloads={};var o=function(r,a,c){if(typeof a=="string"){var u=l(r,a);if(u!=null)return c&&c(),u}else if(Object.prototype.toString.call(a)==="[object Array]"){for(var h=[],d=0,m=a.length;d<m;++d){var b=l(r,a[d]);if(b==null&&f.original)return;h.push(b)}return c&&c.apply(null,h)||!0}},f=function(r,a){var c=o("",r,a);return c==null&&f.original?f.original.apply(this,arguments):c},g=function(r,a){if(a.indexOf("!")!==-1){var c=a.split("!");return g(r,c[0])+"!"+g(r,c[1])}if(a.charAt(0)=="."){var u=r.split("/").slice(0,-1).join("/");for(a=u+"/"+a;a.indexOf(".")!==-1&&h!=a;){var h=a;a=a.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},l=function(r,a){a=g(r,a);var c=s.modules[a];if(!c){if(c=s.payloads[a],typeof c=="function"){var u={},h={id:a,uri:"",exports:u,packaged:!0},d=function(b,y){return o(a,b,y)},m=c(d,u,h);u=m||h.exports,s.modules[a]=u,delete s.payloads[a]}c=s.modules[a]=u||c}return c};function p(r){var a=i;i[r]||(i[r]={}),a=i[r],(!a.define||!a.define.packaged)&&(s.original=a.define,a.define=s,a.define.packaged=!0),(!a.require||!a.require.packaged)&&(f.original=a.require,a.require=f,a.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,s){function o(f,g,l){Object.defineProperty(f,g,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||o(String.prototype,"startsWith",function(f,g){return g=g||0,this.lastIndexOf(f,g)===g}),String.prototype.endsWith||o(String.prototype,"endsWith",function(f,g){var l=this;(g===void 0||g>l.length)&&(g=l.length),g-=f.length;var p=l.indexOf(f,g);return p!==-1&&p===g}),String.prototype.repeat||o(String.prototype,"repeat",function(f){for(var g="",l=this;f>0;)f&1&&(g+=l),(f>>=1)&&(l+=l);return g}),String.prototype.includes||o(String.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Object.assign||(Object.assign=function(f){if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(f),l=1;l<arguments.length;l++){var p=arguments[l];p!=null&&Object.keys(p).forEach(function(r){g[r]=p[r]})}return g}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(g){return f[g]})}),Array.prototype.find||o(Array.prototype,"find",function(f){for(var g=this.length,l=arguments[1],p=0;p<g;p++){var r=this[p];if(f.call(l,r,p,this))return r}}),Array.prototype.findIndex||o(Array.prototype,"findIndex",function(f){for(var g=this.length,l=arguments[1],p=0;p<g;p++){var r=this[p];if(f.call(l,r,p,this))return p}}),Array.prototype.includes||o(Array.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Array.prototype.fill||o(Array.prototype,"fill",function(f){for(var g=this,l=g.length>>>0,p=arguments[1],r=p>>0,a=r<0?Math.max(l+r,0):Math.min(r,l),c=arguments[2],u=c===void 0?l:c>>0,h=u<0?Math.max(l+u,0):Math.min(u,l);a<h;)g[a]=f,a++;return g}),Array.of||o(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,i,s){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,s){i.deepCopy=function o(f){if(typeof f!="object"||!f)return f;var g;if(Array.isArray(f)){g=[];for(var l=0;l<f.length;l++)g[l]=o(f[l]);return g}if(Object.prototype.toString.call(f)!=="[object Object]")return f;g={};for(var l in f)g[l]=o(f[l]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,s){i.last=function(g){return g[g.length-1]},i.stringReverse=function(g){return g.split("").reverse().join("")},i.stringRepeat=function(g,l){for(var p="";l>0;)l&1&&(p+=g),(l>>=1)&&(g+=g);return p};var o=/^\s\s*/,f=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(o,"")},i.stringTrimRight=function(g){return g.replace(f,"")},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,r=g.length;p<r;p++)g[p]&&typeof g[p]=="object"?l[p]=this.copyObject(g[p]):l[p]=g[p];return l},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var l={},p=0;p<g.length;p++)l[g[p]]=1;return l},i.createMap=function(g){var l=Object.create(null);for(var p in g)l[p]=g[p];return l},i.arrayRemove=function(g,l){for(var p=0;p<=g.length;p++)l===g[p]&&g.splice(p,1)},i.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(g){return(""+g).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},i.getMatchOffsets=function(g,l){var p=[];return g.replace(l,function(r){p.push({offset:arguments[arguments.length-2],length:r.length})}),p},i.deferredCall=function(g){var l=null,p=function(){l=null,g()},r=function(a){return r.cancel(),l=setTimeout(p,a||0),r};return r.schedule=r,r.call=function(){return this.cancel(),g(),r},r.cancel=function(){return clearTimeout(l),l=null,r},r.isPending=function(){return l},r},i.delayedCall=function(g,l){var p=null,r=function(){p=null,g()},a=function(c){p==null&&(p=setTimeout(r,c||l))};return a.delay=function(c){p&&clearTimeout(p),p=setTimeout(r,c||l)},a.schedule=a,a.call=function(){this.cancel(),g()},a.cancel=function(){p&&clearTimeout(p),p=null},a.isPending=function(){return p},a},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(g,l,p){return p&&g.codePointAt(l)>65535?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 o=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(o.platform)||["other"])[0].toLowerCase(),g=o.userAgent||"",l=o.appName||"";i.isWin=f=="win",i.isMac=f=="mac",i.isLinux=f=="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 o=n("./useragent"),f="http://www.w3.org/1999/xhtml";i.buildDom=function c(u,h,d){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 b=[],y=0;y<u.length;y++){var $=c(u[y],h,d);$&&b.push($)}return b}var S=document.createElement(u[0]),_=u[1],w=1;_&&typeof _=="object"&&!Array.isArray(_)&&(w=2);for(var y=w;y<u.length;y++)c(u[y],S,d);return w==2&&Object.keys(_).forEach(function(A){var L=_[A];A==="class"?S.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||A=="value"||A[0]=="$"?S[A]=L:A==="ref"?d&&(d[L]=S):A==="style"?typeof L=="string"&&(S.style.cssText=L):L!=null&&S.setAttribute(A,L)}),h&&h.appendChild(S),S},i.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},i.createElement=function(c,u){return document.createElementNS?document.createElementNS(u||f,c):document.createElement(c)},i.removeChildren=function(c){c.innerHTML=""},i.createTextNode=function(c,u){var h=u?u.ownerDocument:document;return h.createTextNode(c)},i.createFragment=function(c){var u=c?c.ownerDocument:document;return u.createDocumentFragment()},i.hasCssClass=function(c,u){var h=(c.className+"").split(/\s+/g);return h.indexOf(u)!==-1},i.addCssClass=function(c,u){i.hasCssClass(c,u)||(c.className+=" "+u)},i.removeCssClass=function(c,u){for(var h=c.className.split(/\s+/g);;){var d=h.indexOf(u);if(d==-1)break;h.splice(d,1)}c.className=h.join(" ")},i.toggleCssClass=function(c,u){for(var h=c.className.split(/\s+/g),d=!0;;){var m=h.indexOf(u);if(m==-1)break;d=!1,h.splice(m,1)}return d&&h.push(u),c.className=h.join(" "),d},i.setCssClass=function(c,u,h){h?i.addCssClass(c,u):i.removeCssClass(c,u)},i.hasCssString=function(c,u){var h=0,d;if(u=u||document,d=u.querySelectorAll("style")){for(;h<d.length;)if(d[h++].id===c)return!0}},i.removeElementById=function(c,u){u=u||document,u.getElementById(c)&&u.getElementById(c).remove()};var g,l=[];i.useStrictCSP=function(c){g=c,c==!1?p():l||(l=[])};function p(){var c=l;l=null,c&&c.forEach(function(u){r(u[0],u[1])})}function r(c,u,h){if(!(typeof document>"u")){if(l){if(h)p();else if(h===!1)return l.push([c,u])}if(!g){var d=h;!h||!h.getRootNode?d=document:(d=h.getRootNode(),(!d||d==h)&&(d=document));var m=d.ownerDocument||d;if(u&&i.hasCssString(u,d))return null;u&&(c+=`
|
608
|
+
/*# sourceURL=ace/css/`+u+" */");var b=i.createElement("style");b.appendChild(m.createTextNode(c)),u&&(b.id=u),d==m&&(d=i.getDocumentHead(m)),d.insertBefore(b,d.firstChild)}}}if(i.importCssString=r,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"),d=h.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",h.appendChild(u);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(h);var b=u.offsetWidth;d.overflow="scroll";var y=u.offsetWidth;return b===y&&(y=h.clientWidth),m.removeChild(h),b-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=o.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,o.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var a=document.createElement("div");i.HI_DPI&&a.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!o.isEdge&&typeof a.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),a=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){/*
|
609
|
+
* based on code from:
|
610
|
+
*
|
611
|
+
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
612
|
+
* Available via the MIT or new BSD license.
|
613
|
+
* see: http://github.com/jrburke/requirejs for details
|
614
|
+
*/var o=n("./dom");i.get=function(f,g){var l=new XMLHttpRequest;l.open("GET",f,!0),l.onreadystatechange=function(){l.readyState===4&&g(l.responseText)},l.send(null)},i.loadScript=function(f,g){var l=o.getDocumentHead(),p=document.createElement("script");p.src=f,l.appendChild(p),p.onload=p.onreadystatechange=function(r,a){(a||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,a||g())}},i.qualifyURL=function(f){var g=document.createElement("a");return g.href=f,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,s){i.inherits=function(o,f){o.super_=f,o.prototype=Object.create(f.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(o,f){for(var g in f)o[g]=f[g];return o},i.implement=function(o,f){i.mixin(o,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,s){var o={},f=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};o._emit=o._dispatchEvent=function(l,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var r=this._eventRegistry[l]||[],a=this._defaultHandlers[l];if(!(!r.length&&!a)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=l),p.stopPropagation||(p.stopPropagation=f),p.preventDefault||(p.preventDefault=g),r=r.slice();for(var c=0;c<r.length&&(r[c](p,this),!p.propagationStopped);c++);if(a&&!p.defaultPrevented)return a(p,this)}},o._signal=function(l,p){var r=(this._eventRegistry||{})[l];if(r){r=r.slice();for(var a=0;a<r.length;a++)r[a](p,this)}},o.once=function(l,p){var r=this;if(this.on(l,function a(){r.off(l,a),p.apply(null,arguments)}),!p)return new Promise(function(a){p=a})},o.setDefaultHandler=function(l,p){var r=this._defaultHandlers;if(r||(r=this._defaultHandlers={_disabled_:{}}),r[l]){var a=r[l],c=r._disabled_[l];c||(r._disabled_[l]=c=[]),c.push(a);var u=c.indexOf(p);u!=-1&&c.splice(u,1)}r[l]=p},o.removeDefaultHandler=function(l,p){var r=this._defaultHandlers;if(r){var a=r._disabled_[l];if(r[l]==p)a&&this.setDefaultHandler(l,a.pop());else if(a){var c=a.indexOf(p);c!=-1&&a.splice(c,1)}}},o.on=o.addEventListener=function(l,p,r){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[l];return a||(a=this._eventRegistry[l]=[]),a.indexOf(p)==-1&&a[r?"unshift":"push"](p),p},o.off=o.removeListener=o.removeEventListener=function(l,p){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[l];if(r){var a=r.indexOf(p);a!==-1&&r.splice(a,1)}},o.removeAllListeners=function(l){l||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[l]=void 0),this._defaultHandlers&&(this._defaultHandlers[l]=void 0)},i.EventEmitter=o}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,i,s){i.reportError=function(f,g){var l=new Error(f);l.data=g,typeof console=="object"&&console.error&&console.error(l),setTimeout(function(){throw l})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,i,s){var o={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};i.defaultEnglishMessages=o}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,i,s){"no use strict";var o=n("./oop"),f=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,l=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(h){Object.keys(h).forEach(function(d){this.setOption(d,h[d])},this)},getOptions:function(h){var d={};if(h)Array.isArray(h)||(d=h,h=Object.keys(d));else{var m=this.$options;h=Object.keys(m).filter(function(b){return!m[b].hidden})}return h.forEach(function(b){d[b]=this.getOption(b)},this),d},setOption:function(h,d){if(this["$"+h]!==d){var m=this.$options[h];if(!m)return r('misspelled option "'+h+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(h,d);m.handlesSet||(this["$"+h]=d),m&&m.set&&m.set.call(this,d)}},getOption:function(h){var d=this.$options[h];return d?d.forwardTo?this[d.forwardTo]&&this[d.forwardTo].getOption(h):d&&d.get?d.get.call(this):this["$"+h]:r('misspelled option "'+h+'"')}};function r(h){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var a,c,u=function(){function h(){this.$defaultOptions={},a=l,c="dollarSigns"}return h.prototype.defineOptions=function(d,m,b){return d.$options||(this.$defaultOptions[m]=d.$options={}),Object.keys(b).forEach(function(y){var $=b[y];typeof $=="string"&&($={forwardTo:$}),$.name||($.name=y),d.$options[$.name]=$,"initialValue"in $&&(d["$"+$.name]=$.initialValue)}),o.implement(d,p),this},h.prototype.resetOptions=function(d){Object.keys(d.$options).forEach(function(m){var b=d.$options[m];"value"in b&&d.setOption(m,b.value)})},h.prototype.setDefaultValue=function(d,m,b){if(!d){for(d in this.$defaultOptions)if(this.$defaultOptions[d][m])break;if(!this.$defaultOptions[d][m])return!1}var y=this.$defaultOptions[d]||(this.$defaultOptions[d]={});y[m]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,m,b):y[m].value=b)},h.prototype.setDefaultValues=function(d,m){Object.keys(m).forEach(function(b){this.setDefaultValue(d,b,m[b])},this)},h.prototype.setMessages=function(d,m){a=d,m&&m.placeholders&&(c=m.placeholders)},h.prototype.nls=function(d,m,b){a[d]||(r("No message found for the key '"+d+"' in the provided messages, trying to find a translation for the default string '"+m+"'."),a[m]||r("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=a[d]||a[m]||m;return b&&(c==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function($,S){return S=="$"?"$":b[S]})),c==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function($,S){return b[S]}))),y},h}();u.prototype.warn=r,u.prototype.reportError=g,o.implement(u.prototype,f),i.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,s){s.exports=`.ace-tm .ace_gutter {
|
615
|
+
background: #f0f0f0;
|
616
|
+
color: #333;
|
617
|
+
}
|
618
|
+
|
619
|
+
.ace-tm .ace_print-margin {
|
620
|
+
width: 1px;
|
621
|
+
background: #e8e8e8;
|
622
|
+
}
|
623
|
+
|
624
|
+
.ace-tm .ace_fold {
|
625
|
+
background-color: #6B72E6;
|
626
|
+
}
|
627
|
+
|
628
|
+
.ace-tm {
|
629
|
+
background-color: #FFFFFF;
|
630
|
+
color: black;
|
631
|
+
}
|
632
|
+
|
633
|
+
.ace-tm .ace_cursor {
|
634
|
+
color: black;
|
635
|
+
}
|
636
|
+
|
637
|
+
.ace-tm .ace_invisible {
|
638
|
+
color: rgb(191, 191, 191);
|
639
|
+
}
|
640
|
+
|
641
|
+
.ace-tm .ace_storage,
|
642
|
+
.ace-tm .ace_keyword {
|
643
|
+
color: blue;
|
644
|
+
}
|
645
|
+
|
646
|
+
.ace-tm .ace_constant {
|
647
|
+
color: rgb(197, 6, 11);
|
648
|
+
}
|
649
|
+
|
650
|
+
.ace-tm .ace_constant.ace_buildin {
|
651
|
+
color: rgb(88, 72, 246);
|
652
|
+
}
|
653
|
+
|
654
|
+
.ace-tm .ace_constant.ace_language {
|
655
|
+
color: rgb(88, 92, 246);
|
656
|
+
}
|
657
|
+
|
658
|
+
.ace-tm .ace_constant.ace_library {
|
659
|
+
color: rgb(6, 150, 14);
|
660
|
+
}
|
661
|
+
|
662
|
+
.ace-tm .ace_invalid {
|
663
|
+
background-color: rgba(255, 0, 0, 0.1);
|
664
|
+
color: red;
|
665
|
+
}
|
666
|
+
|
667
|
+
.ace-tm .ace_support.ace_function {
|
668
|
+
color: rgb(60, 76, 114);
|
669
|
+
}
|
670
|
+
|
671
|
+
.ace-tm .ace_support.ace_constant {
|
672
|
+
color: rgb(6, 150, 14);
|
673
|
+
}
|
674
|
+
|
675
|
+
.ace-tm .ace_support.ace_type,
|
676
|
+
.ace-tm .ace_support.ace_class {
|
677
|
+
color: rgb(109, 121, 222);
|
678
|
+
}
|
679
|
+
|
680
|
+
.ace-tm .ace_keyword.ace_operator {
|
681
|
+
color: rgb(104, 118, 135);
|
682
|
+
}
|
683
|
+
|
684
|
+
.ace-tm .ace_string {
|
685
|
+
color: rgb(3, 106, 7);
|
686
|
+
}
|
687
|
+
|
688
|
+
.ace-tm .ace_comment {
|
689
|
+
color: rgb(76, 136, 107);
|
690
|
+
}
|
691
|
+
|
692
|
+
.ace-tm .ace_comment.ace_doc {
|
693
|
+
color: rgb(0, 102, 255);
|
694
|
+
}
|
695
|
+
|
696
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
697
|
+
color: rgb(128, 159, 191);
|
698
|
+
}
|
699
|
+
|
700
|
+
.ace-tm .ace_constant.ace_numeric {
|
701
|
+
color: rgb(0, 0, 205);
|
702
|
+
}
|
703
|
+
|
704
|
+
.ace-tm .ace_variable {
|
705
|
+
color: rgb(49, 132, 149);
|
706
|
+
}
|
707
|
+
|
708
|
+
.ace-tm .ace_xml-pe {
|
709
|
+
color: rgb(104, 104, 91);
|
710
|
+
}
|
711
|
+
|
712
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
713
|
+
color: #0000A2;
|
714
|
+
}
|
715
|
+
|
716
|
+
|
717
|
+
.ace-tm .ace_heading {
|
718
|
+
color: rgb(12, 7, 255);
|
719
|
+
}
|
720
|
+
|
721
|
+
.ace-tm .ace_list {
|
722
|
+
color:rgb(185, 6, 144);
|
723
|
+
}
|
724
|
+
|
725
|
+
.ace-tm .ace_meta.ace_tag {
|
726
|
+
color:rgb(0, 22, 142);
|
727
|
+
}
|
728
|
+
|
729
|
+
.ace-tm .ace_string.ace_regex {
|
730
|
+
color: rgb(255, 0, 0)
|
731
|
+
}
|
732
|
+
|
733
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
734
|
+
background: rgb(181, 213, 255);
|
735
|
+
}
|
736
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
737
|
+
box-shadow: 0 0 3px 0px white;
|
738
|
+
}
|
739
|
+
.ace-tm .ace_marker-layer .ace_step {
|
740
|
+
background: rgb(252, 255, 0);
|
741
|
+
}
|
742
|
+
|
743
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
744
|
+
background: rgb(164, 229, 101);
|
745
|
+
}
|
746
|
+
|
747
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
748
|
+
margin: -1px 0 0 -1px;
|
749
|
+
border: 1px solid rgb(192, 192, 192);
|
750
|
+
}
|
751
|
+
|
752
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
753
|
+
background: rgba(0, 0, 0, 0.07);
|
754
|
+
}
|
755
|
+
|
756
|
+
.ace-tm .ace_gutter-active-line {
|
757
|
+
background-color : #dcdcdc;
|
758
|
+
}
|
759
|
+
|
760
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
761
|
+
background: rgb(250, 250, 255);
|
762
|
+
border: 1px solid rgb(200, 200, 250);
|
763
|
+
}
|
764
|
+
|
765
|
+
.ace-tm .ace_indent-guide {
|
766
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
767
|
+
}
|
768
|
+
|
769
|
+
.ace-tm .ace_indent-guide-active {
|
770
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
771
|
+
}
|
772
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,i,s){i.isDark=!1,i.cssClass="ace-tm",i.cssText=n("./textmate-css"),i.$id="ace/theme/textmate";var o=n("../lib/dom");o.importCssString(i.cssText,i.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,i,s){"no use strict";var o=n("./lib/lang"),f=n("./lib/net"),g=n("./lib/dom"),l=n("./lib/app_config").AppConfig;s.exports=i=new l;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(u){if(!p.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return p[u]},i.set=function(u,h){if(p.hasOwnProperty(u))p[u]=h;else if(this.setDefaultValue("",u,h)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&g.useStrictCSP(h)},i.all=function(){return o.copyObject(p)},i.$modes={},i.moduleUrl=function(u,h){if(p.$moduleUrls[u])return p.$moduleUrls[u];var d=u.split("/");h=h||d[d.length-2]||"";var m=h=="snippets"?"/":"-",b=d[d.length-1];if(h=="worker"&&m=="-"){var y=new RegExp("^"+h+"[\\-_]|[\\-_]"+h+"$","g");b=b.replace(y,"")}(!b||b==h)&&d.length>1&&(b=d[d.length-2]);var $=p[h+"Path"];return $==null?$=p.basePath:m=="/"&&(h=m=""),$&&$.slice(-1)!="/"&&($+="/"),$+h+m+b+this.get("suffix")},i.setModuleUrl=function(u,h){return p.$moduleUrls[u]=h};var r=function(u,h){if(u==="ace/theme/textmate"||u==="./theme/textmate")return h(null,n("./theme/textmate"));if(a)return a(u,h);console.error("loader is not configured")},a;i.setLoader=function(u){a=u},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(u,h){var d;if(Array.isArray(u))var m=u[0],b=u[1];else if(typeof u=="string")var b=u;var y=function($){if($&&!i.$loading[b])return h&&h($);if(i.$loading[b]||(i.$loading[b]=[]),i.$loading[b].push(h),!(i.$loading[b].length>1)){var S=function(){r(b,function(_,w){w&&(i.$loaded[b]=w),i._emit("load.module",{name:b,module:w});var A=i.$loading[b];i.$loading[b]=null,A.forEach(function(L){L&&L(w)})})};if(!i.get("packaged"))return S();f.loadScript(i.moduleUrl(b,m),S),c()}};if(i.dynamicModules[b])i.dynamicModules[b]().then(function($){$.default?y($.default):y($)});else{try{d=this.$require(b)}catch{}y(d||i.$loaded[b])}},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.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,s){n("./lib/fixoldbrowsers");var o=n("./config");o.setLoader(function(p,r){n([p],function(a){r(null,a)})});var f=function(){return this||typeof window<"u"&&window}();s.exports=function(p){o.init=g,o.$require=n,p.require=n},g(!0);function g(p){if(!(!f||!f.document)){o.set("packaged",p||n.packaged||s.packaged||f.define&&(void 0).packaged);var r={},a="",c=document.currentScript||document._currentScript,u=c&&c.ownerDocument||document;c&&c.src&&(a=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var h=u.getElementsByTagName("script"),d=0;d<h.length;d++){var m=h[d],b=m.src||m.getAttribute("src");if(b){for(var y=m.attributes,$=0,S=y.length;$<S;$++){var _=y[$];_.name.indexOf("data-ace-")===0&&(r[l(_.name.replace(/^data-ace-/,""))]=_.value)}var w=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);w&&(a=w[1])}}a&&(r.base=r.base||a,r.packaged=!0),r.basePath=r.base,r.workerPath=r.workerPath||r.base,r.modePath=r.modePath||r.base,r.themePath=r.themePath||r.base,delete r.base;for(var A in r)typeof r[A]<"u"&&o.set(A,r[A])}}function l(p){return p.replace(/-(.)/g,function(r,a){return a.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,s){var o=function(){function f(g,l,p,r){this.start={row:g,column:l},this.end={row:p,column:r}}return f.prototype.isEqual=function(g){return this.start.row===g.start.row&&this.end.row===g.end.row&&this.start.column===g.start.column&&this.end.column===g.end.column},f.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},f.prototype.contains=function(g,l){return this.compare(g,l)==0},f.prototype.compareRange=function(g){var l,p=g.end,r=g.start;return l=this.compare(p.row,p.column),l==1?(l=this.compare(r.row,r.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(r.row,r.column),l==-1?-1:l==1?42:0)},f.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},f.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},f.prototype.intersects=function(g){var l=this.compareRange(g);return l==-1||l==0||l==1},f.prototype.isEnd=function(g,l){return this.end.row==g&&this.end.column==l},f.prototype.isStart=function(g,l){return this.start.row==g&&this.start.column==l},f.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)},f.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)},f.prototype.inside=function(g,l){return this.compare(g,l)==0?!(this.isEnd(g,l)||this.isStart(g,l)):!1},f.prototype.insideStart=function(g,l){return this.compare(g,l)==0?!this.isEnd(g,l):!1},f.prototype.insideEnd=function(g,l){return this.compare(g,l)==0?!this.isStart(g,l):!1},f.prototype.compare=function(g,l){return!this.isMultiLine()&&g===this.start.row?l<this.start.column?-1:l>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?l>=this.start.column?0:-1:this.end.row===g?l<=this.end.column?0:1:0},f.prototype.compareStart=function(g,l){return this.start.row==g&&this.start.column==l?-1:this.compare(g,l)},f.prototype.compareEnd=function(g,l){return this.end.row==g&&this.end.column==l?1:this.compare(g,l)},f.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)},f.prototype.clipRows=function(g,l){if(this.end.row>l)var p={row:l+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>l)var r={row:l+1,column:0};else if(this.start.row<g)var r={row:g,column:0};return f.fromPoints(r||this.start,p||this.end)},f.prototype.extend=function(g,l){var p=this.compare(g,l);if(p==0)return this;if(p==-1)var r={row:g,column:l};else var a={row:g,column:l};return f.fromPoints(r||this.start,a||this.end)},f.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},f.prototype.isMultiLine=function(){return this.start.row!==this.end.row},f.prototype.clone=function(){return f.fromPoints(this.start,this.end)},f.prototype.collapseRows=function(){return this.end.column==0?new f(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new f(this.start.row,0,this.end.row,0)},f.prototype.toScreenRange=function(g){var l=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new f(l.row,l.column,p.row,p.column)},f.prototype.moveBy=function(g,l){this.start.row+=g,this.start.column+=l,this.end.row+=g,this.end.column+=l},f}();o.fromPoints=function(f,g){return new o(f.row,f.column,g.row,g.column)},o.comparePoints=function(f,g){return f.row-g.row||f.column-g.column},i.Range=o}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,s){for(var o=n("./oop"),f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},g={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},l=0;l<10;l++)g["Digit"+l]=48+l,g["Numpad"+l]=96+l,f.PRINTABLE_KEYS[48+l]=""+l,f.FUNCTION_KEYS[96+l]="Numpad"+l;for(var l=65;l<91;l++){var p=String.fromCharCode(l+32);g["Key"+p.toUpperCase()]=l,f.PRINTABLE_KEYS[l]=p}for(var l=1;l<13;l++)g["F"+l]=111+l,f.FUNCTION_KEYS[111+l]="F"+l;var r={Shift:16,Control:17,Alt:18,Meta:224};for(var a in r)g[a]=g[a+"Left"]=g[a+"Right"]=r[a];i.$codeToKeyCode=g,f.PRINTABLE_KEYS[173]="-";for(var c in f.FUNCTION_KEYS){var u=f.FUNCTION_KEYS[c].toLowerCase();f[u]=parseInt(c,10)}for(var c in f.PRINTABLE_KEYS){var u=f.PRINTABLE_KEYS[c].toLowerCase();f[u]=parseInt(c,10)}o.mixin(f,f.MODIFIER_KEYS),o.mixin(f,f.PRINTABLE_KEYS),o.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,function(){for(var h=["cmd","ctrl","alt","shift"],d=Math.pow(2,h.length);d--;)f.KEY_MODS[d]=h.filter(function(m){return d&f.KEY_MODS[m]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",o.mixin(i,f),i.default=i,i.keyCodeToString=function(h){var d=f[h];return typeof d!="string"&&(d=String.fromCharCode(h)),d.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,s){var o=n("./keys"),f=n("./useragent"),g=null,l=0,p;function r(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function a(){return p==null&&r(),p}function c($,S,_){this.elem=$,this.type=S,this.callback=_}c.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=i.addListener=function($,S,_,w){$.addEventListener(S,_,a()),w&&w.$toDestroy.push(new c($,S,_))},h=i.removeListener=function($,S,_){$.removeEventListener(S,_,a())};i.stopEvent=function($){return i.stopPropagation($),i.preventDefault($),!1},i.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},i.preventDefault=function($){$.preventDefault&&$.preventDefault()},i.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||f.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},i.capture=function($,S,_){var w=$&&$.ownerDocument||document;function A(L){S&&S(L),_&&_(L),h(w,"mousemove",S),h(w,"mouseup",A),h(w,"dragstart",A)}return u(w,"mousemove",S),u(w,"mouseup",A),u(w,"dragstart",A),A},i.addMouseWheelListener=function($,S,_){u($,"wheel",function(w){var A=.15,L=w.deltaX||0,E=w.deltaY||0;switch(w.deltaMode){case w.DOM_DELTA_PIXEL:w.wheelX=L*A,w.wheelY=E*A;break;case w.DOM_DELTA_LINE:var M=15;w.wheelX=L*M,w.wheelY=E*M;break;case w.DOM_DELTA_PAGE:var O=150;w.wheelX=L*O,w.wheelY=E*O;break}S(w)},_)},i.addMultiMouseDownListener=function($,S,_,w,A){var L=0,E,M,O,C={2:"dblclick",3:"tripleclick",4:"quadclick"};function v(x){if(i.getButton(x)!==0?L=0:x.detail>1?(L++,L>4&&(L=1)):L=1,f.isIE){var k=Math.abs(x.clientX-E)>5||Math.abs(x.clientY-M)>5;(!O||k)&&(L=1),O&&clearTimeout(O),O=setTimeout(function(){O=null},S[L-1]||600),L==1&&(E=x.clientX,M=x.clientY)}if(x._clicks=L,_[w]("mousedown",x),L>4)L=0;else if(L>1)return _[w](C[L],x)}Array.isArray($)||($=[$]),$.forEach(function(x){u(x,"mousedown",v,A)})};function d($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)}i.getModifierString=function($){return o.KEY_MODS[d($)]};function m($,S,_){var w=d(S);if(!_&&S.code&&(_=o.$codeToKeyCode[S.code]||_),!f.isMac&&g){if(S.getModifierState&&(S.getModifierState("OS")||S.getModifierState("Win"))&&(w|=8),g.altGr)if((3&w)!=3)g.altGr=0;else return;if(_===18||_===17){var A=S.location;if(_===17&&A===1)g[_]==1&&(l=S.timeStamp);else if(_===18&&w===3&&A===2){var L=S.timeStamp-l;L<50&&(g.altGr=!0)}}}if(_ in o.MODIFIER_KEYS&&(_=-1),!(!w&&_===13&&S.location===3&&($(S,w,-_),S.defaultPrevented))){if(f.isChromeOS&&w&8){if($(S,w,_),S.defaultPrevented)return;w&=-9}return!w&&!(_ in o.FUNCTION_KEYS)&&!(_ in o.PRINTABLE_KEYS)?!1:$(S,w,_)}}i.addCommandKeyListener=function($,S,_){var w=null;u($,"keydown",function(A){g[A.keyCode]=(g[A.keyCode]||0)+1;var L=m(S,A,A.keyCode);return w=A.defaultPrevented,L},_),u($,"keypress",function(A){w&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(i.stopEvent(A),w=null)},_),u($,"keyup",function(A){g[A.keyCode]=null},_),g||(b(),u(window,"focus",b))};function b(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var y=1;i.nextTick=function($,S){S=S||window;var _="zero-timeout-message-"+y++,w=function(A){A.data==_&&(i.stopPropagation(A),h(S,"message",w),$())};u(S,"message",w),S.postMessage(_,"*")}}i.$idleBlocked=!1,i.onIdle=function($,S){return setTimeout(function _(){i.$idleBlocked?setTimeout(_,100):$()},S)},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 o;s.exports={lineMode:!1,pasteCancelled:function(){return o&&o>Date.now()-50?!0:o=!1},cancel:function(){o=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 o=n("../lib/event"),f=n("../config").nls,g=n("../lib/useragent"),l=n("../lib/dom"),p=n("../lib/lang"),r=n("../clipboard"),a=g.isChrome<18,c=g.isIE,u=g.isChrome>63,h=400,d=n("../lib/keys"),m=d.KEY_MODS,b=g.isIOS,y=b?/\s/:/\n/,$=g.isMobile,S;S=function(_,w){var A=l.createElement("textarea");A.className="ace_text-input",A.setAttribute("wrap","off"),A.setAttribute("autocorrect","off"),A.setAttribute("autocapitalize","off"),A.setAttribute("spellcheck","false"),A.style.opacity="0",_.insertBefore(A,_.firstChild);var L=!1,E=!1,M=!1,O=!1,C="";$||(A.style.fontSize="1px");var v=!1,x=!1,k="",T=0,R=0,I=0,N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,W=0;try{var V=document.activeElement===A}catch{}this.setNumberOfExtraLines=function(Z){if(N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,Z<0){W=0;return}W=Z},this.setAriaLabel=function(){var Z="";if(w.$textInputAriaLabel&&(Z+="".concat(w.$textInputAriaLabel,", ")),w.session){var le=w.session.selection.cursor.row;Z+=f("text-input.aria-label","Cursor at row $0",[le+1])}A.setAttribute("aria-label",Z)},this.setAriaOptions=function(Z){Z.activeDescendant?(A.setAttribute("aria-haspopup","true"),A.setAttribute("aria-autocomplete",Z.inline?"both":"list"),A.setAttribute("aria-activedescendant",Z.activeDescendant)):(A.setAttribute("aria-haspopup","false"),A.setAttribute("aria-autocomplete","both"),A.removeAttribute("aria-activedescendant")),Z.role&&A.setAttribute("role",Z.role),Z.setLabel&&(A.setAttribute("aria-roledescription",f("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),o.addListener(A,"blur",function(Z){x||(w.onBlur(Z),V=!1)},w),o.addListener(A,"focus",function(Z){if(!x){if(V=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(Z),g.isEdge?setTimeout(H):H()}},w),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:w.renderer.enableKeyboardAccessibility}),C||u||this.$focusScroll=="browser")return A.focus({preventScroll:!0});var Z=A.style.top;A.style.position="fixed",A.style.top="0px";try{var le=A.getBoundingClientRect().top!=0}catch{return}var pe=[];if(le)for(var we=A.parentElement;we&&we.nodeType==1;)pe.push(we),we.setAttribute("ace_nocontext","true"),!we.parentElement&&we.getRootNode?we=we.getRootNode().host:we=we.parentElement;A.focus({preventScroll:!0}),le&&pe.forEach(function(Ne){Ne.removeAttribute("ace_nocontext")}),setTimeout(function(){A.style.position="",A.style.top=="0px"&&(A.style.top=Z)},0)},this.blur=function(){A.blur()},this.isFocused=function(){return V},w.on("beforeEndOperation",function(){var Z=w.curOp,le=Z&&Z.command&&Z.command.name;if(le!="insertstring"){var pe=le&&(Z.docChanged||Z.selectionChanged);M&&pe&&(k=A.value="",re()),H()}}),w.on("changeSelection",this.setAriaLabel);var B=function(Z,le){for(var pe=le,we=1;we<=Z-N&&we<2*W+1;we++)pe+=w.session.getLine(Z-we).length+1;return pe},H=b?function(Z){if(!(!V||L&&!Z||O)){Z||(Z="");var le=`
|
773
|
+
ab`+Z+`cde fg
|
774
|
+
`;le!=A.value&&(A.value=k=le);var pe=4,we=4+(Z.length||(w.selection.isEmpty()?0:1));(T!=pe||R!=we)&&A.setSelectionRange(pe,we),T=pe,R=we}}:function(){if(!(M||O)&&!(!V&&!Q)){M=!0;var Z=0,le=0,pe="";if(w.session){var we=w.selection,Ne=we.getRange(),ze=we.cursor.row;ze===F+1?(N=F+1,F=N+2*W):ze===N-1?(F=N-1,N=F-2*W):(ze<N-1||ze>F+1)&&(N=ze>W?ze-W:0,F=ze>W?ze+W:2*W);for(var Ve=[],je=N;je<=F;je++)Ve.push(w.session.getLine(je));if(pe=Ve.join(`
|
775
|
+
`),Z=B(Ne.start.row,Ne.start.column),le=B(Ne.end.row,Ne.end.column),Ne.start.row<N){var Ke=w.session.getLine(N-1);Z=Ne.start.row<N-1?0:Z,le+=Ke.length+1,pe=Ke+`
|
776
|
+
`+pe}else if(Ne.end.row>F){var Ge=w.session.getLine(F+1);le=Ne.end.row>F+1?Ge.length:Ne.end.column,le+=pe.length+1,pe=pe+`
|
777
|
+
`+Ge}else $&&ze>0&&(pe=`
|
778
|
+
`+pe,le+=1,Z+=1);pe.length>h&&(Z<h&&le<h?pe=pe.slice(0,h):(pe=`
|
779
|
+
`,Z==le?Z=le=0:(Z=0,le=1)));var qe=pe+`
|
780
|
+
|
781
|
+
`;qe!=k&&(A.value=k=qe,T=R=qe.length)}if(Q&&(T=A.selectionStart,R=A.selectionEnd),R!=le||T!=Z||A.selectionEnd!=R)try{A.setSelectionRange(Z,le),T=Z,R=le}catch{}M=!1}};this.resetSelection=H,V&&w.onFocus();var K=function(Z){return Z.selectionStart===0&&Z.selectionEnd>=k.length&&Z.value===k&&k&&Z.selectionEnd!==R},U=function(Z){M||(L?L=!1:K(A)?(w.selectAll(),H()):$&&A.selectionStart!=T&&H())},j=null;this.setInputHandler=function(Z){j=Z},this.getInputHandler=function(){return j};var Q=!1,q=function(Z,le){if(Q&&(Q=!1),E)return H(),Z&&w.onPaste(Z),E=!1,"";for(var pe=A.selectionStart,we=A.selectionEnd,Ne=T,ze=k.length-R,Ve=Z,je=Z.length-pe,Ke=Z.length-we,Ge=0;Ne>0&&k[Ge]==Z[Ge];)Ge++,Ne--;for(Ve=Ve.slice(Ge),Ge=1;ze>0&&k.length-Ge>T-1&&k[k.length-Ge]==Z[Z.length-Ge];)Ge++,ze--;je-=Ge-1,Ke-=Ge-1;var qe=Ve.length-Ge+1;if(qe<0&&(Ne=-qe,qe=0),Ve=Ve.slice(0,qe),!le&&!Ve&&!je&&!Ne&&!ze&&!Ke)return"";O=!0;var vt=!1;return g.isAndroid&&Ve==". "&&(Ve=" ",vt=!0),Ve&&!Ne&&!ze&&!je&&!Ke||v?w.onTextInput(Ve):w.onTextInput(Ve,{extendLeft:Ne,extendRight:ze,restoreStart:je,restoreEnd:Ke}),O=!1,k=Z,T=pe,R=we,I=Ke,vt?`
|
782
|
+
`:Ve},X=function(Z){if(M)return ee();if(Z&&Z.inputType){if(Z.inputType=="historyUndo")return w.execCommand("undo");if(Z.inputType=="historyRedo")return w.execCommand("redo")}var le=A.value,pe=q(le,!0);(le.length>h+100||y.test(pe)||$&&T<1&&T==R)&&H()},ce=function(Z,le,pe){var we=Z.clipboardData||window.clipboardData;if(!(!we||a)){var Ne=c||pe?"Text":"text/plain";try{return le?we.setData(Ne,le)!==!1:we.getData(Ne)}catch(ze){if(!pe)return ce(ze,le,!0)}}},Me=function(Z,le){var pe=w.getCopyText();if(!pe)return o.preventDefault(Z);ce(Z,pe)?(b&&(H(pe),L=pe,setTimeout(function(){L=!1},10)),le?w.onCut():w.onCopy(),o.preventDefault(Z)):(L=!0,A.value=pe,A.select(),setTimeout(function(){L=!1,H(),le?w.onCut():w.onCopy()}))},P=function(Z){Me(Z,!0)},z=function(Z){Me(Z,!1)},G=function(Z){var le=ce(Z);r.pasteCancelled()||(typeof le=="string"?(le&&w.onPaste(le,Z),g.isIE&&setTimeout(H),o.preventDefault(Z)):(A.value="",E=!0))};o.addCommandKeyListener(A,function(Z,le,pe){if(!M)return w.onCommandKey(Z,le,pe)},w),o.addListener(A,"select",U,w),o.addListener(A,"input",X,w),o.addListener(A,"cut",P,w),o.addListener(A,"copy",z,w),o.addListener(A,"paste",G,w),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&o.addListener(_,"keydown",function(Z){if(!(g.isMac&&!Z.metaKey||!Z.ctrlKey))switch(Z.keyCode){case 67:z(Z);break;case 86:G(Z);break;case 88:P(Z);break}},w);var ne=function(Z){if(!(M||!w.onCompositionStart||w.$readOnly)&&(M={},!v)){Z.data&&(M.useTextareaForIME=!1),setTimeout(ee,0),w._signal("compositionStart"),w.on("mousedown",ge);var le=w.getSelectionRange();le.end.row=le.start.row,le.end.column=le.start.column,M.markerRange=le,M.selectionStart=T,w.onCompositionStart(M),M.useTextareaForIME?(k=A.value="",T=0,R=0):(A.msGetInputContext&&(M.context=A.msGetInputContext()),A.getInputContext&&(M.context=A.getInputContext()))}},ee=function(){if(!(!M||!w.onCompositionUpdate||w.$readOnly)){if(v)return ge();if(M.useTextareaForIME)w.onCompositionUpdate(A.value);else{var Z=A.value;q(Z),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+R-M.selectionStart+I)}}},re=function(Z){!w.onCompositionEnd||w.$readOnly||(M=!1,w.onCompositionEnd(),w.off("mousedown",ge),Z&&X())};function ge(){x=!0,A.blur(),A.focus(),x=!1}var fe=p.delayedCall(ee,50).schedule.bind(null,null);function de(Z){Z.keyCode==27&&A.value.length<A.selectionStart&&(M||(k=A.value),T=R=-1,H()),fe()}o.addListener(A,"compositionstart",ne,w),o.addListener(A,"compositionupdate",ee,w),o.addListener(A,"keyup",de,w),o.addListener(A,"keydown",fe,w),o.addListener(A,"compositionend",re,w),this.getElement=function(){return A},this.setCommandMode=function(Z){v=Z,A.readOnly=!1},this.setReadOnly=function(Z){v||(A.readOnly=Z)},this.setCopyWithEmptySelection=function(Z){},this.onContextMenu=function(Z){Q=!0,H(),w._emit("nativecontextmenu",{target:w,domEvent:Z}),this.moveToMouse(Z,!0)},this.moveToMouse=function(Z,le){C||(C=A.style.cssText),A.style.cssText=(le?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+R)*w.renderer.characterWidth*.5+"px;";var pe=w.container.getBoundingClientRect(),we=l.computedStyle(w.container),Ne=pe.top+(parseInt(we.borderTopWidth)||0),ze=pe.left+(parseInt(pe.borderLeftWidth)||0),Ve=pe.bottom-Ne-A.clientHeight-2,je=function(Ke){l.translate(A,Ke.clientX-ze-2,Math.min(Ke.clientY-Ne-2,Ve))};je(Z),Z.type=="mousedown"&&(w.renderer.$isMousePressed=!0,clearTimeout(oe),g.isWin&&o.capture(w.container,je,Te))},this.onContextMenuClose=Te;var oe;function Te(){clearTimeout(oe),oe=setTimeout(function(){C&&(A.style.cssText=C,C=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}var ye=function(Z){w.textInput.onContextMenu(Z),Te()};o.addListener(A,"mouseup",ye,w),o.addListener(A,"mousedown",function(Z){Z.preventDefault(),Te()},w),o.addListener(w.renderer.scroller,"contextmenu",ye,w),o.addListener(A,"contextmenu",ye,w),b&&Ae(_,w,A);function Ae(Z,le,pe){var we=null,Ne=!1;pe.addEventListener("keydown",function(Ve){we&&clearTimeout(we),Ne=!0},!0),pe.addEventListener("keyup",function(Ve){we=setTimeout(function(){Ne=!1},100)},!0);var ze=function(Ve){if(document.activeElement===pe&&!(Ne||M||le.$mouseHandler.isMousePressed)&&!L){var je=pe.selectionStart,Ke=pe.selectionEnd,Ge=null,qe=0;if(je==0?Ge=d.up:je==1?Ge=d.home:Ke>R&&k[Ke]==`
|
783
|
+
`?Ge=d.end:je<T&&k[je-1]==" "?(Ge=d.left,qe=m.option):je<T||je==T&&R!=T&&je==Ke?Ge=d.left:Ke>R&&k.slice(0,Ke).split(`
|
784
|
+
`).length>2?Ge=d.down:Ke>R&&k[Ke-1]==" "?(Ge=d.right,qe=m.option):(Ke>R||Ke==R&&R!=T&&je==Ke)&&(Ge=d.right),je!==Ke&&(qe|=m.shift),Ge){var vt=le.onCommandKey({},qe,Ge);if(!vt&&le.commands){Ge=d.keyCodeToString(Ge);var Fi=le.commands.findKeyCommand(qe,Ge);Fi&&le.execCommand(Fi)}T=je,R=Ke,H("")}}};document.addEventListener("selectionchange",ze),le.on("destroy",function(){document.removeEventListener("selectionchange",ze)})}this.destroy=function(){A.parentElement&&A.parentElement.removeChild(A)}},i.TextInput=S,i.$setUserAgentForTests=function(_,w){$=_,b=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,s){var o=n("../lib/useragent"),f=0,g=550,l=function(){function a(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(d){c[d]=this[d]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return a.prototype.onMouseDown=function(c){var u=c.inSelection(),h=c.getDocumentPosition();this.mousedownEvent=c;var d=this.editor,m=c.getButton();if(m!==0){var b=d.getSelectionRange(),y=b.isEmpty();(y||m==1)&&d.selection.moveToPosition(h),m==2&&(d.textInput.onContextMenu(c.domEvent),o.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(h,c.domEvent._clicks>1),c.preventDefault()},a.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"))},a.prototype.select=function(){var c,u=this.editor,h=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(h);if(d==-1)c=this.$clickSelection.end;else if(d==1)c=this.$clickSelection.start;else{var m=r(this.$clickSelection,h);h=m.cursor,c=m.anchor}u.selection.setSelectionAnchor(c.row,c.column)}u.selection.selectToPosition(h),u.renderer.scrollCursorIntoView()},a.prototype.extendSelectionBy=function(c){var u,h=this.editor,d=h.renderer.screenToTextCoordinates(this.x,this.y),m=h.selection[c](d.row,d.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(b==-1&&y<=0)u=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(y==1&&b>=0)u=this.$clickSelection.start,(m.start.row!=d.row||m.start.column!=d.column)&&(d=m.end);else if(b==-1&&y==1)d=m.end,u=m.start;else{var $=r(this.$clickSelection,d);d=$.cursor,u=$.anchor}h.selection.setSelectionAnchor(u.row,u.column)}h.selection.selectToPosition(d),h.renderer.scrollCursorIntoView()},a.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},a.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(c>f||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},a.prototype.onDoubleClick=function(c){var u=c.getDocumentPosition(),h=this.editor,d=h.session,m=d.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()},a.prototype.onTripleClick=function(c){var u=c.getDocumentPosition(),h=this.editor;this.setState("selectByLines");var d=h.getSelectionRange();d.isMultiLine()&&d.contains(u.row,u.column)?(this.$clickSelection=h.selection.getLineRange(d.start.row),this.$clickSelection.end=h.selection.getLineRange(d.end.row).end):this.$clickSelection=h.selection.getLineRange(u.row),this.select()},a.prototype.onQuadClick=function(c){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},a.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,d=c.domEvent.timeStamp,m=d-h.t,b=m?c.wheelX/m:h.vx,y=m?c.wheelY/m:h.vy;m<g&&(b=(b+h.vx)/2,y=(y+h.vy)/2);var $=Math.abs(b/y),S=!1;if($>=1&&u.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(S=!0),$<=1&&u.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(S=!0),S)h.allowed=d;else if(d-h.allowed<g){var _=Math.abs(b)<=1.5*Math.abs(h.vx)&&Math.abs(y)<=1.5*Math.abs(h.vy);_?(S=!0,h.allowed=d):h.allowed=0}if(h.t=d,h.vx=b,h.vy=y,S)return u.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},a}();l.prototype.selectEnd=l.prototype.selectByLinesEnd,l.prototype.selectAllEnd=l.prototype.selectByLinesEnd,l.prototype.selectByWordsEnd=l.prototype.selectByLinesEnd,i.DefaultHandlers=l;function p(a,c,u,h){return Math.sqrt(Math.pow(u-a,2)+Math.pow(h-c,2))}function r(a,c){if(a.start.row==a.end.row)var u=2*c.column-a.start.column-a.end.column;else if(a.start.row==a.end.row-1&&!a.start.column&&!a.end.column)var u=c.column-4;else var u=2*c.row-a.start.row-a.end.row;return u<0?{cursor:a.start,anchor:a.end}:{cursor:a.end,anchor:a.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,i,s){i.preventParentScroll=function(f){f.stopPropagation();var g=f.currentTarget,l=g.scrollHeight>g.clientHeight;l||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,i,s){var o=this&&this.__extends||function(){var d=function(m,b){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,$){y.__proto__=$}||function(y,$){for(var S in $)Object.prototype.hasOwnProperty.call($,S)&&(y[S]=$[S])},d(m,b)};return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");d(m,b);function y(){this.constructor=m}m.prototype=b===null?Object.create(b):(y.prototype=b.prototype,new y)}}(),f=this&&this.__values||function(d){var m=typeof Symbol=="function"&&Symbol.iterator,b=m&&d[m],y=0;if(b)return b.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};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,r="ace_tooltip",a=function(){function d(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return d.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=r,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},d.prototype.getElement=function(){return this.$element||this.$init()},d.prototype.setText=function(m){this.getElement().textContent=m},d.prototype.setHtml=function(m){this.getElement().innerHTML=m},d.prototype.setPosition=function(m,b){this.getElement().style.left=m+"px",this.getElement().style.top=b+"px"},d.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},d.prototype.setTheme=function(m){this.$element.className=r+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},d.prototype.show=function(m,b,y){m!=null&&this.setText(m),b!=null&&y!=null&&this.setPosition(b,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},d.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=r,this.isOpen=!1)},d.prototype.getHeight=function(){return this.getElement().offsetHeight},d.prototype.getWidth=function(){return this.getElement().offsetWidth},d.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},d}(),c=function(){function d(){this.popups=[]}return d.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},d.prototype.removePopup=function(m){var b=this.popups.indexOf(m);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},d.prototype.updatePopups=function(){var m,b,y,$;this.popups.sort(function(C,v){return v.priority-C.priority});var S=[];try{for(var _=f(this.popups),w=_.next();!w.done;w=_.next()){var A=w.value,L=!0;try{for(var E=(y=void 0,f(S)),M=E.next();!M.done;M=E.next()){var O=M.value;if(this.doPopupsOverlap(O,A)){L=!1;break}}}catch(C){y={error:C}}finally{try{M&&!M.done&&($=E.return)&&$.call(E)}finally{if(y)throw y.error}}L?S.push(A):A.hide()}}catch(C){m={error:C}}finally{try{w&&!w.done&&(b=_.return)&&b.call(_)}finally{if(m)throw m.error}}},d.prototype.doPopupsOverlap=function(m,b){var y=m.getElement().getBoundingClientRect(),$=b.getElement().getBoundingClientRect();return y.left<$.right&&y.right>$.left&&y.top<$.bottom&&y.bottom>$.top},d}(),u=new c;i.popupManager=u,i.Tooltip=a;var h=function(d){o(m,d);function m(b){b===void 0&&(b=document.body);var y=d.call(this,b)||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(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide),b.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide),b.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(b,y){this.lastEvent=b,this.lastT=Date.now();var $=y.$mouseHandler.isMousePressed;if(this.isOpen){var S=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(S.row,S.column)||$||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||$||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(b){var y=b.editor,$=b.getDocumentPosition(),S=y.session.getLine($.row);if($.column==S.length){var _=y.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),w=y.session.documentToScreenPosition($.row,$.column);if(w.column!=_.column||w.row!=_.row)return!0}return!1},m.prototype.setDataProvider=function(b){this.$gatherData=b},m.prototype.showForRange=function(b,y,$,S){var _=10;if(!(S&&S!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var w=b.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(w.theme)),this.isOpen=!0,this.addMarker(y,b.session),this.range=l.fromPoints(y.start,y.end);var A=w.textToScreenCoordinates(y.start.row,y.start.column),L=w.scroller.getBoundingClientRect();A.pageX<L.left&&(A.pageX=L.left);var E=this.getElement();E.innerHTML="",E.appendChild($),E.style.maxHeight="",E.style.display="block";var M=E.clientHeight,O=E.clientWidth,C=window.innerHeight-A.pageY-w.lineHeight,v=!0;A.pageY-M<0&&A.pageY<C&&(v=!1),E.style.maxHeight=(v?A.pageY:C)-_+"px",E.style.top=v?"":A.pageY+w.lineHeight+"px",E.style.bottom=v?window.innerHeight-A.pageY+"px":"",E.style.left=Math.min(A.pageX,window.innerWidth-O-_)+"px"}},m.prototype.addMarker=function(b,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(b,"ace_highlight-marker","text")},m.prototype.hide=function(b){!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},m}(a);i.HoverTooltip=h}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(n,i,s){var o=this&&this.__extends||function(){var u=function(h,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,b){m.__proto__=b}||function(m,b){for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(m[y]=b[y])},u(h,d)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");u(h,d);function m(){this.constructor=h}h.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=this&&this.__values||function(u){var h=typeof Symbol=="function"&&Symbol.iterator,d=h&&u[h],m=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=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,r=n("../config").nls;n("../lib/lang");function a(u){var h=u.editor,d=h.renderer.$gutterLayer,m=new c(h);u.editor.setDefaultHandler("guttermousedown",function(w){if(!(!h.isFocused()||w.getButton()!=0)){var A=d.getRegion(w);if(A!="foldWidgets"){var L=w.getDocumentPosition().row,E=h.session.selection;if(w.getShiftKey())E.selectTo(L,0);else{if(w.domEvent.detail==2)return h.selectAll(),w.preventDefault();u.$clickSelection=h.selection.getLineRange(L)}return u.setState("selectByLines"),u.captureMouse(w),w.preventDefault()}}});var b,y;function $(){var w=y.getDocumentPosition().row,A=h.session.getLength();if(w==A){var L=h.renderer.pixelToScreenCoordinates(0,y.y).row,E=y.$pos;if(L>h.session.documentToScreenRow(E.row,E.column))return S()}if(m.showTooltip(w),!!m.isOpen)if(h.on("mousewheel",S),u.$tooltipFollowsMouse)_(y);else{var M=y.getGutterRow(),O=d.$lines.get(M);if(O){var C=O.element.querySelector(".ace_gutter_annotation"),v=C.getBoundingClientRect(),x=m.getElement().style;x.left=v.right+"px",x.top=v.bottom+"px"}else _(y)}}function S(){b&&(b=clearTimeout(b)),m.isOpen&&(m.hideTooltip(),h.off("mousewheel",S))}function _(w){m.setPosition(w.x,w.y)}u.editor.setDefaultHandler("guttermousemove",function(w){var A=w.domEvent.target||w.domEvent.srcElement;if(g.hasCssClass(A,"ace_fold-widget"))return S();m.isOpen&&u.$tooltipFollowsMouse&&_(w),y=w,!b&&(b=setTimeout(function(){b=null,y&&!u.isMousePressed?$():S()},50))}),l.addListener(h.renderer.$gutter,"mouseout",function(w){y=null,!(!m.isOpen||b)&&(b=setTimeout(function(){b=null,S()},50))},h),h.on("changeSession",S),h.on("input",S)}i.GutterHandler=a;var c=function(u){o(h,u);function h(d){var m=u.call(this,d.container)||this;return m.editor=d,m}return h.prototype.setPosition=function(d,m){var b=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,$=this.getWidth(),S=this.getHeight();d+=15,m+=15,d+$>b&&(d-=d+$-b),m+S>y&&(m-=20+S),p.prototype.setPosition.call(this,d,m)},Object.defineProperty(h,"annotationLabels",{get:function(){return{error:{singular:r("gutter-tooltip.aria-label.error.singular","error"),plural:r("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:r("gutter-tooltip.aria-label.security.singular","security finding"),plural:r("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:r("gutter-tooltip.aria-label.warning.singular","warning"),plural:r("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:r("gutter-tooltip.aria-label.info.singular","information message"),plural:r("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:r("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:r("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),h.prototype.showTooltip=function(d){var m,b=this.editor.renderer.$gutterLayer,y=b.$annotations[d],$;y?$={displayText:Array.from(y.displayText),type:Array.from(y.type)}:$={displayText:[],type:[]};var S=b.session.getFoldLine(d);if(S&&b.$showFoldedAnnotations){for(var _={error:[],security:[],warning:[],info:[],hint:[]},w={error:1,security:2,warning:3,info:4,hint:5},A,L=d+1;L<=S.end.row;L++)if(b.$annotations[L])for(var E=0;E<b.$annotations[L].text.length;E++){var M=b.$annotations[L].type[E];_[M].push(b.$annotations[L].text[E]),(!A||w[M]<w[A])&&(A=M)}if(["error","security","warning"].includes(A)){var O="".concat(h.annotationsToSummaryString(_)," in folded code.");$.displayText.push(O),$.type.push(A+"_fold")}}if($.displayText.length===0)return this.hide();for(var C={error:[],security:[],warning:[],info:[],hint:[]},v=b.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",L=0;L<$.displayText.length;L++){var x=g.createElement("span"),k=g.createElement("span");(m=k.classList).add.apply(m,["ace_".concat($.type[L]),v]),k.setAttribute("aria-label","".concat(h.annotationLabels[$.type[L].replace("_fold","")].singular)),k.setAttribute("role","img"),k.appendChild(g.createTextNode(" ")),x.appendChild(k),x.appendChild(g.createTextNode($.displayText[L])),x.appendChild(g.createElement("br")),C[$.type[L].replace("_fold","")].push(x)}var T=this.getElement();g.removeChildren(T),C.error.forEach(function(R){return T.appendChild(R)}),C.security.forEach(function(R){return T.appendChild(R)}),C.warning.forEach(function(R){return T.appendChild(R)}),C.info.forEach(function(R){return T.appendChild(R)}),C.hint.forEach(function(R){return T.appendChild(R)}),T.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},h.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},h.annotationsToSummaryString=function(d){var m,b,y=[],$=["error","security","warning","info","hint"];try{for(var S=f($),_=S.next();!_.done;_=S.next()){var w=_.value;if(d[w].length){var A=d[w].length===1?h.annotationLabels[w].singular:h.annotationLabels[w].plural;y.push("".concat(d[w].length," ").concat(A))}}}catch(L){m={error:L}}finally{try{_&&!_.done&&(b=S.return)&&b.call(S)}finally{if(m)throw m.error}}return y.join(", ")},h}(p);i.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,s){var o=n("../lib/event"),f=n("../lib/useragent"),g=function(){function l(p,r){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=r,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return l.prototype.stopPropagation=function(){o.stopPropagation(this.domEvent),this.propagationStopped=!0},l.prototype.preventDefault=function(){o.preventDefault(this.domEvent),this.defaultPrevented=!0},l.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},l.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},l.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,r=this.editor.session.documentToScreenRow(p,0),a=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return r-a},l.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,r=p.getSelectionRange();if(r.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=r.contains(a.row,a.column)}return this.$inSelection},l.prototype.getButton=function(){return o.getButton(this.domEvent)},l.prototype.getShiftKey=function(){return this.domEvent.shiftKey},l.prototype.getAccelKey=function(){return f.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},l}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,s){var o=n("../lib/dom"),f=n("../lib/event"),g=n("../lib/useragent"),l=200,p=200,r=5;function a(u){var h=u.editor,d=o.createElement("div");d.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",d.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(B){u[B]=this[B]},this),h.on("mousedown",this.onMouseDown.bind(u));var b=h.container,y,$,S,_,w,A,L=0,E,M,O,C,v;this.onDragStart=function(B){if(this.cancelDrag||!b.draggable){var H=this;return setTimeout(function(){H.startSelect(),H.captureMouse(B)},0),B.preventDefault()}w=h.getSelectionRange();var K=B.dataTransfer;K.effectAllowed=h.getReadOnly()?"copy":"copyMove",h.container.appendChild(d),K.setDragImage&&K.setDragImage(d,0,0),setTimeout(function(){h.container.removeChild(d)}),K.clearData(),K.setData("Text",h.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(B){if(b.draggable=!1,M=!1,this.setState(null),!h.getReadOnly()){var H=B.dataTransfer.dropEffect;!E&&H=="move"&&h.session.remove(h.getSelectionRange()),h.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(B){if(!(h.getReadOnly()||!W(B.dataTransfer)))return $=B.clientX,S=B.clientY,y||R(),L++,B.dataTransfer.dropEffect=E=V(B),f.preventDefault(B)},this.onDragOver=function(B){if(!(h.getReadOnly()||!W(B.dataTransfer)))return $=B.clientX,S=B.clientY,y||(R(),L++),N!==null&&(N=null),B.dataTransfer.dropEffect=E=V(B),f.preventDefault(B)},this.onDragLeave=function(B){if(L--,L<=0&&y)return I(),E=null,f.preventDefault(B)},this.onDrop=function(B){if(A){var H=B.dataTransfer;if(M)switch(E){case"move":w.contains(A.row,A.column)?w={start:A,end:A}:w=h.moveText(w,A);break;case"copy":w=h.moveText(w,A,!0);break}else{var K=H.getData("Text");w={start:A,end:h.session.insert(A,K)},h.focus(),E=null}return I(),f.preventDefault(B)}},f.addListener(b,"dragstart",this.onDragStart.bind(u),h),f.addListener(b,"dragend",this.onDragEnd.bind(u),h),f.addListener(b,"dragenter",this.onDragEnter.bind(u),h),f.addListener(b,"dragover",this.onDragOver.bind(u),h),f.addListener(b,"dragleave",this.onDragLeave.bind(u),h),f.addListener(b,"drop",this.onDrop.bind(u),h);function x(B,H){var K=Date.now(),U=!H||B.row!=H.row,j=!H||B.column!=H.column;if(!C||U||j)h.moveCursorToPosition(B),C=K,v={x:$,y:S};else{var Q=c(v.x,v.y,$,S);Q>r?C=null:K-C>=p&&(h.renderer.scrollCursorIntoView(),C=null)}}function k(B,H){var K=Date.now(),U=h.renderer.layerConfig.lineHeight,j=h.renderer.layerConfig.characterWidth,Q=h.renderer.scroller.getBoundingClientRect(),q={x:{left:$-Q.left,right:Q.right-$},y:{top:S-Q.top,bottom:Q.bottom-S}},X=Math.min(q.x.left,q.x.right),ce=Math.min(q.y.top,q.y.bottom),Me={row:B.row,column:B.column};X/j<=2&&(Me.column+=q.x.left<q.x.right?-3:2),ce/U<=1&&(Me.row+=q.y.top<q.y.bottom?-1:1);var P=B.row!=Me.row,z=B.column!=Me.column,G=!H||B.row!=H.row;P||z&&!G?O?K-O>=l&&h.renderer.scrollCursorIntoView(Me):O=K:O=null}function T(){var B=A;A=h.renderer.screenToTextCoordinates($,S),x(A,B),k(A,B)}function R(){w=h.selection.toOrientedRange(),y=h.session.addMarker(w,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),T(),_=setInterval(T,20),L=0,f.addListener(document,"mousemove",F)}function I(){clearInterval(_),h.session.removeMarker(y),y=null,h.selection.fromOrientedRange(w),h.isFocused()&&!M&&h.$resetCursorStyle(),w=null,A=null,L=0,O=null,C=null,f.removeListener(document,"mousemove",F)}var N=null;function F(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function W(B){var H=B.types;return!H||Array.prototype.some.call(H,function(K){return K=="text/plain"||K=="Text"})}function V(B){var H=["copy","copymove","all","uninitialized"],K=["move","copymove","linkmove","all","uninitialized"],U=g.isMac?B.altKey:B.ctrlKey,j="uninitialized";try{j=B.dataTransfer.effectAllowed.toLowerCase()}catch{}var Q="none";return U&&H.indexOf(j)>=0?Q="copy":K.indexOf(j)>=0?Q="move":H.indexOf(j)>=0&&(Q="copy"),Q}}(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 d=g.isWin?"default":"move";u.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(u){var h=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&h.dragDrop()}if(this.state==="dragWait"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var h=this.editor,d=u.inSelection(),m=u.getButton(),b=u.domEvent.detail||1;if(b===1&&m===0&&d){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(a.prototype);function c(u,h,d,m){return Math.sqrt(Math.pow(d-u,2)+Math.pow(m-h,2))}i.DragdropHandler=a}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,s){var o=n("./mouse_event").MouseEvent,f=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(l,p){var r="scroll",a,c,u,h,d,m,b=0,y,$=0,S=0,_=0,w,A;function L(){var x=window.navigator&&window.navigator.clipboard,k=!1,T=function(){var N=p.getCopyText(),F=p.session.getUndoManager().hasUndo();A.replaceChild(g.buildDom(k?["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"],x&&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"]),A.firstChild)},R=function(N){return p.commands.canExecute(N,p)},I=function(N){var F=N.target.getAttribute("action");if(F=="more"||!k)return k=!k,T();F=="paste"?x.readText().then(function(W){p.execCommand(F,W)}):F&&((F=="cut"||F=="copy")&&(x?x.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(F)),A.firstChild.style.display="none",k=!1,F!="openCommandPalette"&&p.focus()};A=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){r="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 E(){if(!p.getOption("enableMobileMenu")){A&&M();return}A||L();var x=p.selection.cursor,k=p.renderer.textToScreenCoordinates(x.row,x.column),T=p.renderer.textToScreenCoordinates(0,0).pageX,R=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();A.style.top=k.pageY-I.top-3+"px",k.pageX-I.left<I.width-70?(A.style.left="",A.style.right="10px"):(A.style.right="",A.style.left=T+R-I.left+"px"),A.style.display="",A.firstChild.style.display="none",p.on("input",M)}function M(x){A&&(A.style.display="none"),p.off("input",M)}function O(){d=null,clearTimeout(d);var x=p.selection.getRange(),k=x.contains(y.row,y.column);(x.isEmpty()||!k)&&(p.selection.moveToPosition(y),p.selection.selectWord()),r="wait",E()}function C(){d=null,clearTimeout(d),p.selection.moveToPosition(y);var x=$>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);x&&!x.isEmpty()?p.selection.setRange(x):p.selection.selectWord(),r="wait"}f.addListener(l,"contextmenu",function(x){if(w){var k=p.textInput.getElement();k.focus()}},p),f.addListener(l,"touchstart",function(x){var k=x.touches;if(d||k.length>1){clearTimeout(d),d=null,u=-1,r="zoom";return}w=p.$mouseHandler.isMousePressed=!0;var T=p.renderer.layerConfig.lineHeight,R=p.renderer.layerConfig.lineHeight,I=x.timeStamp;h=I;var N=k[0],F=N.clientX,W=N.clientY;Math.abs(a-F)+Math.abs(c-W)>T&&(u=-1),a=x.clientX=F,c=x.clientY=W,S=_=0;var V=new o(x,p);if(y=V.getDocumentPosition(),I-u<500&&k.length==1&&!b)$++,x.preventDefault(),x.button=0,C();else{$=0;var B=p.selection.cursor,H=p.selection.isEmpty()?B:p.selection.anchor,K=p.renderer.$cursorLayer.getPixelPosition(B,!0),U=p.renderer.$cursorLayer.getPixelPosition(H,!0),j=p.renderer.scroller.getBoundingClientRect(),Q=p.renderer.layerConfig.offset,q=p.renderer.scrollLeft,X=function(P,z){return P=P/R,z=z/T-.75,P*P+z*z};if(x.clientX<j.left){r="zoom";return}var ce=X(x.clientX-j.left-K.left+q,x.clientY-j.top-K.top+Q),Me=X(x.clientX-j.left-U.left+q,x.clientY-j.top-U.top+Q);ce<3.5&&Me<3.5&&(r=ce>Me?"cursor":"anchor"),Me<3.5?r="anchor":ce<3.5?r="cursor":r="scroll",d=setTimeout(O,450)}u=I},p),f.addListener(l,"touchend",function(x){w=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),r=="zoom"?(r="",b=0):d?(p.selection.moveToPosition(y),b=0,E()):r=="scroll"?(v(),M()):E(),clearTimeout(d),d=null},p),f.addListener(l,"touchmove",function(x){d&&(clearTimeout(d),d=null);var k=x.touches;if(!(k.length>1||r=="zoom")){var T=k[0],R=a-T.clientX,I=c-T.clientY;if(r=="wait")if(R*R+I*I>4)r="cursor";else return x.preventDefault();a=T.clientX,c=T.clientY,x.clientX=T.clientX,x.clientY=T.clientY;var N=x.timeStamp,F=N-h;if(h=N,r=="scroll"){var W=new o(x,p);W.speed=1,W.wheelX=R,W.wheelY=I,10*Math.abs(R)<Math.abs(I)&&(R=0),10*Math.abs(I)<Math.abs(R)&&(I=0),F!=0&&(S=R/F,_=I/F),p._emit("mousewheel",W),W.propagationStopped||(S=_=0)}else{var V=new o(x,p),B=V.getDocumentPosition();r=="cursor"?p.selection.moveCursorToPosition(B):r=="anchor"&&p.selection.setSelectionAnchor(B.row,B.column),p.renderer.scrollCursorIntoView(B),x.preventDefault()}}},p);function v(){b+=60,m=setInterval(function(){b--<=0&&(clearInterval(m),m=null),Math.abs(S)<.01&&(S=0),Math.abs(_)<.01&&(_=0),b<20&&(S=.9*S),b<20&&(_=.9*_);var x=p.session.getScrollTop();p.renderer.scrollBy(10*S,10*_),x==p.session.getScrollTop()&&(b=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,i,s){var o=n("../lib/event"),f=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,l=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,r=n("./dragdrop_handler").DragdropHandler,a=n("./touch_handler").addTouchListeners,c=n("../config"),u=function(){function h(d){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=d,new g(this),new l(this),new r(this);var b=function(S){var _=!document.hasFocus||!document.hasFocus()||!d.isFocused()&&document.activeElement==(d.textInput&&d.textInput.getElement());_&&window.focus(),d.focus(),setTimeout(function(){d.isFocused()||d.focus()})},y=d.renderer.getMouseEventTarget();o.addListener(y,"click",this.onMouseEvent.bind(this,"click"),d),o.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),d),o.addMultiMouseDownListener([y,d.renderer.scrollBarV&&d.renderer.scrollBarV.inner,d.renderer.scrollBarH&&d.renderer.scrollBarH.inner,d.textInput&&d.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",d),o.addMouseWheelListener(d.container,this.onMouseWheel.bind(this,"mousewheel"),d),a(d.container,d);var $=d.renderer.$gutter;o.addListener($,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),d),o.addListener($,"click",this.onMouseEvent.bind(this,"gutterclick"),d),o.addListener($,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),d),o.addListener($,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),d),o.addListener(y,"mousedown",b,d),o.addListener($,"mousedown",b,d),f.isIE&&d.renderer.scrollBarV&&(o.addListener(d.renderer.scrollBarV.element,"mousedown",b,d),o.addListener(d.renderer.scrollBarH.element,"mousedown",b,d)),d.on("mousemove",function(S){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var _=d.renderer.screenToTextCoordinates(S.x,S.y),w=d.session.selection.getRange(),A=d.renderer;!w.isEmpty()&&w.insideStart(_.row,_.column)?A.setCursorStyle("default"):A.setCursorStyle("")}},d)}return h.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new p(m,this.editor))},h.prototype.onMouseMove=function(d,m){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(d,new p(m,this.editor))},h.prototype.onMouseWheel=function(d,m){var b=new p(m,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=m.wheelX,b.wheelY=m.wheelY,this.editor._emit(d,b)},h.prototype.setState=function(d){this.state=d},h.prototype.captureMouse=function(d,m){this.x=d.x,this.y=d.y,this.isMousePressed=!0;var b=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var $=this,S=function(E){if(E){if(f.isWebKit&&!E.which&&$.releaseMouse)return $.releaseMouse();$.x=E.clientX,$.y=E.clientY,m&&m(E),$.mouseEvent=new p(E,$.editor),$.$mouseMoved=!0}},_=function(E){b.off("beforeEndOperation",A),clearInterval(L),b.session&&w(),$[$.state+"End"]&&$[$.state+"End"](E),$.state="",$.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),$.$onCaptureMouseMove=$.releaseMouse=null,E&&$.onMouseEvent("mouseup",E),b.endOperation()},w=function(){$[$.state]&&$[$.state](),$.$mouseMoved=!1};if(f.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){_(d)});var A=function(E){$.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&($[$.state+"End"]&&$[$.state+"End"](),$.state="",$.releaseMouse())};b.on("beforeEndOperation",A),b.startOperation({command:{name:"mouse"}}),$.$onCaptureMouseMove=S,$.releaseMouse=o.capture(this.editor.container,S,_);var L=setInterval(w,20)},h.prototype.cancelContextMenu=function(){var d=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",d),m&&m.domEvent&&o.stopEvent(m.domEvent))}).bind(this);setTimeout(d,10),this.editor.on("nativecontextmenu",d)},h.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},h}();u.prototype.releaseMouse=null,c.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,i,s){var o=n("../lib/dom"),f=function(){function g(l){l.on("click",function(p){var r=p.getDocumentPosition(),a=l.session,c=a.getFoldAt(r.row,r.column,1);c&&(p.getAccelKey()?a.removeFold(c):a.expandFold(c),p.stop());var u=p.domEvent&&p.domEvent.target;u&&o.hasCssClass(u,"ace_inline_button")&&o.hasCssClass(u,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),l.renderer.scrollCursorIntoView())}),l.on("gutterclick",function(p){var r=l.renderer.$gutterLayer.getRegion(p);if(r=="foldWidgets"){var a=p.getDocumentPosition().row,c=l.session;c.foldWidgets&&c.foldWidgets[a]&&l.session.onFoldWidgetClick(a,p),l.isFocused()||l.focus(),p.stop()}}),l.on("gutterdblclick",function(p){var r=l.renderer.$gutterLayer.getRegion(p);if(r=="foldWidgets"){var a=p.getDocumentPosition().row,c=l.session,u=c.getParentFoldRangeData(a,!0),h=u.range||u.firstRange;if(h){a=h.start.row;var d=c.getFoldAt(a,c.getLine(a).length,1);d?c.removeFold(d):(c.addFold("...",h),l.renderer.scrollCursorIntoView({row:h.start.row,column:0}))}p.stop()}})}return g}();i.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,s){var o=n("../lib/keys"),f=n("../lib/event"),g=function(){function l(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return l.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},l.prototype.setKeyboardHandler=function(p){var r=this.$handlers;if(r[r.length-1]!=p){for(;r[r.length-1]&&r[r.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(r[r.length-1]);this.addKeyboardHandler(p,1)}},l.prototype.addKeyboardHandler=function(p,r){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var a=this.$handlers.indexOf(p);a!=-1&&this.$handlers.splice(a,1),r==null?this.$handlers.push(p):this.$handlers.splice(r,0,p),a==-1&&p.attach&&p.attach(this.$editor)}},l.prototype.removeKeyboardHandler=function(p){var r=this.$handlers.indexOf(p);return r==-1?!1:(this.$handlers.splice(r,1),p.detach&&p.detach(this.$editor),!0)},l.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},l.prototype.getStatusText=function(){var p=this.$data,r=p.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(r,p)||""}).filter(Boolean).join(" ")},l.prototype.$callKeyboardHandlers=function(p,r,a,c){for(var u,h=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(u=this.$handlers[m].handleKeyboard(this.$data,p,r,a,c),!(!(!u||!u.command)&&(u.command=="null"?h=!0:h=d.exec(u.command,this.$editor,u.args,c),h&&c&&p!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&f.stopEvent(c),h))););return!h&&p==-1&&(u={command:"insertstring"},h=d.exec("insertstring",this.$editor,r)),h&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),h},l.prototype.onCommandKey=function(p,r,a){var c=o.keyCodeToString(a);return this.$callKeyboardHandlers(r,c,a,p)},l.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},l}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,s){var o=0,f=0,g=!1,l=!1,p=!1,r=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],a=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,u=1,h=0,d=1,m=2,b=3,y=4,$=5,S=6,_=7,w=8,A=9,L=10,E=11,M=12,O=13,C=14,v=15,x=16,k=17,T=18,R=[T,T,T,T,T,T,T,T,T,S,$,S,w,$,T,T,T,T,T,T,T,T,T,T,T,T,T,T,$,$,$,S,w,y,y,E,E,E,y,y,y,y,y,L,A,L,A,A,m,m,m,m,m,m,m,m,m,m,A,y,y,y,y,y,y,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,y,y,y,y,y,y,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,y,y,y,y,T,T,T,T,T,T,$,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,A,y,E,E,E,E,y,y,y,y,h,y,y,T,y,y,E,E,m,m,y,h,y,y,y,m,h,y,y,y,y,y],I=[w,w,w,w,w,w,w,w,w,w,w,T,T,T,h,d,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,w,$,O,C,v,x,k,A,E,E,E,E,E,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,A,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,w];function N(B,H,K,U){var j=o?a:r,Q=null,q=null,X=null,ce=0,Me=null,P=null,z=-1,G=null,ne=null,ee=[];if(!U)for(G=0,U=[];G<K;G++)U[G]=V(B[G]);for(f=o,g=!1,l=!1,p=!1,ne=0;ne<K;ne++){if(Q=ce,ee[ne]=q=W(B,U,ee,ne),ce=j[Q][q],Me=ce&240,ce&=15,H[ne]=X=j[ce][5],Me>0)if(Me==16){for(G=z;G<ne;G++)H[G]=1;z=-1}else z=-1;if(P=j[ce][6],P)z==-1&&(z=ne);else if(z>-1){for(G=z;G<ne;G++)H[G]=X;z=-1}U[ne]==$&&(H[ne]=0),f|=X}if(p){for(G=0;G<K;G++)if(U[G]==S){H[G]=o;for(var re=G-1;re>=0&&U[re]==w;re--)H[re]=o}}}function F(B,H,K){if(!(f<B)){if(B==1&&o==u&&!l){K.reverse();return}for(var U=K.length,j=0,Q,q,X,ce;j<U;){if(H[j]>=B){for(Q=j+1;Q<U&&H[Q]>=B;)Q++;for(q=j,X=Q-1;q<X;q++,X--)ce=K[q],K[q]=K[X],K[X]=ce;j=Q}j++}}}function W(B,H,K,U){var j=H[U],Q,q,X,ce;switch(j){case h:case d:g=!1;case y:case b:return j;case m:return g?b:m;case _:return g=!0,d;case w:return y;case A:return U<1||U+1>=H.length||(Q=K[U-1])!=m&&Q!=b||(q=H[U+1])!=m&&q!=b?y:(g&&(q=b),q==Q?q:y);case L:return Q=U>0?K[U-1]:$,Q==m&&U+1<H.length&&H[U+1]==m?m:y;case E:if(U>0&&K[U-1]==m)return m;if(g)return y;for(ce=U+1,X=H.length;ce<X&&H[ce]==E;)ce++;return ce<X&&H[ce]==m?m:y;case M:for(X=H.length,ce=U+1;ce<X&&H[ce]==M;)ce++;if(ce<X){var Me=B[U],P=Me>=1425&&Me<=2303||Me==64286;if(Q=H[ce],P&&(Q==d||Q==_))return d}return U<1||(Q=H[U-1])==$?y:K[U-1];case $:return g=!1,l=!0,o;case S:return p=!0,y;case O:case C:case x:case k:case v:g=!1;case T:return y}}function V(B){var H=B.charCodeAt(0),K=H>>8;return K==0?H>191?h:R[H]:K==5?/[\u0591-\u05f4]/.test(B)?d:h:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(B)?M:/[\u0660-\u0669\u066b-\u066c]/.test(B)?b:H==1642?E:/[\u06f0-\u06f9]/.test(B)?m:_:K==32&&H<=8287?I[H&255]:K==254&&H>=65136?_:y}i.L=h,i.R=d,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(B,H,K){if(B.length<2)return{};var U=B.split(""),j=new Array(U.length),Q=new Array(U.length),q=[];o=K?u:c,N(U,q,U.length,H);for(var X=0;X<j.length;j[X]=X,X++);F(2,q,j),F(1,q,j);for(var X=0;X<j.length-1;X++)H[X]===b?q[X]=i.AN:q[X]===d&&(H[X]>_&&H[X]<O||H[X]===y||H[X]===T)?q[X]=i.ON_R:X>0&&U[X-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(U[X])&&(q[X-1]=q[X]=i.R_H,X++);U[U.length-1]===i.DOT&&(q[U.length-1]=i.B),U[0]===""&&(q[0]=i.RLE);for(var X=0;X<j.length;X++)Q[X]=q[j[X]];return{logicalFromVisual:j,bidiLevels:Q}},i.hasBidiCharacters=function(B,H){for(var K=!1,U=0;U<B.length;U++)H[U]=V(B.charAt(U)),!K&&(H[U]==d||H[U]==_||H[U]==b)&&(K=!0);return K},i.getVisualFromLogicalIdx=function(B,H){for(var K=0;K<H.logicalFromVisual.length;K++)if(H.logicalFromVisual[K]==B)return K;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,s){var o=n("./lib/bidiutil"),f=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,l=function(){function p(r){this.session=r,this.bidiMap={},this.currentRow=null,this.bidiUtil=o,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=g.test(r.getValue())}return p.prototype.isBidiRow=function(r,a,c){return this.seenBidi?(r!==this.currentRow&&(this.currentRow=r,this.updateRowLine(a,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(r){this.seenBidi?this.currentRow=null:r.action=="insert"&&g.test(r.lines.join(`
|
785
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var r=0,a=this.session.$screenRowCache;if(a.length){var c=this.session.$getRowCacheIndex(a,this.currentRow);c>=0&&(r=this.session.$docRowCache[c])}return r},p.prototype.getSplitIndex=function(){var r=0,a=this.session.$screenRowCache;if(a.length)for(var c,u=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-r>0&&(c=this.session.$getRowCacheIndex(a,this.currentRow-r-1),c===u);)u=c,r++;else r=this.currentRow;return r},p.prototype.updateRowLine=function(r,a){r===void 0&&(r=this.getDocumentRow());var c=r===this.session.getLength()-1,u=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(r),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var h=this.session.$wrapData[r];h&&(a===void 0&&(a=this.getSplitIndex()),a>0&&h.length?(this.wrapIndent=h.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=a<h.length?this.line.substring(h[a-1],h[a]):this.line.substring(h[h.length-1])):this.line=this.line.substring(0,h[a]),a==h.length&&(this.line+=this.showInvisibles?u:o.DOT))}else this.line+=this.showInvisibles?u:o.DOT;var d=this.session,m=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,$){return y===" "||d.isFullWidth(y.charCodeAt(0))?(b=y===" "?d.getScreenTabSize($+m):2,m+=b-1,f.stringRepeat(o.DOT,b)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==o.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var r=[];o.hasBidiCharacters(this.line,r)||this.isRtlDir?this.bidiMap=o.doBidiReorder(this.line,r,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(r){if(this.characterWidth!==r.$characterSize.width){this.fontMetrics=r;var a=this.characterWidth=r.$characterSize.width,c=r.$measureCharWidth("ה");this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=a,this.charWidths[o.R]=this.charWidths[o.AN]=c,this.charWidths[o.R_H]=c*.45,this.charWidths[o.B]=this.charWidths[o.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(r){this.showInvisibles=r,this.currentRow=null},p.prototype.setEolChar=function(r){this.EOL=r},p.prototype.setContentWidth=function(r){this.contentWidth=r},p.prototype.isRtlLine=function(r){return this.$isRtl?!0:r!=null?this.session.getLine(r).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(r,a){for(var c=r.getCursorPosition(),u=r.selection.getSelectionAnchor().row;u<=c.row;u++)!a&&r.session.getLine(u).charAt(0)===r.session.$bidiHandler.RLE?r.session.doc.removeInLine(u,0,1):a&&r.session.getLine(u).charAt(0)!==r.session.$bidiHandler.RLE&&r.session.doc.insert({column:0,row:u},r.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(r){r-=this.wrapIndent;var a=this.line.charAt(0)===this.RLE?1:0,c=r>a?this.session.getOverwrite()?r:r-1:a,u=o.getVisualFromLogicalIdx(c,this.bidiMap),h=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&r<=a&&h[u]%2!==0&&u++;for(var m=0;m<u;m++)d+=this.charWidths[h[m]];return!this.session.getOverwrite()&&r>a&&h[u]%2===0&&(d+=this.charWidths[h[u]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},p.prototype.getSelections=function(r,a){var c=this.bidiMap,u=c.bidiLevels,h,d=[],m=0,b=Math.min(r,a)-this.wrapIndent,y=Math.max(r,a)-this.wrapIndent,$=!1,S=!1,_=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,A=0;A<u.length;A++)w=c.logicalFromVisual[A],h=u[A],$=w>=b&&w<y,$&&!S?_=m:!$&&S&&d.push({left:_,width:m-_}),m+=this.charWidths[h],S=$;if($&&A===u.length&&d.push({left:_,width:m-_}),this.isRtlDir)for(var L=0;L<d.length;L++)d[L].left+=this.rtlLineOffset;return d},p.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var a=0,c=Math.max(c,0),u=0,h=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[h]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>u+m/2;){if(u+=m,h===d.length-1){m=0;break}m=this.charWidths[d[++h]]}return h>0&&d[h-1]%2!==0&&d[h]%2===0?(c<u&&h--,a=this.bidiMap.logicalFromVisual[h]):h>0&&d[h-1]%2===0&&d[h]%2!==0?a=1+(c>u?this.bidiMap.logicalFromVisual[h]:this.bidiMap.logicalFromVisual[h-1]):this.isRtlDir&&h===d.length-1&&m===0&&d[h-1]%2===0||!this.isRtlDir&&h===0&&d[h]%2!==0?a=1+this.bidiMap.logicalFromVisual[h]:(h>0&&d[h-1]%2!==0&&m!==0&&h--,a=this.bidiMap.logicalFromVisual[h]),a===0&&this.isRtlDir&&a++,a+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 o=n("./lib/oop"),f=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,p=function(){function r(a){this.session=a,this.doc=a.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 r.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},r.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},r.prototype.getCursor=function(){return this.lead.getPosition()},r.prototype.setAnchor=function(a,c){this.$isEmpty=!1,this.anchor.setPosition(a,c)},r.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},r.prototype.getSelectionLead=function(){return this.lead.getPosition()},r.prototype.isBackwards=function(){var a=this.anchor,c=this.lead;return a.row>c.row||a.row==c.row&&a.column>c.column},r.prototype.getRange=function(){var a=this.anchor,c=this.lead;return this.$isEmpty?l.fromPoints(c,c):this.isBackwards()?l.fromPoints(c,a):l.fromPoints(a,c)},r.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},r.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},r.prototype.setRange=function(a,c){var u=c?a.end:a.start,h=c?a.start:a.end;this.$setSelection(u.row,u.column,h.row,h.column)},r.prototype.$setSelection=function(a,c,u,h){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,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||d!=this.$isEmpty||m)&&this._emit("changeSelection")}},r.prototype.$moveSelection=function(a){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),a.call(this)},r.prototype.selectTo=function(a,c){this.$moveSelection(function(){this.moveCursorTo(a,c)})},r.prototype.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},r.prototype.moveTo=function(a,c){this.clearSelection(),this.moveCursorTo(a,c)},r.prototype.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},r.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},r.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},r.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},r.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},r.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},r.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},r.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},r.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},r.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},r.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},r.prototype.getWordRange=function(a,c){if(typeof c>"u"){var u=a||this.lead;a=u.row,c=u.column}return this.session.getWordRange(a,c)},r.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},r.prototype.selectAWord=function(){var a=this.getCursor(),c=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(c)},r.prototype.getLineRange=function(a,c){var u=typeof a=="number"?a:this.lead.row,h,d=this.session.getFoldLine(u);return d?(u=d.start.row,h=d.end.row):h=u,c===!0?new l(u,0,h,this.session.getLine(h).length):new l(u,0,h+1,0)},r.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},r.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},r.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},r.prototype.wouldMoveIntoSoftTab=function(a,c,u){var h=a.column,d=a.column+c;return u<0&&(h=a.column-c,d=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(h,d).split(" ").length-1==c},r.prototype.moveCursorLeft=function(){var a=this.lead.getPosition(),c;if(c=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(a.column===0)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},r.prototype.moveCursorRight=function(){var a=this.lead.getPosition(),c;if(c=this.session.getFoldAt(a.row,a.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var u=this.session.getTabSize(),a=this.lead;this.wouldMoveIntoSoftTab(a,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},r.prototype.moveCursorLineStart=function(){var a=this.lead.row,c=this.lead.column,u=this.session.documentToScreenRow(a,c),h=this.session.screenToDocumentPosition(u,0),d=this.session.getDisplayLine(a,null,h.row,h.column),m=d.match(/^\s*/);m[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(h.column+=m[0].length),this.moveCursorToPosition(h)},r.prototype.moveCursorLineEnd=function(){var a=this.lead,c=this.session.getDocumentLastRowColumnPosition(a.row,a.column);if(this.lead.column==c.column){var u=this.session.getLine(c.row);if(c.column==u.length){var h=u.search(/\s+$/);h>0&&(c.column=h)}}this.moveCursorTo(c.row,c.column)},r.prototype.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,c=this.doc.getLine(a).length;this.moveCursorTo(a,c)},r.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},r.prototype.moveCursorLongWordRight=function(){var a=this.lead.row,c=this.lead.column,u=this.doc.getLine(a),h=u.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(a,c,1);if(d){this.moveCursorTo(d.end.row,d.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(a,u.length),this.moveCursorRight(),a<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(h)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,c)},r.prototype.moveCursorLongWordLeft=function(){var a=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(a,c,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var h=this.session.getFoldStringAt(a,c,-1);h==null&&(h=this.doc.getLine(a).substring(0,c));var d=f.stringReverse(h);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(d)&&(c-=this.session.nonTokenRe.lastIndex,d=d.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(a,0),this.moveCursorLeft(),a>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,c)},r.prototype.$shortWordEndIndex=function(a){var c=0,u,h=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(a))c=this.session.tokenRe.lastIndex;else{for(;(u=a[c])&&h.test(u);)c++;if(c<1){for(d.lastIndex=0;(u=a[c])&&!d.test(u);)if(d.lastIndex=0,c++,h.test(u))if(c>2){c--;break}else{for(;(u=a[c])&&h.test(u);)c++;if(c>2)break}}}return d.lastIndex=0,c},r.prototype.moveCursorShortWordRight=function(){var a=this.lead.row,c=this.lead.column,u=this.doc.getLine(a),h=u.substring(c),d=this.session.getFoldAt(a,c,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(c==u.length){var m=this.doc.getLength();do a++,h=this.doc.getLine(a);while(a<m&&/^\s*$/.test(h));/^\s+/.test(h)||(h=""),c=0}var b=this.$shortWordEndIndex(h);this.moveCursorTo(a,c+b)},r.prototype.moveCursorShortWordLeft=function(){var a=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(a,c,-1))return this.moveCursorTo(u.start.row,u.start.column);var h=this.session.getLine(a).substring(0,c);if(c===0){do a--,h=this.doc.getLine(a);while(a>0&&/^\s*$/.test(h));c=h.length,/\s+$/.test(h)||(h="")}var d=f.stringReverse(h),m=this.$shortWordEndIndex(d);return this.moveCursorTo(a,c-m)},r.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},r.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},r.prototype.moveCursorBy=function(a,c){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),h;if(c===0&&(a!==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),a!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];a<0?a-=d.rowsAbove||0:a>0&&(a+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(u.row+a,u.column,h);a!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},r.prototype.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},r.prototype.moveCursorTo=function(a,c,u){var h=this.session.getFoldAt(a,c,1);h&&(a=h.start.row,c=h.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(d.charAt(c))&&d.charAt(c-1)&&(this.lead.row==a&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(a,c),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},r.prototype.moveCursorToScreen=function(a,c,u){var h=this.session.screenToDocumentPosition(a,c);this.moveCursorTo(h.row,h.column,u)},r.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},r.prototype.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},r.prototype.toOrientedRange=function(a){var c=this.getRange();return a?(a.start.column=c.start.column,a.start.row=c.start.row,a.end.column=c.end.column,a.end.row=c.end.row):a=c,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},r.prototype.getRangeOfMovements=function(a){var c=this.getCursor();try{a(this);var u=this.getCursor();return l.fromPoints(c,u)}catch{return l.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},r.prototype.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(c){var u=c.clone();return u.isBackwards=c.cursor==c.start,u});else{var a=this.getRange();a.isBackwards=this.isBackwards()}return a},r.prototype.fromJSON=function(a){if(a.start==null)if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var c=a.length;c--;){var u=l.fromPoints(a[c].start,a[c].end);a[c].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else a=a[0];this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},r.prototype.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(a[c]))return!1;return!0},r}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,o.implement(p.prototype,g),i.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,s){var o=n("./lib/report_error").reportError,f=2e3,g=function(){function l(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var r in this.states){for(var a=this.states[r],c=[],u=0,h=this.matchMappings[r]={defaultToken:"text"},d="g",m=[],b=0;b<a.length;b++){var y=a[b];if(y.defaultToken&&(h.defaultToken=y.defaultToken),y.caseInsensitive&&d.indexOf("i")===-1&&(d+="i"),y.unicode&&d.indexOf("u")===-1&&(d+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var $=y.regex,S=new RegExp("(?:("+$+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||S==1?y.token=y.token[0]:S-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:S-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(S>1?y.onMatch=this.$applyToken:y.onMatch=y.token),S>1&&(/\\\d/.test(y.regex)?$=y.regex.replace(/\\([0-9]+)/g,function(_,w){return"\\"+(parseInt(w,10)+u+1)}):(S=1,$=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),h[u]=b,u+=S,c.push($),y.onMatch||(y.onMatch=null)}}c.length||(h[0]=0,c.push("$")),m.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,d)},this),this.regExps[r]=new RegExp("("+c.join(")|(")+")|($)",d)}}return l.prototype.$setMaxTokenCount=function(p){f=p|0},l.prototype.$applyToken=function(p){var r=this.splitRegex.exec(p).slice(1),a=this.token.apply(this,r);if(typeof a=="string")return[{type:a,value:p}];for(var c=[],u=0,h=a.length;u<h;u++)r[u]&&(c[c.length]={type:a[u],value:r[u]});return c},l.prototype.$arrayTokens=function(p){if(!p)return[];var r=this.splitRegex.exec(p);if(!r)return"text";for(var a=[],c=this.tokenArray,u=0,h=c.length;u<h;u++)r[u+1]&&(a[a.length]={type:c[u],value:r[u+1]});return a},l.prototype.removeCapturingGroups=function(p){var r=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(a,c){return c?"(?:":a});return r},l.prototype.createSplitterRegexp=function(p,r){if(p.indexOf("(?=")!=-1){var a=0,c=!1,u={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(h,d,m,b,y,$){return c?c=y!="]":y?c=!0:b?(a==u.stack&&(u.end=$+1,u.stack=-1),a--):m&&(a++,m.length!=1&&(u.stack=a,u.start=$)),h}),u.end!=null&&/^\)*$/.test(p.substr(u.end))&&(p=p.substring(0,u.start)+p.substr(u.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(r||"").replace("g",""))},l.prototype.getLineTokens=function(p,r){if(r&&typeof r!="string"){var a=r.slice(0);r=a[0],r==="#tmp"&&(a.shift(),r=a.shift())}else var a=[];var c=r||"start",u=this.states[c];u||(c="start",u=this.states[c]);var h=this.matchMappings[c],d=this.regExps[c];d.lastIndex=0;for(var m,b=[],y=0,$=0,S={type:null,value:""};m=d.exec(p);){var _=h.defaultToken,w=null,A=m[0],L=d.lastIndex;if(L-A.length>y){var E=p.substring(y,L-A.length);S.type==_?S.value+=E:(S.type&&b.push(S),S={type:_,value:E})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){w=u[h[M]],w.onMatch?_=w.onMatch(A,c,a,p):_=w.token,w.next&&(typeof w.next=="string"?c=w.next:c=w.next(c,a),u=this.states[c],u||(this.reportError("state doesn't exist",c),c="start",u=this.states[c]),h=this.matchMappings[c],y=L,d=this.regExps[c],d.lastIndex=L),w.consumeLineEnd&&(y=L);break}if(A){if(typeof _=="string")(!w||w.merge!==!1)&&S.type===_?S.value+=A:(S.type&&b.push(S),S={type:_,value:A});else if(_){S.type&&b.push(S),S={type:null,value:""};for(var M=0;M<_.length;M++)b.push(_[M])}}if(y==p.length)break;if(y=L,$++>f){for($>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:r,line:p});y<p.length;)S.type&&b.push(S),S={value:p.substring(y,y+=500),type:"overflow"};c="start",a=[];break}}return S.type&&b.push(S),a.length>1&&a[0]!==c&&a.unshift("#tmp",c),{tokens:b,state:a.length?a:c}},l}();g.prototype.reportError=o,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,s){var o=n("../lib/deep_copy").deepCopy,f;f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,r){if(!r){for(var a in p)this.$rules[a]=p[a];return}for(var a in p){for(var c=p[a],u=0;u<c.length;u++){var h=c[u];(h.next||h.onMatch)&&(typeof h.next=="string"&&h.next.indexOf(r)!==0&&(h.next=r+h.next),h.nextState&&h.nextState.indexOf(r)!==0&&(h.nextState=r+h.nextState))}this.$rules[r+a]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(p,r,a,c,u){var h=typeof p=="function"?new p().getRules():p;if(c)for(var d=0;d<c.length;d++)c[d]=r+c[d];else{c=[];for(var m in h)c.push(r+m)}if(this.addRules(h,r),a)for(var b=Array.prototype[u?"push":"unshift"],d=0;d<c.length;d++)b.apply(this.$rules[c[d]],o(a));this.$embeds||(this.$embeds=[]),this.$embeds.push(r)},this.getEmbeds=function(){return this.$embeds};var g=function(p,r){return(p!="start"||r.length)&&r.unshift(this.nextState,p),this.nextState},l=function(p,r){return r.shift(),r.shift()||"start"};this.normalizeRules=function(){var p=0,r=this.$rules;function a(c){var u=r[c];u.processed=!0;for(var h=0;h<u.length;h++){var d=u[h],m=null;Array.isArray(d)&&(m=d,d={}),!d.regex&&d.start&&(d.regex=d.start,d.next||(d.next=[]),d.next.push({defaultToken:d.token},{token:d.token+".end",regex:d.end||d.start,next:"pop"}),d.token=d.token+".start",d.push=!0);var b=d.next||d.push;if(b&&Array.isArray(b)){var y=d.stateName;y||(y=d.token,typeof y!="string"&&(y=y[0]||""),r[y]&&(y+=p++)),r[y]=b,d.next=y,a(y)}else b=="pop"&&(d.next=l);if(d.push&&(d.nextState=d.next||d.push,d.next=g,delete d.push),d.rules)for(var $ in d.rules)r[$]?r[$].push&&r[$].push.apply(r[$],d.rules[$]):r[$]=d.rules[$];var S=typeof d=="string"?d:d.include;if(S&&(S==="$self"&&(S="start"),Array.isArray(S)?m=S.map(function(w){return r[w]}):m=r[S]),m){var _=[h,1].concat(m);d.noEscape&&(_=_.filter(function(w){return!w.next})),u.splice.apply(u,_),h--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(r).forEach(a,this)},this.createKeywordMapper=function(p,r,a,c){var u=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(h){for(var d=p[h],m=d.split(c||"|"),b=m.length;b--;){var y=m[b];this.$keywordList.push(y),a&&(y=y.toLowerCase()),u[y]=h}},this),p=null,a?function(h){return u[h.toLowerCase()]||r}:function(h){return u[h]||r}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),i.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,s){var o;o=function(){this.$behaviours={}},(function(){this.add=function(f,g,l){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][g]=l},this.addBehaviours=function(f){for(var g in f)for(var l in f[g])this.add(g,l,f[g][l])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,g){if(typeof f=="function")var l=new f().getBehaviours(g);else var l=f.getBehaviours(g);this.addBehaviours(l)},this.getBehaviours=function(f){if(f){for(var g={},l=0;l<f.length;l++)this.$behaviours[f[l]]&&(g[f[l]]=this.$behaviours[f[l]]);return g}else return this.$behaviours}}).call(o.prototype),i.Behaviour=o}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,i,s){var o=n("./range").Range,f=function(){function g(l,p,r){this.$session=l,this.$row=p,this.$rowTokens=l.getTokens(p);var a=l.getTokenAt(p,r);this.$tokenIndex=a?a.index:-1}return g.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},g.prototype.stepForward=function(){this.$tokenIndex+=1;for(var l;this.$tokenIndex>=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,r=l[p].start;if(r!==void 0)return r;for(r=0;p>0;)p-=1,r+=l[p].value.length;return r},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 o(this.$row,p,this.$row,p+l.value.length)},g}();i.TokenIterator=f}),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 o=n("../../lib/oop"),f=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,l=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],r=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],a,c={},u={'"':'"',"'":"'"},h=function(b){var y=-1;if(b.multiSelect&&(y=b.selection.index,c.rangeCount!=b.multiSelect.rangeCount&&(c={rangeCount:b.multiSelect.rangeCount})),c[y])return a=c[y];a=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(b,y,$,S){var _=b.end.row-b.start.row;return{text:$+y+S,selection:[0,b.start.column+1,_,b.end.column+(_?0:1)]}},m;m=function(b){b=b||{},this.add("braces","insertion",function(y,$,S,_,w){var A=S.getCursorPosition(),L=_.doc.getLine(A.row);if(w=="{"){h(S);var E=S.getSelectionRange(),M=_.doc.getTextRange(E),O=_.getTokenAt(A.row,A.column);if(M!==""&&M!=="{"&&S.getWrapBehavioursEnabled())return d(E,M,"{","}");if(O&&/(?:string)\.quasi|\.xml/.test(O.type)){var C=[/tag\-(?:open|name)/,/attribute\-name/];return C.some(function(N){return N.test(O.type)})||/(string)\.quasi/.test(O.type)&&O.value[A.column-O.start-1]!=="$"?void 0:(m.recordAutoInsert(S,_,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(S,_))return/[\]\}\)]/.test(L[A.column])||S.inMultiSelectMode||b.braces?(m.recordAutoInsert(S,_,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(S,_,"{"),{text:"{",selection:[1,1]})}else if(w=="}"){h(S);var v=L.substring(A.column,A.column+1);if(v=="}"){var x=_.$findOpeningBracket("}",{column:A.column+1,row:A.row});if(x!==null&&m.isAutoInsertedClosing(A,L,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(w==`
|
786
|
+
`||w==`\r
|
787
|
+
`){h(S);var k="";m.isMaybeInsertedClosing(A,L)&&(k=l.stringRepeat("}",a.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var v=L.substring(A.column,A.column+1);if(v==="}"){var T=_.findMatchingBracket({row:A.row,column:A.column+1},"}");if(!T)return null;var R=this.$getIndent(_.getLine(T.row))}else if(k)var R=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var I=R+_.getTabString();return{text:`
|
788
|
+
`+I+`
|
789
|
+
`+R+k,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,$,S,_,w){var A=_.doc.getTextRange(w);if(!w.isMultiLine()&&A=="{"){h(S);var L=_.doc.getLine(w.start.row),E=L.substring(w.end.column,w.end.column+1);if(E=="}")return w.end.column++,w;a.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,$,S,_,w){if(w=="("){h(S);var A=S.getSelectionRange(),L=_.doc.getTextRange(A);if(L!==""&&S.getWrapBehavioursEnabled())return d(A,L,"(",")");if(m.isSaneInsertion(S,_))return m.recordAutoInsert(S,_,")"),{text:"()",selection:[1,1]}}else if(w==")"){h(S);var E=S.getCursorPosition(),M=_.doc.getLine(E.row),O=M.substring(E.column,E.column+1);if(O==")"){var C=_.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(C!==null&&m.isAutoInsertedClosing(E,M,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,$,S,_,w){var A=_.doc.getTextRange(w);if(!w.isMultiLine()&&A=="("){h(S);var L=_.doc.getLine(w.start.row),E=L.substring(w.start.column+1,w.start.column+2);if(E==")")return w.end.column++,w}}),this.add("brackets","insertion",function(y,$,S,_,w){if(w=="["){h(S);var A=S.getSelectionRange(),L=_.doc.getTextRange(A);if(L!==""&&S.getWrapBehavioursEnabled())return d(A,L,"[","]");if(m.isSaneInsertion(S,_))return m.recordAutoInsert(S,_,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){h(S);var E=S.getCursorPosition(),M=_.doc.getLine(E.row),O=M.substring(E.column,E.column+1);if(O=="]"){var C=_.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(C!==null&&m.isAutoInsertedClosing(E,M,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,$,S,_,w){var A=_.doc.getTextRange(w);if(!w.isMultiLine()&&A=="["){h(S);var L=_.doc.getLine(w.start.row),E=L.substring(w.start.column+1,w.start.column+2);if(E=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(y,$,S,_,w){var A=_.$mode.$quotes||u;if(w.length==1&&A[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;h(S);var L=w,E=S.getSelectionRange(),M=_.doc.getTextRange(E);if(M!==""&&(M.length!=1||!A[M])&&S.getWrapBehavioursEnabled())return d(E,M,L,L);if(!M){var O=S.getCursorPosition(),C=_.doc.getLine(O.row),v=C.substring(O.column-1,O.column),x=C.substring(O.column,O.column+1),k=_.getTokenAt(O.row,O.column),T=_.getTokenAt(O.row,O.column+1);if(v=="\\"&&k&&/escape/.test(k.type))return null;var R=k&&/string|escape/.test(k.type),I=!T||/string|escape/.test(T.type),N;if(x==L)N=R!==I,N&&/string\.end/.test(T.type)&&(N=!1);else{if(R&&!I||R&&I)return null;var F=_.$mode.tokenRe;F.lastIndex=0;var W=F.test(v);F.lastIndex=0;var V=F.test(x),B=_.$mode.$pairQuotesAfter,H=B&&B[L]&&B[L].test(v);if(!H&&W||V||x&&!/[\s;,.})\]\\]/.test(x))return null;var K=C[O.column-2];if(v==L&&(K==L||F.test(K)))return null;N=!0}return{text:N?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,$,S,_,w){var A=_.$mode.$quotes||u,L=_.doc.getTextRange(w);if(!w.isMultiLine()&&A.hasOwnProperty(L)){h(S);var E=_.doc.getLine(w.start.row),M=E.substring(w.start.column+1,w.start.column+2);if(M==L)return w.end.column++,w}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,$,S,_,w){if(y==="doc-start"&&(w===`
|
790
|
+
`||w===`\r
|
791
|
+
`)&&S.selection.isEmpty()){var A=S.getCursorPosition();if(A.column===0)return;for(var L=_.doc.getLine(A.row),E=_.doc.getLine(A.row+1),M=_.getTokens(A.row),O=0,C=0;C<M.length;C++){O+=M[C].value.length;var v=M[C];if(O>=A.column){if(O===A.column){if(!/\.doc/.test(v.type))return;if(/\*\//.test(v.value)){var x=M[C+1];if(!x||!/\.doc/.test(x.type))return}}var k=A.column-(O-v.value.length),T=v.value.indexOf("*/"),R=v.value.indexOf("/**",T>-1?T+2:0);if(R!==-1&&k>R&&k<R+3||T!==-1&&R!==-1&&k>=T&&k<=R||!/\.doc/.test(v.type))return;break}}var I=this.$getIndent(L);if(/\s*\*/.test(E))return/^\s*\*/.test(L)?{text:w+I+"* ",selection:[1,2+I.length,1,2+I.length]}:{text:w+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(L.substring(0,A.column)))return{text:w+I+" * "+w+" "+I+"*/",selection:[1,4+I.length,1,4+I.length]}}})},m.isSaneInsertion=function(b,y){var $=b.getCursorPosition(),S=new g(y,$.row,$.column);if(!this.$matchTokenType(S.getCurrentToken()||"text",p)){if(/[)}\]]/.test(b.session.getLine($.row)[$.column]))return!0;var _=new g(y,$.row,$.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",p))return!1}return S.stepForward(),S.getCurrentTokenRow()!==$.row||this.$matchTokenType(S.getCurrentToken()||"text",r)},m.$matchTokenType=function(b,y){return y.indexOf(b.type||b)>-1},m.recordAutoInsert=function(b,y,$){var S=b.getCursorPosition(),_=y.doc.getLine(S.row);this.isAutoInsertedClosing(S,_,a.autoInsertedLineEnd[0])||(a.autoInsertedBrackets=0),a.autoInsertedRow=S.row,a.autoInsertedLineEnd=$+_.substr(S.column),a.autoInsertedBrackets++},m.recordMaybeInsert=function(b,y,$){var S=b.getCursorPosition(),_=y.doc.getLine(S.row);this.isMaybeInsertedClosing(S,_)||(a.maybeInsertedBrackets=0),a.maybeInsertedRow=S.row,a.maybeInsertedLineStart=_.substr(0,S.column)+$,a.maybeInsertedLineEnd=_.substr(S.column),a.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(b,y,$){return a.autoInsertedBrackets>0&&b.row===a.autoInsertedRow&&$===a.autoInsertedLineEnd[0]&&y.substr(b.column)===a.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(b,y){return a.maybeInsertedBrackets>0&&b.row===a.maybeInsertedRow&&y.substr(b.column)===a.maybeInsertedLineEnd&&y.substr(0,b.column)==a.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){a.autoInsertedLineEnd=a.autoInsertedLineEnd.substr(1),a.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){a&&(a.maybeInsertedBrackets=0,a.maybeInsertedRow=-1)},o.inherits(m,f),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,s){for(var o=[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],f=0,g=[],l=0;l<o.length;l+=2)g.push(f+=o[l]),o[l+1]&&g.push(45,f+=o[l+1]);i.wordChars=String.fromCharCode.apply(null,g)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,i,s){var o=n("../config"),f=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,l=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),r=n("../lib/lang"),a=n("../token_iterator").TokenIterator,c=n("../range").Range,u;u=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(h,d,m,b){var y=d.doc,$=!0,S=!0,_=1/0,w=d.getTabSize(),A=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(r.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var M=r.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),A=d.getUseSoftTabs();var v=function(V,B){var H=V.match(M);if(H){var K=H[1].length,U=H[0].length;!T(V,K,U)&&H[0][U-1]==" "&&U--,y.removeInLine(B,K,U)}},k=L+" ",C=function(V,B){(!$||/\S/.test(V))&&(T(V,_,_)?y.insertInLine({row:B,column:_},k):y.insertInLine({row:B,column:_},L))},x=function(V,B){return M.test(V)},T=function(V,B,H){for(var K=0;B--&&V.charAt(B)==" ";)K++;if(K%w!=0)return!1;for(var K=0;V.charAt(H++)==" ";)K++;return w>2?K%w!=w-1:K%w==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,E=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+r.escapeRegExp(L)+")"),O=new RegExp("(?:"+r.escapeRegExp(E)+")\\s*$"),C=function(N,F){x(N,F)||(!$||/\S/.test(N))&&(y.insertInLine({row:F,column:N.length},E),y.insertInLine({row:F,column:_},L))},v=function(N,F){var W;(W=N.match(O))&&y.removeInLine(F,N.length-W[0].length,N.length),(W=N.match(M))&&y.removeInLine(F,W[1].length,W[0].length)},x=function(N,F){if(M.test(N))return!0;for(var W=d.getTokens(F),V=0;V<W.length;V++)if(W[V].type==="comment")return!0}}function R(N){for(var F=m;F<=b;F++)N(y.getLine(F),F)}var I=1/0;R(function(N,F){var W=N.search(/\S/);W!==-1?(W<_&&(_=W),S&&!x(N,F)&&(S=!1)):I>N.length&&(I=N.length)}),_==1/0&&(_=I,$=!1,S=!1),A&&_%w!=0&&(_=Math.floor(_/w)*w),R(S?v:C)},this.toggleBlockComment=function(h,d,m,b){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var $=new a(d,b.row,b.column),S=$.getCurrentToken();d.selection;var _=d.selection.toOrientedRange(),w,A;if(S&&/comment/.test(S.type)){for(var L,E;S&&/comment/.test(S.type);){var M=S.value.indexOf(y.start);if(M!=-1){var O=$.getCurrentTokenRow(),C=$.getCurrentTokenColumn()+M;L=new c(O,C,O,C+y.start.length);break}S=$.stepBackward()}for(var $=new a(d,b.row,b.column),S=$.getCurrentToken();S&&/comment/.test(S.type);){var M=S.value.indexOf(y.end);if(M!=-1){var O=$.getCurrentTokenRow(),C=$.getCurrentTokenColumn()+M;E=new c(O,C,O,C+y.end.length);break}S=$.stepForward()}E&&d.remove(E),L&&(d.remove(L),w=L.start.row,A=-y.start.length)}else A=y.start.length,w=m.start.row,d.insert(m.end,y.end),d.insert(m.start,y.start);_.start.row==w&&(_.start.column+=A),_.end.row==w&&(_.end.column+=A),d.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(h,d,m){return this.$getIndent(d)},this.checkOutdent=function(h,d,m){return!1},this.autoOutdent=function(h,d,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 d in h)if(h[d]){var m=h[d],b=m.prototype.$id,y=o.$modes[b];y||(o.$modes[b]=y=new m),o.$modes[d]||(o.$modes[d]=y),this.$embeds.push(d),this.$modes[d]=y}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],S=function(w){(function(A){var L=$[w],E=A[L];A[$[w]]=function(){return this.$delegator(L,arguments,E)}})(_)},_=this,d=0;d<$.length;d++)S(d)},this.$delegator=function(h,d,m){var b=d[0]||"start";if(typeof b!="string"){if(Array.isArray(b[2])){var y=b[2][b[2].length-1],$=this.$modes[y];if($)return $[h].apply($,[b[1]].concat([].slice.call(d,1)))}b=b[0]||"start"}for(var S=0;S<this.$embeds.length;S++)if(this.$modes[this.$embeds[S]]){var _=b.split(this.$embeds[S]);if(!_[0]&&_[1]){d[0]=_[1];var $=this.$modes[this.$embeds[S]];return $[h].apply($,d)}}var w=m.apply(this,d);return m?w:void 0},this.transformAction=function(h,d,m,b,y){if(this.$behaviour){var $=this.$behaviour.getBehaviours();for(var S in $)if($[S][d]){var _=$[S][d].apply(this,arguments);if(_)return _}}},this.getKeywords=function(h){if(!this.completionKeywords){var d=this.$tokenizer.rules,m=[];for(var b in d)for(var y=d[b],$=0,S=y.length;$<S;$++)if(typeof y[$].token=="string")/keyword|support|storage/.test(y[$].token)&&m.push(y[$].regex);else if(typeof y[$].token=="object"){for(var _=0,w=y[$].token.length;_<w;_++)if(/keyword|support|storage/.test(y[$].token[_])){var b=y[$].regex.match(/\(.+?\)/g)[_];m.push(b.substr(1,b.length-2))}}this.completionKeywords=m}return h?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(h,d,m,b){var y=this.$keywordList||this.$createKeywordList();return y.map(function($){return{name:$,value:$,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(u.prototype),i.Mode=u}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,i,s){var o=n("./lib/dom"),f=function(){function g(l){this.session=l,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return g.prototype.getRowLength=function(l){var p;return this.lineWidgets?p=this.lineWidgets[l]&&this.lineWidgets[l].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[l]?1+p:this.$wrapData[l].length+1+p},g.prototype.$getWidgetScreenLength=function(){var l=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(l+=p.rowCount)}),l},g.prototype.$onChangeEditor=function(l){this.attach(l.editor)},g.prototype.attach=function(l){l&&l.widgetManager&&l.widgetManager!=this&&l.widgetManager.detach(),this.editor!=l&&(this.detach(),this.editor=l,l&&(l.widgetManager=this,l.renderer.on("beforeRender",this.measureWidgets),l.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(l){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var r=this.session.lineWidgets;r&&r.forEach(function(a){a&&a.el&&a.el.parentNode&&(a._inDocument=!1,a.el.parentNode.removeChild(a.el))})}},g.prototype.updateOnFold=function(l,p){var r=p.lineWidgets;if(!(!r||!l.action)){for(var a=l.data,c=a.start.row,u=a.end.row,h=l.action=="add",d=c+1;d<u;d++)r[d]&&(r[d].hidden=h);r[u]&&(h?r[c]?r[u].hidden=h:r[c]=r[u]:(r[c]==r[u]&&(r[c]=void 0),r[u].hidden=h))}},g.prototype.updateOnChange=function(l){var p=this.session.lineWidgets;if(p){var r=l.start.row,a=l.end.row-r;if(a!==0)if(l.action=="remove"){var c=p.splice(r+1,a);!p[r]&&c[c.length-1]&&(p[r]=c.pop()),c.forEach(function(h){h&&this.removeLineWidget(h)},this),this.$updateRows()}else{var u=new Array(a);p[r]&&p[r].column!=null&&l.start.column>p[r].column&&r++,u.unshift(r,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(r,a){if(r)for(p=!1,r.row=a;r.$oldWidget;)r.$oldWidget.row=a,r=r.$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=o.createElement("div"),l.el.innerHTML=l.html),l.text&&!l.el&&(l.el=o.createElement("div"),l.el.textContent=l.text),l.el&&(o.addCssClass(l.el,"ace_lineWidgetContainer"),l.className&&o.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 r=this.session.getFoldAt(l.row,0);if(l.$fold=r,r){var a=this.session.lineWidgets;l.row==r.end.row&&!a[r.start.row]?a[r.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,r=p&&p[l],a=[];r;)a.push(r),r=r.$oldWidget;return a},g.prototype.onWidgetChanged=function(l){this.session._changedWidgets.push(l),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(l,p){var r=this.session._changedWidgets,a=p.layerConfig;if(!(!r||!r.length)){for(var c=1/0,u=0;u<r.length;u++){var h=r[u];if(!(!h||!h.el)&&h.session==this.session){if(!h._inDocument){if(this.session.lineWidgets[h.row]!=h)continue;h._inDocument=!0,p.container.appendChild(h.el)}h.h=h.el.offsetHeight,h.fixedWidth||(h.w=h.el.offsetWidth,h.screenWidth=Math.ceil(h.w/a.characterWidth));var d=h.h/a.lineHeight;h.coverLine&&(d-=this.session.getRowLineCount(h.row),d<0&&(d=0)),h.rowCount!=d&&(h.rowCount=d,h.row<c&&(c=h.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(l,p){var r=p.layerConfig,a=this.session.lineWidgets;if(a){for(var c=Math.min(this.firstRow,r.firstRow),u=Math.max(this.lastRow,r.lastRow,a.length);c>0&&!a[c];)c--;this.firstRow=r.firstRow,this.lastRow=r.lastRow,p.$cursorLayer.config=r;for(var h=c;h<=u;h++){var d=a[h];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,p.container.appendChild(d.el));var m=p.$cursorLayer.getPixelPosition({row:h,column:0},!0).top;d.coverLine||(m+=r.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=m-r.offset+"px";var b=d.coverGutter?0:p.gutterWidth;d.fixedWidth||(b-=p.scrollLeft),d.el.style.left=b+"px",d.fullWidth&&d.screenWidth&&(d.el.style.minWidth=r.width+2*r.padding+"px"),d.fixedWidth?d.el.style.right=p.scrollBar.getWidth()+"px":d.el.style.right=""}}}},g}();i.LineWidgets=f}),ace.define("ace/apply_delta",["require","exports","module"],function(n,i,s){i.applyDelta=function(o,f,g){var l=f.start.row,p=f.start.column,r=o[l]||"";switch(f.action){case"insert":var a=f.lines;if(a.length===1)o[l]=r.substring(0,p)+f.lines[0]+r.substring(p);else{var c=[l,1].concat(f.lines);o.splice.apply(o,c),o[l]=r.substring(0,p)+o[l],o[l+f.lines.length-1]+=r.substring(p)}break;case"remove":var u=f.end.column,h=f.end.row;l===h?o[l]=r.substring(0,p)+r.substring(u):o.splice(l,h-l+1,r.substring(0,p)+o[h].substring(u));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,s){var o=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function r(a,c,u){this.$onChange=this.onChange.bind(this),this.attach(a),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,u)}return r.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},r.prototype.getDocument=function(){return this.document},r.prototype.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var c=p(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},r.prototype.setPosition=function(a,c,u){var h;if(u?h={row:a,column:c}:h=this.$clipPositionToDocument(a,c),!(this.row==h.row&&this.column==h.column)){var d={row:this.row,column:this.column};this.row=h.row,this.column=h.column,this._signal("change",{old:d,value:h})}},r.prototype.detach=function(){this.document.off("change",this.$onChange)},r.prototype.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},r.prototype.$clipPositionToDocument=function(a,c){var u={};return a>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):a<0?(u.row=0,u.column=0):(u.row=a,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,c))),c<0&&(u.column=0),u},r}();g.prototype.$insertRight=!1,o.implement(g.prototype,f);function l(r,a,c){var u=c?r.column<=a.column:r.column<a.column;return r.row<a.row||r.row==a.row&&u}function p(r,a,c){var u=r.action=="insert",h=(u?1:-1)*(r.end.row-r.start.row),d=(u?1:-1)*(r.end.column-r.start.column),m=r.start,b=u?m:r.end;return l(a,m,c)?{row:a.row,column:a.column}:l(b,a,!c)?{row:a.row+h,column:a.column+(a.row==b.row?d:0)}:{row:m.row,column:m.column}}i.Anchor=g}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,i,s){var o=n("./lib/oop"),f=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,p=n("./anchor").Anchor,r=function(){function a(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)}return a.prototype.setValue=function(c){var u=this.getLength()-1;this.remove(new l(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},c||"")},a.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},a.prototype.createAnchor=function(c,u){return new p(this,c,u)},a.prototype.$detectNewLine=function(c){var u=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
|
792
|
+
`,this._signal("changeNewLineMode")},a.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
793
|
+
`;case"unix":return`
|
794
|
+
`;default:return this.$autoNewLine||`
|
795
|
+
`}},a.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},a.prototype.getNewLineMode=function(){return this.$newLineMode},a.prototype.isNewLine=function(c){return c==`\r
|
796
|
+
`||c=="\r"||c==`
|
797
|
+
`},a.prototype.getLine=function(c){return this.$lines[c]||""},a.prototype.getLines=function(c,u){return this.$lines.slice(c,u+1)},a.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},a.prototype.getLength=function(){return this.$lines.length},a.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},a.prototype.getLinesForRange=function(c){var u;if(c.start.row===c.end.row)u=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{u=this.getLines(c.start.row,c.end.row),u[0]=(u[0]||"").substring(c.start.column);var h=u.length-1;c.end.row-c.start.row==h&&(u[h]=u[h].substring(0,c.end.column))}return u},a.prototype.insertLines=function(c,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,u)},a.prototype.removeLines=function(c,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,u)},a.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},a.prototype.insert=function(c,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(c,this.$split(u))},a.prototype.insertInLine=function(c,u){var h=this.clippedPos(c.row,c.column),d=this.pos(c.row,c.column+u.length);return this.applyDelta({start:h,end:d,action:"insert",lines:[u]},!0),this.clonePos(d)},a.prototype.clippedPos=function(c,u){var h=this.getLength();c===void 0?c=h:c<0?c=0:c>=h&&(c=h-1,u=void 0);var d=this.getLine(c);return u==null&&(u=d.length),u=Math.min(Math.max(u,0),d.length),{row:c,column:u}},a.prototype.clonePos=function(c){return{row:c.row,column:c.column}},a.prototype.pos=function(c,u){return{row:c,column:u}},a.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},a.prototype.insertFullLines=function(c,u){c=Math.min(Math.max(c,0),this.getLength());var h=0;c<this.getLength()?(u=u.concat([""]),h=0):(u=[""].concat(u),c--,h=this.$lines[c].length),this.insertMergedLines({row:c,column:h},u)},a.prototype.insertMergedLines=function(c,u){var h=this.clippedPos(c.row,c.column),d={row:h.row+u.length-1,column:(u.length==1?h.column:0)+u[u.length-1].length};return this.applyDelta({start:h,end:d,action:"insert",lines:u}),this.clonePos(d)},a.prototype.remove=function(c){var u=this.clippedPos(c.start.row,c.start.column),h=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:u,end:h,action:"remove",lines:this.getLinesForRange({start:u,end:h})}),this.clonePos(u)},a.prototype.removeInLine=function(c,u,h){var d=this.clippedPos(c,u),m=this.clippedPos(c,h);return this.applyDelta({start:d,end:m,action:"remove",lines:this.getLinesForRange({start:d,end:m})},!0),this.clonePos(d)},a.prototype.removeFullLines=function(c,u){c=Math.min(Math.max(0,c),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var h=u==this.getLength()-1&&c>0,d=u<this.getLength()-1,m=h?c-1:c,b=h?this.getLine(m).length:0,y=d?u+1:u,$=d?0:this.getLine(y).length,S=new l(m,b,y,$),_=this.$lines.slice(c,u+1);return this.applyDelta({start:S.start,end:S.end,action:"remove",lines:this.getLinesForRange(S)}),_},a.prototype.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},a.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},a.prototype.applyDeltas=function(c){for(var u=0;u<c.length;u++)this.applyDelta(c[u])},a.prototype.revertDeltas=function(c){for(var u=c.length-1;u>=0;u--)this.revertDelta(c[u])},a.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):(f(this.$lines,c,u),this._signal("change",c)))},a.prototype.$safeApplyDelta=function(c){var u=this.$lines.length;(c.action=="remove"&&c.start.row<u&&c.end.row<u||c.action=="insert"&&c.start.row<=u)&&this.applyDelta(c)},a.prototype.$splitAndapplyLargeDelta=function(c,u){for(var h=c.lines,d=h.length-u+1,m=c.start.row,b=c.start.column,y=0,$=0;y<d;y=$){$+=u-1;var S=h.slice(y,$);S.push(""),this.applyDelta({start:this.pos(m+y,b),end:this.pos(m+$,b=0),action:c.action,lines:S},!0)}c.lines=h.slice(y),c.start.row=m+y,c.start.column=b,this.applyDelta(c,!0)},a.prototype.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},a.prototype.indexToPosition=function(c,u){for(var h=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=u||0,b=h.length;m<b;m++)if(c-=h[m].length+d,c<0)return{row:m,column:c+h[m].length+d};return{row:b-1,column:c+h[b-1].length+d}},a.prototype.positionToIndex=function(c,u){for(var h=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=0,b=Math.min(c.row,h.length),y=u||0;y<b;++y)m+=h[y].length+d;return m+c.column},a.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},a}();r.prototype.$autoNewLine="",r.prototype.$newLineMode="auto",o.implement(r.prototype,g),i.Document=r}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,s){var o=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function l(p,r){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var a=this;this.$worker=function(){if(a.running){for(var c=new Date,u=a.currentLine,h=-1,d=a.doc,m=u;a.lines[u];)u++;var b=d.getLength(),y=0;for(a.running=!1;u<b;){a.$tokenizeRow(u),h=u;do u++;while(a.lines[u]);if(y++,y%5===0&&new Date-c>20){a.running=setTimeout(a.$worker,20);break}}a.currentLine=u,h==-1&&(h=u),m<=h&&a.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,r){var a={first:p,last:r};this._signal("update",{data:a})},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 r=p.start.row,a=p.end.row-r;if(a===0)this.lines[r]=null;else if(p.action=="remove")this.lines.splice(r,a+1,null),this.states.splice(r,a+1,null);else{var c=Array(a+1);c.unshift(r,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(r,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 r=this.doc.getLine(p),a=this.states[p-1],c=this.tokenizer.getLineTokens(r,a,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}();o.implement(g.prototype,f),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,s){var o=n("./lib/lang"),f=n("./range").Range,g=function(){function l(p,r,a){a===void 0&&(a="text"),this.setRegexp(p),this.clazz=r,this.type=a}return l.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},l.prototype.update=function(p,r,a,c){if(this.regExp)for(var u=c.firstRow,h=c.lastRow,d={},m=u;m<=h;m++){var b=this.cache[m];b==null&&(b=o.getMatchOffsets(a.getLine(m),this.regExp),b.length>this.MAX_RANGES&&(b=b.slice(0,this.MAX_RANGES)),b=b.map(function(_){return new f(m,_.offset,m,_.offset+_.length)}),this.cache[m]=b.length?b:"");for(var y=b.length;y--;){var $=b[y].toScreenRange(a),S=$.toString();d[S]||(d[S]=!0,r.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 o=function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(w){this.$session=w},_.prototype.add=function(w,A,L){if(!this.$fromUndo&&w!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),A===!1||!this.lastDeltas){this.lastDeltas=[];var E=this.$undoStack.length;E>this.$undoDepth-1&&this.$undoStack.splice(0,E-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),w.id=this.$rev=++this.$maxRev}(w.action=="remove"||w.action=="insert")&&(this.$lastDelta=w),this.lastDeltas.push(w)}},_.prototype.addSelection=function(w,A){this.selections.push({value:w,rev:A||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(w,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,E=L.length;E--;){var M=L[E][0];if(M.id<=w)break;M.id<A&&(M.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(w,A){for(var L=this.selections,E=L.length;E--;){var M=L[E];if(M.rev<w)return A&&(M=L[E+1]),M}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(w,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,E=null,M=0,O=L.length;O--;){var C=L[O][0];if(C.id<A&&!E&&(E=O+1),C.id<=w){M=O+1;break}}return L.slice(M,E)},_.prototype.getChangedRanges=function(w,A){A==null&&(A=this.$rev+1)},_.prototype.getChangedLines=function(w,A){A==null&&(A=this.$rev+1)},_.prototype.undo=function(w,A){this.lastDeltas=null;var L=this.$undoStack;if(f(L,L.length)){w||(w=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var E=L.pop(),M=null;return E&&(M=w.undoChanges(E,A),this.$redoStack.push(E),this.$syncRev()),this.$fromUndo=!1,M}},_.prototype.redo=function(w,A){if(this.lastDeltas=null,w||(w=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var L=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);S(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(O){O[0].id=++this.$maxRev},this)}var E=this.$redoStack.pop(),M=null;return E&&(M=w.redoChanges(E,A),this.$undoStack.push(E),this.$syncRev()),this.$fromUndo=!1,M},_.prototype.$syncRev=function(){var w=this.$undoStack,A=w[w.length-1],L=A&&A[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},_.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(w){this.reset(),this.$undoStack=w.$undoStack,this.$redoStack=w.$redoStack},_.prototype.$prettyPrint=function(w){return w?a(w):a(this.$undoStack)+`
|
798
|
+
---
|
799
|
+
`+a(this.$redoStack)},_}();o.prototype.hasUndo=o.prototype.canUndo,o.prototype.hasRedo=o.prototype.canRedo,o.prototype.isClean=o.prototype.isAtBookmark,o.prototype.markClean=o.prototype.bookmark;function f(_,w){for(var A=w;A--;){var L=_[A];if(L&&!L[0].ignore){for(;A<w-1;){var E=h(_[A],_[A+1]);_[A]=E[0],_[A+1]=E[1],A++}return!0}}}var g=n("./range").Range,l=g.comparePoints;g.comparePoints;function p(_){return{row:_.row,column:_.column}}function r(_){return{start:p(_.start),end:p(_.end),action:_.action,lines:_.lines.slice()}}function a(_){if(_=_||this,Array.isArray(_))return _.map(a).join(`
|
800
|
+
`);var w="";return _.action?(w=_.action=="insert"?"+":"-",w+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?w=_.value.map(c).join(`
|
801
|
+
`):w=c(_.value)),_.start&&(w+=c(_)),(_.id||_.rev)&&(w+=" ("+(_.id||_.rev)+")"),w}function c(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function u(_,w){var A=_.action=="insert",L=w.action=="insert";if(A&&L)if(l(w.start,_.end)>=0)m(w,_,-1);else if(l(w.start,_.start)<=0)m(_,w,1);else return null;else if(A&&!L)if(l(w.start,_.end)>=0)m(w,_,-1);else if(l(w.end,_.start)<=0)m(_,w,-1);else return null;else if(!A&&L)if(l(w.start,_.start)>=0)m(w,_,1);else if(l(w.start,_.start)<=0)m(_,w,1);else return null;else if(!A&&!L)if(l(w.start,_.start)>=0)m(w,_,1);else if(l(w.end,_.start)<=0)m(_,w,-1);else return null;return[w,_]}function h(_,w){for(var A=_.length;A--;)for(var L=0;L<w.length;L++)if(!u(_[A],w[L])){for(;A<_.length;){for(;L--;)u(w[L],_[A]);L=w.length,A++}return[_,w]}return _.selectionBefore=w.selectionBefore=_.selectionAfter=w.selectionAfter=null,[w,_]}function d(_,w){var A=_.action=="insert",L=w.action=="insert";if(A&&L)l(_.start,w.start)<0?m(w,_,1):m(_,w,1);else if(A&&!L)l(_.start,w.end)>=0?m(_,w,-1):(l(_.start,w.start)<=0||m(_,g.fromPoints(w.start,_.start),-1),m(w,_,1));else if(!A&&L)l(w.start,_.end)>=0?m(w,_,-1):(l(w.start,_.start)<=0||m(w,g.fromPoints(_.start,w.start),-1),m(_,w,1));else if(!A&&!L)if(l(w.start,_.end)>=0)m(w,_,-1);else if(l(w.end,_.start)<=0)m(_,w,-1);else{var E,M;return l(_.start,w.start)<0&&(E=_,_=y(_,w.start)),l(_.end,w.end)>0&&(M=y(_,w.end)),b(w.end,_.start,_.end,-1),M&&!E&&(_.lines=M.lines,_.start=M.start,_.end=M.end,M=_),[w,E,M].filter(Boolean)}return[w,_]}function m(_,w,A){b(_.start,w.start,w.end,A),b(_.end,w.start,w.end,A)}function b(_,w,A,L){_.row==(L==1?w:A).row&&(_.column+=L*(A.column-w.column)),_.row+=L*(A.row-w.row)}function y(_,w){var A=_.lines,L=_.end;_.end=p(w);var E=_.end.row-_.start.row,M=A.splice(E,A.length),O=E?w.column:w.column-_.start.column;A.push(M[0].substring(0,O)),M[0]=M[0].substr(O);var C={start:p(w),end:L,lines:M,action:_.action};return C}function $(_,w){w=r(w);for(var A=_.length;A--;){for(var L=_[A],E=0;E<L.length;E++){var M=L[E],O=d(M,w);w=O[0],O.length!=2&&(O[2]?(L.splice(E+1,1,O[1],O[2]),E++):O[1]||(L.splice(E,1),E--))}L.length||_.splice(A,1)}return _}function S(_,w){for(var A=0;A<w.length;A++)for(var L=w[A],E=0;E<L.length;E++)$(_,L[E])}i.UndoManager=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,s){var o=n("../range").Range,f=function(){function g(l,p){this.foldData=l,Array.isArray(p)?this.folds=p:p=this.folds=[p];var r=p[p.length-1];this.range=new o(p[0].start.row,p[0].start.column,r.end.row,r.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(a){a.setFoldLine(this)},this)}return g.prototype.shiftRow=function(l){this.start.row+=l,this.end.row+=l,this.folds.forEach(function(p){p.start.row+=l,p.end.row+=l})},g.prototype.addFold=function(l){if(l.sameRow){if(l.start.row<this.startRow||l.endRow>this.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,r){return-p.range.compareEnd(r.start.row,r.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,r){var a=0,c=this.folds,u,h,d,m=!0;p==null&&(p=this.end.row,r=this.end.column);for(var b=0;b<c.length;b++){if(u=c[b],h=u.range.compareStart(p,r),h==-1){l(null,p,r,a,m);return}if(d=l(null,u.start.row,u.start.column,a,m),d=!d&&l(u.placeholder,u.start.row,u.start.column,a),d||h===0)return;m=!u.sameRow,a=u.end.column}l(null,p,r,a,m)},g.prototype.getNextFoldTo=function(l,p){for(var r,a,c=0;c<this.folds.length;c++){if(r=this.folds[c],a=r.range.compareEnd(l,p),a==-1)return{fold:r,kind:"after"};if(a===0)return{fold:r,kind:"inside"}}return null},g.prototype.addRemoveChars=function(l,p,r){var a=this.getNextFoldTo(l,p),c,u;if(a){if(c=a.fold,a.kind=="inside"&&c.start.column!=p&&c.start.row!=l)window.console&&window.console.log(l,p,c);else if(c.start.row==l){u=this.folds;var h=u.indexOf(c);for(h===0&&(this.start.column+=r),h;h<u.length;h++){if(c=u[h],c.start.column+=r,!c.sameRow)return;c.end.column+=r}this.end.column+=r}}},g.prototype.split=function(l,p){var r=this.getNextFoldTo(l,p);if(!r||r.kind=="inside")return null;var a=r.fold,c=this.folds,u=this.foldData,h=c.indexOf(a),d=c[h-1];this.end.row=d.end.row,this.end.column=d.end.column,c=c.splice(h,c.length-h);var m=new g(u,c);return u.splice(u.indexOf(this)+1,0,m),m},g.prototype.merge=function(l){for(var p=l.folds,r=0;r<p.length;r++)this.addFold(p[r]);var a=this.foldData;a.splice(a.indexOf(l),1)},g.prototype.toString=function(){var l=[this.range.toString()+": ["];return this.folds.forEach(function(p){l.push(" "+p.toString())}),l.push("]"),l.join(`
|
802
|
+
`)},g.prototype.idxToPosition=function(l){for(var p=0,r=0;r<this.folds.length;r++){var a=this.folds[r];if(l-=a.start.column-p,l<0)return{row:a.start.row,column:a.start.column+l};if(l-=a.placeholder.length,l<0)return a.start;p=a.end.column}return{row:this.end.row,column:this.end.column+l}},g}();i.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,s){var o=n("./range").Range,f=o.comparePoints,g=function(){function l(){this.ranges=[],this.$bias=1}return l.prototype.pointIndex=function(p,r,a){for(var c=this.ranges,u=a||0;u<c.length;u++){var h=c[u],d=f(p,h.end);if(!(d>0)){var m=f(p,h.start);return d===0?r&&m!==0?-u-2:u:m>0||m===0&&!r?u:-u-1}}return-u-1},l.prototype.add=function(p){var r=!p.isEmpty(),a=this.pointIndex(p.start,r);a<0&&(a=-a-1);var c=this.pointIndex(p.end,r,a);return c<0?c=-c-1:c++,this.ranges.splice(a,c-a,p)},l.prototype.addList=function(p){for(var r=[],a=p.length;a--;)r.push.apply(r,this.add(p[a]));return r},l.prototype.substractPoint=function(p){var r=this.pointIndex(p);if(r>=0)return this.ranges.splice(r,1)},l.prototype.merge=function(){var p=[],r=this.ranges;r=r.sort(function(d,m){return f(d.start,m.start)});for(var a=r[0],c,u=1;u<r.length;u++){c=a,a=r[u];var h=f(c.end,a.start);h<0||h==0&&!c.isEmpty()&&!a.isEmpty()||(f(c.end,a.end)<0&&(c.end.row=a.end.row,c.end.column=a.end.column),r.splice(u,1),p.push(a),a=c,u--)}return this.ranges=r,p},l.prototype.contains=function(p,r){return this.pointIndex({row:p,column:r})>=0},l.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},l.prototype.rangeAtPoint=function(p){var r=this.pointIndex(p);if(r>=0)return this.ranges[r]},l.prototype.clipRows=function(p,r){var a=this.ranges;if(a[0].start.row>r||a[a.length-1].start.row<p)return[];var c=this.pointIndex({row:p,column:0});c<0&&(c=-c-1);var u=this.pointIndex({row:r,column:0},c);u<0&&(u=-u-1);for(var h=[],d=c;d<u;d++)h.push(a[d]);return h},l.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},l.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},l.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},l.prototype.$onChange=function(p){for(var r=p.start,a=p.end,c=r.row,u=a.row,h=this.ranges,d=0,m=h.length;d<m;d++){var b=h[d];if(b.end.row>=c)break}if(p.action=="insert")for(var y=u-c,$=-r.column+a.column;d<m;d++){var b=h[d];if(b.start.row>c)break;if(b.start.row==c&&b.start.column>=r.column&&(b.start.column==r.column&&this.$bias<=0||(b.start.column+=$,b.start.row+=y)),b.end.row==c&&b.end.column>=r.column){if(b.end.column==r.column&&this.$bias<0)continue;b.end.column==r.column&&$>0&&d<m-1&&b.end.column>b.start.column&&b.end.column==h[d+1].start.column&&(b.end.column-=$),b.end.column+=$,b.end.row+=y}}else for(var y=c-u,$=r.column-a.column;d<m;d++){var b=h[d];if(b.start.row>u)break;b.end.row<u&&(c<b.end.row||c==b.end.row&&r.column<b.end.column)?(b.end.row=c,b.end.column=r.column):b.end.row==u?b.end.column<=a.column?(y||b.end.column>r.column)&&(b.end.column=r.column,b.end.row=r.row):(b.end.column+=$,b.end.row+=y):b.end.row>u&&(b.end.row+=y),b.start.row<u&&(c<b.start.row||c==b.start.row&&r.column<b.start.column)?(b.start.row=c,b.start.column=r.column):b.start.row==u?b.start.column<=a.column?(y||b.start.column>r.column)&&(b.start.column=r.column,b.start.row=r.row):(b.start.column+=$,b.start.row+=y):b.start.row>u&&(b.start.row+=y)}if(y!=0&&d<m)for(;d<m;d++){var b=h[d];b.start.row+=y,b.end.row+=y}},l}();g.prototype.comparePoints=f,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,s){var o=this&&this.__extends||function(){var c=function(u,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(d[b]=m[b])},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 d(){this.constructor=u}u.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}(),f=n("../range_list").RangeList,g=function(c){o(u,c);function u(h,d){var m=c.call(this)||this;return m.foldLine=null,m.placeholder=d,m.range=h,m.start=h.start,m.end=h.end,m.sameRow=h.start.row==h.end.row,m.subFolds=m.ranges=[],m}return u.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},u.prototype.setFoldLine=function(h){this.foldLine=h,this.subFolds.forEach(function(d){d.setFoldLine(h)})},u.prototype.clone=function(){var h=this.range.clone(),d=new u(h,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},u.prototype.addSubFold=function(h){if(!this.range.isEqual(h)){p(h,this.start);for(var $=h.start.row,S=h.start.column,d=0,m=-1;d<this.subFolds.length&&(m=this.subFolds[d].range.compare($,S),m==1);d++);var b=this.subFolds[d],y=0;if(m==0){if(b.range.containsRange(h))return b.addSubFold(h);y=1}for(var $=h.range.end.row,S=h.range.end.column,_=d,m=-1;_<this.subFolds.length&&(m=this.subFolds[_].range.compare($,S),m==1);_++);m==0&&_++;for(var w=this.subFolds.splice(d,_-d,h),A=m==0?w.length-1:w.length,L=y;L<A;L++)h.addSubFold(w[L]);return h.setFoldLine(this.foldLine),h}},u.prototype.restoreRange=function(h){return a(h,this.start)},u}(f);function l(c,u){c.row-=u.row,c.row==0&&(c.column-=u.column)}function p(c,u){l(c.start,u),l(c.end,u)}function r(c,u){c.row==0&&(c.column+=u.column),c.row+=u.row}function a(c,u){r(c.start,u),r(c.end,u)}i.Fold=g}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,i,s){var o=n("../range").Range,f=n("./fold_line").FoldLine,g=n("./fold").Fold,l=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function r(){this.getFoldAt=function(a,c,u){var h=this.getFoldLine(a);if(!h)return null;for(var d=h.folds,m=0;m<d.length;m++){var b=d[m].range;if(b.contains(a,c)){if(u==1&&b.isEnd(a,c)&&!b.isEmpty())continue;if(u==-1&&b.isStart(a,c)&&!b.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(a){var c=a.start,u=a.end,h=this.$foldData,d=[];c.column+=1,u.column-=1;for(var m=0;m<h.length;m++){var b=h[m].range.compareRange(a);if(b!=2){if(b==-2)break;for(var y=h[m].folds,$=0;$<y.length;$++){var S=y[$];if(b=S.range.compareRange(a),b==-2)break;if(b==2)continue;if(b==42)break;d.push(S)}}}return c.column-=1,u.column+=1,d},this.getFoldsInRangeList=function(a){if(Array.isArray(a)){var c=[];a.forEach(function(u){c=c.concat(this.getFoldsInRange(u))},this)}else var c=this.getFoldsInRange(a);return c},this.getAllFolds=function(){for(var a=[],c=this.$foldData,u=0;u<c.length;u++)for(var h=0;h<c[u].folds.length;h++)a.push(c[u].folds[h]);return a},this.getFoldStringAt=function(a,c,u,h){if(h=h||this.getFoldLine(a),!h)return null;for(var d={end:{column:0}},m,b,y=0;y<h.folds.length;y++){b=h.folds[y];var $=b.range.compareEnd(a,c);if($==-1){m=this.getLine(b.start.row).substring(d.end.column,b.start.column);break}else if($===0)return null;d=b}return m||(m=this.getLine(b.start.row).substring(d.end.column)),u==-1?m.substring(0,c-d.end.column):u==1?m.substring(c-d.end.column):m},this.getFoldLine=function(a,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var d=u[h];if(d.start.row<=a&&d.end.row>=a)return d;if(d.end.row>a)return null}return null},this.getNextFoldLine=function(a,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var d=u[h];if(d.end.row>=a)return d}return null},this.getFoldedRowCount=function(a,c){for(var u=this.$foldData,h=c-a+1,d=0;d<u.length;d++){var m=u[d],b=m.end.row,y=m.start.row;if(b>=c){y<c&&(y>=a?h-=c-y:h=0);break}else b>=a&&(y>=a?h-=b-y:h-=b-a+1)}return h},this.$addFoldLine=function(a){return this.$foldData.push(a),this.$foldData.sort(function(c,u){return c.start.row-u.start.row}),a},this.addFold=function(a,c){var u=this.$foldData,h=!1,d;a instanceof g?d=a:(d=new g(c,a),d.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(d.range);var m=d.start.row,b=d.start.column,y=d.end.row,$=d.end.column,S=this.getFoldAt(m,b,1),_=this.getFoldAt(y,$,-1);if(S&&_==S)return S.addSubFold(d);S&&!S.range.isStart(m,b)&&this.removeFold(S),_&&!_.range.isEnd(y,$)&&this.removeFold(_);var w=this.getFoldsInRange(d.range);w.length>0&&(this.removeFolds(w),d.collapseChildren||w.forEach(function(M){d.addSubFold(M)}));for(var A=0;A<u.length;A++){var L=u[A];if(y==L.start.row){L.addFold(d),h=!0;break}else if(m==L.end.row){if(L.addFold(d),h=!0,!d.sameRow){var E=u[A+1];if(E&&E.start.row==y){L.merge(E);break}}break}else if(y<=L.start.row)break}return h||(L=this.$addFoldLine(new f(this.$foldData,d))),this.$useWrapMode?this.$updateWrapData(L.start.row,L.start.row):this.$updateRowLengthCache(L.start.row,L.start.row),this.$modified=!0,this._signal("changeFold",{data:d,action:"add"}),d},this.addFolds=function(a){a.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(a){var c=a.foldLine,u=c.start.row,h=c.end.row,d=this.$foldData,m=c.folds;if(m.length==1)d.splice(d.indexOf(c),1);else if(c.range.isEnd(a.end.row,a.end.column))m.pop(),c.end.row=m[m.length-1].end.row,c.end.column=m[m.length-1].end.column;else if(c.range.isStart(a.start.row,a.start.column))m.shift(),c.start.row=m[0].start.row,c.start.column=m[0].start.column;else if(a.sameRow)m.splice(m.indexOf(a),1);else{var b=c.split(a.start.row,a.start.column);m=b.folds,m.shift(),b.start.row=m[0].start.row,b.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(u,h):this.$updateRowLengthCache(u,h)),this.$modified=!0,this._signal("changeFold",{data:a,action:"remove"})},this.removeFolds=function(a){for(var c=[],u=0;u<a.length;u++)c.push(a[u]);c.forEach(function(h){this.removeFold(h)},this),this.$modified=!0},this.expandFold=function(a){this.removeFold(a),a.subFolds.forEach(function(c){a.restoreRange(c),this.addFold(c)},this),a.collapseChildren>0&&this.foldAll(a.start.row+1,a.end.row,a.collapseChildren-1),a.subFolds=[]},this.expandFolds=function(a){a.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(a,c){var u,h;if(a==null)u=new o(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof a=="number")u=new o(a,0,a,this.getLine(a).length);else if("row"in a)u=o.fromPoints(a,a);else{if(Array.isArray(a))return h=[],a.forEach(function(m){h=h.concat(this.unfold(m))},this),h;u=a}h=this.getFoldsInRangeList(u);for(var d=h;h.length==1&&o.comparePoints(h[0].start,u.start)<0&&o.comparePoints(h[0].end,u.end)>0;)this.expandFolds(h),h=this.getFoldsInRangeList(u);if(c!=!1?this.removeFolds(h):this.expandFolds(h),d.length)return d},this.isRowFolded=function(a,c){return!!this.getFoldLine(a,c)},this.getRowFoldEnd=function(a,c){var u=this.getFoldLine(a,c);return u?u.end.row:a},this.getRowFoldStart=function(a,c){var u=this.getFoldLine(a,c);return u?u.start.row:a},this.getFoldDisplayLine=function(a,c,u,h,d){h==null&&(h=a.start.row),d==null&&(d=0),c==null&&(c=a.end.row),u==null&&(u=this.getLine(c).length);var m=this.doc,b="";return a.walk(function(y,$,S,_){if(!($<h)){if($==h){if(S<d)return;_=Math.max(d,_)}y!=null?b+=y:b+=m.getLine($).substring(_,S)}},c,u),b},this.getDisplayLine=function(a,c,u,h){var d=this.getFoldLine(a);if(d)return this.getFoldDisplayLine(d,a,c,u,h);var m;return m=this.doc.getLine(a),m.substring(h||0,c||m.length)},this.$cloneFoldData=function(){var a=[];return a=this.$foldData.map(function(c){var u=c.folds.map(function(h){return h.clone()});return new f(a,u)}),a},this.toggleFold=function(a){var c=this.selection,u=c.getRange(),h,d;if(u.isEmpty()){var m=u.start;if(h=this.getFoldAt(m.row,m.column),h){this.expandFold(h);return}else(d=this.findMatchingBracket(m))?u.comparePoint(d)==1?u.end=d:(u.start=d,u.start.column++,u.end.column--):(d=this.findMatchingBracket({row:m.row,column:m.column+1}))?(u.comparePoint(d)==1?u.end=d:u.start=d,u.start.column++):u=this.getCommentFoldRange(m.row,m.column)||u}else{var b=this.getFoldsInRange(u);if(a&&b.length){this.expandFolds(b);return}else b.length==1&&(h=b[0])}if(h||(h=this.getFoldAt(u.start.row,u.start.column)),h&&h.range.toString()==u.toString()){this.expandFold(h);return}var y="...";if(!u.isMultiLine()){if(y=this.getTextRange(u),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,u)},this.getCommentFoldRange=function(a,c,u){var h=new l(this,a,c),d=h.getCurrentToken(),m=d&&d.type;if(d&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var b=new RegExp(m),y=new o;if(u!=1){do d=h.stepBackward();while(d&&b.test(d.type));d=h.stepForward()}y.start.row=h.getCurrentTokenRow(),y.start.column=h.getCurrentTokenColumn()+d.value.length,h=new l(this,a,c);var $=this.getState(h.$row);if(u!=-1){var S=-1;do if(d=h.stepForward(),S==-1){var _=this.getState(h.$row);$.toString()!==_.toString()&&(S=h.$row)}else if(h.$row>S)break;while(d&&b.test(d.type));d=h.stepBackward()}else d=h.getCurrentToken();return y.end.row=h.getCurrentTokenRow(),y.end.column=h.getCurrentTokenColumn(),y}},this.foldAll=function(a,c,u,h){u==null&&(u=1e5);var d=this.foldWidgets;if(d){c=c||this.getLength(),a=a||0;for(var m=a;m<c;m++)if(d[m]==null&&(d[m]=this.getFoldWidget(m)),d[m]=="start"&&!(h&&!h(m))){var b=this.getFoldWidgetRange(m);b&&b.isMultiLine()&&b.end.row<=c&&b.start.row>=a&&(m=b.end.row,b.collapseChildren=u,this.addFold("...",b))}}},this.foldToLevel=function(a){for(this.foldAll();a-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var a=this;this.foldAll(null,null,null,function(c){for(var u=a.getTokens(c),h=0;h<u.length;h++){var d=u[h];if(!(d.type=="text"&&/^\s+$/.test(d.value)))return!!/comment/.test(d.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(a){if(!this.$foldStyles[a])throw new Error("invalid fold style: "+a+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=a){this.$foldStyle=a,a=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(a){if(this.$foldMode!=a){if(this.$foldMode=a,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!a||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=a.getFoldWidget.bind(a,this,this.$foldStyle),this.getFoldWidgetRange=a.getFoldWidgetRange.bind(a,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(a,c){var u=this.foldWidgets;if(!u||c&&u[a])return{};for(var h=a-1,d;h>=0;){var m=u[h];if(m==null&&(m=u[h]=this.getFoldWidget(h)),m=="start"){var b=this.getFoldWidgetRange(h);if(d||(d=b),b&&b.end.row>=a)break}h--}return{range:h!==-1&&b,firstRange:d}},this.onFoldWidgetClick=function(a,c){c instanceof p&&(c=c.domEvent);var u={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},h=this.$toggleFoldWidget(a,u);if(!h){var d=c.target||c.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(a,c){if(this.getFoldWidget){var u=this.getFoldWidget(a),h=this.getLine(a),d=u==="end"?-1:1,m=this.getFoldAt(a,d===-1?0:h.length,d);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var b=this.getFoldWidgetRange(a,!0);if(b&&!b.isMultiLine()&&(m=this.getFoldAt(b.start.row,b.start.column,1),m&&b.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(a);if(y.range)var $=y.range.start.row+1,S=y.range.end.row;this.foldAll($,S,c.all?1e4:0)}else c.children?(S=b?b.end.row:this.getLength(),this.foldAll(a+1,S,c.all?1e4:0)):b&&(c.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(a){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 d=this.getFoldAt(c,this.getLine(c).length,1);d?this.removeFold(d):this.addFold("...",u)}}},this.updateFoldWidgets=function(a){var c=a.start.row,u=a.end.row-c;if(u===0)this.foldWidgets[c]=null;else if(a.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(a){var c=a.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}i.Folding=r}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,s){var o=n("../token_iterator").TokenIterator,f=n("../range").Range;function g(){this.findMatchingBracket=function(l,p){if(l.column==0)return null;var r=p||this.getLine(l.row).charAt(l.column-1);if(r=="")return null;var a=r.match(/([\(\[\{])|([\)\]\}])/);return a?a[1]?this.$findClosingBracket(a[1],l):this.$findOpeningBracket(a[2],l):null},this.getBracketRange=function(l){var p=this.getLine(l.row),r=!0,a,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(/([\(\[\{])|([\)\]\}])/),r=!1),!u)return null;if(u[1]){var h=this.$findClosingBracket(u[1],l);if(!h)return null;a=f.fromPoints(l,h),r||(a.end.column++,a.start.column--),a.cursor=a.end}else{var h=this.$findOpeningBracket(u[2],l);if(!h)return null;a=f.fromPoints(h,l),r||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(l,p){var r=this.getLine(l.row),a=/([\(\[\{])|([\)\]\}])/,c=!p&&r.charAt(l.column-1),u=c&&c.match(a);if(u||(c=(p===void 0||p)&&r.charAt(l.column),l={row:l.row,column:l.column+1},u=c&&c.match(a)),!u)return null;var h=new f(l.row,l.column-1,l.row,l.column),d=u[1]?this.$findClosingBracket(u[1],l):this.$findOpeningBracket(u[2],l);if(!d)return[h];var m=new f(d.row,d.column,d.row,d.column+1);return[h,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(l,p,r){var a=this.$brackets[l],c=1,u=new o(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){r||(r=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=p.column-u.getCurrentTokenColumn()-2,m=h.value;;){for(;d>=0;){var b=m.charAt(d);if(b==a){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:d+u.getCurrentTokenColumn()}}else b==l&&(c+=1);d-=1}do h=u.stepBackward();while(h&&!r.test(h.type));if(h==null)break;m=h.value,d=m.length-1}return null}},this.$findClosingBracket=function(l,p,r){var a=this.$brackets[l],c=1,u=new o(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){r||(r=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=p.column-u.getCurrentTokenColumn();;){for(var m=h.value,b=m.length;d<b;){var y=m.charAt(d);if(y==a){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:d+u.getCurrentTokenColumn()}}else y==l&&(c+=1);d+=1}do h=u.stepForward();while(h&&!r.test(h.type));if(h==null)break;d=0}return null}},this.getMatchingTags=function(l){var p=new o(this,l.row,l.column),r=this.$findTagName(p);if(r){var a=p.stepBackward();return a.value==="<"?this.$findClosingTag(p,r):this.$findOpeningTag(p,r)}},this.$findTagName=function(l){var p=l.getCurrentToken(),r=!1,a=!1;if(p&&p.type.indexOf("tag-name")===-1)do a?p=l.stepBackward():p=l.stepForward(),p&&(p.value==="/>"?a=!0:p.type.indexOf("tag-name")!==-1&&(r=!0));while(p&&!r);return p},this.$findClosingTag=function(l,p){var r,a=p.value,c=p.value,u=0,h=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);p=l.stepForward();var d=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length),m=!1;do{if(r=p,r.type.indexOf("tag-close")!==-1&&!m){var b=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p=l.stepForward(),p){if(p.value===">"&&!m){var b=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(a=p.value,c===a){if(r.value==="<")u++;else if(r.value==="</"&&(u--,u<0)){l.stepBackward();var y=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2);p=l.stepForward();var $=new f(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 S=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);else return}}}else if(c===a&&p.value==="/>"&&(u--,u<0))var y=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2),$=y,S=$,b=new f(d.end.row,d.end.column,d.end.row,d.end.column+1)}}while(p&&u>=0);if(h&&b&&y&&S&&d&&$)return{openTag:new f(h.start.row,h.start.column,b.end.row,b.end.column),closeTag:new f(y.start.row,y.start.column,S.end.row,S.end.column),openTagName:d,closeTagName:$}},this.$findOpeningTag=function(l,p){var r=l.getCurrentToken(),a=p.value,c=0,u=l.getCurrentTokenRow(),h=l.getCurrentTokenColumn(),d=h+2,m=new f(u,h,u,d);l.stepForward();var b=new f(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 f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);l.stepBackward(),l.stepBackward();do if(p=r,u=l.getCurrentTokenRow(),h=l.getCurrentTokenColumn(),d=h+p.value.length,r=l.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(a===p.value)if(r.value==="<"){if(c++,c>0){var $=new f(u,h,u,d),S=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);do p=l.stepForward();while(p&&p.value!==">");var _=new f(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1)}}else r.value==="</"&&c--}else if(p.value==="/>"){for(var w=0,A=r;A;){if(A.type.indexOf("tag-name")!==-1&&A.value===a){c--;break}else if(A.value==="<")break;A=l.stepBackward(),w++}for(var L=0;L<w;L++)l.stepForward()}}while(r&&c<=0);if(S&&_&&m&&y&&$&&b)return{openTag:new f(S.start.row,S.start.column,_.end.row,_.end.column),closeTag:new f(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:$,closeTagName:b}}}}i.BracketMatch=g}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,i,s){var o=n("./lib/oop"),f=n("./lib/lang"),g=n("./bidihandler").BidiHandler,l=n("./config"),p=n("./lib/event_emitter").EventEmitter,r=n("./selection").Selection,a=n("./mode/text").Mode,c=n("./range").Range,u=n("./line_widgets").LineWidgets,h=n("./document").Document,d=n("./background_tokenizer").BackgroundTokenizer,m=n("./search_highlight").SearchHighlight,b=n("./undomanager").UndoManager,y=function(){function C(v,x){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++C.$uid,this.$foldData.toString=function(){return this.join(`
|
803
|
+
`)},this.bgTokenizer=new d(new a().getTokenizer(),this);var k=this;this.bgTokenizer.on("update",function(T){k._signal("tokenizerUpdate",T)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof v!="object"||!v.getLine)&&(v=new h(v)),this.setDocument(v),this.selection=new r(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new g(this),l.resetOptions(this),this.setMode(x),l._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return C.prototype.$initOperationListeners=function(){var v=this;this.curOp=null,this.on("change",function(){v.curOp||(v.startOperation(),v.curOp.selectionBefore=v.$lastSel),v.curOp.docChanged=!0},!0),this.on("changeSelection",function(){v.curOp||(v.startOperation(),v.curOp.selectionBefore=v.$lastSel),v.curOp.selectionChanged=!0},!0),this.$operationResetTimer=f.delayedCall(this.endOperation.bind(this,!0))},C.prototype.startOperation=function(v){if(this.curOp){if(!v||this.curOp.command)return;this.prevOp=this.curOp}v||(v={}),this.$operationResetTimer.schedule(),this.curOp={command:v.command||{},args:v.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",v)},C.prototype.endOperation=function(v){if(this.curOp){if(v&&v.returnValue===!1){this.curOp=null,this._signal("endOperation",v);return}if(v==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var x=this.selection.toJSON();this.curOp.selectionAfter=x,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(x),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",v)}},C.prototype.setDocument=function(v){this.doc&&this.doc.off("change",this.$onChange),this.doc=v,v.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},C.prototype.getDocument=function(){return this.doc},Object.defineProperty(C.prototype,"widgetManager",{get:function(){var v=new u(this);return this.widgetManager=v,this.$editor&&v.attach(this.$editor),v},set:function(v){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:v})},enumerable:!1,configurable:!0}),C.prototype.$resetRowCache=function(v){if(!v){this.$docRowCache=[],this.$screenRowCache=[];return}var x=this.$docRowCache.length,k=this.$getRowCacheIndex(this.$docRowCache,v)+1;x>k&&(this.$docRowCache.splice(k,x),this.$screenRowCache.splice(k,x))},C.prototype.$getRowCacheIndex=function(v,x){for(var k=0,T=v.length-1;k<=T;){var R=k+T>>1,I=v[R];if(x>I)k=R+1;else if(x<I)T=R-1;else return R}return k-1},C.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},C.prototype.onChangeFold=function(v){var x=v.data;this.$resetRowCache(x.start.row)},C.prototype.onChange=function(v){this.$modified=!0,this.$bidiHandler.onChange(v),this.$resetRowCache(v.start.row);var x=this.$updateInternalDataOnChange(v);!this.$fromUndo&&this.$undoManager&&(x&&x.length&&(this.$undoManager.add({action:"removeFolds",folds:x},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(v,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(v),this._signal("change",v)},C.prototype.onSelectionChange=function(){this._signal("changeSelection")},C.prototype.setValue=function(v){this.doc.setValue(v),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},C.fromJSON=function(v){typeof v=="string"&&(v=JSON.parse(v));var x=new b;x.$undoStack=v.history.undo,x.$redoStack=v.history.redo,x.mark=v.history.mark,x.$rev=v.history.rev;var k=new C(v.value);return v.folds.forEach(function(T){k.addFold("...",c.fromPoints(T.start,T.end))}),k.setAnnotations(v.annotations),k.setBreakpoints(v.breakpoints),k.setMode(v.mode),k.setScrollLeft(v.scrollLeft),k.setScrollTop(v.scrollTop),k.setUndoManager(x),k.selection.fromJSON(v.selection),k},C.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(v){return v.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},C.prototype.toString=function(){return this.doc.getValue()},C.prototype.getSelection=function(){return this.selection},C.prototype.getState=function(v){return this.bgTokenizer.getState(v)},C.prototype.getTokens=function(v){return this.bgTokenizer.getTokens(v)},C.prototype.getTokenAt=function(v,x){var k=this.bgTokenizer.getTokens(v),T,R=0;if(x==null){var I=k.length-1;R=this.getLine(v).length}else for(var I=0;I<k.length&&(R+=k[I].value.length,!(R>=x));I++);return T=k[I],T?(T.index=I,T.start=R-T.value.length,T):null},C.prototype.setUndoManager=function(v){if(this.$undoManager=v,this.$informUndoManager&&this.$informUndoManager.cancel(),v){var x=this;v.addSession(this),this.$syncInformUndoManager=function(){x.$informUndoManager.cancel(),x.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},C.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},C.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},C.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},C.prototype.setUseSoftTabs=function(v){this.setOption("useSoftTabs",v)},C.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},C.prototype.setTabSize=function(v){this.setOption("tabSize",v)},C.prototype.getTabSize=function(){return this.$tabSize},C.prototype.isTabStop=function(v){return this.$useSoftTabs&&v.column%this.$tabSize===0},C.prototype.setNavigateWithinSoftTabs=function(v){this.setOption("navigateWithinSoftTabs",v)},C.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},C.prototype.setOverwrite=function(v){this.setOption("overwrite",v)},C.prototype.getOverwrite=function(){return this.$overwrite},C.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},C.prototype.addGutterDecoration=function(v,x){this.$decorations[v]||(this.$decorations[v]=""),this.$decorations[v]+=" "+x,this._signal("changeBreakpoint",{})},C.prototype.removeGutterDecoration=function(v,x){this.$decorations[v]=(this.$decorations[v]||"").replace(" "+x,""),this._signal("changeBreakpoint",{})},C.prototype.getBreakpoints=function(){return this.$breakpoints},C.prototype.setBreakpoints=function(v){this.$breakpoints=[];for(var x=0;x<v.length;x++)this.$breakpoints[v[x]]="ace_breakpoint";this._signal("changeBreakpoint",{})},C.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},C.prototype.setBreakpoint=function(v,x){x===void 0&&(x="ace_breakpoint"),x?this.$breakpoints[v]=x:delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},C.prototype.clearBreakpoint=function(v){delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},C.prototype.addMarker=function(v,x,k,T){var R=this.$markerId++,I={range:v,type:k||"line",renderer:typeof k=="function"?k:null,clazz:x,inFront:!!T,id:R};return T?(this.$frontMarkers[R]=I,this._signal("changeFrontMarker")):(this.$backMarkers[R]=I,this._signal("changeBackMarker")),R},C.prototype.addDynamicMarker=function(v,x){if(v.update){var k=this.$markerId++;return v.id=k,v.inFront=!!x,x?(this.$frontMarkers[k]=v,this._signal("changeFrontMarker")):(this.$backMarkers[k]=v,this._signal("changeBackMarker")),v}},C.prototype.removeMarker=function(v){var x=this.$frontMarkers[v]||this.$backMarkers[v];if(x){var k=x.inFront?this.$frontMarkers:this.$backMarkers;delete k[v],this._signal(x.inFront?"changeFrontMarker":"changeBackMarker")}},C.prototype.getMarkers=function(v){return v?this.$frontMarkers:this.$backMarkers},C.prototype.highlight=function(v){if(!this.$searchHighlight){var x=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(x)}this.$searchHighlight.setRegexp(v)},C.prototype.highlightLines=function(v,x,k,T){typeof x!="number"&&(k=x,x=v),k||(k="ace_step");var R=new c(v,0,x,1/0);return R.id=this.addMarker(R,k,"fullLine",T),R},C.prototype.setAnnotations=function(v){this.$annotations=v,this._signal("changeAnnotation",{})},C.prototype.getAnnotations=function(){return this.$annotations||[]},C.prototype.clearAnnotations=function(){this.setAnnotations([])},C.prototype.$detectNewLine=function(v){var x=v.match(/^.*?(\r?\n)/m);x?this.$autoNewLine=x[1]:this.$autoNewLine=`
|
804
|
+
`},C.prototype.getWordRange=function(v,x){var k=this.getLine(v),T=!1;if(x>0&&(T=!!k.charAt(x-1).match(this.tokenRe)),T||(T=!!k.charAt(x).match(this.tokenRe)),T)var R=this.tokenRe;else if(/^\s+$/.test(k.slice(x-1,x+1)))var R=/\s/;else var R=this.nonTokenRe;var I=x;if(I>0){do I--;while(I>=0&&k.charAt(I).match(R));I++}for(var N=x;N<k.length&&k.charAt(N).match(R);)N++;return new c(v,I,v,N)},C.prototype.getAWordRange=function(v,x){for(var k=this.getWordRange(v,x),T=this.getLine(k.end.row);T.charAt(k.end.column).match(/[ \t]/);)k.end.column+=1;return k},C.prototype.setNewLineMode=function(v){this.doc.setNewLineMode(v)},C.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},C.prototype.setUseWorker=function(v){this.setOption("useWorker",v)},C.prototype.getUseWorker=function(){return this.$useWorker},C.prototype.onReloadTokenizer=function(v){var x=v.data;this.bgTokenizer.start(x.first),this._signal("tokenizerUpdate",v)},C.prototype.setMode=function(v,x){if(v&&typeof v=="object"){if(v.getTokenizer)return this.$onChangeMode(v);var k=v,T=k.path}else T=v||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new a),this.$modes[T]&&!k){this.$onChangeMode(this.$modes[T]),x&&x();return}this.$modeId=T,l.loadModule(["mode",T],(function(R){if(this.$modeId!==T)return x&&x();this.$modes[T]&&!k?this.$onChangeMode(this.$modes[T]):R&&R.Mode&&(R=new R.Mode(k),k||(this.$modes[T]=R,R.$id=T),this.$onChangeMode(R)),x&&x()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},C.prototype.$onChangeMode=function(v,x){if(x||(this.$modeId=v.$id),this.$mode!==v){var k=this.$mode;this.$mode=v,this.$stopWorker(),this.$useWorker&&this.$startWorker();var T=v.getTokenizer();if(T.on!==void 0){var R=this.onReloadTokenizer.bind(this);T.on("update",R)}this.bgTokenizer.setTokenizer(T),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=v.tokenRe,this.nonTokenRe=v.nonTokenRe,x||(v.attachToSession&&v.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(v.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:k,mode:v}))}},C.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},C.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(v){l.warn("Could not load worker",v),this.$worker=null}},C.prototype.getMode=function(){return this.$mode},C.prototype.setScrollTop=function(v){this.$scrollTop===v||isNaN(v)||(this.$scrollTop=v,this._signal("changeScrollTop",v))},C.prototype.getScrollTop=function(){return this.$scrollTop},C.prototype.setScrollLeft=function(v){this.$scrollLeft===v||isNaN(v)||(this.$scrollLeft=v,this._signal("changeScrollLeft",v))},C.prototype.getScrollLeft=function(){return this.$scrollLeft},C.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},C.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var v=0;return this.lineWidgets.forEach(function(x){x&&x.screenWidth>v&&(v=x.screenWidth)}),this.lineWidgetWidth=v},C.prototype.$computeWidth=function(v){if(this.$modified||v){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var x=this.doc.getAllLines(),k=this.$rowLengthCache,T=0,R=0,I=this.$foldData[R],N=I?I.start.row:1/0,F=x.length,W=0;W<F;W++){if(W>N){if(W=I.end.row+1,W>=F)break;I=this.$foldData[R++],N=I?I.start.row:1/0}k[W]==null&&(k[W]=this.$getStringScreenWidth(x[W])[0]),k[W]>T&&(T=k[W])}this.screenWidth=T}},C.prototype.getLine=function(v){return this.doc.getLine(v)},C.prototype.getLines=function(v,x){return this.doc.getLines(v,x)},C.prototype.getLength=function(){return this.doc.getLength()},C.prototype.getTextRange=function(v){return this.doc.getTextRange(v||this.selection.getRange())},C.prototype.insert=function(v,x){return this.doc.insert(v,x)},C.prototype.remove=function(v){return this.doc.remove(v)},C.prototype.removeFullLines=function(v,x){return this.doc.removeFullLines(v,x)},C.prototype.undoChanges=function(v,x){if(v.length){this.$fromUndo=!0;for(var k=v.length-1;k!=-1;k--){var T=v[k];T.action=="insert"||T.action=="remove"?this.doc.revertDelta(T):T.folds&&this.addFolds(T.folds)}!x&&this.$undoSelect&&(v.selectionBefore?this.selection.fromJSON(v.selectionBefore):this.selection.setRange(this.$getUndoSelection(v,!0))),this.$fromUndo=!1}},C.prototype.redoChanges=function(v,x){if(v.length){this.$fromUndo=!0;for(var k=0;k<v.length;k++){var T=v[k];(T.action=="insert"||T.action=="remove")&&this.doc.$safeApplyDelta(T)}!x&&this.$undoSelect&&(v.selectionAfter?this.selection.fromJSON(v.selectionAfter):this.selection.setRange(this.$getUndoSelection(v,!1))),this.$fromUndo=!1}},C.prototype.setUndoSelect=function(v){this.$undoSelect=v},C.prototype.$getUndoSelection=function(v,x){function k(F){return x?F.action!=="insert":F.action==="insert"}for(var T,R,I=0;I<v.length;I++){var N=v[I];if(N.start){if(!T){k(N)?T=c.fromPoints(N.start,N.end):T=c.fromPoints(N.start,N.start);continue}k(N)?(R=N.start,T.compare(R.row,R.column)==-1&&T.setStart(R),R=N.end,T.compare(R.row,R.column)==1&&T.setEnd(R)):(R=N.start,T.compare(R.row,R.column)==-1&&(T=c.fromPoints(N.start,N.start)))}}return T},C.prototype.replace=function(v,x){return this.doc.replace(v,x)},C.prototype.moveText=function(v,x,k){var T=this.getTextRange(v),R=this.getFoldsInRange(v),I=c.fromPoints(x,x);if(!k){this.remove(v);var N=v.start.row-v.end.row,F=N?-v.end.column:v.start.column-v.end.column;F&&(I.start.row==v.end.row&&I.start.column>v.end.column&&(I.start.column+=F),I.end.row==v.end.row&&I.end.column>v.end.column&&(I.end.column+=F)),N&&I.start.row>=v.end.row&&(I.start.row+=N,I.end.row+=N)}if(I.end=this.insert(I.start,T),R.length){var W=v.start,V=I.start,N=V.row-W.row,F=V.column-W.column;this.addFolds(R.map(function(K){return K=K.clone(),K.start.row==W.row&&(K.start.column+=F),K.end.row==W.row&&(K.end.column+=F),K.start.row+=N,K.end.row+=N,K}))}return I},C.prototype.indentRows=function(v,x,k){k=k.replace(/\t/g,this.getTabString());for(var T=v;T<=x;T++)this.doc.insertInLine({row:T,column:0},k)},C.prototype.outdentRows=function(v){for(var x=v.collapseRows(),k=new c(0,0,0,0),T=this.getTabSize(),R=x.start.row;R<=x.end.row;++R){var I=this.getLine(R);k.start.row=R,k.end.row=R;for(var N=0;N<T&&I.charAt(N)==" ";++N);N<T&&I.charAt(N)==" "?(k.start.column=N,k.end.column=N+1):(k.start.column=0,k.end.column=N),this.remove(k)}},C.prototype.$moveLines=function(v,x,k){if(v=this.getRowFoldStart(v),x=this.getRowFoldEnd(x),k<0){var T=this.getRowFoldStart(v+k);if(T<0)return 0;var R=T-v}else if(k>0){var T=this.getRowFoldEnd(x+k);if(T>this.doc.getLength()-1)return 0;var R=T-x}else{v=this.$clipRowToDocument(v),x=this.$clipRowToDocument(x);var R=x-v+1}var I=new c(v,0,x,Number.MAX_VALUE),N=this.getFoldsInRange(I).map(function(W){return W=W.clone(),W.start.row+=R,W.end.row+=R,W}),F=k==0?this.doc.getLines(v,x):this.doc.removeFullLines(v,x);return this.doc.insertFullLines(v+R,F),N.length&&this.addFolds(N),R},C.prototype.moveLinesUp=function(v,x){return this.$moveLines(v,x,-1)},C.prototype.moveLinesDown=function(v,x){return this.$moveLines(v,x,1)},C.prototype.duplicateLines=function(v,x){return this.$moveLines(v,x,0)},C.prototype.$clipRowToDocument=function(v){return Math.max(0,Math.min(v,this.doc.getLength()-1))},C.prototype.$clipColumnToRow=function(v,x){return x<0?0:Math.min(this.doc.getLine(v).length,x)},C.prototype.$clipPositionToDocument=function(v,x){if(x=Math.max(0,x),v<0)v=0,x=0;else{var k=this.doc.getLength();v>=k?(v=k-1,x=this.doc.getLine(k-1).length):x=Math.min(this.doc.getLine(v).length,x)}return{row:v,column:x}},C.prototype.$clipRangeToDocument=function(v){v.start.row<0?(v.start.row=0,v.start.column=0):v.start.column=this.$clipColumnToRow(v.start.row,v.start.column);var x=this.doc.getLength()-1;return v.end.row>x?(v.end.row=x,v.end.column=this.doc.getLine(x).length):v.end.column=this.$clipColumnToRow(v.end.row,v.end.column),v},C.prototype.setUseWrapMode=function(v){if(v!=this.$useWrapMode){if(this.$useWrapMode=v,this.$modified=!0,this.$resetRowCache(0),v){var x=this.getLength();this.$wrapData=Array(x),this.$updateWrapData(0,x-1)}this._signal("changeWrapMode")}},C.prototype.getUseWrapMode=function(){return this.$useWrapMode},C.prototype.setWrapLimitRange=function(v,x){(this.$wrapLimitRange.min!==v||this.$wrapLimitRange.max!==x)&&(this.$wrapLimitRange={min:v,max:x},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},C.prototype.adjustWrapLimit=function(v,x){var k=this.$wrapLimitRange;k.max<0&&(k={min:x,max:x});var T=this.$constrainWrapLimit(v,k.min,k.max);return T!=this.$wrapLimit&&T>1?(this.$wrapLimit=T,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},C.prototype.$constrainWrapLimit=function(v,x,k){return x&&(v=Math.max(x,v)),k&&(v=Math.min(k,v)),v},C.prototype.getWrapLimit=function(){return this.$wrapLimit},C.prototype.setWrapLimit=function(v){this.setWrapLimitRange(v,v)},C.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},C.prototype.$updateInternalDataOnChange=function(v){var x=this.$useWrapMode,k=v.action,T=v.start,R=v.end,I=T.row,N=R.row,F=N-I,W=null;if(this.$updating=!0,F!=0)if(k==="remove"){this[x?"$wrapData":"$rowLengthCache"].splice(I,F);var V=this.$foldData;W=this.getFoldsInRange(v),this.removeFolds(W);var B=this.getFoldLine(R.row),H=0;if(B){B.addRemoveChars(R.row,R.column,T.column-R.column),B.shiftRow(-F);var K=this.getFoldLine(I);K&&K!==B&&(K.merge(B),B=K),H=V.indexOf(B)+1}for(H;H<V.length;H++){var B=V[H];B.start.row>=R.row&&B.shiftRow(-F)}N=I}else{var U=Array(F);U.unshift(I,0);var j=x?this.$wrapData:this.$rowLengthCache;j.splice.apply(j,U);var V=this.$foldData,B=this.getFoldLine(I),H=0;if(B){var Q=B.range.compareInside(T.row,T.column);Q==0?(B=B.split(T.row,T.column),B&&(B.shiftRow(F),B.addRemoveChars(N,0,R.column-T.column))):Q==-1&&(B.addRemoveChars(I,0,R.column-T.column),B.shiftRow(F)),H=V.indexOf(B)+1}for(H;H<V.length;H++){var B=V[H];B.start.row>=I&&B.shiftRow(F)}}else{F=Math.abs(v.start.column-v.end.column),k==="remove"&&(W=this.getFoldsInRange(v),this.removeFolds(W),F=-F);var B=this.getFoldLine(I);B&&B.addRemoveChars(I,T.column,F)}return x&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,x?this.$updateWrapData(I,N):this.$updateRowLengthCache(I,N),W},C.prototype.$updateRowLengthCache=function(v,x){this.$rowLengthCache[v]=null,this.$rowLengthCache[x]=null},C.prototype.$updateWrapData=function(v,x){var k=this.doc.getAllLines(),T=this.getTabSize(),R=this.$wrapData,I=this.$wrapLimit,N,F,W=v;for(x=Math.min(x,k.length-1);W<=x;)F=this.getFoldLine(W,F),F?(N=[],F.walk((function(V,B,H,K){var U;if(V!=null){U=this.$getDisplayTokens(V,N.length),U[0]=_;for(var j=1;j<U.length;j++)U[j]=w}else U=this.$getDisplayTokens(k[B].substring(K,H),N.length);N=N.concat(U)}).bind(this),F.end.row,k[F.end.row].length+1),R[F.start.row]=this.$computeWrapSplits(N,I,T),W=F.end.row+1):(N=this.$getDisplayTokens(k[W]),R[W]=this.$computeWrapSplits(N,I,T),W++)},C.prototype.$computeWrapSplits=function(v,x,k){if(v.length==0)return[];var T=[],R=v.length,I=0,N=0,F=this.$wrapAsCode,W=this.$indentedSoftWrap,V=x<=Math.max(2*k,8)||W===!1?0:Math.floor(x/2);function B(){var Q=0;if(V===0)return Q;if(W)for(var q=0;q<v.length;q++){var X=v[q];if(X==L)Q+=1;else if(X==E)Q+=k;else{if(X==M)continue;break}}return F&&W!==!1&&(Q+=k),Math.min(Q,V)}function H(Q){for(var q=Q-I,X=I;X<Q;X++){var ce=v[X];(ce===12||ce===2)&&(q-=1)}T.length||(K=B(),T.indent=K),N+=q,T.push(N),I=Q}for(var K=0;R-I>x-K;){var U=I+x-K;if(v[U-1]>=L&&v[U]>=L){H(U);continue}if(v[U]==_||v[U]==w){for(U;U!=I-1&&v[U]!=_;U--);if(U>I){H(U);continue}for(U=I+x,U;U<v.length&&v[U]==w;U++);if(U==v.length)break;H(U);continue}for(var j=Math.max(U-(x-(x>>2)),I-1);U>j&&v[U]<_;)U--;if(F){for(;U>j&&v[U]<_;)U--;for(;U>j&&v[U]==A;)U--}else for(;U>j&&v[U]<L;)U--;if(U>j){H(++U);continue}U=I+x,v[U]==S&&U--,H(U-K)}return T},C.prototype.$getDisplayTokens=function(v,x){var k=[],T;x=x||0;for(var R=0;R<v.length;R++){var I=v.charCodeAt(R);if(I==9){T=this.getScreenTabSize(k.length+x),k.push(E);for(var N=1;N<T;N++)k.push(M)}else I==32?k.push(L):I>39&&I<48||I>57&&I<64?k.push(A):I>=4352&&O(I)?k.push($,S):k.push($)}return k},C.prototype.$getStringScreenWidth=function(v,x,k){if(x==0)return[0,0];x==null&&(x=1/0),k=k||0;var T,R;for(R=0;R<v.length&&(T=v.charCodeAt(R),T==9?k+=this.getScreenTabSize(k):T>=4352&&O(T)?k+=2:k+=1,!(k>x));R++);return[k,R]},C.prototype.getRowLength=function(v){var x=1;return this.lineWidgets&&(x+=this.lineWidgets[v]&&this.lineWidgets[v].rowCount||0),!this.$useWrapMode||!this.$wrapData[v]?x:this.$wrapData[v].length+x},C.prototype.getRowLineCount=function(v){return!this.$useWrapMode||!this.$wrapData[v]?1:this.$wrapData[v].length+1},C.prototype.getRowWrapIndent=function(v){if(this.$useWrapMode){var x=this.screenToDocumentPosition(v,Number.MAX_VALUE),k=this.$wrapData[x.row];return k.length&&k[0]<x.column?k.indent:0}else return 0},C.prototype.getScreenLastRowColumn=function(v){var x=this.screenToDocumentPosition(v,Number.MAX_VALUE);return this.documentToScreenColumn(x.row,x.column)},C.prototype.getDocumentLastRowColumn=function(v,x){var k=this.documentToScreenRow(v,x);return this.getScreenLastRowColumn(k)},C.prototype.getDocumentLastRowColumnPosition=function(v,x){var k=this.documentToScreenRow(v,x);return this.screenToDocumentPosition(k,Number.MAX_VALUE/10)},C.prototype.getRowSplitData=function(v){if(this.$useWrapMode)return this.$wrapData[v]},C.prototype.getScreenTabSize=function(v){return this.$tabSize-(v%this.$tabSize|0)},C.prototype.screenToDocumentRow=function(v,x){return this.screenToDocumentPosition(v,x).row},C.prototype.screenToDocumentColumn=function(v,x){return this.screenToDocumentPosition(v,x).column},C.prototype.screenToDocumentPosition=function(v,x,k){if(v<0)return{row:0,column:0};var T,R=0,I=0,N,F=0,W=0,V=this.$screenRowCache,B=this.$getRowCacheIndex(V,v),H=V.length;if(H&&B>=0)var F=V[B],R=this.$docRowCache[B],K=v>V[H-1];else var K=!H;for(var U=this.getLength()-1,j=this.getNextFoldLine(R),Q=j?j.start.row:1/0;F<=v&&(W=this.getRowLength(R),!(F+W>v||R>=U));)F+=W,R++,R>Q&&(R=j.end.row+1,j=this.getNextFoldLine(R,j),Q=j?j.start.row:1/0),K&&(this.$docRowCache.push(R),this.$screenRowCache.push(F));if(j&&j.start.row<=R)T=this.getFoldDisplayLine(j),R=j.start.row;else{if(F+W<=v||R>U)return{row:U,column:this.getLine(U).length};T=this.getLine(R),j=null}var q=0,X=Math.floor(v-F);if(this.$useWrapMode){var ce=this.$wrapData[R];ce&&(N=ce[X],X>0&&ce.length&&(q=ce.indent,I=ce[X-1]||ce[ce.length-1],T=T.substring(I)))}return k!==void 0&&this.$bidiHandler.isBidiRow(F+X,R,X)&&(x=this.$bidiHandler.offsetToCol(k)),I+=this.$getStringScreenWidth(T,x-q)[1],this.$useWrapMode&&I>=N&&(I=N-1),j?j.idxToPosition(I):{row:R,column:I}},C.prototype.documentToScreenPosition=function(v,x){if(typeof x>"u")var k=this.$clipPositionToDocument(v.row,v.column);else k=this.$clipPositionToDocument(v,x);v=k.row,x=k.column;var T=0,R=null,I=null;I=this.getFoldAt(v,x,1),I&&(v=I.start.row,x=I.start.column);var N,F=0,W=this.$docRowCache,V=this.$getRowCacheIndex(W,v),B=W.length;if(B&&V>=0)var F=W[V],T=this.$screenRowCache[V],H=v>W[B-1];else var H=!B;for(var K=this.getNextFoldLine(F),U=K?K.start.row:1/0;F<v;){if(F>=U){if(N=K.end.row+1,N>v)break;K=this.getNextFoldLine(N,K),U=K?K.start.row:1/0}else N=F+1;T+=this.getRowLength(F),F=N,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(T))}var j="";K&&F>=U?(j=this.getFoldDisplayLine(K,v,x),R=K.start.row):(j=this.getLine(v).substring(0,x),R=v);var Q=0;if(this.$useWrapMode){var q=this.$wrapData[R];if(q){for(var X=0;j.length>=q[X];)T++,X++;j=j.substring(q[X-1]||0,j.length),Q=X>0?q.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(T+=this.lineWidgets[F].rowsAbove),{row:T,column:Q+this.$getStringScreenWidth(j)[0]}},C.prototype.documentToScreenColumn=function(v,x){return this.documentToScreenPosition(v,x).column},C.prototype.documentToScreenRow=function(v,x){return this.documentToScreenPosition(v,x).row},C.prototype.getScreenLength=function(){var v=0,x=null;if(this.$useWrapMode)for(var R=this.$wrapData.length,I=0,T=0,x=this.$foldData[T++],N=x?x.start.row:1/0;I<R;){var F=this.$wrapData[I];v+=F?F.length+1:1,I++,I>N&&(I=x.end.row+1,x=this.$foldData[T++],N=x?x.start.row:1/0)}else{v=this.getLength();for(var k=this.$foldData,T=0;T<k.length;T++)x=k[T],v-=x.end.row-x.start.row}return this.lineWidgets&&(v+=this.$getWidgetScreenLength()),v},C.prototype.$setFontMetrics=function(v){this.$enableVarChar&&(this.$getStringScreenWidth=function(x,k,T){if(k===0)return[0,0];k||(k=1/0),T=T||0;var R,I;for(I=0;I<x.length&&(R=x.charAt(I),R===" "?T+=this.getScreenTabSize(T):T+=v.getCharacterWidth(R),!(T>k));I++);return[T,I]})},C.prototype.getPrecedingCharacter=function(){var v=this.selection.getCursor();if(v.column===0)return v.row===0?"":this.doc.getNewLineCharacter();var x=this.getLine(v.row);return x[v.column-1]},C.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()},C}();y.$uid=0,y.prototype.$modes=l.$modes,y.prototype.getValue=y.prototype.toString,y.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},y.prototype.$overwrite=!1,y.prototype.$mode=null,y.prototype.$modeId=null,y.prototype.$scrollTop=0,y.prototype.$scrollLeft=0,y.prototype.$wrapLimit=80,y.prototype.$useWrapMode=!1,y.prototype.$wrapLimitRange={min:null,max:null},y.prototype.lineWidgets=null,y.prototype.isFullWidth=O,o.implement(y.prototype,p);var $=1,S=2,_=3,w=4,A=9,L=10,E=11,M=12;function O(C){return C<4352?!1:C>=4352&&C<=4447||C>=4515&&C<=4519||C>=4602&&C<=4607||C>=9001&&C<=9002||C>=11904&&C<=11929||C>=11931&&C<=12019||C>=12032&&C<=12245||C>=12272&&C<=12283||C>=12288&&C<=12350||C>=12353&&C<=12438||C>=12441&&C<=12543||C>=12549&&C<=12589||C>=12593&&C<=12686||C>=12688&&C<=12730||C>=12736&&C<=12771||C>=12784&&C<=12830||C>=12832&&C<=12871||C>=12880&&C<=13054||C>=13056&&C<=19903||C>=19968&&C<=42124||C>=42128&&C<=42182||C>=43360&&C<=43388||C>=44032&&C<=55203||C>=55216&&C<=55238||C>=55243&&C<=55291||C>=63744&&C<=64255||C>=65040&&C<=65049||C>=65072&&C<=65106||C>=65108&&C<=65126||C>=65128&&C<=65131||C>=65281&&C<=65376||C>=65504&&C<=65510}n("./edit_session/folding").Folding.call(y.prototype),n("./edit_session/bracket_match").BracketMatch.call(y.prototype),l.defineOptions(y.prototype,"session",{wrap:{set:function(C){if(!C||C=="off"?C=!1:C=="free"?C=!0:C=="printMargin"?C=-1:typeof C=="string"&&(C=parseInt(C,10)||!1),this.$wrap!=C)if(this.$wrap=C,!C)this.setUseWrapMode(!1);else{var v=typeof C=="number"?C:null;this.setWrapLimitRange(v,v),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(C){C=C=="auto"?this.$mode.type!="text":C!="text",C!=this.$wrapAsCode&&(this.$wrapAsCode=C,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(C){this.$useWorker=C,this.$stopWorker(),C&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(C){C=parseInt(C),C>0&&this.$tabSize!==C&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=C,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(C){this.setFoldStyle(C)},handlesSet:!0},overwrite:{set:function(C){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(C){this.doc.setNewLineMode(C)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(C){this.setMode(C)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=y}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,s){var o=n("./lib/lang"),f=n("./lib/oop"),g=n("./range").Range,l=function(){function r(){this.$options={}}return r.prototype.set=function(a){return f.mixin(this.$options,a),this},r.prototype.getOptions=function(){return o.copyObject(this.$options)},r.prototype.setOptions=function(a){this.$options=a},r.prototype.find=function(a){var c=this.$options,u=this.$matchIterator(a,c);if(!u)return!1;var h=null;return u.forEach(function(d,m,b,y){return h=new g(d,m,b,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&h.isEqual(c.start)?(h=null,!1):!0}),h},r.prototype.findAll=function(a){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var u=c.range,h=u?a.getLines(u.start.row,u.end.row):a.doc.getAllLines(),d=[],m=c.re;if(c.$isMultiLine){var b=m.length,y=h.length-b,$;e:for(var S=m.offset||0;S<=y;S++){for(var _=0;_<b;_++)if(h[S+_].search(m[_])==-1)continue e;var w=h[S],A=h[S+b-1],L=w.length-w.match(m[0])[0].length,E=A.match(m[b-1])[0].length;$&&$.end.row===S&&$.end.column>L||(d.push($=new g(S,L,S+b-1,E)),b>2&&(S=S+b-2))}}else for(var M=0;M<h.length;M++)for(var O=o.getMatchOffsets(h[M],m),_=0;_<O.length;_++){var C=O[_];d.push(new g(M,C.offset,M,C.offset+C.length))}if(u){for(var v=u.start.column,x=u.end.column,M=0,_=d.length-1;M<_&&d[M].start.column<v&&d[M].start.row==0;)M++;for(var k=u.end.row-u.start.row;M<_&&d[_].end.column>x&&d[_].end.row==k;)_--;for(d=d.slice(M,_+1),M=0,_=d.length;M<_;M++)d[M].start.row+=u.start.row,d[M].end.row+=u.start.row}return d},r.prototype.replace=function(a,c){var u=this.$options,h=this.$assembleRegExp(u);if(u.$isMultiLine)return c;if(h){var d=h.exec(a);if(!d||d[0].length!=a.length)return null;if(u.regExp||(c=c.replace(/\$/g,"$$$$")),c=a.replace(h,c),u.preserveCase){c=c.split("");for(var m=Math.min(a.length,a.length);m--;){var b=a[m];b&&b.toLowerCase()!=b?c[m]=c[m].toUpperCase():c[m]=c[m].toLowerCase()}c=c.join("")}return c}},r.prototype.$assembleRegExp=function(a,c){if(a.needle instanceof RegExp)return a.re=a.needle;var u=a.needle;if(!a.needle)return a.re=!1;a.regExp||(u=o.escapeRegExp(u));var h=a.caseSensitive?"gm":"gmi";try{new RegExp(u,"u"),a.$supportsUnicodeFlag=!0,h+="u"}catch{a.$supportsUnicodeFlag=!1}if(a.wholeWord&&(u=p(u,a)),a.$isMultiLine=!c&&/[\n\r]/.test(u),a.$isMultiLine)return a.re=this.$assembleMultilineRegExp(u,h);try{var d=new RegExp(u,h)}catch{d=!1}return a.re=d},r.prototype.$assembleMultilineRegExp=function(a,c){for(var u=a.replace(/\r\n|\r|\n/g,`$
|
805
|
+
^`).split(`
|
806
|
+
`),h=[],d=0;d<u.length;d++)try{h.push(new RegExp(u[d],c))}catch{return!1}return h},r.prototype.$matchIterator=function(a,c){var u=this.$assembleRegExp(c);if(!u)return!1;var h=c.backwards==!0,d=c.skipCurrent!=!1,m=u.unicode,b=c.range,y=c.start;y||(y=b?b[h?"end":"start"]:a.selection.getRange()),y.start&&(y=y[d!=h?"end":"start"]);var $=b?b.start.row:0,S=b?b.end.row:a.getLength()-1;if(h)var _=function(L){var E=y.row;if(!A(E,y.column,L)){for(E--;E>=$;E--)if(A(E,Number.MAX_VALUE,L))return;if(c.wrap!=!1){for(E=S,$=y.row;E>=$;E--)if(A(E,Number.MAX_VALUE,L))return}}};else var _=function(E){var M=y.row;if(!A(M,y.column,E)){for(M=M+1;M<=S;M++)if(A(M,0,E))return;if(c.wrap!=!1){for(M=$,S=y.row;M<=S;M++)if(A(M,0,E))return}}};if(c.$isMultiLine)var w=u.length,A=function(L,E,M){var O=h?L-w+1:L;if(!(O<0||O+w>a.getLength())){var C=a.getLine(O),v=C.search(u[0]);if(!(!h&&v<E||v===-1)){for(var x=1;x<w;x++)if(C=a.getLine(O+x),C.search(u[x])==-1)return;var k=C.match(u[w-1])[0].length;if(!(h&&k>E)&&M(O,v,O+w-1,k))return!0}}};else if(h)var A=function(E,M,O){var C=a.getLine(E),v=[],x,k=0;for(u.lastIndex=0;x=u.exec(C);){var T=x[0].length;if(k=x.index,!T){if(k>=C.length)break;u.lastIndex=k+=o.skipEmptyMatch(C,k,m)}if(x.index+T>M)break;v.push(x.index,T)}for(var R=v.length-1;R>=0;R-=2){var I=v[R-1],T=v[R];if(O(E,I,E,I+T))return!0}};else var A=function(E,M,O){var C=a.getLine(E),v,x;for(u.lastIndex=M;x=u.exec(C);){var k=x[0].length;if(v=x.index,O(E,v,E,v+k))return!0;if(!k&&(u.lastIndex=v+=o.skipEmptyMatch(C,v,m),v>=C.length))return!1}};return{forEach:_}},r}();function p(r,a){var c=o.supportsLookbehind();function u(b,y){y===void 0&&(y=!0);var $=c&&a.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return $.test(b)||a.regExp?c&&a.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var h=Array.from(r),d=h[0],m=h[h.length-1];return u(d)+r+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 o=this&&this.__extends||function(){var c=function(u,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(d[b]=m[b])},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 d(){this.constructor=u}u.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}(),f=n("../lib/keys"),g=n("../lib/useragent"),l=f.KEY_MODS,p=function(){function c(u,h){this.$init(u,h,!1)}return c.prototype.$init=function(u,h,d){this.platform=h||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=d},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 d=u&&(typeof u=="string"?u:u.name);u=this.commands[d],h||delete this.commands[d];var m=this.commandKeyBinding;for(var b in m){var y=m[b];if(y==u)delete m[b];else if(Array.isArray(y)){var $=y.indexOf(u);$!=-1&&(y.splice($,1),y.length==1&&(m[b]=y[0]))}}},c.prototype.bindKey=function(u,h,d){if(typeof u=="object"&&u&&(d==null&&(d=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 b="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(_){var w=this.parseKeys(_),A=l[w.hashId]+w.key;b+=(b?" ":"")+A,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var $=this.parseKeys(m),S=l[$.hashId]+$.key;this._addCommandToBinding(b+S,h,d)},this)}},c.prototype._addCommandToBinding=function(u,h,d){var m=this.commandKeyBinding,b;if(!h)delete m[u];else if(!m[u]||this.$singleCommand)m[u]=h;else{Array.isArray(m[u])?(b=m[u].indexOf(h))!=-1&&m[u].splice(b,1):m[u]=[m[u]],typeof d!="number"&&(d=r(h));var y=m[u];for(b=0;b<y.length;b++){var $=y[b],S=r($);if(S>d)break}y.splice(b,0,h)}},c.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(h){var d=u[h];if(d){if(typeof d=="string")return this.bindKey(d,h);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=h),this.addCommand(d))}},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(S){return S}),d=h.pop(),m=f[d];if(f.FUNCTION_KEYS[m])d=f.FUNCTION_KEYS[m].toLowerCase();else if(h.length){if(h.length==1&&h[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var b=0,y=h.length;y--;){var $=f.KEY_MODS[h[y]];if($==null)return typeof console<"u"&&console.error("invalid modifier "+h[y]+" in "+u),!1;b|=$}return{key:d,hashId:b}},c.prototype.findKeyCommand=function(u,h){var d=l[u]+h;return this.commandKeyBinding[d]},c.prototype.handleKeyboard=function(u,h,d,m){if(!(m<0)){var b=l[h]+d,y=this.commandKeyBinding[b];return u.$keyChain&&(u.$keyChain+=" "+b,y=this.commandKeyBinding[u.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||b,{command:"null"}):(u.$keyChain&&((!h||h==4)&&d.length==1?u.$keyChain=u.$keyChain.slice(0,-b.length-1):(h==-1||m>0)&&(u.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(u,h){return h.$keyChain||""},c}();function r(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var a=function(c){o(u,c);function u(h,d){var m=c.call(this,h,d)||this;return m.$singleCommand=!0,m}return u}(p);a.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=a,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 o=this&&this.__extends||function(){var r=function(a,c){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(u[d]=h[d])},r(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");r(a,c);function u(){this.constructor=a}a.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),f=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,l=n("../lib/event_emitter").EventEmitter,p=function(r){o(a,r);function a(c,u){var h=r.call(this,u,c)||this;return h.byName=h.commands,h.setDefaultHandler("exec",function(d){return d.args?d.command.exec(d.editor,d.args,d.event,!1):d.command.exec(d.editor,{},d.event,!0)}),h}return a.prototype.exec=function(c,u,h){if(Array.isArray(c)){for(var d=c.length;d--;)if(this.exec(c[d],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},a.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))},a.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)},a.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}}},a.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})},a}(g);f.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 o=n("../lib/lang"),f=n("../config"),g=n("../range").Range;function l(r,a){return{win:r,mac:a}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:l("Ctrl-,","Command-,"),exec:function(r){f.loadModule("ace/ext/settings_menu",function(a){a.init(r),r.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:l("Alt-E","F4"),exec:function(r){f.loadModule("ace/ext/error_marker",function(a){a.showErrorMarker(r,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(r){f.loadModule("ace/ext/error_marker",function(a){a.showErrorMarker(r,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:l("Ctrl-A","Command-A"),exec:function(r){r.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:l(null,"Ctrl-L"),exec:function(r){r.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:l("Ctrl-L","Command-L"),exec:function(r,a){typeof a=="number"&&!isNaN(a)&&r.gotoLine(a),r.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(r){r.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(r){r.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:l("F2","F2"),exec:function(r){r.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:l("Alt-F2","Alt-F2"),exec:function(r){r.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:l("Alt-0","Command-Option-0"),exec:function(r){r.session.foldAll(),r.session.unfold(r.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(r){r.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:l("Ctrl-K","Command-G"),exec:function(r){r.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(r){r.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:l("Alt-K","Ctrl-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:l("Ctrl-F","Command-F"),exec:function(r){f.loadModule("ace/ext/searchbox",function(a){a.Search(r)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(r){r.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(r){r.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(r){r.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(r){r.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:l("Up","Up|Ctrl-P"),exec:function(r,a){r.navigateUp(a.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(r){r.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(r){r.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(r){r.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:l("Down","Down|Ctrl-N"),exec:function(r,a){r.navigateDown(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(r){r.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:l("Ctrl-Left","Option-Left"),exec:function(r){r.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(r){r.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(r){r.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(r){r.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:l("Left","Left|Ctrl-B"),exec:function(r,a){r.navigateLeft(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(r){r.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:l("Ctrl-Right","Option-Right"),exec:function(r){r.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(r){r.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(r){r.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:l("Shift-Right","Shift-Right"),exec:function(r){r.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:l("Right","Right|Ctrl-F"),exec:function(r,a){r.navigateRight(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(r){r.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:l(null,"Option-PageDown"),exec:function(r){r.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(r){r.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(r){r.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:l(null,"Option-PageUp"),exec:function(r){r.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(r){r.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:l("Ctrl-Up",null),exec:function(r){r.renderer.scrollBy(0,-2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:l("Ctrl-Down",null),exec:function(r){r.renderer.scrollBy(0,2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(r){r.commands.toggleRecording(r)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(r){r.commands.replay(r)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:l("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(r){r.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:l("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(r){r.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(r){r.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(r){},readOnly:!0},{name:"cut",description:"Cut",exec:function(r){var a=r.$copyWithEmptySelection&&r.selection.isEmpty(),c=a?r.selection.getLineRange():r.selection.getRange();r._emit("cut",c),c.isEmpty()||r.session.remove(c),r.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(r,a){r.$handlePaste(a)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:l("Ctrl-D","Command-D"),exec:function(r){r.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(r){r.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(r){r.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:l("Ctrl-/","Command-/"),exec:function(r){r.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(r){r.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(r){r.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(r){r.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(r){f.loadModule("ace/ext/searchbox",function(a){a.Search(r,!0)})}},{name:"undo",description:"Undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(r){r.undo()}},{name:"redo",description:"Redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(r){r.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(r){r.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:l("Alt-Up","Option-Up"),exec:function(r){r.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(r){r.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:l("Alt-Down","Option-Down"),exec:function(r){r.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(r){r.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(r){r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:l("Shift-Delete",null),exec:function(r){if(r.selection.isEmpty())r.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(r){r.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(r){r.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(r){var a=r.selection.getRange();a.start.column=0,r.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(r){var a=r.selection.getRange();a.end.column=Number.MAX_VALUE,r.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(r){r.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(r){r.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(r){r.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:l("Tab","Tab"),exec:function(r){r.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(r){r.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(r){r.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(r,a){r.insert(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(r,a){r.insert(o.stringRepeat(a.text||"",a.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:l(null,"Ctrl-O"),exec:function(r){r.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(r){r.transposeLetters()},multiSelectAction:function(r){r.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(r){r.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(r){r.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:l(null,null),exec:function(r){r.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(r){var a=r.selection.getRange();a.start.column=a.end.column=0,a.end.row++,r.selection.setRange(a,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:l("Ctrl+F3","F3"),exec:function(r){r.openLink()}},{name:"joinlines",description:"Join lines",bindKey:l(null,null),exec:function(r){for(var a=r.selection.isBackwards(),c=a?r.selection.getSelectionLead():r.selection.getSelectionAnchor(),u=a?r.selection.getSelectionAnchor():r.selection.getSelectionLead(),h=r.session.doc.getLine(c.row).length,d=r.session.doc.getTextRange(r.selection.getRange()),m=d.replace(/\n\s*/," ").length,b=r.session.doc.getLine(c.row),y=c.row+1;y<=u.row+1;y++){var $=o.stringTrimLeft(o.stringTrimRight(r.session.doc.getLine(y)));$.length!==0&&($=" "+$),b+=$}u.row+1<r.session.doc.getLength()-1&&(b+=r.session.doc.getNewLineCharacter()),r.clearSelection(),r.session.doc.replace(new g(c.row,0,u.row+2,0),b),m>0?(r.selection.moveCursorTo(c.row,c.column),r.selection.selectTo(c.row,c.column+m)):(h=r.session.doc.getLine(c.row).length>h?h+1:h,r.selection.moveCursorTo(c.row,h))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:l(null,null),exec:function(r){var a=r.session.doc.getLength()-1,c=r.session.doc.getLine(a).length,u=r.selection.rangeList.ranges,h=[];u.length<1&&(u=[r.selection.getRange()]);for(var d=0;d<u.length;d++)d==u.length-1&&(u[d].end.row===a&&u[d].end.column===c||h.push(new g(u[d].end.row,u[d].end.column,a,c))),d===0?u[d].start.row===0&&u[d].start.column===0||h.push(new g(0,0,u[d].start.row,u[d].start.column)):h.push(new g(u[d-1].end.row,u[d-1].end.column,u[d].start.row,u[d].start.column));r.exitMultiSelectMode(),r.clearSelection();for(var d=0;d<h.length;d++)r.selection.addRange(h[d],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(r){r.selection.clearSelection(),r.navigateLineEnd(),r.insert(`
|
807
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(r){r.selection.clearSelection();var a=r.getCursorPosition();r.selection.moveTo(a.row-1,Number.MAX_VALUE),r.insert(`
|
808
|
+
`),a.row===0&&r.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(r){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),r.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:l("F1","F1"),exec:function(r){r.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:l(null,null),exec:function(r){r.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)i.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(r){r.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,s){var o=n("../lib/keys"),f=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(r){this.editor=r,this.gutterLayer=r.renderer.$gutterLayer,this.element=r.renderer.$gutter,this.lines=r.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new f(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(r){if(this.annotationTooltip.isOpen){r.preventDefault(),r.keyCode===o.escape&&this.annotationTooltip.hideTooltip();return}if(r.target===this.element){if(r.keyCode!=o.enter)return;r.preventDefault();var a=this.editor.getCursorPosition().row;this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!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)<Math.abs(u-c)){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(r),setTimeout((function(){this.editor._signal("gutterkeydown",new l(r,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(r){if(r.keyCode===o.tab){r.preventDefault();return}if(r.keyCode===o.escape){r.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(r.keyCode===o.up){switch(r.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(r.keyCode===o.down){switch(r.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(r.keyCode===o.left){r.preventDefault(),this.$switchLane("annotation");return}if(r.keyCode===o.right){r.preventDefault(),this.$switchLane("fold");return}if(r.keyCode===o.enter||r.keyCode===o.space){switch(r.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var a=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),r),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==a&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(a),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var c=this.lines.cells[this.activeRowIndex].element.childNodes[2],u=c.getBoundingClientRect(),h=this.annotationTooltip.getElement().style;h.left=u.right+"px",h.top=u.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(r){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(r)),c=this.$getFoldWidget(r).style.display!=="none";return a&&c},p.prototype.$isAnnotationVisible=function(r){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(r)),c=this.$getAnnotation(r).style.display!=="none";return a&&c},p.prototype.$getFoldWidget=function(r){var a=this.lines.get(r),c=a.element;return c.childNodes[1]},p.prototype.$getAnnotation=function(r){var a=this.lines.get(r),c=a.element;return c.childNodes[2]},p.prototype.$findNearestFoldWidget=function(r){if(this.$isFoldWidgetVisible(r))return r;for(var a=0;r-a>0||r+a<this.lines.getLength()-1;){if(a++,r-a>=0&&this.$isFoldWidgetVisible(r-a))return r-a;if(r+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(r+a))return r+a}return null},p.prototype.$findNearestAnnotation=function(r){if(this.$isAnnotationVisible(r))return r;for(var a=0;r-a>0||r+a<this.lines.getLength()-1;){if(a++,r-a>=0&&this.$isAnnotationVisible(r-a))return r-a;if(r+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(r+a))return r+a}return null},p.prototype.$focusFoldWidget=function(r){if(r!=null){var a=this.$getFoldWidget(r);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$focusAnnotation=function(r){if(r!=null){var a=this.$getAnnotation(r);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$blurFoldWidget=function(r){var a=this.$getFoldWidget(r);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$blurAnnotation=function(r){var a=this.$getAnnotation(r);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var r=this.activeRowIndex;r>0;)if(r--,this.$isFoldWidgetVisible(r)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=r,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var r=this.activeRowIndex;r<this.lines.getLength()-1;)if(r++,this.$isFoldWidgetVisible(r)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=r,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var r=this.activeRowIndex;r>0;)if(r--,this.$isAnnotationVisible(r)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=r,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var r=this.activeRowIndex;r<this.lines.getLength()-1;)if(r++,this.$isAnnotationVisible(r)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=r,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(r){switch(r){case"annotation":if(this.activeLane==="annotation")break;var a=this.$findNearestAnnotation(this.activeRowIndex);if(a==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var c=this.$findNearestFoldWidget(this.activeRowIndex);if(c==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(r){var a=this.lines.get(r);return a?a.row:null},p.prototype.$rowToRowIndex=function(r){for(var a=0;a<this.lines.getLength();a++){var c=this.lines.get(a);if(c.row==r)return a}return null},p}();i.GutterKeyboardHandler=g;var l=function(){function p(r,a){this.gutterKeyboardHandler=a,this.domEvent=r}return p.prototype.getKey=function(){return o.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();i.GutterKeyboardEvent=l}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(n,i,s){var o=this&&this.__values||function(C){var v=typeof Symbol=="function"&&Symbol.iterator,x=v&&C[v],k=0;if(x)return x.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&k>=C.length&&(C=void 0),{value:C&&C[k++],done:!C}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/lang"),p=n("./lib/useragent"),r=n("./keyboard/textinput").TextInput,a=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,h=n("./edit_session").EditSession,d=n("./search").Search,m=n("./range").Range,b=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,$=n("./commands/default_commands").commands,S=n("./config"),_=n("./token_iterator").TokenIterator,w=n("./keyboard/gutter_handler").GutterKeyboardHandler,A=n("./config").nls,L=n("./clipboard"),E=n("./lib/keys"),M=function(){function C(v,x,k){this.session,this.$toDestroy=[];var T=v.getContainerElement();this.container=T,this.renderer=v,this.id="editor"+ ++C.$uid,this.commands=new y(p.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new r(v.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new c(this)),this.keyBinding=new u(this),this.$search=new d().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(R,I){I._$emitInputEvent.schedule(31)}),this.setSession(x||k&&k.session||new h("")),S.resetOptions(this),k&&this.setOptions(k),S._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(v){this.session.startOperation(v)},C.prototype.endOperation=function(v){this.session.endOperation(v)},C.prototype.onStartOperation=function(v){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,v||(this.previousCommand=null)},C.prototype.onEndOperation=function(v){if(this.curOp&&this.session){if(v&&v.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var x=this.curOp.command,k=x&&x.scrollIntoView;if(k){switch(k){case"center-animate":k="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var T=this.selection.getRange(),R=this.renderer.layerConfig;(T.start.row>=R.lastRow||T.end.row<=R.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}k=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},C.prototype.$historyTracker=function(v){if(this.$mergeUndoDeltas){var x=this.prevOp,k=this.$mergeableCommands,T=x.command&&v.command.name==x.command.name;if(v.command.name=="insertstring"){var R=v.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),T=T&&this.mergeNextCommand&&(!/\s/.test(R)||/\s/.test(x.args)),this.mergeNextCommand=!0}else T=T&&k.indexOf(v.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(T=!1),T?this.session.mergeUndoDeltas=!0:k.indexOf(v.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},C.prototype.setKeyboardHandler=function(v,x){if(v&&typeof v=="string"&&v!="ace"){this.$keybindingId=v;var k=this;S.loadModule(["keybinding",v],function(T){k.$keybindingId==v&&k.keyBinding.setKeyboardHandler(T&&T.handler),x&&x()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(v),x&&x()},C.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},C.prototype.setSession=function(v){if(this.session!=v){this.curOp&&this.endOperation(),this.curOp={};var x=this.session;if(x){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 k=this.session.getSelection();k.off("changeCursor",this.$onCursorChange),k.off("changeSelection",this.$onSelectionChange)}this.session=v,v?(this.$onDocumentChange=this.onDocumentChange.bind(this),v.on("change",this.$onDocumentChange),this.renderer.setSession(v),this.$onChangeMode=this.onChangeMode.bind(this),v.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),v.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),v.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),v.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),v.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),v.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=v.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(v)),this._signal("changeSession",{session:v,oldSession:x}),this.curOp=null,x&&x._signal("changeEditor",{oldEditor:this}),x&&(x.$editor=null),v&&v._signal("changeEditor",{editor:this}),v&&(v.$editor=this),v&&!v.destroyed&&v.bgTokenizer.scheduleStart()}},C.prototype.getSession=function(){return this.session},C.prototype.setValue=function(v,x){return this.session.doc.setValue(v),x?x==1?this.navigateFileEnd():x==-1&&this.navigateFileStart():this.selectAll(),v},C.prototype.getValue=function(){return this.session.getValue()},C.prototype.getSelection=function(){return this.selection},C.prototype.resize=function(v){this.renderer.onResize(v)},C.prototype.setTheme=function(v,x){this.renderer.setTheme(v,x)},C.prototype.getTheme=function(){return this.renderer.getTheme()},C.prototype.setStyle=function(v){this.renderer.setStyle(v)},C.prototype.unsetStyle=function(v){this.renderer.unsetStyle(v)},C.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},C.prototype.setFontSize=function(v){this.setOption("fontSize",v)},C.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var v=this;this.$highlightPending=!0,setTimeout(function(){v.$highlightPending=!1;var x=v.session;if(!(!x||x.destroyed)){x.$bracketHighlight&&(x.$bracketHighlight.markerIds.forEach(function(B){x.removeMarker(B)}),x.$bracketHighlight=null);var k=v.getCursorPosition(),T=v.getKeyboardHandler(),R=T&&T.$getDirectionForHighlight&&T.$getDirectionForHighlight(v),I=x.getMatchingBracketRanges(k,R);if(!I){var N=new _(x,k.row,k.column),F=N.getCurrentToken();if(F&&/\b(?:tag-open|tag-name)/.test(F.type)){var W=x.getMatchingTags(k);W&&(I=[W.openTagName.isEmpty()?W.openTag:W.openTagName,W.closeTagName.isEmpty()?W.closeTag:W.closeTagName])}}if(!I&&x.$mode.getMatching&&(I=x.$mode.getMatching(v.session)),!I){v.getHighlightIndentGuides()&&v.renderer.$textLayer.$highlightIndentGuide();return}var V="ace_bracket";Array.isArray(I)?I.length==1&&(V="ace_error_bracket"):I=[I],I.length==2&&(m.comparePoints(I[0].end,I[1].start)==0?I=[m.fromPoints(I[0].start,I[1].end)]:m.comparePoints(I[0].start,I[1].end)==0&&(I=[m.fromPoints(I[1].start,I[0].end)])),x.$bracketHighlight={ranges:I,markerIds:I.map(function(B){return x.addMarker(B,V,"text")})},v.getHighlightIndentGuides()&&v.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(v){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",v))},C.prototype.onBlur=function(v){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",v))},C.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},C.prototype.onDocumentChange=function(v){var x=this.session.$useWrapMode,k=v.start.row==v.end.row?v.end.row:1/0;this.renderer.updateLines(v.start.row,k,x),this._signal("change",v),this.$cursorChange()},C.prototype.onTokenizerUpdate=function(v){var x=v.data;this.renderer.updateLines(x.first,x.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 v=this.getSession(),x;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(x=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(x=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(x=!1)),v.$highlightLineMarker&&!x)v.removeMarker(v.$highlightLineMarker.id),v.$highlightLineMarker=null;else if(!v.$highlightLineMarker&&x){var k=new m(x.row,x.column,x.row,1/0);k.id=v.addMarker(k,"ace_active-line","screenLine"),v.$highlightLineMarker=k}else x&&(v.$highlightLineMarker.start.row=x.row,v.$highlightLineMarker.end.row=x.row,v.$highlightLineMarker.start.column=x.column,v._signal("changeBackMarker"))},C.prototype.onSelectionChange=function(v){var x=this.session;if(x.$selectionMarker&&x.removeMarker(x.$selectionMarker),x.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var k=this.selection.getRange(),T=this.getSelectionStyle();x.$selectionMarker=x.addMarker(k,"ace_selection",T)}var R=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(R),this._signal("changeSelection")},C.prototype.$getSelectionHighLightRegexp=function(){var v=this.session,x=this.getSelectionRange();if(!(x.isEmpty()||x.isMultiLine())){var k=x.start.column,T=x.end.column,R=v.getLine(x.start.row),I=R.substring(k,T);if(!(I.length>5e3||!/[\w\d]/.test(I))){var N=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:I}),F=R.substring(k-1,T+1);if(N.test(F))return N}}},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(v){this.renderer.updateText(),this._emit("changeMode",v)},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 v=this.getSelectedText(),x=this.session.doc.getNewLineCharacter(),k=!1;if(!v&&this.$copyWithEmptySelection){k=!0;for(var T=this.selection.getAllRanges(),R=0;R<T.length;R++){var I=T[R];R&&T[R-1].start.row==I.start.row||(v+=this.session.getLine(I.start.row)+x)}}var N={text:v};return this._signal("copy",N),L.lineMode=k?N.text:!1,N.text},C.prototype.onCopy=function(){this.commands.exec("copy",this)},C.prototype.onCut=function(){this.commands.exec("cut",this)},C.prototype.onPaste=function(v,x){var k={text:v,event:x};this.commands.exec("paste",this,k)},C.prototype.$handlePaste=function(v){typeof v=="string"&&(v={text:v}),this._signal("paste",v);var x=v.text,k=x===L.lineMode,T=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)k?T.insert({row:this.selection.lead.row,column:0},x):this.insert(x);else if(k)this.selection.rangeList.ranges.forEach(function(V){T.insert({row:V.start.row,column:0},x)});else{var R=x.split(/\r\n|\r|\n/),I=this.selection.rangeList.ranges,N=R.length==2&&(!R[0]||!R[1]);if(R.length!=I.length||N)return this.commands.exec("insertstring",this,x);for(var F=I.length;F--;){var W=I[F];W.isEmpty()||T.remove(W),T.insert(W.start,R[F])}}},C.prototype.execCommand=function(v,x){return this.commands.exec(v,this,x)},C.prototype.insert=function(v,x){var k=this.session,T=k.getMode(),R=this.getCursorPosition();if(this.getBehavioursEnabled()&&!x){var I=T.transformAction(k.getState(R.row),"insertion",this,k,v);I&&(v!==I.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),v=I.text)}if(v==" "&&(v=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&v.indexOf(`
|
809
|
+
`)==-1){var N=m.fromPoints(R,R);N.end.column+=v.length,this.session.remove(N)}}else{var N=this.getSelectionRange();R=this.session.remove(N),this.clearSelection()}if(v==`
|
810
|
+
`||v==`\r
|
811
|
+
`){var B=k.getLine(R.row);if(R.column>B.search(/\S|$/)){var F=B.substr(R.column).search(/\S|$/);k.doc.removeInLine(R.row,R.column,R.column+F)}}this.clearSelection();var W=R.column,V=k.getState(R.row),B=k.getLine(R.row),H=T.checkOutdent(V,B,v);if(k.insert(R,v),I&&I.selection&&(I.selection.length==2?this.selection.setSelectionRange(new m(R.row,W+I.selection[0],R.row,W+I.selection[1])):this.selection.setSelectionRange(new m(R.row+I.selection[0],I.selection[1],R.row+I.selection[2],I.selection[3]))),this.$enableAutoIndent){if(k.getDocument().isNewLine(v)){var K=T.getNextLineIndent(V,B.slice(0,R.column),k.getTabString());k.insert({row:R.row+1,column:0},K)}H&&T.autoOutdent(V,k,R.row)}},C.prototype.autoIndent=function(){for(var v=this.session,x=v.getMode(),k=this.selection.isEmpty()?[new m(0,0,v.doc.getLength()-1,0)]:this.selection.getAllRanges(),T="",R="",I="",N=v.getTabString(),F=0;F<k.length;F++)for(var W=k[F].start.row,V=k[F].end.row,B=W;B<=V;B++){B>0&&(T=v.getState(B-1),R=v.getLine(B-1),I=x.getNextLineIndent(T,R,N));var H=v.getLine(B),K=x.$getIndent(H);if(I!==K){if(K.length>0){var U=new m(B,0,B,K.length);v.remove(U)}I.length>0&&v.insert({row:B,column:0},I)}x.autoOutdent(T,v,B)}},C.prototype.onTextInput=function(v,x){if(!x)return this.keyBinding.onTextInput(v);this.startOperation({command:{name:"insertstring"}});var k=this.applyComposition.bind(this,v,x);this.selection.rangeCount?this.forEachSelection(k):k(),this.endOperation()},C.prototype.applyComposition=function(v,x){if(x.extendLeft||x.extendRight){var k=this.selection.getRange();k.start.column-=x.extendLeft,k.end.column+=x.extendRight,k.start.column<0&&(k.start.row--,k.start.column+=this.session.getLine(k.start.row).length+1),this.selection.setRange(k),!v&&!k.isEmpty()&&this.remove()}if((v||!this.selection.isEmpty())&&this.insert(v,!0),x.restoreStart||x.restoreEnd){var k=this.selection.getRange();k.start.column-=x.restoreStart,k.end.column-=x.restoreEnd,this.selection.setRange(k)}},C.prototype.onCommandKey=function(v,x,k){return this.keyBinding.onCommandKey(v,x,k)},C.prototype.setOverwrite=function(v){this.session.setOverwrite(v)},C.prototype.getOverwrite=function(){return this.session.getOverwrite()},C.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},C.prototype.setScrollSpeed=function(v){this.setOption("scrollSpeed",v)},C.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},C.prototype.setDragDelay=function(v){this.setOption("dragDelay",v)},C.prototype.getDragDelay=function(){return this.getOption("dragDelay")},C.prototype.setSelectionStyle=function(v){this.setOption("selectionStyle",v)},C.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},C.prototype.setHighlightActiveLine=function(v){this.setOption("highlightActiveLine",v)},C.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},C.prototype.setHighlightGutterLine=function(v){this.setOption("highlightGutterLine",v)},C.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},C.prototype.setHighlightSelectedWord=function(v){this.setOption("highlightSelectedWord",v)},C.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},C.prototype.setAnimatedScroll=function(v){this.renderer.setAnimatedScroll(v)},C.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},C.prototype.setShowInvisibles=function(v){this.renderer.setShowInvisibles(v)},C.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},C.prototype.setDisplayIndentGuides=function(v){this.renderer.setDisplayIndentGuides(v)},C.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},C.prototype.setHighlightIndentGuides=function(v){this.renderer.setHighlightIndentGuides(v)},C.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},C.prototype.setShowPrintMargin=function(v){this.renderer.setShowPrintMargin(v)},C.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},C.prototype.setPrintMarginColumn=function(v){this.renderer.setPrintMarginColumn(v)},C.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},C.prototype.setReadOnly=function(v){this.setOption("readOnly",v)},C.prototype.getReadOnly=function(){return this.getOption("readOnly")},C.prototype.setBehavioursEnabled=function(v){this.setOption("behavioursEnabled",v)},C.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},C.prototype.setWrapBehavioursEnabled=function(v){this.setOption("wrapBehavioursEnabled",v)},C.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},C.prototype.setShowFoldWidgets=function(v){this.setOption("showFoldWidgets",v)},C.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},C.prototype.setFadeFoldWidgets=function(v){this.setOption("fadeFoldWidgets",v)},C.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},C.prototype.remove=function(v){this.selection.isEmpty()&&(v=="left"?this.selection.selectLeft():this.selection.selectRight());var x=this.getSelectionRange();if(this.getBehavioursEnabled()){var k=this.session,T=k.getState(x.start.row),R=k.getMode().transformAction(T,"deletion",this,k,x);if(x.end.column===0){var I=k.getTextRange(x);if(I[I.length-1]==`
|
812
|
+
`){var N=k.getLine(x.end.row);/^\s+$/.test(N)&&(x.end.column=N.length)}}R&&(x=R)}this.session.remove(x),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 v=this.getSelectionRange();v.start.column==v.end.column&&v.start.row==v.end.row&&(v.end.column=0,v.end.row++),this.session.remove(v),this.clearSelection()},C.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var v=this.getCursorPosition();this.insert(`
|
813
|
+
`),this.moveCursorToPosition(v)},C.prototype.setGhostText=function(v,x){this.renderer.setGhostText(v,x)},C.prototype.removeGhostText=function(){this.renderer.removeGhostText()},C.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var v=this.getCursorPosition(),x=v.column;if(x!==0){var k=this.session.getLine(v.row),T,R;x<k.length?(T=k.charAt(x)+k.charAt(x-1),R=new m(v.row,x-1,v.row,x+1)):(T=k.charAt(x-1)+k.charAt(x-2),R=new m(v.row,x-2,v.row,x)),this.session.replace(R,T),this.session.selection.moveToPosition(R.end)}}},C.prototype.toLowerCase=function(){var v=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),k=this.session.getTextRange(x);this.session.replace(x,k.toLowerCase()),this.selection.setSelectionRange(v)},C.prototype.toUpperCase=function(){var v=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var x=this.getSelectionRange(),k=this.session.getTextRange(x);this.session.replace(x,k.toUpperCase()),this.selection.setSelectionRange(v)},C.prototype.indent=function(){var v=this.session,x=this.getSelectionRange();if(x.start.row<x.end.row){var k=this.$getSelectedRows();v.indentRows(k.first,k.last," ");return}else if(x.start.column<x.end.column){var T=v.getTextRange(x);if(!/^\s+$/.test(T)){var k=this.$getSelectedRows();v.indentRows(k.first,k.last," ");return}}var R=v.getLine(x.start.row),I=x.start,N=v.getTabSize(),F=v.documentToScreenColumn(I.row,I.column);if(this.session.getUseSoftTabs())var W=N-F%N,V=l.stringRepeat(" ",W);else{for(var W=F%N;R[x.start.column-1]==" "&&W;)x.start.column--,W--;this.selection.setSelectionRange(x),V=" "}return this.insert(V)},C.prototype.blockIndent=function(){var v=this.$getSelectedRows();this.session.indentRows(v.first,v.last," ")},C.prototype.blockOutdent=function(){var v=this.session.getSelection();this.session.outdentRows(v.getRange())},C.prototype.sortLines=function(){for(var v=this.$getSelectedRows(),x=this.session,k=[],T=v.first;T<=v.last;T++)k.push(x.getLine(T));k.sort(function(N,F){return N.toLowerCase()<F.toLowerCase()?-1:N.toLowerCase()>F.toLowerCase()?1:0});for(var R=new m(0,0,0,0),T=v.first;T<=v.last;T++){var I=x.getLine(T);R.start.row=T,R.end.row=T,R.end.column=I.length,x.replace(R,k[T-v.first])}},C.prototype.toggleCommentLines=function(){var v=this.session.getState(this.getCursorPosition().row),x=this.$getSelectedRows();this.session.getMode().toggleCommentLines(v,this.session,x.first,x.last)},C.prototype.toggleBlockComment=function(){var v=this.getCursorPosition(),x=this.session.getState(v.row),k=this.getSelectionRange();this.session.getMode().toggleBlockComment(x,this.session,k,v)},C.prototype.getNumberAt=function(v,x){var k=/[\-]?[0-9]+(?:\.[0-9]+)?/g;k.lastIndex=0;for(var T=this.session.getLine(v);k.lastIndex<x;){var R=k.exec(T);if(R.index<=x&&R.index+R[0].length>=x){var I={value:R[0],start:R.index,end:R.index+R[0].length};return I}}return null},C.prototype.modifyNumber=function(v){var x=this.selection.getCursor().row,k=this.selection.getCursor().column,T=new m(x,k-1,x,k),R=this.session.getTextRange(T);if(!isNaN(parseFloat(R))&&isFinite(R)){var I=this.getNumberAt(x,k);if(I){var N=I.value.indexOf(".")>=0?I.start+I.value.indexOf(".")+1:I.end,F=I.start+I.value.length-N,W=parseFloat(I.value);W*=Math.pow(10,F),N!==I.end&&k<N?v*=Math.pow(10,I.end-k-1):v*=Math.pow(10,I.end-k),W+=v,W/=Math.pow(10,F);var V=W.toFixed(F),B=new m(x,I.start,x,I.end);this.session.replace(B,V),this.moveCursorTo(x,Math.max(I.start+1,k+V.length-I.value.length))}}else this.toggleWord()},C.prototype.toggleWord=function(){var v=this.selection.getCursor().row,x=this.selection.getCursor().column;this.selection.selectWord();var k=this.getSelectedText(),T=this.selection.getWordRange().start.column,R=k.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),I=x-T-1;I<0&&(I=0);var N=0,F=0,W=this;k.match(/[A-Za-z0-9_]+/)&&R.forEach(function(X,ce){F=N+X.length,I>=N&&I<=F&&(k=X,W.selection.clearSelection(),W.moveCursorTo(v,N+T),W.selection.selectTo(v,F+T)),N=F});for(var V=this.$toggleWordPairs,B,H=0;H<V.length;H++)for(var K=V[H],U=0;U<=1;U++){var j=+!U,Q=k.match(new RegExp("^\\s?_?("+l.escapeRegExp(K[U])+")\\s?$","i"));if(Q){var q=k.match(new RegExp("([_]|^|\\s)("+l.escapeRegExp(Q[1])+")($|\\s)","g"));q&&(B=k.replace(new RegExp(l.escapeRegExp(K[U]),"i"),function(X){var ce=K[j];return X.toUpperCase()==X?ce=ce.toUpperCase():X.charAt(0).toUpperCase()==X.charAt(0)&&(ce=ce.substr(0,0)+K[j].charAt(0).toUpperCase()+ce.substr(1)),ce}),this.insert(B),B="")}}},C.prototype.findLinkAt=function(v,x){var k,T,R=this.session.getLine(v),I=R.split(/((?:https?|ftp):\/\/[\S]+)/),N=x;N<0&&(N=0);var F=0,W=0,V;try{for(var B=o(I),H=B.next();!H.done;H=B.next()){var K=H.value;if(W=F+K.length,N>=F&&N<=W&&K.match(/((?:https?|ftp):\/\/[\S]+)/)){V=K.replace(/[\s:.,'";}\]]+$/,"");break}F=W}}catch(U){k={error:U}}finally{try{H&&!H.done&&(T=B.return)&&T.call(B)}finally{if(k)throw k.error}}return V},C.prototype.openLink=function(){var v=this.selection.getCursor(),x=this.findLinkAt(v.row,v.column);return x&&window.open(x,"_blank"),x!=null},C.prototype.removeLines=function(){var v=this.$getSelectedRows();this.session.removeFullLines(v.first,v.last),this.clearSelection()},C.prototype.duplicateSelection=function(){var v=this.selection,x=this.session,k=v.getRange(),T=v.isBackwards();if(k.isEmpty()){var R=k.start.row;x.duplicateLines(R,R)}else{var I=T?k.start:k.end,N=x.insert(I,x.getTextRange(k));k.start=I,k.end=N,v.setSelectionRange(k,T)}},C.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},C.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},C.prototype.moveText=function(v,x,k){return this.session.moveText(v,x,k)},C.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},C.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},C.prototype.$moveLines=function(v,x){var k,T,R=this.selection;if(!R.inMultiSelectMode||this.inVirtualSelectionMode){var I=R.toOrientedRange();k=this.$getSelectedRows(I),T=this.session.$moveLines(k.first,k.last,x?0:v),x&&v==-1&&(T=0),I.moveBy(T,0),R.fromOrientedRange(I)}else{var N=R.rangeList.ranges;R.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var F=0,W=0,V=N.length,B=0;B<V;B++){var H=B;N[B].moveBy(F,0),k=this.$getSelectedRows(N[B]);for(var K=k.first,U=k.last;++B<V;){W&&N[B].moveBy(W,0);var j=this.$getSelectedRows(N[B]);if(x&&j.first!=U)break;if(!x&&j.first>U+1)break;U=j.last}for(B--,F=this.session.$moveLines(K,U,x?0:v),x&&v==-1&&(H=B+1);H<=B;)N[H].moveBy(F,0),H++;x||(F=0),W+=F}R.fromOrientedRange(R.ranges[0]),R.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},C.prototype.$getSelectedRows=function(v){return v=(v||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(v.start.row),last:this.session.getRowFoldEnd(v.end.row)}},C.prototype.onCompositionStart=function(v){this.renderer.showComposition(v)},C.prototype.onCompositionUpdate=function(v){this.renderer.setCompositionText(v)},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(v){return v>=this.getFirstVisibleRow()&&v<=this.getLastVisibleRow()},C.prototype.isRowFullyVisible=function(v){return v>=this.renderer.getFirstFullyVisibleRow()&&v<=this.renderer.getLastFullyVisibleRow()},C.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},C.prototype.$moveByPage=function(v,x){var k=this.renderer,T=this.renderer.layerConfig,R=v*Math.floor(T.height/T.lineHeight);x===!0?this.selection.$moveSelection(function(){this.moveCursorBy(R,0)}):x===!1&&(this.selection.moveCursorBy(R,0),this.selection.clearSelection());var I=k.scrollTop;k.scrollBy(0,R*T.lineHeight),x!=null&&k.scrollCursorIntoView(null,.5),k.animateScrolling(I)},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(v){this.renderer.scrollToRow(v)},C.prototype.scrollToLine=function(v,x,k,T){this.renderer.scrollToLine(v,x,k,T)},C.prototype.centerSelection=function(){var v=this.getSelectionRange(),x={row:Math.floor(v.start.row+(v.end.row-v.start.row)/2),column:Math.floor(v.start.column+(v.end.column-v.start.column)/2)};this.renderer.alignCursor(x,.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(v,x){this.selection.moveCursorTo(v,x)},C.prototype.moveCursorToPosition=function(v){this.selection.moveCursorToPosition(v)},C.prototype.jumpToMatching=function(v,x){var k=this.getCursorPosition(),T=new _(this.session,k.row,k.column),R=T.getCurrentToken(),I=0;R&&R.type.indexOf("tag-name")!==-1&&(R=T.stepBackward());var N=R||T.stepForward();if(N){var F,W=!1,V={},B=k.column-N.start,H,K={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(N.value.match(/[{}()\[\]]/g)){for(;B<N.value.length&&!W;B++)if(K[N.value[B]])switch(H=K[N.value[B]]+"."+N.type.replace("rparen","lparen"),isNaN(V[H])&&(V[H]=0),N.value[B]){case"(":case"[":case"{":V[H]++;break;case")":case"]":case"}":V[H]--,V[H]===-1&&(F="bracket",W=!0);break}}else N.type.indexOf("tag-name")!==-1&&(isNaN(V[N.value])&&(V[N.value]=0),R.value==="<"&&I>1?V[N.value]++:R.value==="</"&&V[N.value]--,V[N.value]===-1&&(F="tag",W=!0));W||(R=N,I++,N=T.stepForward(),B=0)}while(N&&!W);if(F){var U,j;if(F==="bracket")U=this.session.getBracketRange(k),U||(U=new m(T.getCurrentTokenRow(),T.getCurrentTokenColumn()+B-1,T.getCurrentTokenRow(),T.getCurrentTokenColumn()+B-1),j=U.start,(x||j.row===k.row&&Math.abs(j.column-k.column)<2)&&(U=this.session.getBracketRange(j)));else if(F==="tag"){if(!N||N.type.indexOf("tag-name")===-1)return;if(U=new m(T.getCurrentTokenRow(),T.getCurrentTokenColumn()-2,T.getCurrentTokenRow(),T.getCurrentTokenColumn()-2),U.compare(k.row,k.column)===0){var Q=this.session.getMatchingTags(k);Q&&(Q.openTag.contains(k.row,k.column)?(U=Q.closeTag,j=U.start):(U=Q.openTag,Q.closeTag.start.row===k.row&&Q.closeTag.start.column===k.column?j=U.end:j=U.start))}j=j||U.start}j=U&&U.cursor||j,j&&(v?U&&x?this.selection.setRange(U):U&&U.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(j.row,j.column):this.selection.moveTo(j.row,j.column))}}},C.prototype.gotoLine=function(v,x,k){this.selection.clearSelection(),this.session.unfold({row:v-1,column:x||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(v-1,x||0),this.isRowFullyVisible(v-1)||this.scrollToLine(v-1,!0,k)},C.prototype.navigateTo=function(v,x){this.selection.moveTo(v,x)},C.prototype.navigateUp=function(v){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(-v||-1,0)},C.prototype.navigateDown=function(v){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var x=this.selection.anchor.getPosition();return this.moveCursorToPosition(x)}this.selection.clearSelection(),this.selection.moveCursorBy(v||1,0)},C.prototype.navigateLeft=function(v){if(this.selection.isEmpty())for(v=v||1;v--;)this.selection.moveCursorLeft();else{var x=this.getSelectionRange().start;this.moveCursorToPosition(x)}this.clearSelection()},C.prototype.navigateRight=function(v){if(this.selection.isEmpty())for(v=v||1;v--;)this.selection.moveCursorRight();else{var x=this.getSelectionRange().end;this.moveCursorToPosition(x)}this.clearSelection()},C.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},C.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},C.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},C.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},C.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},C.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},C.prototype.replace=function(v,x){x&&this.$search.set(x);var k=this.$search.find(this.session),T=0;return k&&(this.$tryReplace(k,v)&&(T=1),this.selection.setSelectionRange(k),this.renderer.scrollSelectionIntoView(k.start,k.end)),T},C.prototype.replaceAll=function(v,x){x&&this.$search.set(x);var k=this.$search.findAll(this.session),T=0;if(!k.length)return T;var R=this.getSelectionRange();this.selection.moveTo(0,0);for(var I=k.length-1;I>=0;--I)this.$tryReplace(k[I],v)&&T++;return this.selection.setSelectionRange(R),T},C.prototype.$tryReplace=function(v,x){var k=this.session.getTextRange(v);return x=this.$search.replace(k,x),x!==null?(v.end=this.session.replace(v,x),v):null},C.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},C.prototype.find=function(v,x,k){x||(x={}),typeof v=="string"||v instanceof RegExp?x.needle=v:typeof v=="object"&&f.mixin(x,v);var T=this.selection.getRange();x.needle==null&&(v=this.session.getTextRange(T)||this.$search.$options.needle,v||(T=this.session.getWordRange(T.start.row,T.start.column),v=this.session.getTextRange(T)),this.$search.set({needle:v})),this.$search.set(x),x.start||this.$search.set({start:T});var R=this.$search.find(this.session);if(x.preventScroll)return R;if(R)return this.revealRange(R,k),R;x.backwards?T.start=T.end:T.end=T.start,this.selection.setRange(T)},C.prototype.findNext=function(v,x){this.find({skipCurrent:!0,backwards:!1},v,x)},C.prototype.findPrevious=function(v,x){this.find(v,{skipCurrent:!0,backwards:!0},x)},C.prototype.revealRange=function(v,x){this.session.unfold(v),this.selection.setSelectionRange(v);var k=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(v.start,v.end,.5),x!==!1&&this.renderer.animateScrolling(k)},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(v){v.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(v){if(v){var x,k=this,T=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var R=this.$scrollAnchor;R.style.cssText="position:absolute",this.container.insertBefore(R,this.container.firstChild);var I=this.on("changeSelection",function(){T=!0}),N=this.renderer.on("beforeRender",function(){T&&(x=k.renderer.container.getBoundingClientRect())}),F=this.renderer.on("afterRender",function(){if(T&&x&&(k.isFocused()||k.searchBox&&k.searchBox.isFocused())){var W=k.renderer,V=W.$cursorLayer.$pixelPos,B=W.layerConfig,H=V.top-B.offset;V.top>=0&&H+x.top<0?T=!0:V.top<B.height&&V.top+x.top+B.lineHeight>window.innerHeight?T=!1:T=null,T!=null&&(R.style.top=H+"px",R.style.left=V.left+"px",R.style.height=B.lineHeight+"px",R.scrollIntoView(T)),T=x=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",I),this.renderer.off("afterRender",F),this.renderer.off("beforeRender",N))}}},C.prototype.$resetCursorStyle=function(){var v=this.$cursorStyle||"ace",x=this.renderer.$cursorLayer;x&&(x.setSmoothBlinking(/smooth/.test(v)),x.isBlinking=!this.$readOnly&&v!="wide",g.setCssClass(x.element,"ace_slim-cursors",/slim/.test(v)))},C.prototype.prompt=function(v,x,k){var T=this;S.loadModule("ace/ext/prompt",function(R){R.prompt(T,v,x,k)})},C}();M.$uid=0,M.prototype.curOp=null,M.prototype.prevOp={},M.prototype.$mergeableCommands=["backspace","del","insertstring"],M.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"],["&&","||"],["==","!="]],f.implement(M.prototype,b),S.defineOptions(M.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?O.attach(this):O.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(C){this.$showLineNumbers&&C?O.attach(this):O.detach(this)}},placeholder:{set:function(C){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var v=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(v&&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(!v&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var x=g.createElement("div");x.className="ace_placeholder",x.textContent=this.$placeholder||"",this.renderer.placeholderNode=x,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!v&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(C){var v={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(T){T.blur(),T.renderer.scroller.focus()},readOnly:!0},x=function(T){if(T.target==this.renderer.scroller&&T.keyCode===E.enter){T.preventDefault();var R=this.getCursorPosition().row;this.isRowVisible(R)||this.scrollToLine(R,!0,!0),this.focus()}},k;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",A("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",A("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",x.bind(this)),this.commands.addCommand(v),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",A("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",A("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),k||(k=new w(this)),k.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",x.bind(this)),this.commands.removeCommand(v),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),k&&k.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 O={getText:function(C,v){return(Math.abs(C.selection.lead.row-v)||v+1+(v<9?"·":""))+""},getWidth:function(C,v,x){return Math.max(v.toString().length,(x.lastRow+1).toString().length,2)*x.characterWidth},update:function(C,v){v.renderer.$loop.schedule(v.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=M}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,s){var o=n("../lib/dom"),f=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){o.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,r){var a=p.firstRowScreen*p.lineHeight,c=Math.floor(a/this.canvasHeight),u=r.documentToScreenRow(l,0)*p.lineHeight;return u-c*this.canvasHeight},g.prototype.computeLineHeight=function(l,p,r){return p.lineHeight*r.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=o.createFragment(this.element),r=0;r<l.length;r++)p.appendChild(l[r].element);this.element.appendChild(p)}else this.cells.push(l),this.element.appendChild(l.element)},g.prototype.unshift=function(l){if(Array.isArray(l)){this.cells.unshift.apply(this.cells,l);for(var p=o.createFragment(this.element),r=0;r<l.length;r++)p.appendChild(l[r].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(l),this.element.insertAdjacentElement("afterbegin",l.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(l){l&&(l.element.remove(),this.cellCache.push(l))},g.prototype.createCell=function(l,p,r,a){var c=this.cellCache.pop();if(!c){var u=o.createElement("div");a&&a(u),this.element.appendChild(u),c={element:u,text:"",row:l}}return c.row=l,c},g}();i.Lines=f}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,i,s){var o=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/lang"),l=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,r=n("../config").nls,a=function(){function u(h){this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",h.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return u.prototype.setSession=function(h){this.session&&this.session.off("change",this.$updateAnnotations),this.session=h,h&&h.on("change",this.$updateAnnotations)},u.prototype.addGutterDecoration=function(h,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(h,d)},u.prototype.removeGutterDecoration=function(h,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(h,d)},u.prototype.setAnnotations=function(h){this.$annotations=[];for(var d=0;d<h.length;d++){var m=h[d],b=m.row,y=this.$annotations[b];y||(y=this.$annotations[b]={text:[],type:[],displayText:[]});var $=m.text,S=m.text,_=m.type;$=$?g.escapeHTML($):m.html||"",S=S||m.html||"",y.text.indexOf($)===-1&&(y.text.push($),y.type.push(_),y.displayText.push(S));var w=m.className;w?y.className=w:_==="error"?y.className=" ace_error":_==="security"&&!/\bace_error\b/.test(y.className)?y.className=" ace_security":_==="warning"&&!/\bace_(error|security)\b/.test(y.className)?y.className=" ace_warning":_==="info"&&!y.className?y.className=" ace_info":_==="hint"&&!y.className&&(y.className=" ace_hint")}},u.prototype.$updateAnnotations=function(h){if(this.$annotations.length){var d=h.start.row,m=h.end.row-d;if(m!==0)if(h.action=="remove")this.$annotations.splice(d,m+1,null);else{var b=new Array(m+1);b.unshift(d,1),this.$annotations.splice.apply(this.$annotations,b)}}},u.prototype.update=function(h){this.config=h;var d=this.session,m=h.firstRow,b=Math.min(h.lastRow+h.gutterOffset,d.getLength()-1);this.oldLastRow=b,this.config=h,this.$lines.moveContainer(h),this.$updateCursorRow();for(var y=d.getNextFoldLine(m),$=y?y.start.row:1/0,S=null,_=-1,w=m;;){if(w>$&&(w=y.end.row+1,y=d.getNextFoldLine(w,y),$=y?y.start.row:1/0),w>b){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}S=this.$lines.get(++_),S?S.row=w:(S=this.$lines.createCell(w,h,this.session,c),this.$lines.push(S)),this.$renderCell(S,h,y,w),w++}this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$updateGutterWidth=function(h){var d=this.session,m=d.gutterRenderer||this.$renderer,b=d.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||d.$useWrapMode)&&(y=d.getLength()+b-1);var $=m?m.getWidth(d,y,h):y.toString().length*h.characterWidth,S=this.$padding||this.$computePadding();$+=S.left+S.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 d=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<d.length;m++){var b=d[m];if(b.row>=this.$cursorRow){if(b.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==d[m-1].row)b=d[m-1];else break}b.element.className="ace_gutter-active-line "+b.element.className,this.$cursorCell=b;break}}}}},u.prototype.scrollLines=function(h){var d=this.config;if(this.config=h,this.$updateCursorRow(),this.$lines.pageChanged(d,h))return this.update(h);this.$lines.moveContainer(h);var m=Math.min(h.lastRow+h.gutterOffset,this.session.getLength()-1),b=this.oldLastRow;if(this.oldLastRow=m,!d||b<h.firstRow)return this.update(h);if(m<d.firstRow)return this.update(h);if(d.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,h.firstRow-1);y>0;y--)this.$lines.shift();if(b>m)for(var y=this.session.getFoldedRowCount(m+1,b);y>0;y--)this.$lines.pop();h.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(h,h.firstRow,d.firstRow-1)),m>b&&this.$lines.push(this.$renderLines(h,b+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$renderLines=function(h,d,m){for(var b=[],y=d,$=this.session.getNextFoldLine(y),S=$?$.start.row:1/0;y>S&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),S=$?$.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,h,this.session,c);this.$renderCell(_,h,$,y),b.push(_),y++}return b},u.prototype.$renderCell=function(h,d,m,b){var y=h.element,$=this.session,S=y.childNodes[0],_=y.childNodes[1],w=y.childNodes[2],A=w.firstChild,L=$.$firstLineNumber,E=$.$breakpoints,M=$.$decorations,O=$.gutterRenderer||this.$renderer,C=this.$showFoldWidgets&&$.foldWidgets,v=m?m.start.row:Number.MAX_VALUE,x=d.lineHeight+"px",k=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=(O?O.getText($,b):b+L).toString();if(this.$highlightGutterLine&&(b==this.$cursorRow||m&&b<this.$cursorRow&&b>=v&&this.$cursorRow<=m.end.row)&&(k+="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)),E[b]&&(k+=E[b]),M[b]&&(k+=M[b]),this.$annotations[b]&&b!==v&&(k+=this.$annotations[b].className),C){var I=C[b];I==null&&(I=C[b]=$.getFoldWidget(b))}if(I){var N="ace_fold-widget ace_"+I,F=I=="start"&&b==v&&b<m.end.row;if(F){N+=" ace_closed";for(var W="",V=!1,B=b+1;B<=m.end.row;B++)if(this.$annotations[B]){if(this.$annotations[B].className===" ace_error"){V=!0,W=" ace_error_fold";break}this.$annotations[B].className===" ace_security"?(V=!0,W=" ace_security_fold"):this.$annotations[B].className===" ace_warning"&&W!==" ace_security_fold"&&(V=!0,W=" ace_warning_fold")}k+=W}else N+=" ace_open";_.className!=N&&(_.className=N),o.setStyle(_.style,"height",x),o.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var H=$.getFoldWidgetRange(b);H?_.setAttribute("aria-label",r("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[H.start.row+1,H.end.row+1])):m?_.setAttribute("aria-label",r("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):_.setAttribute("aria-label",r("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),F?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",r("gutter.code-folding.closed.title","Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",r("gutter.code-folding.open.title","Fold code")))}else _&&(o.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));if(V&&this.$showFoldedAnnotations){w.className="ace_gutter_annotation",A.className=T,A.className+=W,o.setStyle(A.style,"height",x),o.setStyle(w.style,"display","block"),o.setStyle(w.style,"height",x);var K;switch(W){case" ace_error_fold":K=r("gutter.annotation.aria-label.error","Error, read annotations row $0",[R]);break;case" ace_security_fold":K=r("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[R]);break;case" ace_warning_fold":K=r("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[R]);break}w.setAttribute("aria-label",K),w.setAttribute("tabindex","-1"),w.setAttribute("role","button")}else if(this.$annotations[b]){w.className="ace_gutter_annotation",A.className=T,this.$useSvgGutterIcons?A.className+=this.$annotations[b].className:y.classList.add(this.$annotations[b].className.replace(" ","")),o.setStyle(A.style,"height",x),o.setStyle(w.style,"display","block"),o.setStyle(w.style,"height",x);var K;switch(this.$annotations[b].className){case" ace_error":K=r("gutter.annotation.aria-label.error","Error, read annotations row $0",[R]);break;case" ace_security":K=r("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[R]);break;case" ace_warning":K=r("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[R]);break;case" ace_info":K=r("gutter.annotation.aria-label.info","Info, read annotations row $0",[R]);break;case" ace_hint":K=r("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[R]);break}w.setAttribute("aria-label",K),w.setAttribute("tabindex","-1"),w.setAttribute("role","button")}else o.setStyle(w.style,"display","none"),w.removeAttribute("aria-label"),w.removeAttribute("role"),w.setAttribute("tabindex","0");return R!==S.data&&(S.data=R),y.className!=k&&(y.className=k),o.setStyle(h.element.style,"height",this.$lines.computeLineHeight(b,d,$)+"px"),o.setStyle(h.element.style,"top",this.$lines.computeLineTop(b,d,$)+"px"),h.text=R,w.style.display==="none"&&_.style.display==="none"?h.element.setAttribute("aria-hidden",!0):h.element.setAttribute("aria-hidden",!1),h},u.prototype.setHighlightGutterLine=function(h){this.$highlightGutterLine=h},u.prototype.setShowLineNumbers=function(h){this.$renderer=!h&&{getWidth:function(){return 0},getText:function(){return""}}},u.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},u.prototype.setShowFoldWidgets=function(h){h?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=h,this.$padding=null},u.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},u.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var h=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(h.borderLeftWidth)||0)+(parseInt(h.paddingLeft)||0)+1,this.$padding.right=(parseInt(h.borderRightWidth)||0)+(parseInt(h.paddingRight)||0),this.$padding},u.prototype.getRegion=function(h){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(h.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&h.x>m.right-d.right)return"foldWidgets"},u}();a.prototype.$fixedWidth=!1,a.prototype.$highlightGutterLine=!0,a.prototype.$renderer="",a.prototype.$showLineNumbers=!0,a.prototype.$showFoldWidgets=!0,f.implement(a.prototype,l);function c(u){var h=document.createTextNode("");u.appendChild(h);var d=o.createElement("span");u.appendChild(d);var m=o.createElement("span");u.appendChild(m);var b=o.createElement("span");return m.appendChild(b),u}i.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,s){var o=n("../range").Range,f=n("../lib/dom"),g=function(){function p(r){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",r.appendChild(this.element)}return p.prototype.setPadding=function(r){this.$padding=r},p.prototype.setSession=function(r){this.session=r},p.prototype.setMarkers=function(r){this.markers=r},p.prototype.elt=function(r,a){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=a,c.className=r},p.prototype.update=function(r){if(r){this.config=r,this.i=0;var a;for(var c in this.markers){var u=this.markers[c];if(!u.range){u.update(a,this,this.session,r);continue}var h=u.range.clipRows(r.firstRow,r.lastRow);if(!h.isEmpty())if(h=h.toScreenRange(this.session),u.renderer){var d=this.$getTop(h.start.row,r),m=this.$padding+h.start.column*r.characterWidth;u.renderer(a,h,m,d,r)}else u.type=="fullLine"?this.drawFullLineMarker(a,h,u.clazz,r):u.type=="screenLine"?this.drawScreenLineMarker(a,h,u.clazz,r):h.isMultiLine()?u.type=="text"?this.drawTextMarker(a,h,u.clazz,r):this.drawMultiLineMarker(a,h,u.clazz,r):this.drawSingleLineMarker(a,h,u.clazz+" ace_start ace_br15",r)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(r,a){return(r-a.firstRowScreen)*a.lineHeight},p.prototype.drawTextMarker=function(r,a,c,u,h){for(var d=this.session,m=a.start.row,b=a.end.row,y=m,$=0,S=0,_=d.getScreenLastRowColumn(y),w=new o(y,a.start.column,y,S);y<=b;y++)w.start.row=w.end.row=y,w.start.column=y==m?a.start.column:d.getRowWrapIndent(y),w.end.column=_,$=S,S=_,_=y+1<b?d.getScreenLastRowColumn(y+1):y==b?0:a.end.column,this.drawSingleLineMarker(r,w,c+(y==m?" ace_start":"")+" ace_br"+l(y==m||y==m+1&&a.start.column,$<S,S>_,y==b),u,y==b?0:1,h)},p.prototype.drawMultiLineMarker=function(r,a,c,u,h){var d=this.$padding,m=u.lineHeight,b=this.$getTop(a.start.row,u),y=d+a.start.column*u.characterWidth;if(h=h||"",this.session.$bidiHandler.isBidiRow(a.start.row)){var $=a.clone();$.end.row=$.start.row,$.end.column=this.session.getLine($.start.row).length,this.drawBidiSingleLineMarker(r,$,c+" ace_br1 ace_start",u,null,h)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:"+d+"px;top:"+b+"px;left:"+y+"px;"+(h||""));if(this.session.$bidiHandler.isBidiRow(a.end.row)){var $=a.clone();$.start.row=$.end.row,$.start.column=0,this.drawBidiSingleLineMarker(r,$,c+" ace_br12",u,null,h)}else{b=this.$getTop(a.end.row,u);var S=a.end.column*u.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+S+"px;top:"+b+"px;left:"+d+"px;"+(h||""))}if(m=(a.end.row-a.start.row-1)*u.lineHeight,!(m<=0)){b=this.$getTop(a.start.row+1,u);var _=(a.start.column?1:0)|(a.end.column?0:8);this.elt(c+(_?" ace_br"+_:""),"height:"+m+"px;right:"+d+"px;top:"+b+"px;left:"+d+"px;"+(h||""))}},p.prototype.drawSingleLineMarker=function(r,a,c,u,h,d){if(this.session.$bidiHandler.isBidiRow(a.start.row))return this.drawBidiSingleLineMarker(r,a,c,u,h,d);var m=u.lineHeight,b=(a.end.column+(h||0)-a.start.column)*u.characterWidth,y=this.$getTop(a.start.row,u),$=this.$padding+a.start.column*u.characterWidth;this.elt(c,"height:"+m+"px;width:"+b+"px;top:"+y+"px;left:"+$+"px;"+(d||""))},p.prototype.drawBidiSingleLineMarker=function(r,a,c,u,h,d){var m=u.lineHeight,b=this.$getTop(a.start.row,u),y=this.$padding,$=this.session.$bidiHandler.getSelections(a.start.column,a.end.column);$.forEach(function(S){this.elt(c,"height:"+m+"px;width:"+(S.width+(h||0))+"px;top:"+b+"px;left:"+(y+S.left)+"px;"+(d||""))},this)},p.prototype.drawFullLineMarker=function(r,a,c,u,h){var d=this.$getTop(a.start.row,u),m=u.lineHeight;a.start.row!=a.end.row&&(m+=this.$getTop(a.end.row,u)-d),this.elt(c,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(h||""))},p.prototype.drawScreenLineMarker=function(r,a,c,u,h){var d=this.$getTop(a.start.row,u),m=u.lineHeight;this.elt(c,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(h||""))},p}();g.prototype.$padding=0;function l(p,r,a,c){return(p?1:0)|(r?2:0)|(a?4:0)|(c?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,s){var o=new Set(["text","rparen","lparen"]);i.isTextToken=function(f){return o.has(f)}}),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 o=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),l=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,r=n("../config").nls,a=n("./text_util").isTextToken,c=function(){function u(h){this.dom=f,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,d=h.getNewLineCharacter()==`
|
814
|
+
`&&h.getNewLineMode()!="windows",m=d?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(d){this._signal("changeCharacterSize",d)}).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 d=this.$tabStrings=[0],m=1;m<h+1;m++)if(this.showTabs){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_tab",b.textContent=g.stringRepeat(this.TAB_CHAR,m),d.push(b)}else d.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",$=this.showSpaces?" ace_invisible ace_invisible_space":"",S=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",w=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):S,b=this.dom.createElement("span");b.className=y+$,b.textContent=S,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=y+_,b.textContent=w,this.$tabStrings[" "]=b}},u.prototype.updateLines=function(h,d,m){if(this.config.lastRow!=h.lastRow||this.config.firstRow!=h.firstRow)return this.update(h);this.config=h;for(var b=Math.max(d,h.firstRow),y=Math.min(m,h.lastRow),$=this.element.childNodes,S=0,w=h.firstRow;w<b;w++){var A=this.session.getFoldLine(w);if(A)if(A.containsRow(b)){b=A.start.row;break}else w=A.end.row;S++}for(var _=!1,w=b,A=this.session.getNextFoldLine(w),L=A?A.start.row:1/0;w>L&&(w=A.end.row+1,A=this.session.getNextFoldLine(w,A),L=A?A.start.row:1/0),!(w>y);){var E=$[S++];if(E){this.dom.removeChildren(E),this.$renderLine(E,w,w==L?A:!1),_&&(E.style.top=this.$lines.computeLineTop(w,h,this.session)+"px");var M=h.lineHeight*this.session.getRowLength(w)+"px";E.style.height!=M&&(_=!0,E.style.height=M)}w++}if(_)for(;S<this.$lines.cells.length;){var O=this.$lines.cells[S++];O.element.style.top=this.$lines.computeLineTop(O.row,h,this.session)+"px"}},u.prototype.scrollLines=function(h){var d=this.config;if(this.config=h,this.$lines.pageChanged(d,h))return this.update(h);this.$lines.moveContainer(h);var m=h.lastRow,b=d?d.lastRow:-1;if(!d||b<h.firstRow)return this.update(h);if(m<d.firstRow)return this.update(h);if(!d||d.lastRow<h.firstRow)return this.update(h);if(h.lastRow<d.firstRow)return this.update(h);if(d.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,h.firstRow-1);y>0;y--)this.$lines.shift();if(d.lastRow>h.lastRow)for(var y=this.session.getFoldedRowCount(h.lastRow+1,d.lastRow);y>0;y--)this.$lines.pop();h.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(h,h.firstRow,d.firstRow-1)),h.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(h,d.lastRow+1,h.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(h,d,m){for(var b=[],y=d,$=this.session.getNextFoldLine(y),S=$?$.start.row:1/0;y>S&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),S=$?$.start.row:1/0),!(y>m);){var _=this.$lines.createCell(y,h,this.session),w=_.element;this.dom.removeChildren(w),f.setStyle(w.style,"height",this.$lines.computeLineHeight(y,h,this.session)+"px"),f.setStyle(w.style,"top",this.$lines.computeLineTop(y,h,this.session)+"px"),this.$renderLine(w,y,y==S?$:!1),this.$useLineGroups()?w.className="ace_line_group":w.className="ace_line",b.push(_),y++}return b},u.prototype.update=function(h){this.$lines.moveContainer(h),this.config=h;for(var d=h.firstRow,m=h.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(h,d,m))},u.prototype.$renderToken=function(h,d,m,b){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,S=this.dom.createFragment(this.element),_,w=0;_=$.exec(b);){var A=_[1],L=_[2],E=_[3],M=_[4],O=_[5];if(!(!y.showSpaces&&L)){var C=w!=_.index?b.slice(w,_.index):"";if(w=_.index+_[0].length,C&&S.appendChild(this.dom.createTextNode(C,this.element)),A){var v=y.session.getScreenTabSize(d+_.index);S.appendChild(y.$tabStrings[v].cloneNode(!0)),d+=v-1}else if(L)if(y.showSpaces){var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_space",x.textContent=g.stringRepeat(y.SPACE_CHAR,L.length),S.appendChild(x)}else S.appendChild(this.dom.createTextNode(L,this.element));else if(E){var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_space ace_invalid",x.textContent=g.stringRepeat(y.SPACE_CHAR,E.length),S.appendChild(x)}else if(M){d+=1;var x=this.dom.createElement("span");x.style.width=y.config.characterWidth*2+"px",x.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",x.textContent=y.showSpaces?y.SPACE_CHAR:M,S.appendChild(x)}else if(O){d+=1;var x=this.dom.createElement("span");x.style.width=y.config.characterWidth*2+"px",x.className="ace_cjk",x.textContent=O,S.appendChild(x)}}}if(S.appendChild(this.dom.createTextNode(w?b.slice(w):b,this.element)),a(m.type))h.appendChild(S);else{var k="ace_"+m.type.replace(/\./g," ace_"),x=this.dom.createElement("span");m.type=="fold"&&(x.style.width=m.value.length*this.config.characterWidth+"px",x.setAttribute("title",r("inline-fold.closed.title","Unfold code"))),x.className=k,x.appendChild(S),h.appendChild(x)}return d+b.length},u.prototype.renderIndentGuide=function(h,d,m){var b=d.search(this.$indentGuideRe);if(b<=0||b>=m)return d;if(d[0]==" "){b-=b%this.tabSize;for(var y=b/this.tabSize,$=0;$<y;$++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(b)}else if(d[0]==" "){for(var $=0;$<b;$++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(b)}return this.$highlightIndentGuide(),d},u.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var h=this.session.doc.$lines;if(h){var d=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(d.row))[0].length,b=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:b,start:d.row};var y=this.session.$bracketHighlight;if(y){for(var $=this.session.$bracketHighlight.ranges,S=0;S<$.length;S++)if(d.row!==$[S].start.row){this.$highlightIndentGuideMarker.end=$[S].start.row,d.row>$[S].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&h[d.row]!==""&&d.column===h[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var S=d.row+1;S<h.length;S++){var _=h[S],w=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=S,w<=m))break}}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){for(var h=this.$lines.cells,d=0;d<h.length;d++){var m=h[d],b=m.element.childNodes;if(b.length>0){for(var y=0;y<b.length;y++)if(b[y].classList&&b[y].classList.contains("ace_indent-guide-active")){b[y].classList.remove("ace_indent-guide-active");break}}}},u.prototype.$setIndentGuideActive=function(h,d){var m=this.session.doc.getLine(h.row);if(m!==""){var b=h.element.childNodes;if(b){var y=b[d-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var h=this.$lines.cells;this.$clearActiveIndentGuide();var d=this.$highlightIndentGuideMarker.indentLevel;if(d!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<h.length;m++){var b=h[m];if(this.$highlightIndentGuideMarker.end&&b.row>=this.$highlightIndentGuideMarker.start+1){if(b.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,d)}}else for(var m=h.length-1;m>=0;m--){var b=h[m];if(this.$highlightIndentGuideMarker.end&&b.row<this.$highlightIndentGuideMarker.start){if(b.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,d)}}}},u.prototype.$createLineElement=function(h){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},u.prototype.$renderWrappedLine=function(h,d,m){var b=0,y=0,$=m[0],S=0,_=this.$createLineElement();h.appendChild(_);for(var w=0;w<d.length;w++){var A=d[w],L=A.value;if(w==0&&this.displayIndentGuides){if(b=L.length,L=this.renderIndentGuide(_,L,$),!L)continue;b-=L.length}if(b+L.length<$)S=this.$renderToken(_,S,A,L),b+=L.length;else{for(;b+L.length>=$;)S=this.$renderToken(_,S,A,L.substring(0,$-b)),L=L.substring($-b),b=$,_=this.$createLineElement(),h.appendChild(_),_.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,S=0,$=m[y]||Number.MAX_VALUE;L.length!=0&&(b+=L.length,S=this.$renderToken(_,S,A,L))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,S,null,"",!0)},u.prototype.$renderSimpleLine=function(h,d){for(var m=0,b=0;b<d.length;b++){var y=d[b],$=y.value;if(!(b==0&&this.displayIndentGuides&&($=this.renderIndentGuide(h,$),!$))){if(m+$.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(h,m,y,$);m=this.$renderToken(h,m,y,$)}}},u.prototype.$renderOverflowMessage=function(h,d,m,b,y){m&&this.$renderToken(h,d,m,b.slice(0,this.MAX_LINE_LENGTH-d));var $=this.dom.createElement("span");$.className="ace_inline_button ace_keyword ace_toggle_wrap",$.textContent=y?"<hide>":"<click to see more...>",h.appendChild($)},u.prototype.$renderLine=function(h,d,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(d)),m)var b=this.$getFoldLineTokens(d,m);else var b=this.session.getTokens(d);var y=h;if(b.length){var $=this.session.getRowSplitData(d);if($&&$.length){this.$renderWrappedLine(h,b,$);var y=h.lastChild}else{var y=h;this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y)),this.$renderSimpleLine(y,b)}}else this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y));if(this.showEOL&&y){m&&(d=m.end.row);var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_eol",S.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(S)}},u.prototype.$getFoldLineTokens=function(h,d){var m=this.session,b=[];function y(S,_,w){for(var A=0,L=0;L+S[A].value.length<_;)if(L+=S[A].value.length,A++,A==S.length)return;if(L!=_){var E=S[A].value.substring(_-L);E.length>w-_&&(E=E.substring(0,w-_)),b.push({type:S[A].type,value:E}),L=_+E.length,A+=1}for(;L<w&&A<S.length;){var E=S[A].value;E.length+L>w?b.push({type:S[A].type,value:E.substring(0,w-L)}):b.push(S[A]),L+=E.length,A+=1}}var $=m.getTokens(h);return d.walk(function(S,_,w,A,L){S!=null?b.push({type:"fold",value:S}):(L&&($=m.getTokens(_)),$.length&&y($,A,w))},d.end.row,this.session.getLine(d.end.row).length),b},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,o.implement(c.prototype,p),i.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,s){var o=n("../lib/dom"),f=function(){function g(l){this.element=o.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(),o.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(l){for(var p=this.cursors,r=p.length;r--;)o.setStyle(p[r].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&&o.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,o.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,o.setCssClass(this.element,"ace_smooth-blinking",l),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var l=o.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,o.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,o.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,o.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&&o.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),o.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 r=this.session.documentToScreenPosition(l),a=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,l.row)?this.session.$bidiHandler.getPosLeft(r.column):r.column*this.config.characterWidth),c=(r.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:a,top:c}},g.prototype.isCursorInView=function(l,p){return l.top>=0&&l.top<p.maxHeight},g.prototype.update=function(l){this.config=l;var p=this.session.$selectionMarkers,r=0,a=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var r=0,c=p.length;r<c;r++){var u=this.getPixelPosition(p[r].cursor,!0);if(!((u.top>l.height+l.offset||u.top<0)&&r>1)){var h=this.cursors[a++]||this.addCursor(),d=h.style;this.drawCursor?this.drawCursor(h,u,l,p[r],this.session):this.isCursorInView(u,l)?(o.setStyle(d,"display","block"),o.translate(h,u.left,u.top),o.setStyle(d,"width",Math.round(l.characterWidth)+"px"),o.setStyle(d,"height",l.lineHeight+"px")):o.setStyle(d,"display","none")}}for(;this.cursors.length>a;)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?o.addCssClass(this.element,"ace_overwrite-cursors"):o.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();f.prototype.$padding=0,f.prototype.drawCursor=null,i.Cursor=f}),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 o=this&&this.__extends||function(){var h=function(d,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var $ in y)Object.prototype.hasOwnProperty.call(y,$)&&(b[$]=y[$])},h(d,m)};return function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");h(d,m);function b(){this.constructor=d}d.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}}(),f=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,r=32768,a=function(){function h(d,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),d.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(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},h}();f.implement(a.prototype,p);var c=function(h){o(d,h);function d(m,b){var y=h.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,b.$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 d.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},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(m){this.element.style.height=m+"px"},d.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>r?(this.coeff=r/m,m=r):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},d.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},d}(a);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var u=function(h){o(d,h);function d(m,b){var y=h.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=b.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return d.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},d.prototype.getHeight=function(){return this.isVisible?this.height:0},d.prototype.setWidth=function(m){this.element.style.width=m+"px"},d.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},d}(a);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 o=this&&this.__extends||function(){var u=function(h,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,b){m.__proto__=b}||function(m,b){for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(m[y]=b[y])},u(h,d)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");u(h,d);function m(){this.constructor=h}h.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=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{
|
815
|
+
position: absolute;
|
816
|
+
background: rgba(128, 128, 128, 0.6);
|
817
|
+
-moz-box-sizing: border-box;
|
818
|
+
box-sizing: border-box;
|
819
|
+
border: 1px solid #bbb;
|
820
|
+
border-radius: 2px;
|
821
|
+
z-index: 8;
|
822
|
+
}
|
823
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
824
|
+
position: absolute;
|
825
|
+
z-index: 6;
|
826
|
+
background: none;
|
827
|
+
overflow: hidden!important;
|
828
|
+
}
|
829
|
+
.ace_editor>.ace_sb-v {
|
830
|
+
z-index: 6;
|
831
|
+
right: 0;
|
832
|
+
top: 0;
|
833
|
+
width: 12px;
|
834
|
+
}
|
835
|
+
.ace_editor>.ace_sb-v div {
|
836
|
+
z-index: 8;
|
837
|
+
right: 0;
|
838
|
+
width: 100%;
|
839
|
+
}
|
840
|
+
.ace_editor>.ace_sb-h {
|
841
|
+
bottom: 0;
|
842
|
+
left: 0;
|
843
|
+
height: 12px;
|
844
|
+
}
|
845
|
+
.ace_editor>.ace_sb-h div {
|
846
|
+
bottom: 0;
|
847
|
+
height: 100%;
|
848
|
+
}
|
849
|
+
.ace_editor>.ace_sb_grabbed {
|
850
|
+
z-index: 8;
|
851
|
+
background: #000;
|
852
|
+
}`,"ace_scrollbar.css",!1);var r=function(){function u(h,d){this.element=g.createElement("div"),this.element.className="ace_sb"+d,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}();f.implement(r.prototype,p);var a=function(u){o(h,u);function h(d,m){var b=u.call(this,d,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,b.parent=d,b.width=b.VScrollWidth,b.renderer=m,b.inner.style.width=b.element.style.width=(b.width||15)+"px",b.$minWidth=0,b}return h.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var b=this,y=m.clientY,$=function(M){y=M.clientY},S=function(){clearInterval(L)},_=m.clientY,w=this.thumbTop,A=function(){if(y!==void 0){var M=b.scrollTopFromThumbTop(w+y-_);M!==b.scrollTop&&b._emit("scroll",{data:M})}};l.capture(this.inner,$,S);var L=setInterval(A,20);return l.preventDefault(m)}var E=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),l.preventDefault(m)}},h.prototype.getHeight=function(){return this.height},h.prototype.scrollTopFromThumbTop=function(d){var m=d*(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(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},h.prototype.setScrollHeight=function(d,m){this.pageHeight===d&&!m||(this.pageHeight=d,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(d){this.scrollTop=d,d<0&&(d=0),this.thumbTop=d*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},h}(r);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(u){o(h,u);function h(d,m){var b=u.call(this,d,"-h")||this;return b.scrollLeft=0,b.scrollWidth=0,b.height=b.HScrollHeight,b.inner.style.height=b.element.style.height=(b.height||12)+"px",b.renderer=m,b}return h.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var b=this,y=m.clientX,$=function(M){y=M.clientX},S=function(){clearInterval(L)},_=m.clientX,w=this.thumbLeft,A=function(){if(y!==void 0){var M=b.scrollLeftFromThumbLeft(w+y-_);M!==b.scrollLeft&&b._emit("scroll",{data:M})}};l.capture(this.inner,$,S);var L=setInterval(A,20);return l.preventDefault(m)}var E=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),l.preventDefault(m)}},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.prototype.scrollLeftFromThumbLeft=function(d){var m=d*(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(d){this.width=Math.max(0,d),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},h.prototype.setScrollWidth=function(d,m){this.pageWidth===d&&!m||(this.pageWidth=d,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(d){this.scrollLeft=d,d<0&&(d=0),this.thumbLeft=d*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},h}(r);c.prototype.setInnerWidth=c.prototype.setScrollWidth,i.ScrollBar=a,i.ScrollBarV=a,i.ScrollBarH=c,i.VScrollBar=a,i.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,s){var o=n("./lib/event"),f=function(){function g(l,p){this.onRender=l,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var r=this;this._flush=function(a){r.pending=!1;var c=r.changes;if(c&&(o.blockIdle(100),r.changes=0,r.onRender(c)),r.changes){if(r.$recursionLimit--<0)return;r.schedule()}else r.$recursionLimit=2}}return g.prototype.schedule=function(l){this.changes=this.changes|l,this.changes&&!this.pending&&(o.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(l){var p=this.changes;return this.changes=0,p},g}();i.RenderLoop=f}),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 o=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),l=n("../lib/event"),p=n("../lib/useragent"),r=n("../lib/event_emitter").EventEmitter,a=512,c=typeof ResizeObserver=="function",u=200,h=function(){function d(m){this.el=f.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=f.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=f.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",a),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(m,b){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=b?"hidden":"visible"},d.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 b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===m.width&&b.height===m.height,this._emit("changeCharacterSize",{data:m})}},d.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(b){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},d.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=l.onIdle(function b(){m.checkForSizeChanges(),l.onIdle(b,500)},500)},d.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(m){var b={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/a};return b.width===0||b.height===0?null:b},d.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,a);var b=this.$main.getBoundingClientRect();return b.width/a},d.prototype.getCharacterWidth=function(m){var b=this.charSizes[m];return b===void 0&&(b=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),b},d.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},d.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var m=function(b,y){return["div",{style:"position: absolute;top:"+b+"px;left:"+y+"px;"}]};this.els=f.buildDom([m(0,0),m(u,0),m(0,u),m(u,u)],this.el)},d.prototype.transformCoordinates=function(m,b){if(m){var y=this.$getZoom(this.el);m=w(1/y,m)}function $(F,W,V){var B=F[1]*W[0]-F[0]*W[1];return[(-W[1]*V[0]+W[0]*V[1])/B,(+F[1]*V[0]-F[0]*V[1])/B]}function S(F,W){return[F[0]-W[0],F[1]-W[1]]}function _(F,W){return[F[0]+W[0],F[1]+W[1]]}function w(F,W){return[F*W[0],F*W[1]]}this.els||this.$initTransformMeasureNodes();function A(F){var W=F.getBoundingClientRect();return[W.left,W.top]}var L=A(this.els[0]),E=A(this.els[1]),M=A(this.els[2]),O=A(this.els[3]),C=$(S(O,E),S(O,M),S(_(E,M),_(O,L))),v=w(1+C[0],S(E,L)),x=w(1+C[1],S(M,L));if(b){var k=b,T=C[0]*k[0]/u+C[1]*k[1]/u+1,R=_(w(k[0],v),w(k[1],x));return _(w(1/T/u,R),L)}var I=S(m,L),N=$(S(v,w(C[0],I)),S(x,w(C[1],I)),I);return w(u,N)},d}();h.prototype.$characterSize={width:0,height:0},o.implement(h.prototype,r),i.FontMetrics=h}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,s){s.exports=`
|
853
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
854
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
855
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
856
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
857
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
858
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
859
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
860
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
861
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
862
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
863
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
864
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
865
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
866
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
867
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
868
|
+
|
869
|
+
|
870
|
+
.ace_editor {
|
871
|
+
position: relative;
|
872
|
+
overflow: hidden;
|
873
|
+
padding: 0;
|
874
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
875
|
+
direction: ltr;
|
876
|
+
text-align: left;
|
877
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
878
|
+
forced-color-adjust: none;
|
879
|
+
}
|
880
|
+
|
881
|
+
.ace_scroller {
|
882
|
+
position: absolute;
|
883
|
+
overflow: hidden;
|
884
|
+
top: 0;
|
885
|
+
bottom: 0;
|
886
|
+
background-color: inherit;
|
887
|
+
-ms-user-select: none;
|
888
|
+
-moz-user-select: none;
|
889
|
+
-webkit-user-select: none;
|
890
|
+
user-select: none;
|
891
|
+
cursor: text;
|
892
|
+
}
|
893
|
+
|
894
|
+
.ace_content {
|
895
|
+
position: absolute;
|
896
|
+
box-sizing: border-box;
|
897
|
+
min-width: 100%;
|
898
|
+
contain: style size layout;
|
899
|
+
font-variant-ligatures: no-common-ligatures;
|
900
|
+
}
|
901
|
+
|
902
|
+
.ace_keyboard-focus:focus {
|
903
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
904
|
+
outline: none;
|
905
|
+
}
|
906
|
+
|
907
|
+
.ace_dragging .ace_scroller:before{
|
908
|
+
position: absolute;
|
909
|
+
top: 0;
|
910
|
+
left: 0;
|
911
|
+
right: 0;
|
912
|
+
bottom: 0;
|
913
|
+
content: '';
|
914
|
+
background: rgba(250, 250, 250, 0.01);
|
915
|
+
z-index: 1000;
|
916
|
+
}
|
917
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
918
|
+
background: rgba(0, 0, 0, 0.01);
|
919
|
+
}
|
920
|
+
|
921
|
+
.ace_gutter {
|
922
|
+
position: absolute;
|
923
|
+
overflow : hidden;
|
924
|
+
width: auto;
|
925
|
+
top: 0;
|
926
|
+
bottom: 0;
|
927
|
+
left: 0;
|
928
|
+
cursor: default;
|
929
|
+
z-index: 4;
|
930
|
+
-ms-user-select: none;
|
931
|
+
-moz-user-select: none;
|
932
|
+
-webkit-user-select: none;
|
933
|
+
user-select: none;
|
934
|
+
contain: style size layout;
|
935
|
+
}
|
936
|
+
|
937
|
+
.ace_gutter-active-line {
|
938
|
+
position: absolute;
|
939
|
+
left: 0;
|
940
|
+
right: 0;
|
941
|
+
}
|
942
|
+
|
943
|
+
.ace_scroller.ace_scroll-left:after {
|
944
|
+
content: "";
|
945
|
+
position: absolute;
|
946
|
+
top: 0;
|
947
|
+
right: 0;
|
948
|
+
bottom: 0;
|
949
|
+
left: 0;
|
950
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
951
|
+
pointer-events: none;
|
952
|
+
}
|
953
|
+
|
954
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
955
|
+
position: absolute;
|
956
|
+
top: 0;
|
957
|
+
left: 0;
|
958
|
+
right: 0;
|
959
|
+
padding-left: 19px;
|
960
|
+
padding-right: 6px;
|
961
|
+
background-repeat: no-repeat;
|
962
|
+
}
|
963
|
+
|
964
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
965
|
+
margin-left: -14px;
|
966
|
+
float: left;
|
967
|
+
}
|
968
|
+
|
969
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
970
|
+
margin-left: -19px;
|
971
|
+
float: left;
|
972
|
+
}
|
973
|
+
|
974
|
+
.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 {
|
975
|
+
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==");
|
976
|
+
background-repeat: no-repeat;
|
977
|
+
background-position: 2px center;
|
978
|
+
}
|
979
|
+
|
980
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
981
|
+
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==");
|
982
|
+
background-repeat: no-repeat;
|
983
|
+
background-position: 2px center;
|
984
|
+
}
|
985
|
+
|
986
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
987
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
988
|
+
background-repeat: no-repeat;
|
989
|
+
background-position: 2px center;
|
990
|
+
}
|
991
|
+
|
992
|
+
.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 {
|
993
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
994
|
+
}
|
995
|
+
|
996
|
+
.ace_icon_svg.ace_error {
|
997
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
998
|
+
background-color: crimson;
|
999
|
+
}
|
1000
|
+
.ace_icon_svg.ace_security {
|
1001
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
1002
|
+
background-color: crimson;
|
1003
|
+
}
|
1004
|
+
.ace_icon_svg.ace_warning {
|
1005
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
1006
|
+
background-color: darkorange;
|
1007
|
+
}
|
1008
|
+
.ace_icon_svg.ace_info {
|
1009
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
1010
|
+
background-color: royalblue;
|
1011
|
+
}
|
1012
|
+
.ace_icon_svg.ace_hint {
|
1013
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
1014
|
+
background-color: silver;
|
1015
|
+
}
|
1016
|
+
|
1017
|
+
.ace_icon_svg.ace_error_fold {
|
1018
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1019
|
+
background-color: crimson;
|
1020
|
+
}
|
1021
|
+
.ace_icon_svg.ace_security_fold {
|
1022
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1023
|
+
background-color: crimson;
|
1024
|
+
}
|
1025
|
+
.ace_icon_svg.ace_warning_fold {
|
1026
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
1027
|
+
background-color: darkorange;
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
.ace_scrollbar {
|
1031
|
+
contain: strict;
|
1032
|
+
position: absolute;
|
1033
|
+
right: 0;
|
1034
|
+
bottom: 0;
|
1035
|
+
z-index: 6;
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
.ace_scrollbar-inner {
|
1039
|
+
position: absolute;
|
1040
|
+
cursor: text;
|
1041
|
+
left: 0;
|
1042
|
+
top: 0;
|
1043
|
+
}
|
1044
|
+
|
1045
|
+
.ace_scrollbar-v{
|
1046
|
+
overflow-x: hidden;
|
1047
|
+
overflow-y: scroll;
|
1048
|
+
top: 0;
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
.ace_scrollbar-h {
|
1052
|
+
overflow-x: scroll;
|
1053
|
+
overflow-y: hidden;
|
1054
|
+
left: 0;
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
.ace_print-margin {
|
1058
|
+
position: absolute;
|
1059
|
+
height: 100%;
|
1060
|
+
}
|
1061
|
+
|
1062
|
+
.ace_text-input {
|
1063
|
+
position: absolute;
|
1064
|
+
z-index: 0;
|
1065
|
+
width: 0.5em;
|
1066
|
+
height: 1em;
|
1067
|
+
opacity: 0;
|
1068
|
+
background: transparent;
|
1069
|
+
-moz-appearance: none;
|
1070
|
+
appearance: none;
|
1071
|
+
border: none;
|
1072
|
+
resize: none;
|
1073
|
+
outline: none;
|
1074
|
+
overflow: hidden;
|
1075
|
+
font: inherit;
|
1076
|
+
padding: 0 1px;
|
1077
|
+
margin: 0 -1px;
|
1078
|
+
contain: strict;
|
1079
|
+
-ms-user-select: text;
|
1080
|
+
-moz-user-select: text;
|
1081
|
+
-webkit-user-select: text;
|
1082
|
+
user-select: text;
|
1083
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
1084
|
+
white-space: pre!important;
|
1085
|
+
}
|
1086
|
+
.ace_text-input.ace_composition {
|
1087
|
+
background: transparent;
|
1088
|
+
color: inherit;
|
1089
|
+
z-index: 1000;
|
1090
|
+
opacity: 1;
|
1091
|
+
}
|
1092
|
+
.ace_composition_placeholder { color: transparent }
|
1093
|
+
.ace_composition_marker {
|
1094
|
+
border-bottom: 1px solid;
|
1095
|
+
position: absolute;
|
1096
|
+
border-radius: 0;
|
1097
|
+
margin-top: 1px;
|
1098
|
+
}
|
1099
|
+
|
1100
|
+
[ace_nocontext=true] {
|
1101
|
+
transform: none!important;
|
1102
|
+
filter: none!important;
|
1103
|
+
clip-path: none!important;
|
1104
|
+
mask : none!important;
|
1105
|
+
contain: none!important;
|
1106
|
+
perspective: none!important;
|
1107
|
+
mix-blend-mode: initial!important;
|
1108
|
+
z-index: auto;
|
1109
|
+
}
|
1110
|
+
|
1111
|
+
.ace_layer {
|
1112
|
+
z-index: 1;
|
1113
|
+
position: absolute;
|
1114
|
+
overflow: hidden;
|
1115
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
1116
|
+
word-wrap: normal;
|
1117
|
+
white-space: pre;
|
1118
|
+
height: 100%;
|
1119
|
+
width: 100%;
|
1120
|
+
box-sizing: border-box;
|
1121
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
1122
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
1123
|
+
pointer-events: none;
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
.ace_gutter-layer {
|
1127
|
+
position: relative;
|
1128
|
+
width: auto;
|
1129
|
+
text-align: right;
|
1130
|
+
pointer-events: auto;
|
1131
|
+
height: 1000000px;
|
1132
|
+
contain: style size layout;
|
1133
|
+
}
|
1134
|
+
|
1135
|
+
.ace_text-layer {
|
1136
|
+
font: inherit !important;
|
1137
|
+
position: absolute;
|
1138
|
+
height: 1000000px;
|
1139
|
+
width: 1000000px;
|
1140
|
+
contain: style size layout;
|
1141
|
+
}
|
1142
|
+
|
1143
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
1144
|
+
contain: style size layout;
|
1145
|
+
position: absolute;
|
1146
|
+
top: 0;
|
1147
|
+
left: 0;
|
1148
|
+
right: 0;
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
.ace_hidpi .ace_text-layer,
|
1152
|
+
.ace_hidpi .ace_gutter-layer,
|
1153
|
+
.ace_hidpi .ace_content,
|
1154
|
+
.ace_hidpi .ace_gutter {
|
1155
|
+
contain: strict;
|
1156
|
+
}
|
1157
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
1158
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
1159
|
+
contain: strict;
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
.ace_cjk {
|
1163
|
+
display: inline-block;
|
1164
|
+
text-align: center;
|
1165
|
+
}
|
1166
|
+
|
1167
|
+
.ace_cursor-layer {
|
1168
|
+
z-index: 4;
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
.ace_cursor {
|
1172
|
+
z-index: 4;
|
1173
|
+
position: absolute;
|
1174
|
+
box-sizing: border-box;
|
1175
|
+
border-left: 2px solid;
|
1176
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
1177
|
+
transform: translatez(0);
|
1178
|
+
}
|
1179
|
+
|
1180
|
+
.ace_multiselect .ace_cursor {
|
1181
|
+
border-left-width: 1px;
|
1182
|
+
}
|
1183
|
+
|
1184
|
+
.ace_slim-cursors .ace_cursor {
|
1185
|
+
border-left-width: 1px;
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
.ace_overwrite-cursors .ace_cursor {
|
1189
|
+
border-left-width: 0;
|
1190
|
+
border-bottom: 1px solid;
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
.ace_hidden-cursors .ace_cursor {
|
1194
|
+
opacity: 0.2;
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
1198
|
+
opacity: 0;
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
.ace_smooth-blinking .ace_cursor {
|
1202
|
+
transition: opacity 0.18s;
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
.ace_animate-blinking .ace_cursor {
|
1206
|
+
animation-duration: 1000ms;
|
1207
|
+
animation-timing-function: step-end;
|
1208
|
+
animation-name: blink-ace-animate;
|
1209
|
+
animation-iteration-count: infinite;
|
1210
|
+
}
|
1211
|
+
|
1212
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
1213
|
+
animation-duration: 1000ms;
|
1214
|
+
animation-timing-function: ease-in-out;
|
1215
|
+
animation-name: blink-ace-animate-smooth;
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
@keyframes blink-ace-animate {
|
1219
|
+
from, to { opacity: 1; }
|
1220
|
+
60% { opacity: 0; }
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
@keyframes blink-ace-animate-smooth {
|
1224
|
+
from, to { opacity: 1; }
|
1225
|
+
45% { opacity: 1; }
|
1226
|
+
60% { opacity: 0; }
|
1227
|
+
85% { opacity: 0; }
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
1231
|
+
position: absolute;
|
1232
|
+
z-index: 3;
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
.ace_marker-layer .ace_selection {
|
1236
|
+
position: absolute;
|
1237
|
+
z-index: 5;
|
1238
|
+
}
|
1239
|
+
|
1240
|
+
.ace_marker-layer .ace_bracket {
|
1241
|
+
position: absolute;
|
1242
|
+
z-index: 6;
|
1243
|
+
}
|
1244
|
+
|
1245
|
+
.ace_marker-layer .ace_error_bracket {
|
1246
|
+
position: absolute;
|
1247
|
+
border-bottom: 1px solid #DE5555;
|
1248
|
+
border-radius: 0;
|
1249
|
+
}
|
1250
|
+
|
1251
|
+
.ace_marker-layer .ace_active-line {
|
1252
|
+
position: absolute;
|
1253
|
+
z-index: 2;
|
1254
|
+
}
|
1255
|
+
|
1256
|
+
.ace_marker-layer .ace_selected-word {
|
1257
|
+
position: absolute;
|
1258
|
+
z-index: 4;
|
1259
|
+
box-sizing: border-box;
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
.ace_line .ace_fold {
|
1263
|
+
box-sizing: border-box;
|
1264
|
+
|
1265
|
+
display: inline-block;
|
1266
|
+
height: 11px;
|
1267
|
+
margin-top: -2px;
|
1268
|
+
vertical-align: middle;
|
1269
|
+
|
1270
|
+
background-image:
|
1271
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1272
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
1273
|
+
background-repeat: no-repeat, repeat-x;
|
1274
|
+
background-position: center center, top left;
|
1275
|
+
color: transparent;
|
1276
|
+
|
1277
|
+
border: 1px solid black;
|
1278
|
+
border-radius: 2px;
|
1279
|
+
|
1280
|
+
cursor: pointer;
|
1281
|
+
pointer-events: auto;
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
.ace_dark .ace_fold {
|
1285
|
+
}
|
1286
|
+
|
1287
|
+
.ace_fold:hover{
|
1288
|
+
background-image:
|
1289
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1290
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
1291
|
+
}
|
1292
|
+
|
1293
|
+
.ace_tooltip {
|
1294
|
+
background-color: #f5f5f5;
|
1295
|
+
border: 1px solid gray;
|
1296
|
+
border-radius: 1px;
|
1297
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
1298
|
+
color: black;
|
1299
|
+
max-width: 100%;
|
1300
|
+
padding: 3px 4px;
|
1301
|
+
position: fixed;
|
1302
|
+
z-index: 999999;
|
1303
|
+
box-sizing: border-box;
|
1304
|
+
cursor: default;
|
1305
|
+
white-space: pre-wrap;
|
1306
|
+
word-wrap: break-word;
|
1307
|
+
line-height: normal;
|
1308
|
+
font-style: normal;
|
1309
|
+
font-weight: normal;
|
1310
|
+
letter-spacing: normal;
|
1311
|
+
pointer-events: none;
|
1312
|
+
overflow: auto;
|
1313
|
+
max-width: min(60em, 66vw);
|
1314
|
+
overscroll-behavior: contain;
|
1315
|
+
}
|
1316
|
+
.ace_tooltip pre {
|
1317
|
+
white-space: pre-wrap;
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
.ace_tooltip.ace_dark {
|
1321
|
+
background-color: #636363;
|
1322
|
+
color: #fff;
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
.ace_tooltip:focus {
|
1326
|
+
outline: 1px solid #5E9ED6;
|
1327
|
+
}
|
1328
|
+
|
1329
|
+
.ace_icon {
|
1330
|
+
display: inline-block;
|
1331
|
+
width: 18px;
|
1332
|
+
vertical-align: top;
|
1333
|
+
}
|
1334
|
+
|
1335
|
+
.ace_icon_svg {
|
1336
|
+
display: inline-block;
|
1337
|
+
width: 12px;
|
1338
|
+
vertical-align: top;
|
1339
|
+
-webkit-mask-repeat: no-repeat;
|
1340
|
+
-webkit-mask-size: 12px;
|
1341
|
+
-webkit-mask-position: center;
|
1342
|
+
}
|
1343
|
+
|
1344
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
1345
|
+
padding-right: 13px;
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
.ace_fold-widget {
|
1349
|
+
box-sizing: border-box;
|
1350
|
+
|
1351
|
+
margin: 0 -12px 0 1px;
|
1352
|
+
display: none;
|
1353
|
+
width: 11px;
|
1354
|
+
vertical-align: top;
|
1355
|
+
|
1356
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
1357
|
+
background-repeat: no-repeat;
|
1358
|
+
background-position: center;
|
1359
|
+
|
1360
|
+
border-radius: 3px;
|
1361
|
+
|
1362
|
+
border: 1px solid transparent;
|
1363
|
+
cursor: pointer;
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
.ace_folding-enabled .ace_fold-widget {
|
1367
|
+
display: inline-block;
|
1368
|
+
}
|
1369
|
+
|
1370
|
+
.ace_fold-widget.ace_end {
|
1371
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
.ace_fold-widget.ace_closed {
|
1375
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
1376
|
+
}
|
1377
|
+
|
1378
|
+
.ace_fold-widget:hover {
|
1379
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
1380
|
+
background-color: rgba(255, 255, 255, 0.2);
|
1381
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
1382
|
+
}
|
1383
|
+
|
1384
|
+
.ace_fold-widget:active {
|
1385
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
1386
|
+
background-color: rgba(0, 0, 0, 0.05);
|
1387
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
1388
|
+
}
|
1389
|
+
/**
|
1390
|
+
* Dark version for fold widgets
|
1391
|
+
*/
|
1392
|
+
.ace_dark .ace_fold-widget {
|
1393
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
1394
|
+
}
|
1395
|
+
.ace_dark .ace_fold-widget.ace_end {
|
1396
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
1397
|
+
}
|
1398
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
1399
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
1400
|
+
}
|
1401
|
+
.ace_dark .ace_fold-widget:hover {
|
1402
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1403
|
+
background-color: rgba(255, 255, 255, 0.1);
|
1404
|
+
}
|
1405
|
+
.ace_dark .ace_fold-widget:active {
|
1406
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
.ace_inline_button {
|
1410
|
+
border: 1px solid lightgray;
|
1411
|
+
display: inline-block;
|
1412
|
+
margin: -1px 8px;
|
1413
|
+
padding: 0 5px;
|
1414
|
+
pointer-events: auto;
|
1415
|
+
cursor: pointer;
|
1416
|
+
}
|
1417
|
+
.ace_inline_button:hover {
|
1418
|
+
border-color: gray;
|
1419
|
+
background: rgba(200,200,200,0.2);
|
1420
|
+
display: inline-block;
|
1421
|
+
pointer-events: auto;
|
1422
|
+
}
|
1423
|
+
|
1424
|
+
.ace_fold-widget.ace_invalid {
|
1425
|
+
background-color: #FFB4B4;
|
1426
|
+
border-color: #DE5555;
|
1427
|
+
}
|
1428
|
+
|
1429
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
1430
|
+
transition: opacity 0.4s ease 0.05s;
|
1431
|
+
opacity: 0;
|
1432
|
+
}
|
1433
|
+
|
1434
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
1435
|
+
transition: opacity 0.05s ease 0.05s;
|
1436
|
+
opacity:1;
|
1437
|
+
}
|
1438
|
+
|
1439
|
+
.ace_underline {
|
1440
|
+
text-decoration: underline;
|
1441
|
+
}
|
1442
|
+
|
1443
|
+
.ace_bold {
|
1444
|
+
font-weight: bold;
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
.ace_nobold .ace_bold {
|
1448
|
+
font-weight: normal;
|
1449
|
+
}
|
1450
|
+
|
1451
|
+
.ace_italic {
|
1452
|
+
font-style: italic;
|
1453
|
+
}
|
1454
|
+
|
1455
|
+
|
1456
|
+
.ace_error-marker {
|
1457
|
+
background-color: rgba(255, 0, 0,0.2);
|
1458
|
+
position: absolute;
|
1459
|
+
z-index: 9;
|
1460
|
+
}
|
1461
|
+
|
1462
|
+
.ace_highlight-marker {
|
1463
|
+
background-color: rgba(255, 255, 0,0.2);
|
1464
|
+
position: absolute;
|
1465
|
+
z-index: 8;
|
1466
|
+
}
|
1467
|
+
|
1468
|
+
.ace_mobile-menu {
|
1469
|
+
position: absolute;
|
1470
|
+
line-height: 1.5;
|
1471
|
+
border-radius: 4px;
|
1472
|
+
-ms-user-select: none;
|
1473
|
+
-moz-user-select: none;
|
1474
|
+
-webkit-user-select: none;
|
1475
|
+
user-select: none;
|
1476
|
+
background: white;
|
1477
|
+
box-shadow: 1px 3px 2px grey;
|
1478
|
+
border: 1px solid #dcdcdc;
|
1479
|
+
color: black;
|
1480
|
+
}
|
1481
|
+
.ace_dark > .ace_mobile-menu {
|
1482
|
+
background: #333;
|
1483
|
+
color: #ccc;
|
1484
|
+
box-shadow: 1px 3px 2px grey;
|
1485
|
+
border: 1px solid #444;
|
1486
|
+
|
1487
|
+
}
|
1488
|
+
.ace_mobile-button {
|
1489
|
+
padding: 2px;
|
1490
|
+
cursor: pointer;
|
1491
|
+
overflow: hidden;
|
1492
|
+
}
|
1493
|
+
.ace_mobile-button:hover {
|
1494
|
+
background-color: #eee;
|
1495
|
+
opacity:1;
|
1496
|
+
}
|
1497
|
+
.ace_mobile-button:active {
|
1498
|
+
background-color: #ddd;
|
1499
|
+
}
|
1500
|
+
|
1501
|
+
.ace_placeholder {
|
1502
|
+
position: relative;
|
1503
|
+
font-family: arial;
|
1504
|
+
transform: scale(0.9);
|
1505
|
+
transform-origin: left;
|
1506
|
+
white-space: pre;
|
1507
|
+
opacity: 0.7;
|
1508
|
+
margin: 0 10px;
|
1509
|
+
z-index: 1;
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
.ace_ghost_text {
|
1513
|
+
opacity: 0.5;
|
1514
|
+
font-style: italic;
|
1515
|
+
}
|
1516
|
+
|
1517
|
+
.ace_ghost_text_container > div {
|
1518
|
+
white-space: pre;
|
1519
|
+
}
|
1520
|
+
|
1521
|
+
.ghost_text_line_wrapped::after {
|
1522
|
+
content: "↩";
|
1523
|
+
position: absolute;
|
1524
|
+
}
|
1525
|
+
|
1526
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
1527
|
+
margin: 0px 4px
|
1528
|
+
}
|
1529
|
+
|
1530
|
+
.ace_screenreader-only {
|
1531
|
+
position:absolute;
|
1532
|
+
left:-10000px;
|
1533
|
+
top:auto;
|
1534
|
+
width:1px;
|
1535
|
+
height:1px;
|
1536
|
+
overflow:hidden;
|
1537
|
+
}
|
1538
|
+
|
1539
|
+
.ace_hidden_token {
|
1540
|
+
display: none;
|
1541
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,s){var o=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,l=function(){function p(r,a){this.canvas=o.createElement("canvas"),this.renderer=a,this.pixelRatio=1,this.maxHeight=a.layerConfig.maxHeight,this.lineHeight=a.layerConfig.lineHeight,this.canvasHeight=r.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=r.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)"},r.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(r){var a=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(r){this.maxHeight=r.maxHeight,this.lineHeight=r.lineHeight,this.canvasHeight=r.height;var c=(r.lastRow+1)*this.lineHeight;c<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var u=this.canvas.getContext("2d");function h(O,C){return O.priority<C.priority?-1:O.priority>C.priority?1:0}var d=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),d){var m={info:1,warning:2,error:3};d.forEach(function(O){O.priority=m[O.type]||null}),d=d.sort(h);for(var b=this.renderer.session.$foldData,y=0;y<d.length;y++){var $=d[y].row,S=this.compensateFoldRows($,b),_=Math.round(($-S)*this.lineHeight*this.heightRatio),w=Math.round(($-S)*this.lineHeight*this.heightRatio),A=Math.round((($-S)*this.lineHeight+this.lineHeight)*this.heightRatio),L=A-w;if(L<this.minDecorationHeight){var E=(w+A)/2|0;E<this.halfMinDecorationHeight?E=this.halfMinDecorationHeight:E+this.halfMinDecorationHeight>this.canvasHeight&&(E=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(E-this.halfMinDecorationHeight),A=Math.round(E+this.halfMinDecorationHeight)}u.fillStyle=a[d[y].type]||null,u.fillRect(0,_,this.canvasWidth,A-w)}}var M=this.renderer.session.selection.getCursor();if(M){var S=this.compensateFoldRows(M.row,b),_=Math.round((M.row-S)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,_,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(r,a){var c=0;if(a&&a.length>0)for(var u=0;u<a.length;u++)r>a[u].start.row&&r<a[u].end.row?c+=r-a[u].start.row:r>=a[u].end.row&&(c+=a[u].end.row-a[u].start.row);return c},p}();f.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 o=n("./lib/oop"),f=n("./lib/dom"),g=n("./lib/lang"),l=n("./config"),p=n("./layer/gutter").Gutter,r=n("./layer/marker").Marker,a=n("./layer/text").Text,c=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,h=n("./scrollbar").VScrollBar,d=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,b=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,$=n("./lib/event_emitter").EventEmitter,S=n("./css/editor-css"),_=n("./layer/decorators").Decorator,w=n("./lib/useragent"),A=n("./layer/text_util").isTextToken;f.importCssString(S,"ace_editor.css",!1);var L=function(){function E(M,O){var C=this;this.container=M||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(O),l.get("useStrictCSP")==null&&l.set("useStrictCSP",!1),this.$gutter=f.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=f.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=f.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 r(this.content);var v=this.$textLayer=new a(this.content);this.canvas=v.element,this.$markerFront=new r(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(x){C.$scrollAnimation||C.session.setScrollTop(x.data-C.scrollMargin.top)}),this.scrollBarH.on("scroll",function(x){C.$scrollAnimation||C.session.setScrollLeft(x.data-C.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(x){C.updateCharacterSize(),C.onResize(!0,C.gutterWidth,C.$size.width,C.$size.height),C._signal("changeCharacterSize",x)}),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=!w.isIOS,this.$loop=new b(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 E.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(),f.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},E.prototype.setSession=function(M){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=M,M&&this.scrollMargin.top&&M.getScrollTop()<=0&&M.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(M),this.$markerBack.setSession(M),this.$markerFront.setSession(M),this.$gutterLayer.setSession(M),this.$textLayer.setSession(M),M&&(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))},E.prototype.updateLines=function(M,O,C){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>M&&(this.$changedLines.firstRow=M),this.$changedLines.lastRow<O&&(this.$changedLines.lastRow=O)):this.$changedLines={firstRow:M,lastRow:O},this.$changedLines.lastRow<this.layerConfig.firstRow)if(C)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},E.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},E.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},E.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},E.prototype.updateFull=function(M){M?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},E.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},E.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},E.prototype.onResize=function(M,O,C,v){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=M?1:0;var x=this.container;v||(v=x.clientHeight||x.scrollHeight),!v&&this.$maxLines&&this.lineHeight>1&&(!x.style.height||x.style.height=="0px")&&(x.style.height="1px",v=x.clientHeight||x.scrollHeight),C||(C=x.clientWidth||x.scrollWidth);var k=this.$updateCachedSize(M,O,C,v);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!C&&!v)return this.resizing=0;M&&(this.$gutterLayer.$padding=null),M?this.$renderChanges(k|this.$changes,!0):this.$loop.schedule(k|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},E.prototype.$updateCachedSize=function(M,O,C,v){v-=this.$extraHeight||0;var x=0,k=this.$size,T={width:k.width,height:k.height,scrollerHeight:k.scrollerHeight,scrollerWidth:k.scrollerWidth};if(v&&(M||k.height!=v)&&(k.height=v,x|=this.CHANGE_SIZE,k.scrollerHeight=k.height,this.$horizScroll&&(k.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(k.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",x=x|this.CHANGE_SCROLL),C&&(M||k.width!=C)){x|=this.CHANGE_SIZE,k.width=C,O==null&&(O=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=O,f.setStyle(this.scrollBarH.element.style,"left",O+"px"),f.setStyle(this.scroller.style,"left",O+this.margin.left+"px"),k.scrollerWidth=Math.max(0,C-O-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var R=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",R),f.setStyle(this.scroller.style,"right",R),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(k.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||M)&&(x|=this.CHANGE_FULL)}return k.$dirty=!C||!v,x&&this._signal("resize",T),x},E.prototype.onGutterResize=function(M){var O=this.$showGutter?M:0;O!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,O,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()},E.prototype.adjustWrapLimit=function(){var M=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(M/this.characterWidth);return this.session.adjustWrapLimit(O,this.$showPrintMargin&&this.$printMarginColumn)},E.prototype.setAnimatedScroll=function(M){this.setOption("animatedScroll",M)},E.prototype.getAnimatedScroll=function(){return this.$animatedScroll},E.prototype.setShowInvisibles=function(M){this.setOption("showInvisibles",M),this.session.$bidiHandler.setShowInvisibles(M)},E.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},E.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},E.prototype.setDisplayIndentGuides=function(M){this.setOption("displayIndentGuides",M)},E.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},E.prototype.setHighlightIndentGuides=function(M){this.setOption("highlightIndentGuides",M)},E.prototype.setShowPrintMargin=function(M){this.setOption("showPrintMargin",M)},E.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},E.prototype.setPrintMarginColumn=function(M){this.setOption("printMarginColumn",M)},E.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},E.prototype.getShowGutter=function(){return this.getOption("showGutter")},E.prototype.setShowGutter=function(M){return this.setOption("showGutter",M)},E.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},E.prototype.setFadeFoldWidgets=function(M){this.setOption("fadeFoldWidgets",M)},E.prototype.setHighlightGutterLine=function(M){this.setOption("highlightGutterLine",M)},E.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},E.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var M=f.createElement("div");M.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",M.appendChild(this.$printMarginEl),this.content.insertBefore(M,this.content.firstChild)}var O=this.$printMarginEl.style;O.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",O.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},E.prototype.getContainerElement=function(){return this.container},E.prototype.getMouseEventTarget=function(){return this.scroller},E.prototype.getTextAreaContainer=function(){return this.container},E.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var M=this.textarea.style,O=this.$composition;if(!this.$keepTextAreaAtCursor&&!O){f.translate(this.textarea,-100,0);return}var C=this.$cursorLayer.$pixelPos;if(C){O&&O.markerRange&&(C=this.$cursorLayer.getPixelPosition(O.markerRange.start,!0));var v=this.layerConfig,x=C.top,k=C.left;x-=v.offset;var T=O&&O.useTextareaForIME||w.isMobile?this.lineHeight:1;if(x<0||x>v.height-T){f.translate(this.textarea,0,0);return}var R=1,I=this.$size.height-T;if(!O)x+=this.lineHeight;else if(O.useTextareaForIME){var N=this.textarea.value;R=this.characterWidth*this.session.$getStringScreenWidth(N)[0]}else x+=this.lineHeight+2;k-=this.scrollLeft,k>this.$size.scrollerWidth-R&&(k=this.$size.scrollerWidth-R),k+=this.gutterWidth+this.margin.left,f.setStyle(M,"height",T+"px"),f.setStyle(M,"width",R+"px"),f.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-R),Math.min(x,I))}}},E.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},E.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},E.prototype.getLastFullyVisibleRow=function(){var M=this.layerConfig,O=M.lastRow,C=this.session.documentToScreenRow(O,0)*M.lineHeight;return C-this.session.getScrollTop()>M.height-M.lineHeight?O-1:O},E.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},E.prototype.setPadding=function(M){this.$padding=M,this.$textLayer.setPadding(M),this.$cursorLayer.setPadding(M),this.$markerFront.setPadding(M),this.$markerBack.setPadding(M),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},E.prototype.setScrollMargin=function(M,O,C,v){var x=this.scrollMargin;x.top=M|0,x.bottom=O|0,x.right=v|0,x.left=C|0,x.v=x.top+x.bottom,x.h=x.left+x.right,x.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-x.top),this.updateFull()},E.prototype.setMargin=function(M,O,C,v){var x=this.margin;x.top=M|0,x.bottom=O|0,x.right=v|0,x.left=C|0,x.v=x.top+x.bottom,x.h=x.left+x.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},E.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},E.prototype.setHScrollBarAlwaysVisible=function(M){this.setOption("hScrollBarAlwaysVisible",M)},E.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},E.prototype.setVScrollBarAlwaysVisible=function(M){this.setOption("vScrollBarAlwaysVisible",M)},E.prototype.$updateScrollBarV=function(){var M=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(M-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>M-O&&(M=this.scrollTop+O,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(M+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},E.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},E.prototype.freeze=function(){this.$frozen=!0},E.prototype.unfreeze=function(){this.$frozen=!1},E.prototype.$renderChanges=function(M,O){if(this.$changes&&(M|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!M&&!O){this.$changes|=M;return}if(this.$size.$dirty)return this.$changes|=M,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",M),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var C=this.layerConfig;if(M&this.CHANGE_FULL||M&this.CHANGE_SIZE||M&this.CHANGE_TEXT||M&this.CHANGE_LINES||M&this.CHANGE_SCROLL||M&this.CHANGE_H_SCROLL){if(M|=this.$computeLayerConfig()|this.$loop.clear(),C.firstRow!=this.layerConfig.firstRow&&C.firstRowScreen==this.layerConfig.firstRowScreen){var v=this.scrollTop+(C.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;v>0&&(this.scrollTop=v,M=M|this.CHANGE_SCROLL,M|=this.$computeLayerConfig()|this.$loop.clear())}C=this.layerConfig,this.$updateScrollBarV(),M&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-C.offset);var x=C.width+2*this.$padding+"px",k=C.minHeight+"px";f.setStyle(this.content.style,"width",x),f.setStyle(this.content.style,"height",k)}if(M&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-C.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),M&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(C),this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C),this.$markerBack.update(C),this.$markerFront.update(C),this.$cursorLayer.update(C),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}if(M&this.CHANGE_SCROLL){this.$changedLines=null,M&this.CHANGE_TEXT||M&this.CHANGE_LINES?this.$textLayer.update(C):this.$textLayer.scrollLines(C),this.$showGutter&&(M&this.CHANGE_GUTTER||M&this.CHANGE_LINES?this.$gutterLayer.update(C):this.$gutterLayer.scrollLines(C)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C),this.$markerBack.update(C),this.$markerFront.update(C),this.$cursorLayer.update(C),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}M&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(C),this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):M&this.CHANGE_LINES?((this.$updateLines()||M&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):M&this.CHANGE_TEXT||M&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)):M&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(C),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(C)),M&this.CHANGE_CURSOR&&(this.$cursorLayer.update(C),this.$moveTextAreaToCursor()),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(C),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(C),this._signal("afterRender",M)},E.prototype.$autosize=function(){var M=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,C=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,M))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(C+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&C>this.$maxPixelHeight&&(C=this.$maxPixelHeight);var v=C<=2*this.lineHeight,x=!v&&M>O;if(C!=this.desiredHeight||this.$size.height!=this.desiredHeight||x!=this.$vScroll){x!=this.$vScroll&&(this.$vScroll=x,this.scrollBarV.setVisible(x));var k=this.container.clientWidth;this.container.style.height=C+"px",this.$updateCachedSize(!0,this.$gutterWidth,k,C),this.desiredHeight=C,this._signal("autosize")}},E.prototype.$computeLayerConfig=function(){var M=this.session,O=this.$size,C=O.height<=2*this.lineHeight,v=this.session.getScreenLength(),x=v*this.lineHeight,k=this.$getLongestLine(),T=!C&&(this.$hScrollBarAlwaysVisible||O.scrollerWidth-k-2*this.$padding<0),R=this.$horizScroll!==T;R&&(this.$horizScroll=T,this.scrollBarH.setVisible(T));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var N=O.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(O.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;x+=F;var W=this.scrollMargin;this.session.setScrollTop(Math.max(-W.top,Math.min(this.scrollTop,x-O.scrollerHeight+W.bottom))),this.session.setScrollLeft(Math.max(-W.left,Math.min(this.scrollLeft,k+2*this.$padding-O.scrollerWidth+W.right)));var V=!C&&(this.$vScrollBarAlwaysVisible||O.scrollerHeight-x+F<0||this.scrollTop>W.top),B=I!==V;B&&(this.$vScroll=V,this.scrollBarV.setVisible(V));var H=this.scrollTop%this.lineHeight,K=Math.ceil(N/this.lineHeight)-1,U=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),j=U+K,Q,q,X=this.lineHeight;U=M.screenToDocumentRow(U,0);var ce=M.getFoldLine(U);ce&&(U=ce.start.row),Q=M.documentToScreenRow(U,0),q=M.getRowLength(U)*X,j=Math.min(M.screenToDocumentRow(j,0),M.getLength()-1),N=O.scrollerHeight+M.getRowLength(j)*X+q,H=this.scrollTop-Q*X;var Me=0;return(this.layerConfig.width!=k||R)&&(Me=this.CHANGE_H_SCROLL),(R||B)&&(Me|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),B&&(k=this.$getLongestLine())),this.layerConfig={width:k,padding:this.$padding,firstRow:U,firstRowScreen:Q,lastRow:j,lineHeight:X,characterWidth:this.characterWidth,minHeight:N,maxHeight:x,offset:H,gutterOffset:X?Math.max(0,Math.ceil((H+O.height-O.scrollerHeight)/X)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(k-this.$padding),Me},E.prototype.$updateLines=function(){if(this.$changedLines){var M=this.$changedLines.firstRow,O=this.$changedLines.lastRow;this.$changedLines=null;var C=this.layerConfig;if(!(M>C.lastRow+1)&&!(O<C.firstRow)){if(O===1/0){this.$showGutter&&this.$gutterLayer.update(C),this.$textLayer.update(C);return}return this.$textLayer.updateLines(C,M,O),!0}}},E.prototype.$getLongestLine=function(){var M=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(M+=1),this.$textLayer&&M>this.$textLayer.MAX_LINE_LENGTH&&(M=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(M*this.characterWidth))},E.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},E.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},E.prototype.addGutterDecoration=function(M,O){this.$gutterLayer.addGutterDecoration(M,O)},E.prototype.removeGutterDecoration=function(M,O){this.$gutterLayer.removeGutterDecoration(M,O)},E.prototype.updateBreakpoints=function(M){this._rows=M,this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.setAnnotations=function(M){this.$gutterLayer.setAnnotations(M),this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},E.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},E.prototype.showCursor=function(){this.$cursorLayer.showCursor()},E.prototype.scrollSelectionIntoView=function(M,O,C){this.scrollCursorIntoView(M,C),this.scrollCursorIntoView(O,C)},E.prototype.scrollCursorIntoView=function(M,O,C){if(this.$size.scrollerHeight!==0){var v=this.$cursorLayer.getPixelPosition(M),x=v.left,k=v.top,T=C&&C.top||0,R=C&&C.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+T>k?(O&&I+T>k+this.lineHeight&&(k-=O*this.$size.scrollerHeight),k===0&&(k=-this.scrollMargin.top),this.session.setScrollTop(k)):I+this.$size.scrollerHeight-R<k+this.lineHeight&&(O&&I+this.$size.scrollerHeight-R<k-this.lineHeight&&(k+=O*this.$size.scrollerHeight),this.session.setScrollTop(k+this.lineHeight+R-this.$size.scrollerHeight));var N=this.scrollLeft,F=2*this.layerConfig.characterWidth;x-F<N?(x-=F,x<this.$padding+F&&(x=-this.scrollMargin.left),this.session.setScrollLeft(x)):(x+=F,N+this.$size.scrollerWidth<x+this.characterWidth?this.session.setScrollLeft(Math.round(x+this.characterWidth-this.$size.scrollerWidth)):N<=this.$padding&&x-N<this.characterWidth&&this.session.setScrollLeft(0))}},E.prototype.getScrollTop=function(){return this.session.getScrollTop()},E.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},E.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},E.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},E.prototype.scrollToRow=function(M){this.session.setScrollTop(M*this.lineHeight)},E.prototype.alignCursor=function(M,O){typeof M=="number"&&(M={row:M,column:0});var C=this.$cursorLayer.getPixelPosition(M),v=this.$size.scrollerHeight-this.lineHeight,x=C.top-v*(O||0);return this.session.setScrollTop(x),x},E.prototype.$calcSteps=function(M,O){var C=0,v=this.STEPS,x=[],k=function(T,R,I){return I*(Math.pow(T-1,3)+1)+R};for(C=0;C<v;++C)x.push(k(C/this.STEPS,M,O-M));return x},E.prototype.scrollToLine=function(M,O,C,v){var x=this.$cursorLayer.getPixelPosition({row:M,column:0}),k=x.top;O&&(k-=this.$size.scrollerHeight/2);var T=this.scrollTop;this.session.setScrollTop(k),C!==!1&&this.animateScrolling(T,v)},E.prototype.animateScrolling=function(M,O){var C=this.scrollTop;if(!this.$animatedScroll)return;var v=this;if(M==C)return;if(this.$scrollAnimation){var x=this.$scrollAnimation.steps;if(x.length&&(M=x[0],M==C))return}var k=v.$calcSteps(M,C);this.$scrollAnimation={from:M,to:C,steps:k},clearInterval(this.$timer),v.session.setScrollTop(k.shift()),v.session.$scrollTop=C;function T(){v.$timer=clearInterval(v.$timer),v.$scrollAnimation=null,v.$stopAnimation=!1,O&&O()}this.$timer=setInterval(function(){if(v.$stopAnimation){T();return}if(!v.session)return clearInterval(v.$timer);k.length?(v.session.setScrollTop(k.shift()),v.session.$scrollTop=C):C!=null?(v.session.$scrollTop=-1,v.session.setScrollTop(C),C=null):T()},10)},E.prototype.scrollToY=function(M){this.scrollTop!==M&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=M)},E.prototype.scrollToX=function(M){this.scrollLeft!==M&&(this.scrollLeft=M),this.$loop.schedule(this.CHANGE_H_SCROLL)},E.prototype.scrollTo=function(M,O){this.session.setScrollTop(O),this.session.setScrollLeft(M)},E.prototype.scrollBy=function(M,O){O&&this.session.setScrollTop(this.session.getScrollTop()+O),M&&this.session.setScrollLeft(this.session.getScrollLeft()+M)},E.prototype.isScrollableBy=function(M,O){if(O<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||O>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||M<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||M>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},E.prototype.pixelToScreenCoordinates=function(M,O){var C;if(this.$hasCssTransforms){C={top:0,left:0};var v=this.$fontMetrics.transformCoordinates([M,O]);M=v[1]-this.gutterWidth-this.margin.left,O=v[0]}else C=this.scroller.getBoundingClientRect();var x=M+this.scrollLeft-C.left-this.$padding,k=x/this.characterWidth,T=Math.floor((O+this.scrollTop-C.top)/this.lineHeight),R=this.$blockCursor?Math.floor(k):Math.round(k);return{row:T,column:R,side:k-R>0?1:-1,offsetX:x}},E.prototype.screenToTextCoordinates=function(M,O){var C;if(this.$hasCssTransforms){C={top:0,left:0};var v=this.$fontMetrics.transformCoordinates([M,O]);M=v[1]-this.gutterWidth-this.margin.left,O=v[0]}else C=this.scroller.getBoundingClientRect();var x=M+this.scrollLeft-C.left-this.$padding,k=x/this.characterWidth,T=this.$blockCursor?Math.floor(k):Math.round(k),R=Math.floor((O+this.scrollTop-C.top)/this.lineHeight);return this.session.screenToDocumentPosition(R,Math.max(T,0),x)},E.prototype.textToScreenCoordinates=function(M,O){var C=this.scroller.getBoundingClientRect(),v=this.session.documentToScreenPosition(M,O),x=this.$padding+(this.session.$bidiHandler.isBidiRow(v.row,M)?this.session.$bidiHandler.getPosLeft(v.column):Math.round(v.column*this.characterWidth)),k=v.row*this.lineHeight;return{pageX:C.left+x-this.scrollLeft,pageY:C.top+k-this.scrollTop}},E.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},E.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},E.prototype.showComposition=function(M){this.$composition=M,M.cssText||(M.cssText=this.textarea.style.cssText),M.useTextareaForIME==null&&(M.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):M.markerId=this.session.addMarker(M.markerRange,"ace_composition_marker","text")},E.prototype.setCompositionText=function(M){var O=this.session.selection.cursor;this.addToken(M,"composition_placeholder",O.row,O.column),this.$moveTextAreaToCursor()},E.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),f.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var M=this.session.selection.cursor;this.removeExtraToken(M.row,M.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},E.prototype.setGhostText=function(M,O){var C=this.session.selection.cursor,v=O||{row:C.row,column:C.column};this.removeGhostText();var x=this.$calculateWrappedTextChunks(M,v);this.addToken(x[0].text,"ghost_text",v.row,v.column),this.$ghostText={text:M,position:{row:v.row,column:v.column}};var k=f.createElement("div");if(x.length>1){var T=this.hideTokensAfterPosition(v.row,v.column),R;x.slice(1).forEach(function(B){var H=f.createElement("div"),K=f.createElement("span");K.className="ace_ghost_text",B.wrapped&&(H.className="ghost_text_line_wrapped"),B.text.length===0&&(B.text=" "),K.appendChild(f.createTextNode(B.text)),H.appendChild(K),k.appendChild(H),R=H}),T.forEach(function(B){var H=f.createElement("span");A(B.type)||(H.className="ace_"+B.type.replace(/\./g," ace_")),H.appendChild(f.createTextNode(B.value)),R.appendChild(H)}),this.$ghostTextWidget={el:k,row:v.row,column:v.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var I=this.$cursorLayer.getPixelPosition(v,!0),N=this.container,F=N.getBoundingClientRect().height,W=x.length*this.lineHeight,V=W<F-I.top;if(V)return;W<F?this.scrollBy(0,(x.length-1)*this.lineHeight):this.scrollToRow(v.row)}},E.prototype.$calculateWrappedTextChunks=function(M,O){var C=this.$size.scrollerWidth-this.$padding*2,v=Math.floor(C/this.characterWidth)-2;v=v<=0?60:v;for(var x=M.split(/\r?\n/),k=[],T=0;T<x.length;T++){var R=this.session.$getDisplayTokens(x[T],O.column),I=this.session.$computeWrapSplits(R,v,this.session.$tabSize);if(I.length>0){var N=0;I.push(x[T].length);for(var F=0;F<I.length;F++){var W=x[T].slice(N,I[F]);k.push({text:W,wrapped:!0}),N=I[F]}}else k.push({text:x[T],wrapped:!1})}return k},E.prototype.removeGhostText=function(){if(this.$ghostText){var M=this.$ghostText.position;this.removeExtraToken(M.row,M.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},E.prototype.addToken=function(M,O,C,v){var x=this.session;x.bgTokenizer.lines[C]=null;var k={type:O,value:M},T=x.getTokens(C);if(v==null||!T.length)T.push(k);else for(var R=0,I=0;I<T.length;I++){var N=T[I];if(R+=N.value.length,v<=R){var F=N.value.length-(R-v),W=N.value.slice(0,F),V=N.value.slice(F);T.splice(I,1,{type:N.type,value:W},k,{type:N.type,value:V});break}}this.updateLines(C,C)},E.prototype.hideTokensAfterPosition=function(M,O){for(var C=this.session.getTokens(M),v=0,x=!1,k=[],T=0;T<C.length;T++){var R=C[T];if(v+=R.value.length,R.type!=="ghost_text"){if(x){k.push({type:R.type,value:R.value}),R.type="hidden_token";continue}v===O&&(x=!0)}}return this.updateLines(M,M),k},E.prototype.removeExtraToken=function(M,O){this.session.bgTokenizer.lines[M]=null,this.updateLines(M,M)},E.prototype.setTheme=function(M,O){var C=this;if(this.$themeId=M,C._dispatchEvent("themeChange",{theme:M}),!M||typeof M=="string"){var v=M||this.$options.theme.initialValue;l.loadModule(["theme",v],x)}else x(M);function x(k){if(C.$themeId!=M)return O&&O();if(!k||!k.cssClass)throw new Error("couldn't load module "+M+" or it didn't call define");k.$id&&(C.$themeId=k.$id),f.importCssString(k.cssText,k.cssClass,C.container),C.theme&&f.removeCssClass(C.container,C.theme.cssClass);var T="padding"in k?k.padding:"padding"in(C.theme||{})?4:C.$padding;C.$padding&&T!=C.$padding&&C.setPadding(T),C.$theme=k.cssClass,C.theme=k,f.addCssClass(C.container,k.cssClass),f.setCssClass(C.container,"ace_dark",k.isDark),C.$size&&(C.$size.width=0,C.$updateSizeAsync()),C._dispatchEvent("themeLoaded",{theme:k}),O&&O(),w.isSafari&&C.scroller&&(C.scroller.style.background="red",C.scroller.style.background="")}},E.prototype.getTheme=function(){return this.$themeId},E.prototype.setStyle=function(M,O){f.setCssClass(this.container,M,O!==!1)},E.prototype.unsetStyle=function(M){f.removeCssClass(this.container,M)},E.prototype.setCursorStyle=function(M){f.setStyle(this.scroller.style,"cursor",M)},E.prototype.setMouseCursor=function(M){f.setStyle(this.scroller.style,"cursor",M)},E.prototype.attachToShadowRoot=function(){f.importCssString(S,"ace_editor.css",this.container)},E.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},E.prototype.$updateCustomScrollbar=function(M){var O=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,M===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(C){O.$scrollAnimation||O.session.setScrollTop(C.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){O.$scrollAnimation||O.session.setScrollLeft(C.data-O.scrollMargin.left)}),this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(C){O.$scrollAnimation||O.session.setScrollTop(C.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){O.$scrollAnimation||O.session.setScrollLeft(C.data-O.scrollMargin.left)}))},E.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var M=this;this.$resizeTimer=g.delayedCall(function(){M.destroyed||M.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(O){var C=O[0].contentRect.width,v=O[0].contentRect.height;Math.abs(M.$size.width-C)>1||Math.abs(M.$size.height-v)>1?M.$resizeTimer.delay():M.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},E}();L.prototype.CHANGE_CURSOR=1,L.prototype.CHANGE_MARKER=2,L.prototype.CHANGE_GUTTER=4,L.prototype.CHANGE_SCROLL=8,L.prototype.CHANGE_LINES=16,L.prototype.CHANGE_TEXT=32,L.prototype.CHANGE_SIZE=64,L.prototype.CHANGE_MARKER_BACK=128,L.prototype.CHANGE_MARKER_FRONT=256,L.prototype.CHANGE_FULL=512,L.prototype.CHANGE_H_SCROLL=1024,L.prototype.$changes=0,L.prototype.$padding=null,L.prototype.$frozen=!1,L.prototype.STEPS=8,o.implement(L.prototype,$),l.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function(E){!E&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):E&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(E){this.$textLayer.setShowInvisibles(E)&&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(E){typeof E=="number"&&(this.$printMarginColumn=E),this.$showPrintMargin=!!E,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(E){this.$gutter.style.display=E?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(E){this.$gutterLayer.$useSvgGutterIcons=E},initialValue:!1},showFoldedAnnotations:{set:function(E){this.$gutterLayer.$showFoldedAnnotations=E},initialValue:!1},fadeFoldWidgets:{set:function(E){f.setCssClass(this.$gutter,"ace_fade-fold-widgets",E)},initialValue:!1},showFoldWidgets:{set:function(E){this.$gutterLayer.setShowFoldWidgets(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(E){this.$textLayer.setDisplayIndentGuides(E)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(E){this.$textLayer.setHighlightIndentGuides(E)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(E){this.$gutterLayer.setHighlightGutterLine(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(E){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(E){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(E){typeof E=="number"&&(E=E+"px"),this.container.style.fontSize=E,this.updateFontSize()},initialValue:12},fontFamily:{set:function(E){this.container.style.fontFamily=E,this.updateFontSize()}},maxLines:{set:function(E){this.updateFull()}},minLines:{set:function(E){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(E){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(E){E=+E||0,this.$scrollPastEnd!=E&&(this.$scrollPastEnd=E,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(E){this.$gutterLayer.$fixedWidth=!!E,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(E){this.$updateCustomScrollbar(E)},initialValue:!1},theme:{set:function(E){this.setTheme(E)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),i.VirtualRenderer=L}),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 o=n("../lib/oop"),f=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,l=n("../config");function p(u){var h="importScripts('"+f.qualifyURL(u)+"');";try{return new Blob([h],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new d;return m.append(h),m.getBlob("application/javascript")}}function r(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var h=p(u),d=window.URL||window.webkitURL,m=d.createObjectURL(h);return new Worker(m)}return new Worker(u)}var a=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(){o.implement(this,g),this.$createWorkerFromOldConfig=function(u,h,d,m,b){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(S){$[S]=y(n.toUrl(S,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=r(m),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:$,module:h,classname:d}),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 d=this.callbacks[h.id];d&&(d(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 f.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,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,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(d){console.error(d.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(a.prototype);var c=function(u,h,d){var m=null,b=!1,y=Object.create(g),$=[],S=new a({messageBuffer:$,terminate:function(){},postMessage:function(w){$.push(w),m&&(b?setTimeout(_):_())}});S.setEmitSync=function(w){b=w};var _=function(){var w=$.shift();w.command?m[w.command].apply(m,w.args):w.event&&y._signal(w.event,w.data)};return y.postMessage=function(w){S.onMessage({data:w})},y.callback=function(w,A){this.postMessage({type:"call",id:A,data:w})},y.emit=function(w,A){this.postMessage({type:"event",name:w,data:A})},l.loadModule(["worker",h],function(w){for(m=new w[d](y);$.length;)_()}),S};i.UIWorkerClient=c,i.WorkerClient=a,i.createWorker=r}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,s){var o=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),l=function(){function p(r,a,c,u,h,d){var m=this;this.length=a,this.session=r,this.doc=r.getDocument(),this.mainClass=h,this.othersClass=d,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 b=r.getUndoManager().$undoStack||r.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),r.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var r=this,a=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=a.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=c.addMarker(new o(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(h){var d=a.createAnchor(h.row,h.column);d.$insertRight=!0,d.detach(),r.others.push(d)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var r=this.session,a=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=r.addMarker(new o(c.row,c.column,c.row,c.column+a.length),a.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var r=0;r<this.others.length;r++)this.session.removeMarker(this.others[r].markerId)}},p.prototype.onUpdate=function(r){if(this.$updating)return this.updateAnchors(r);var a=r;if(a.start.row===a.end.row&&a.start.row===this.pos.row){this.$updating=!0;var c=r.action==="insert"?a.end.column-a.start.column:a.start.column-a.end.column,u=a.start.column>=this.pos.column&&a.start.column<=this.pos.column+this.length+1,h=a.start.column-this.pos.column;if(this.updateAnchors(r),u&&(this.length+=c),u&&!this.session.$fromUndo){if(r.action==="insert")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],b={row:m.row,column:m.column+h};this.doc.insertMergedLines(b,r.lines)}else if(r.action==="remove")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],b={row:m.row,column:m.column+h};this.doc.remove(new o(b.row,b.column,b.row,b.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(r){this.pos.onChange(r);for(var a=this.others.length;a--;)this.others[a].onChange(r);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var r=this,a=this.session,c=function(h,d){a.removeMarker(h.markerId),h.markerId=a.addMarker(new o(h.row,h.column,h.row,h.column+r.length),d,null,!1)};c(this.pos,this.mainClass);for(var u=this.others.length;u--;)c(this.others[u],this.othersClass)}},p.prototype.onCursorChange=function(r){if(!(this.$updating||!this.session)){var a=this.session.selection.getCursor();a.row===this.pos.row&&a.column>=this.pos.column&&a.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",r)):(this.hideOtherMarkers(),this._emit("cursorLeave",r))}},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 r=this.session.getUndoManager(),a=(r.$undoStack||r.$undostack).length-this.$undoStackDepth,c=0;c<a;c++)r.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(l.prototype,f),i.PlaceHolder=l}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,s){var o=n("../lib/event"),f=n("../lib/useragent");function g(p,r){return p.row==r.row&&p.column==r.column}function l(p){var r=p.domEvent,a=r.altKey,c=r.shiftKey,u=r.ctrlKey,h=p.getAccelKey(),d=p.getButton();if(u&&f.isMac&&(d=r.button),p.editor.inMultiSelectMode&&d==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!u&&!a&&!h){d===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(d===0){var m=p.editor,b=m.selection,y=m.inMultiSelectMode,$=p.getDocumentPosition(),S=b.getCursor(),_=p.inSelection()||b.isEmpty()&&g($,S),w=p.x,A=p.y,L=function(W){w=W.clientX,A=W.clientY},E=m.session,M=m.renderer.pixelToScreenCoordinates(w,A),O=M,C;if(m.$mouseHandler.$enableJumpToDef)u&&a||h&&a?C=c?"block":"add":a&&m.$blockSelectEnabled&&(C="block");else if(h&&!a){if(C="add",!y&&c)return}else a&&m.$blockSelectEnabled&&(C="block");if(C&&f.isMac&&r.ctrlKey&&m.$mouseHandler.cancelContextMenu(),C=="add"){if(!y&&_)return;if(!y){var v=b.toOrientedRange();m.addSelectionMarker(v)}var x=b.rangeList.rangeAtPoint($);m.inVirtualSelectionMode=!0,c&&(x=null,v=b.ranges[0]||v,m.removeSelectionMarker(v)),m.once("mouseup",function(){var W=b.toOrientedRange();x&&W.isEmpty()&&g(x.cursor,W.cursor)?b.substractPoint(W.cursor):(c?b.substractPoint(v.cursor):v&&(m.removeSelectionMarker(v),b.addRange(v)),b.addRange(W)),m.inVirtualSelectionMode=!1})}else if(C=="block"){p.stop(),m.inVirtualSelectionMode=!0;var k,T=[],R=function(){var W=m.renderer.pixelToScreenCoordinates(w,A),V=E.screenToDocumentPosition(W.row,W.column,W.offsetX);g(O,W)&&g(V,b.lead)||(O=W,m.selection.moveToPosition(V),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=b.rectangularRangeBlock(O,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!h?b.toSingleRange():!y&&h&&(k=b.toOrientedRange(),m.addSelectionMarker(k)),c?M=E.documentToScreenPosition(b.lead):b.moveToPosition($),O={row:-1,column:-1};var I=function(W){R(),clearInterval(F),m.removeSelectionMarkers(T),T.length||(T=[b.toOrientedRange()]),k&&(m.removeSelectionMarker(k),b.toSingleRange(k));for(var V=0;V<T.length;V++)b.addRange(T[V]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=R;o.capture(m.container,L,I);var F=setInterval(function(){N()},20);return p.preventDefault()}}}i.onMouseDown=l}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,s){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(f){f.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(f){f.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(f){f.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(f){f.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(f){f.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(f){f.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(f){f.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(f){f.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(f){f.multiSelect.rangeCount>1?f.multiSelect.joinSelections():f.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(f){f.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(f){f.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(f){f.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(f){f.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(f){return f&&f.inMultiSelectMode}}];var o=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new o(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 o=n("./range_list").RangeList,f=n("./range").Range,g=n("./selection").Selection,l=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),r=n("./lib/lang"),a=n("./commands/multi_select_commands");i.commands=a.defaultCommands.concat(a.multiSelectCommands);var c=n("./search").Search,u=new c;function h(S,_,w){return u.$options.wrap=!0,u.$options.needle=_,u.$options.backwards=w==-1,u.find(S)}var d=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(S,_){if(S){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(S),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange(S);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}S.cursor||(S.cursor=S.end);var A=this.rangeList.add(S);return this.$onAddRange(S),A.length&&this.$onRemoveRange(A),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange(S)}},this.toSingleRange=function(S){S=S||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),S&&this.fromOrientedRange(S)},this.substractPoint=function(S){var _=this.rangeList.substractPoint(S);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var S=this.rangeList.merge();S.length&&this.$onRemoveRange(S)},this.$onAddRange=function(S){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(S),this._signal("addRange",{range:S})},this.$onRemoveRange=function(S){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();S.push(_),this.rangeCount=0}for(var w=S.length;w--;){var A=this.ranges.indexOf(S[w]);this.ranges.splice(A,1)}this._signal("removeRange",{ranges:S}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var S=this.ranges.length?this.ranges:[this.getRange()],_=[],w=0;w<S.length;w++){var A=S[w],L=A.start.row,E=A.end.row;if(L===E)_.push(A.clone());else{for(_.push(new f(L,A.start.column,L,this.session.getLine(L).length));++L<E;)_.push(this.getLineRange(L,!0));_.push(new f(E,0,E,A.end.column))}w==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var w=_.length;w--;)this.addRange(_[w])},this.joinSelections=function(){var S=this.rangeList.ranges,_=S[S.length-1],w=f.fromPoints(S[0].start,_.end);this.toSingleRange(),this.setSelectionRange(w,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var S=this.rangeList.ranges,_=S[S.length-1],w=f.fromPoints(S[0].start,_.end);this.toSingleRange(),this.setSelectionRange(w,_.cursor==_.start)}else{var A=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(A,L);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(S,_,w){var A=[],L=S.column<_.column;if(L)var E=S.column,M=_.column,O=S.offsetX,C=_.offsetX;else var E=_.column,M=S.column,O=_.offsetX,C=S.offsetX;var v=S.row<_.row;if(v)var x=S.row,k=_.row;else var x=_.row,k=S.row;E<0&&(E=0),x<0&&(x=0),x==k&&(w=!0);for(var T,R=x;R<=k;R++){var I=f.fromPoints(this.session.screenToDocumentPosition(R,E,O),this.session.screenToDocumentPosition(R,M,C));if(I.isEmpty()){if(T&&b(I.end,T))break;T=I.end}I.cursor=L?I.start:I.end,A.push(I)}if(v&&A.reverse(),!w){for(var N=A.length-1;A[N].isEmpty()&&N>0;)N--;if(N>0)for(var F=0;A[F].isEmpty();)F++;for(var W=N;W>=F;W--)A[W].isEmpty()&&A.splice(W,1)}return A}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(S){S.cursor||(S.cursor=S.end);var _=this.getSelectionStyle();return S.marker=this.session.addMarker(S,"ace_selection",_),this.session.$selectionMarkers.push(S),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,S},this.removeSelectionMarker=function(S){if(S.marker){this.session.removeMarker(S.marker);var _=this.session.$selectionMarkers.indexOf(S);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(S){for(var _=this.session.$selectionMarkers,w=S.length;w--;){var A=S[w];if(A.marker){this.session.removeMarker(A.marker);var L=_.indexOf(A);L!=-1&&_.splice(L,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function(S){this.addSelectionMarker(S.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(S){this.removeSelectionMarkers(S.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(S){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(a.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(S){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(a.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(S){var _=S.command,w=S.editor;if(w.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?A=w.forEachSelection(_,S.args):_.multiSelectAction=="forEachLine"?A=w.forEachSelection(_,S.args,!0):_.multiSelectAction=="single"?(w.exitMultiSelectMode(),A=_.exec(w,S.args||{})):A=_.multiSelectAction(w,S.args||{});else{var A=_.exec(w,S.args||{});w.multiSelect.addRange(w.multiSelect.toOrientedRange()),w.multiSelect.mergeOverlappingRanges()}return A}},this.forEachSelection=function(S,_,w){if(!this.inVirtualSelectionMode){var A=w&&w.keepOrder,L=w==!0||w&&w.$byLines,E=this.session,M=this.selection,O=M.rangeList,C=(A?M:O).ranges,v;if(!C.length)return S.exec?S.exec(this,_||{}):S(this,_||{});var x=M._eventRegistry;M._eventRegistry={};var k=new g(E);this.inVirtualSelectionMode=!0;for(var T=C.length;T--;){if(L)for(;T>0&&C[T].start.row==C[T-1].end.row;)T--;k.fromOrientedRange(C[T]),k.index=T,this.selection=E.selection=k;var R=S.exec?S.exec(this,_||{}):S(this,_||{});!v&&R!==void 0&&(v=R),k.toOrientedRange(C[T])}k.detach(),this.selection=E.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=x,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),v}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var S="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,w=[],A=0;A<_.length;A++)w.push(this.session.getTextRange(_[A]));var L=this.session.getDocument().getNewLineCharacter();S=w.join(L),S.length==(w.length-1)*L.length&&(S="")}else this.selection.isEmpty()||(S=this.session.getTextRange(this.getSelectionRange()));return S},this.$checkMultiselectChange=function(S,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var w=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var A=_==this.multiSelect.anchor?w.cursor==w.start?w.end:w.start:w.cursor;A.row!=_.row||this.session.$clipPositionToDocument(A.row,A.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(S,_,w){if(_=_||{},_.needle=S||_.needle,_.needle==null){var A=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(A)}this.$search.set(_);var L=this.$search.findAll(this.session);if(!L.length)return 0;var E=this.multiSelect;w||E.toSingleRange(L[0]);for(var M=L.length;M--;)E.addRange(L[M],!0);return A&&E.rangeList.rangeAtPoint(A.start)&&E.addRange(A,!0),L.length},this.selectMoreLines=function(S,_){var w=this.selection.toOrientedRange(),A=w.cursor==w.end,L=this.session.documentToScreenPosition(w.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var E=this.session.screenToDocumentPosition(L.row+S,L.column);if(w.isEmpty())var O=E;else var M=this.session.documentToScreenPosition(A?w.end:w.start),O=this.session.screenToDocumentPosition(M.row+S,M.column);if(A){var C=f.fromPoints(E,O);C.cursor=C.start}else{var C=f.fromPoints(O,E);C.cursor=C.end}if(C.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(w);else if(_)var v=w.cursor;this.selection.addRange(C),v&&this.selection.substractPoint(v)},this.transposeSelections=function(S){for(var _=this.session,w=_.multiSelect,A=w.ranges,L=A.length;L--;){var E=A[L];if(E.isEmpty()){var M=_.getWordRange(E.start.row,E.start.column);E.start.row=M.start.row,E.start.column=M.start.column,E.end.row=M.end.row,E.end.column=M.end.column}}w.mergeOverlappingRanges();for(var O=[],L=A.length;L--;){var E=A[L];O.unshift(_.getTextRange(E))}S<0?O.unshift(O.pop()):O.push(O.shift());for(var L=A.length;L--;){var E=A[L],C=E.clone();_.replace(E,O[L]),E.start.row=C.start.row,E.start.column=C.start.column}w.fromOrientedRange(w.ranges[0])},this.selectMore=function(S,_,w){var A=this.session,L=A.multiSelect,E=L.toOrientedRange();if(!(E.isEmpty()&&(E=A.getWordRange(E.start.row,E.start.column),E.cursor=S==-1?E.start:E.end,this.multiSelect.addRange(E),w))){var M=A.getTextRange(E),O=h(A,M,S);O&&(O.cursor=S==-1?O.start:O.end,this.session.unfold(O),this.multiSelect.addRange(O),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var S=this.session,_=S.multiSelect,w=_.ranges,A=-1,L=w.filter(function(N){if(N.cursor.row==A)return!0;A=N.cursor.row});if(!w.length||L.length==w.length-1){var E=this.selection.getRange(),M=E.start.row,O=E.end.row,C=M==O;if(C){var v=this.session.getLength(),x;do x=this.session.getLine(O);while(/[=:]/.test(x)&&++O<v);do x=this.session.getLine(M);while(/[=:]/.test(x)&&--M>0);M<0&&(M=0),O>=v&&(O=v-1)}var k=this.session.removeFullLines(M,O);k=this.$reAlignText(k,C),this.session.insert({row:M,column:0},k.join(`
|
1542
|
+
`)+`
|
1543
|
+
`),C||(E.start.column=0,E.end.column=k[k.length-1].length),this.selection.setRange(E)}else{L.forEach(function(N){_.substractPoint(N.cursor)});var T=0,R=1/0,I=w.map(function(N){var F=N.cursor,W=S.getLine(F.row),V=W.substr(F.column).search(/\S/g);return V==-1&&(V=0),F.column>T&&(T=F.column),V<R&&(R=V),V});w.forEach(function(N,F){var W=N.cursor,V=T-W.column,B=I[F]-R;V>B?S.insert(W,r.stringRepeat(" ",V-B)):S.remove(new f(W.row,W.column,W.row,W.column-V+B)),N.start.column=N.end.column=T,N.start.row=N.end.row=W.row,N.cursor=N.end}),_.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(S,_){var w=!0,A=!0,L,E,M;return S.map(function(k){var T=k.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?L==null?(L=T[1].length,E=T[2].length,M=T[3].length,T):(L+E+M!=T[1].length+T[2].length+T[3].length&&(A=!1),L!=T[1].length&&(w=!1),L>T[1].length&&(L=T[1].length),E<T[2].length&&(E=T[2].length),M>T[3].length&&(M=T[3].length),T):[k]}).map(_?C:w?A?v:C:x);function O(k){return r.stringRepeat(" ",k)}function C(k){return k[2]?O(L)+k[2]+O(E-k[2].length+M)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function v(k){return k[2]?O(L+E-k[2].length)+k[2]+O(M)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function x(k){return k[2]?O(L)+k[2]+O(M)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}}}).call(m.prototype);function b(S,_){return S.row==_.row&&S.column==_.column}i.onSessionChange=function(S){var _=S.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var w=S.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(S){S.$multiselectOnSessionChange||(S.$onAddRange=S.$onAddRange.bind(S),S.$onRemoveRange=S.$onRemoveRange.bind(S),S.$onMultiSelect=S.$onMultiSelect.bind(S),S.$onSingleSelect=S.$onSingleSelect.bind(S),S.$multiselectOnSessionChange=i.onSessionChange.bind(S),S.$checkMultiselectChange=S.$checkMultiselectChange.bind(S),S.$multiselectOnSessionChange(S),S.on("changeSession",S.$multiselectOnSessionChange),S.on("mousedown",l),S.commands.addCommands(a.defaultCommands),$(S))}function $(S){if(!S.textInput)return;var _=S.textInput.getElement(),w=!1;p.addListener(_,"keydown",function(L){var E=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);S.$blockSelectEnabled&&E?w||(S.renderer.setMouseCursor("crosshair"),w=!0):w&&A()},S),p.addListener(_,"keyup",A,S),p.addListener(_,"blur",A,S);function A(L){w&&(S.renderer.setMouseCursor(""),w=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(S){y(this),S?this.on("mousedown",l):this.off("mousedown",l)},value:!0},enableBlockSelect:{set:function(S){this.$blockSelectEnabled=S},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,s){var o=n("../../range").Range,f=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,l,p){var r=g.getLine(p);return this.foldingStartMarker.test(r)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(g,l,p){return null},this.indentationBlock=function(g,l,p){var r=/\S/,a=g.getLine(l),c=a.search(r);if(c!=-1){for(var u=p||a.length,h=g.getLength(),d=l,m=l;++l<h;){var b=g.getLine(l).search(r);if(b!=-1){if(b<=c){var y=g.getTokenAt(l,0);if(!y||y.type!=="string")break}m=l}}if(m>d){var $=g.getLine(m).length;return new o(d,u,m,$)}}},this.openingBracketBlock=function(g,l,p,r,a){var c={row:p,column:r+1},u=g.$findClosingBracket(l,c,a);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),o.fromPoints(c,u)}},this.closingBracketBlock=function(g,l,p,r,a){var c={row:p,column:r},u=g.$findOpeningBracket(l,c);if(u)return u.column++,c.column--,o.fromPoints(u,c)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(n,i,s){var o=n("../lib/dom"),f=n("../range").Range,g=n("../config").nls;function l(r,a,c){for(var u=0,h=r.length-1;u<=h;){var d=u+h>>1,m=c(a,r[d]);if(m>0)u=d+1;else if(m<0)h=d-1;else return d}return-(u+1)}function p(r,a,c){var u=r.getAnnotations().sort(f.comparePoints);if(u.length){var h=l(u,{row:a,column:-1},f.comparePoints);h<0&&(h=-h-1),h>=u.length?h=c>0?0:u.length-1:h===0&&c<0&&(h=u.length-1);var d=u[h];if(!(!d||!c)){if(d.row===a){do d=u[h+=c];while(d&&d.row===a);if(!d)return u.slice()}var m=[];a=d.row;do m[c<0?"unshift":"push"](d),d=u[h+=c];while(d&&d.row==a);return m.length&&m}}}i.showErrorMarker=function(r,a){var c=r.session,u=r.getCursorPosition(),h=u.row,d=c.widgetManager.getWidgetsAtRow(h).filter(function(L){return L.type=="errorMarker"})[0];d?d.destroy():h-=a;var m=p(c,h,a),b;if(m){var y=m[0];u.column=(y.pos&&typeof y.column!="number"?y.pos.sc:y.column)||0,u.row=y.row,b=r.renderer.$gutterLayer.$annotations[u.row]}else{if(d)return;b={displayText:[g("error-marker.good-state","Looks good!")],className:"ace_ok"}}r.session.unfold(u.row),r.selection.moveToPosition(u);var $={row:u.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},S=$.el.appendChild(o.createElement("div")),_=$.el.appendChild(o.createElement("div"));_.className="error_widget_arrow "+b.className;var w=r.renderer.$cursorLayer.getPixelPosition(u).left;_.style.left=w+r.renderer.gutterWidth-5+"px",$.el.className="error_widget_wrapper",S.className="error_widget "+b.className,b.displayText.forEach(function(L,E){S.appendChild(o.createTextNode(L)),E<b.displayText.length-1&&S.appendChild(o.createElement("br"))}),S.appendChild(o.createElement("div"));var A=function(L,E,M){if(E===0&&(M==="esc"||M==="return"))return $.destroy(),{command:"null"}};$.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(A),c.widgetManager.removeLineWidget($),r.off("changeSelection",$.destroy),r.off("changeSession",$.destroy),r.off("mouseup",$.destroy),r.off("change",$.destroy))},r.keyBinding.addKeyboardHandler(A),r.on("changeSelection",$.destroy),r.on("changeSession",$.destroy),r.on("mouseup",$.destroy),r.on("change",$.destroy),r.session.widgetManager.addLineWidget($),$.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:$.el.offsetHeight})},o.importCssString(`
|
1544
|
+
.error_widget_wrapper {
|
1545
|
+
background: inherit;
|
1546
|
+
color: inherit;
|
1547
|
+
border:none
|
1548
|
+
}
|
1549
|
+
.error_widget {
|
1550
|
+
border-top: solid 2px;
|
1551
|
+
border-bottom: solid 2px;
|
1552
|
+
margin: 5px 0;
|
1553
|
+
padding: 10px 40px;
|
1554
|
+
white-space: pre-wrap;
|
1555
|
+
}
|
1556
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
1557
|
+
border-color: #ff5a5a
|
1558
|
+
}
|
1559
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
1560
|
+
border-color: #F1D817
|
1561
|
+
}
|
1562
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
1563
|
+
border-color: #5a5a5a
|
1564
|
+
}
|
1565
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
1566
|
+
border-color: #5aaa5a
|
1567
|
+
}
|
1568
|
+
.error_widget_arrow {
|
1569
|
+
position: absolute;
|
1570
|
+
border: solid 5px;
|
1571
|
+
border-top-color: transparent!important;
|
1572
|
+
border-right-color: transparent!important;
|
1573
|
+
border-left-color: transparent!important;
|
1574
|
+
top: -5px;
|
1575
|
+
}
|
1576
|
+
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,i,s){n("./loader_build")(i);var o=n("./lib/dom"),f=n("./range").Range,g=n("./editor").Editor,l=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,r=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),i.config=n("./config"),i.edit=function(c,u){if(typeof c=="string"){var h=c;if(c=document.getElementById(h),!c)throw new Error("ace.edit can't find div #"+h)}if(c&&c.env&&c.env.editor instanceof g)return c.env.editor;var d="";if(c&&/input|textarea/i.test(c.tagName)){var m=c;d=m.value,c=o.createElement("pre"),m.parentNode.replaceChild(c,m)}else c&&(d=c.textContent,c.innerHTML="");var b=i.createEditSession(d),y=new g(new r(c),b,u),$={document:b,editor:y,onResize:y.resize.bind(y,null)};return m&&($.textarea=m),y.on("destroy",function(){$.editor.container.env=null}),y.container.env=y.env=$,y},i.createEditSession=function(c,u){var h=new l(c,u);return h.setUndoManager(new p),h},i.Range=f,i.Editor=g,i.EditSession=l,i.UndoManager=p,i.VirtualRenderer=r;var a=i.config.version;i.version=a}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=n);for(var s in n)n.hasOwnProperty(s)&&(i.ace[s]=n[s]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()}(Qo)),Qo.exports}var w2=b2();const Ul=Di(w2),_2="/assets/mode-yaml-ELgwiJiP.js",S2="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Ul.config.setModuleUrl("ace/mode/yaml",_2);Ul.config.setModuleUrl("ace/theme/monokai",S2);var yp=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(s,o){return s[0]===n?(i=o,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=e(this.__entries__,n),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(n,i){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,s=e(i,n);~s&&i.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var s=0,o=this.__entries__;s<o.length;s++){var f=o[s];n.call(i,f[1],f[0])}},t}()}(),Ka=typeof window<"u"&&typeof document<"u"&&window.document===document,Ns=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),x2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ns):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),C2=2;function $2(e,t){var n=!1,i=!1,s=0;function o(){n&&(n=!1,e()),i&&g()}function f(){x2(o)}function g(){var l=Date.now();if(n){if(l-s<C2)return;i=!0}else n=!0,i=!1,setTimeout(f,t);s=l}return g}var A2=20,k2=["top","right","bottom","left","width","height","size","weight"],M2=typeof MutationObserver<"u",T2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=$2(this.refresh.bind(this),A2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ka||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),M2?(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(){!Ka||!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=k2.some(function(o){return!!~i.indexOf(o)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bp=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},Ei=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ns},wp=bo(0,0,0,0);function Ds(e){return parseFloat(e)||0}function Xu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,s){var o=e["border-"+s+"-width"];return i+Ds(o)},0)}function E2(e){for(var t=["top","right","bottom","left"],n={},i=0,s=t;i<s.length;i++){var o=s[i],f=e["padding-"+o];n[o]=Ds(f)}return n}function L2(e){var t=e.getBBox();return bo(0,0,t.width,t.height)}function R2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return wp;var i=Ei(e).getComputedStyle(e),s=E2(i),o=s.left+s.right,f=s.top+s.bottom,g=Ds(i.width),l=Ds(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+o)!==t&&(g-=Xu(i,"left","right")+o),Math.round(l+f)!==n&&(l-=Xu(i,"top","bottom")+f)),!I2(e)){var p=Math.round(g+o)-t,r=Math.round(l+f)-n;Math.abs(p)!==1&&(g-=p),Math.abs(r)!==1&&(l-=r)}return bo(s.left,s.top,g,l)}var O2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ei(e).SVGGraphicsElement}:function(e){return e instanceof Ei(e).SVGElement&&typeof e.getBBox=="function"}}();function I2(e){return e===Ei(e).document.documentElement}function N2(e){return Ka?O2(e)?L2(e):R2(e):wp}function D2(e){var t=e.x,n=e.y,i=e.width,s=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(o.prototype);return bp(f,{x:t,y:n,width:i,height:s,top:n,right:t+i,bottom:s+n,left:t}),f}function bo(e,t,n,i){return{x:e,y:t,width:n,height:i}}var F2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=bo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=N2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),P2=function(){function e(t,n){var i=D2(n);bp(this,{target:t,contentRect:i})}return e}(),W2=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new yp,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return e.prototype.observe=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 Ei(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new F2(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 Ei(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 P2(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}(),_p=typeof WeakMap<"u"?new WeakMap:new yp,Sp=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=T2.getInstance(),i=new W2(t,n,this);_p.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Sp.prototype[e]=function(){var t;return(t=_p.get(this))[e].apply(t,arguments)}});var B2=function(){return typeof Ns.ResizeObserver<"u"?Ns.ResizeObserver:Sp}();const Qu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],xp=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",...Qu],render(){return eo("div")},mounted(){const e=this._editor=id(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)}),Qu.forEach(t=>{const n="on"+Tr(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new B2(()=>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)}}}),z2={class:"block"},Cp=Ce({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,i=t,s=vl(n,"yaml");return Cl(()=>{i("update-yaml",s.value)}),(o,f)=>(Y(),ie("div",z2,[se(he(xp),{class:"vue-ace-editor",value:s.value,"onUpdate:value":f[0]||(f[0]=g=>s.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),j2={class:"block"},H2={class:"is-size-2 block"},U2={class:"field is-grouped is-grouped-centered"},V2={class:"control"},G2={class:"icon is-small"},Y2={key:0,class:"block"},K2=Ce({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=Oi(),i=vl(t.rule.yaml),s=BS(),o=g=>{i.value=g},f=async()=>{const g=await s.perform({yaml:i.value});n.push({name:"Rule",params:{id:g.id}})};return(g,l)=>{var r,a;const p=Qe("font-awesome-icon");return Y(),ie(We,null,[D("div",j2,[D("h2",H2,"Edit rule: "+_e(e.rule.id),1),se(Cp,{yaml:i.value,"onUpdate:yaml":l[0]||(l[0]=c=>i.value=c),onUpdateYaml:o},null,8,["yaml"]),D("div",U2,[D("p",V2,[D("a",{class:"button is-primary",onClick:f},[D("span",G2,[se(p,{icon:"edit"})]),l[1]||(l[1]=D("span",null,"Edit",-1))])])])]),(r=he(s).last)!=null&&r.error?(Y(),ie("div",Y2,[l[2]||(l[2]=D("hr",null,null,-1)),se(mt,{error:(a=he(s).last)==null?void 0:a.error},null,8,["error"])])):me("",!0)],64)}}}),Z2=Ce({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=rp(),i=async()=>{await n.perform(t.id)};return ct(async()=>{await i()}),et(t,async()=>{await i()}),(s,o)=>{var f,g;return Y(),ie(We,null,[he(n).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(n).isError?(Y(),xe(mt,{key:1,error:(f=he(n).last)==null?void 0:f.error},null,8,["error"])):me("",!0),(g=he(n).last)!=null&&g.value?(Y(),xe(K2,{key:2,rule:he(n).last.value},null,8,["rule"])):me("",!0)],64)}}}),X2=Ce({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Edit rule:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(Z2,{id:e.id},null,8,["id"]))}});function Q2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var s=i.reduce(function(g,l){var p=l.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(r){var a,c;return(c=(a=r.match(/[\t ]/g))===null||a===void 0?void 0:a.length)!==null&&c!==void 0?c:0})):g},[]);if(s.length){var o=new RegExp(`
|
1577
|
+
[ ]{`+Math.min.apply(Math,s)+"}","g");i=i.map(function(g){return g.replace(o,`
|
1578
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var f=i[0];return t.forEach(function(g,l){var p=f.match(/(?:^|\n)( *)$/),r=p?p[1]:"",a=g;typeof g=="string"&&g.includes(`
|
1579
|
+
`)&&(a=String(g).split(`
|
1580
|
+
`).map(function(c,u){return u===0?c:""+r+c}).join(`
|
1581
|
+
`)),f+=a+i[l+1]}),f}var Zr,q2=new Uint8Array(16);function J2(){if(!Zr&&(Zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zr(q2)}const ek=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function tk(e){return typeof e=="string"&&ek.test(e)}var ft=[];for(var qo=0;qo<256;++qo)ft.push((qo+256).toString(16).substr(1));function nk(e){var t=arguments.length>1&&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(!tk(n))throw TypeError("Stringified UUID is invalid");return n}function ik(e,t,n){e=e||{};var i=e.random||(e.rng||J2)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,nk(i)}function rk(){const e=ik(),t=yo();return Q2`---
|
1582
|
+
id: ${e}
|
1583
|
+
title: Title goes here
|
1584
|
+
description: Description goes here
|
1585
|
+
created_on: ${t.format("YYYY-MM-DD")}
|
1586
|
+
queries: []`}const sk={class:"block"},ok={class:"field is-grouped is-grouped-centered"},ak={class:"control"},lk={class:"icon is-small"},ck={key:0,class:"block"},uk=Ce({__name:"NewRule",setup(e){const t=Oi(),n=Ue(rk()),i=WS(),s=f=>{n.value=f},o=async()=>{const f=await i.perform({yaml:n.value});t.push({name:"Rule",params:{id:f.id}})};return(f,g)=>{var p,r;const l=Qe("font-awesome-icon");return Y(),ie(We,null,[D("div",sk,[g[2]||(g[2]=D("h2",{class:"is-size-2 block"},"New rule",-1)),se(Cp,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=a=>n.value=a),onUpdateYaml:s},null,8,["yaml"]),D("div",ok,[D("p",ak,[D("a",{class:"button is-primary",onClick:o},[D("span",lk,[se(l,{icon:"plus"})]),g[1]||(g[1]=D("span",null,"Create",-1))])])])]),(p=he(i).last)!=null&&p.error?(Y(),ie("div",ck,[g[3]||(g[3]=D("hr",null,null,-1)),se(mt,{error:(r=he(i).last)==null?void 0:r.error},null,8,["error"])])):me("",!0)],64)}}}),hk=Ce({__name:"NewRule",setup(e){const t=()=>{Sn("New rule - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),xe(uk))}}),dk={class:"buttons is-pulled-right"},fk=["href"],pk={class:"icon is-small"},gk={class:"icon is-small"},mk={class:"icon is-small"},vk={class:"icon is-small"},$p=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}`),o=ke(()=>`rule.id:"${n.rule.id}"`),f=FS(),g=PS(),l=go(),p=zl(),r=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await f.perform(n.rule.id),i("delete")}catch(u){nt.isAxiosError(u)&&i("set-error",u)}},a=async()=>{try{const c=await g.perform(n.rule.id);i("set-message",c)}catch(c){nt.isAxiosError(c)&&i("set-error",c)}};return ct(()=>{l.perform({q:o.value,page:1,limit:0}),p.perform({q:o.value,page:1,limit:0})}),(c,u)=>{const h=Qe("router-link"),d=Qe("font-awesome-icon");return Y(),ie("span",dk,[se(h,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:o.value}}},{default:it(()=>{var m,b;return[u[0]||(u[0]=D("span",null,"Alerts:",-1)),D("span",null,_e((b=(m=he(l).last)==null?void 0:m.value)==null?void 0:b.total),1)]}),_:1},8,["to"]),se(h,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:o.value}}},{default:it(()=>{var m,b;return[u[1]||(u[1]=D("span",null,"Artifacts:",-1)),D("span",null,_e((b=(m=he(p).last)==null?void 0:m.value)==null?void 0:b.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",pk,[se(d,{icon:"barcode"})])],8,fk),D("button",{class:"button is-primary is-light is-small",onClick:a},[u[3]||(u[3]=D("span",null,"Search",-1)),D("span",gk,[he(g).isRunning?(Y(),xe(d,{key:0,icon:"spinner",spin:""})):(Y(),xe(d,{key:1,icon:"magnifying-glass"}))])]),se(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:it(()=>[u[4]||(u[4]=D("span",null,"Edit",-1)),D("span",mk,[se(d,{icon:"edit"})])]),_:1},8,["to"]),D("button",{class:"button is-light is-small",onClick:r},[u[5]||(u[5]=D("span",null,"Delete",-1)),D("span",vk,[se(d,{icon:"times"})])])])}}}),yk={class:"box"},bk={class:"block"},wk={class:"table is-fullwidth is-completely-borderless"},_k={key:0},Sk={class:"help"},xk=Ce({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ue(),s=Ue(),o=r=>{i.value=r},f=()=>{i.value=void 0},g=r=>{s.value=r},l=()=>{s.value=void 0},p=()=>{n("delete")};return(r,a)=>{const c=Qe("router-link");return Y(),ie("div",yk,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:f},null,8,["error"])):me("",!0),s.value?(Y(),xe(mo,{key:1,class:"block",message:s.value,disposable:!0,onDispose:l},null,8,["message"])):me("",!0),D("div",bk,[D("p",null,[se($p,{rule:e.rule,onSetError:o,onDelete:p,onSetMessage:g},null,8,["rule"])]),se(c,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:it(()=>[rt(_e(e.rule.id),1)]),_:1},8,["to"])]),D("table",wk,[D("tr",null,[a[0]||(a[0]=D("th",null,"Title",-1)),D("td",null,_e(e.rule.title),1)]),D("tr",null,[a[1]||(a[1]=D("th",null,"Description",-1)),D("td",null,_e(e.rule.description),1)]),e.rule.tags.length>0?(Y(),ie("tr",_k,[a[2]||(a[2]=D("th",null,"Tags",-1)),D("td",null,[se(Br,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):me("",!0)]),a[3]||(a[3]=D("p",{class:"block is-clearfix"},null,-1)),D("p",Sk,"Created at: "+_e(e.rule.createdAt),1)])}}}),Ck={key:0,class:"block"},$k={class:"help"},Ak={key:1,class:"block"},kk=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)},o=()=>{i("refresh")},f=ke(()=>n.rules.results.length>0);return(g,l)=>f.value?(Y(),ie("div",Ck,[(Y(!0),ie(We,null,Ft(e.rules.results,p=>(Y(),xe(xk,{rule:p,key:p.id,onRefresh:o,onDelete:o},null,8,["rule"]))),128)),se(jl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:s},null,8,["currentPage","total","pageSize"]),D("p",$k,"("+_e(e.rules.total)+" results in total, "+_e(e.rules.results.length)+" shown)",1)])):(Y(),ie("div",Ak,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),Mk={class:"block"},Tk={class:"field has-addons"},Ek={class:"control is-expanded"},Lk={class:"control"},Rk={class:"icon is-small"},Ok={class:"control"},Ik={class:"icon is-small"},Nk={key:0,class:"content mt-3"},Dk={key:0,class:"block"},Fk=Ce({__name:"RulesWrapper",setup(e){const t=Ai("page","1"),n=Ai("q",""),i=Ue(!1),s=ip(),o=async()=>{const r={q:n.value,page:parseInt(t.value)};return await s.perform(r)},f=r=>{t.value=r.toString()},g=async()=>{t.value="1",await o()},l=g,p=Ir(i);return ct(async()=>{await o()}),et(t,async()=>{await o()}),et(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(r,a)=>{var h,d;const c=Qe("font-awesome-icon"),u=Qe("router-link");return Y(),ie(We,null,[D("div",Mk,[D("div",Tk,[D("p",Ek,[bl(D("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=m=>lt(n)?n.value=m:null)},null,512),[[Tl,he(n)]])]),D("p",Lk,[D("a",{class:"button is-primary",onClick:g},[D("span",Rk,[se(c,{icon:"search"})]),a[2]||(a[2]=D("span",null,"Search",-1))])]),D("p",Ok,[D("a",{class:"button is-info",onClick:a[1]||(a[1]=m=>he(p)())},[D("span",Ik,[se(c,{icon:"question"})]),a[3]||(a[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",Nk,[a[5]||(a[5]=Al('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),D("ul",null,[D("li",null,[se(u,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:it(()=>a[4]||(a[4]=[rt("title:foo AND created_at >= 2020-01-01")])),_:1})])])])):me("",!0)]),he(s).performCount>0?(Y(),ie("div",Dk,[he(s).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(s).isError?(Y(),xe(mt,{key:1,error:(h=he(s).last)==null?void 0:h.error},null,8,["error"])):me("",!0),(d=he(s).last)!=null&&d.value?(Y(),xe(kk,{key:2,rules:he(s).last.value,onUpdatePage:f,onRefresh:he(l)},null,8,["rules","onRefresh"])):me("",!0)])):me("",!0)],64)}}}),Pk=Ce({__name:"RulesView",setup(e){return Sn("Rules - Mihari"),(t,n)=>(Y(),xe(Fk))}}),Wk={class:"block"},Bk=Ce({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(Y(),ie("div",Wk,[se(he(xp),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),zk={class:"block"},jk={class:"is-size-2 block"},Hk={class:"block is-clearfix"},Uk={class:"block"},Vk=Ce({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,i=Ue(),s=Ue(),o=()=>{n("delete")},f=r=>{i.value=r},g=()=>{i.value=void 0},l=r=>{r.queued?s.value=r:n("refresh")},p=()=>{s.value=void 0};return(r,a)=>(Y(),ie(We,null,[D("div",zk,[D("h2",jk,_e(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"])):me("",!0),s.value?(Y(),xe(mo,{key:1,class:"block",message:s.value,disposable:!0,onDispose:p},null,8,["message"])):me("",!0),D("p",Hk,[se($p,{rule:e.rule,onSetMessage:l,onDelete:o,onSetError:f},null,8,["rule"])]),se(Bk,{yaml:e.rule.yaml},null,8,["yaml"])]),a[1]||(a[1]=D("hr",null,null,-1)),D("div",Uk,[a[0]||(a[0]=D("h2",{class:"is-size-2 block"},"Alerts",-1)),se(fp,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),Gk=Ce({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=rp(),i=Oi(),s=async()=>{await n.perform(t.id)},o=async()=>{await s()},f=()=>{i.push("/")};return ct(async()=>{await s()}),et(t,async()=>{await s()}),(g,l)=>{var p,r;return Y(),ie(We,null,[he(n).isRunning?(Y(),xe(xn,{key:0})):me("",!0),he(n).isError?(Y(),xe(mt,{key:1,error:(p=he(n).last)==null?void 0:p.error},null,8,["error"])):me("",!0),(r=he(n).last)!=null&&r.value?(Y(),xe(Vk,{key:2,rule:he(n).last.value,onRefresh:o,onDelete:f},null,8,["rule"])):me("",!0)],64)}}}),Yk=Ce({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Rule:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(Gk,{id:e.id},null,8,["id"]))}}),Kk=[{path:"/",name:"Alerts",component:fC},{path:"/alerts/:id",name:"Alert",component:xC,props:!0},{path:"/config",name:"Config",component:y2},{path:"/artifacts/",name:"Artifacts",component:i$},{path:"/artifacts/:id",name:"Artifact",component:s2,props:!0},{path:"/rules",name:"Rules",component:Pk},{path:"/rules/new",name:"NewRule",component:hk},{path:"/rules/:id",name:"Rule",component:Yk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:X2,props:!0}],Zk=a1({history:Db(),routes:Kk});Tm.add(Nm,Qm,Km,Om,Xm,Fm,Lm,Hm,jm,Gm,Vm,Im,Lh,zm,Bm,Pm,Zm,Ym,Wm);const Ap=p0(rb);Ap.component("font-awesome-icon",M0);Ap.use(Zk).mount("#app");
|