mihari 8.0.2 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mihari/analyzers/urlscan.rb +9 -9
- data/lib/mihari/analyzers/zoomeye.rb +18 -41
- data/lib/mihari/clients/zoomeye.rb +14 -59
- data/lib/mihari/schemas/analyzer.rb +8 -2
- data/lib/mihari/schemas/rule.rb +1 -1
- data/lib/mihari/structs/zoomeye.rb +75 -0
- data/lib/mihari/types.rb +4 -1
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/public/assets/index-sQr_iTap.js +1594 -0
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +412 -388
- data/lib/mihari.rb +1 -0
- data/mihari.gemspec +28 -28
- metadata +54 -53
- data/lib/mihari/web/public/assets/index-BO6YgRrl.js +0 -1586
@@ -0,0 +1,1594 @@
|
|
1
|
+
var Ap=Object.defineProperty;var kp=(e,t,n)=>t in e?Ap(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fe=(e,t,n)=>kp(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const f of a.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();/*!
|
2
|
+
* Font Awesome Free 6.7.2 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 Mp(e,t,n){return(t=Ep(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gl(Object(n),!0).forEach(function(i){Mp(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Tp(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ep(e){var t=Tp(e,"string");return typeof t=="symbol"?t:t+""}const Yl=()=>{};let Qa={},Ju={},eh=null,th={mark:Yl,measure:Yl};try{typeof window<"u"&&(Qa=window),typeof document<"u"&&(Ju=document),typeof MutationObserver<"u"&&(eh=MutationObserver),typeof performance<"u"&&(th=performance)}catch{}const{userAgent:Kl=""}=Qa.navigator||{},En=Qa,st=Ju,Zl=eh,zr=th;En.document;const bn=!!st.documentElement&&!!st.head&&typeof st.addEventListener=="function"&&typeof st.createElement=="function",nh=~Kl.indexOf("MSIE")||~Kl.indexOf("Trident/");var Rp=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Lp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,ih={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"}},Op={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},rh=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Ps="duotone",Ip="sharp",Np="sharp-duotone",sh=[wt,Ps,Ip,Np],Dp={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"}},Fp={"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"}},Pp=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}]]),Wp={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"}},Bp=["fak","fa-kit","fakd","fa-kit-duotone"],Xl={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},zp=["kit"],jp={kit:{"fa-kit":"fak"}},Hp=["fak","fakd"],Up={kit:{fak:"fa-kit"}},Ql={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},jr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Vp=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Gp=["fak","fa-kit","fakd","fa-kit-duotone"],Yp={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Kp={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"}},Zp={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},ea={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"}},Xp=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ta=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...Vp,...Xp],Qp=["solid","regular","light","thin","duotone","brands"],oh=[1,2,3,4,5,6,7,8,9,10],qp=oh.concat([11,12,13,14,15,16,17,18,19,20]),Jp=[...Object.keys(Zp),...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(oh.map(e=>"".concat(e,"x"))).concat(qp.map(e=>"w-".concat(e))),eg={"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 mn="___FONT_AWESOME___",na=16,ah="fa",lh="svg-inline--fa",qn="data-fa-i2svg",ia="data-fa-pseudo-element",tg="data-fa-pseudo-element-pending",qa="data-prefix",Ja="data-icon",ql="fontawesome-i2svg",ng="async",ig=["HTML","HEAD","STYLE","SCRIPT"],ch=(()=>{try{return!0}catch{return!1}})();function kr(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const uh=le({},ih);uh[wt]=le(le(le(le({},{"fa-duotone":"duotone"}),ih[wt]),Xl.kit),Xl["kit-duotone"]);const rg=kr(uh),ra=le({},Wp);ra[wt]=le(le(le(le({},{duotone:"fad"}),ra[wt]),Ql.kit),Ql["kit-duotone"]);const Jl=kr(ra),sa=le({},ea);sa[wt]=le(le({},sa[wt]),Up.kit);const el=kr(sa),oa=le({},Kp);oa[wt]=le(le({},oa[wt]),jp.kit);kr(oa);const sg=Rp,hh="fa-layers-text",og=Lp,ag=le({},Dp);kr(ag);const lg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],_o=Op,cg=[...zp,...Jp],Yi=En.FontAwesomeConfig||{};function ug(e){var t=st.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function hg(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 r=hg(ug(n));r!=null&&(Yi[i]=r)});const dh={styleDefault:"solid",familyDefault:wt,cssPrefix:ah,replacementClass:lh,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=le(le({},dh),Yi);_i.autoReplaceSvg||(_i.observeMutations=!1);const $e={};Object.keys(dh).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 dg(e){return Ki.push(e),()=>{Ki.splice(Ki.indexOf(e),1)}}const Cn=na,Jt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function fg(e){if(!e||!bn)return;const t=st.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=st.head.childNodes;let i=null;for(let r=n.length-1;r>-1;r--){const a=n[r],f=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(i=a)}return st.head.insertBefore(t,i),e}const pg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ir(){let e=12,t="";for(;e-- >0;)t+=pg[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 tl(e){return e.classList?Li(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function fh(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function gg(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(fh(e[n]),'" '),"").trim()}function Ws(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function nl(e){return e.size!==Jt.size||e.x!==Jt.x||e.y!==Jt.y||e.rotate!==Jt.rotate||e.flipX||e.flipY}function mg(e){let{transform:t,containerWidth:n,iconWidth:i}=e;const r={transform:"translate(".concat(n/2," 256)")},a="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)"),o={transform:"".concat(a," ").concat(f," ").concat(g)},p={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:o,path:p}}function vg(e){let{transform:t,width:n=na,height:i=na,startCentered:r=!1}=e,a="";return r&&nh?a+="translate(".concat(t.x/Cn-n/2,"em, ").concat(t.y/Cn-i/2,"em) "):r?a+="translate(calc(-50% + ".concat(t.x/Cn,"em), calc(-50% + ").concat(t.y/Cn,"em)) "):a+="translate(".concat(t.x/Cn,"em, ").concat(t.y/Cn,"em) "),a+="scale(".concat(t.size/Cn*(t.flipX?-1:1),", ").concat(t.size/Cn*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var yg=`: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 ph(){const e=ah,t=lh,n=$e.cssPrefix,i=$e.replacementClass;let r=yg;if(n!==e||i!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),f=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");r=r.replace(a,".".concat(n,"-")).replace(f,"--".concat(n,"-")).replace(g,".".concat(i))}return r}let ec=!1;function xo(){$e.autoAddCss&&!ec&&(fg(ph()),ec=!0)}var bg={mixout(){return{dom:{css:ph,insertCss:xo}}},hooks(){return{beforeDOMElementCreation(){xo()},beforeI2svg(){xo()}}}};const vn=En||{};vn[mn]||(vn[mn]={});vn[mn].styles||(vn[mn].styles={});vn[mn].hooks||(vn[mn].hooks={});vn[mn].shims||(vn[mn].shims=[]);var en=vn[mn];const gh=[],mh=function(){st.removeEventListener("DOMContentLoaded",mh),fs=1,gh.map(e=>e())};let fs=!1;bn&&(fs=(st.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(st.readyState),fs||st.addEventListener("DOMContentLoaded",mh));function wg(e){bn&&(fs?setTimeout(e,0):gh.push(e))}function Mr(e){const{tag:t,attributes:n={},children:i=[]}=e;return typeof e=="string"?fh(e):"<".concat(t," ").concat(gg(n),">").concat(i.map(Mr).join(""),"</").concat(t,">")}function tc(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Co=function(t,n,i,r){var a=Object.keys(t),f=a.length,g=n,o,p,s;for(i===void 0?(o=1,s=t[a[0]]):(o=0,s=i);o<f;o++)p=a[o],s=g(s,t[p],p,t);return s};function Sg(e){const t=[];let n=0;const i=e.length;for(;n<i;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((r&1023)<<10)+(a&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}function aa(e){const t=Sg(e);return t.length===1?t[0].toString(16):null}function _g(e,t){const n=e.length;let i=e.charCodeAt(t),r;return i>=55296&&i<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function nc(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 la(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=n,r=nc(t);typeof en.hooks.addPack=="function"&&!i?en.hooks.addPack(e,nc(t)):en.styles[e]=le(le({},en.styles[e]||{}),r),e==="fas"&&la("fa",t)}const{styles:rr,shims:xg}=en,vh=Object.keys(el),Cg=vh.reduce((e,t)=>(e[t]=Object.keys(el[t]),e),{});let il=null,yh={},bh={},wh={},Sh={},_h={};function $g(e){return~cg.indexOf(e)}function Ag(e,t){const n=t.split("-"),i=n[0],r=n.slice(1).join("-");return i===e&&r!==""&&!$g(r)?r:null}const xh=()=>{const e=i=>Co(rr,(r,a,f)=>(r[f]=Co(a,i,{}),r),{});yh=e((i,r,a)=>(r[3]&&(i[r[3]]=a),r[2]&&r[2].filter(g=>typeof g=="number").forEach(g=>{i[g.toString(16)]=a}),i)),bh=e((i,r,a)=>(i[a]=a,r[2]&&r[2].filter(g=>typeof g=="string").forEach(g=>{i[g]=a}),i)),_h=e((i,r,a)=>{const f=r[2];return i[a]=a,f.forEach(g=>{i[g]=a}),i});const t="far"in rr||$e.autoFetchSvg,n=Co(xg,(i,r)=>{const a=r[0];let f=r[1];const g=r[2];return f==="far"&&!t&&(f="fas"),typeof a=="string"&&(i.names[a]={prefix:f,iconName:g}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:f,iconName:g}),i},{names:{},unicodes:{}});wh=n.names,Sh=n.unicodes,il=Bs($e.styleDefault,{family:$e.familyDefault})};dg(e=>{il=Bs(e.styleDefault,{family:$e.familyDefault})});xh();function rl(e,t){return(yh[e]||{})[t]}function kg(e,t){return(bh[e]||{})[t]}function Vn(e,t){return(_h[e]||{})[t]}function Ch(e){return wh[e]||{prefix:null,iconName:null}}function Mg(e){const t=Sh[e],n=rl("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Rn(){return il}const $h=()=>({prefix:null,iconName:null,rest:[]});function Tg(e){let t=wt;const n=vh.reduce((i,r)=>(i[r]="".concat($e.cssPrefix,"-").concat(r),i),{});return sh.forEach(i=>{(e.includes(n[i])||e.some(r=>Cg[i].includes(r)))&&(t=i)}),t}function Bs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,i=rg[n][e];if(n===Ps&&!e)return"fad";const r=Jl[n][e]||Jl[n][i],a=e in en.styles?e:null;return r||a||null}function Eg(e){let t=[],n=null;return e.forEach(i=>{const r=Ag($e.cssPrefix,i);r?n=r:i&&t.push(i)}),{iconName:n,rest:t}}function ic(e){return e.sort().filter((t,n,i)=>i.indexOf(t)===n)}function zs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let i=null;const r=ta.concat(Gp),a=ic(e.filter(l=>r.includes(l))),f=ic(e.filter(l=>!ta.includes(l))),g=a.filter(l=>(i=l,!rh.includes(l))),[o=null]=g,p=Tg(a),s=le(le({},Eg(f)),{},{prefix:Bs(o,{family:p})});return le(le(le({},s),Ig({values:e,family:p,styles:rr,config:$e,canonical:s,givenPrefix:i})),Rg(n,i,s))}function Rg(e,t,n){let{prefix:i,iconName:r}=n;if(e||!i||!r)return{prefix:i,iconName:r};const a=t==="fa"?Ch(r):{},f=Vn(i,r);return r=a.iconName||f||r,i=a.prefix||i,i==="far"&&!rr.far&&rr.fas&&!$e.autoFetchSvg&&(i="fas"),{prefix:i,iconName:r}}const Lg=sh.filter(e=>e!==wt||e!==Ps),Og=Object.keys(ea).filter(e=>e!==wt).map(e=>Object.keys(ea[e])).flat();function Ig(e){const{values:t,family:n,canonical:i,givenPrefix:r="",styles:a={},config:f={}}=e,g=n===Ps,o=t.includes("fa-duotone")||t.includes("fad"),p=f.familyDefault==="duotone",s=i.prefix==="fad"||i.prefix==="fa-duotone";if(!g&&(o||p||s)&&(i.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(i.prefix="fab"),!i.prefix&&Lg.includes(n)&&(Object.keys(a).find(u=>Og.includes(u))||f.autoFetchSvg)){const u=Pp.get(n).defaultShortPrefixId;i.prefix=u,i.iconName=Vn(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||r==="fa")&&(i.prefix=Rn()||"fas"),i}class Ng{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(a=>{this.definitions[a]=le(le({},this.definitions[a]||{}),r[a]),la(a,r[a]);const f=el[wt][a];f&&la(f,r[a]),xh()})}reset(){this.definitions={}}_pullDefinitions(t,n){const i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(r=>{const{prefix:a,iconName:f,icon:g}=i[r],o=g[2];t[a]||(t[a]={}),o.length>0&&o.forEach(p=>{typeof p=="string"&&(t[a][p]=g)}),t[a][f]=g}),t}}let rc=[],fi={};const mi={},Dg=Object.keys(mi);function Fg(e,t){let{mixoutsTo:n}=t;return rc=e,fi={},Object.keys(mi).forEach(i=>{Dg.indexOf(i)===-1&&delete mi[i]}),rc.forEach(i=>{const r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(a=>{typeof r[a]=="function"&&(n[a]=r[a]),typeof r[a]=="object"&&Object.keys(r[a]).forEach(f=>{n[a]||(n[a]={}),n[a][f]=r[a][f]})}),i.hooks){const a=i.hooks();Object.keys(a).forEach(f=>{fi[f]||(fi[f]=[]),fi[f].push(a[f])})}i.provides&&i.provides(mi)}),n}function ca(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return(fi[e]||[]).forEach(f=>{t=f.apply(null,[t,...i])}),t}function Jn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(fi[e]||[]).forEach(a=>{a.apply(null,n)})}function Ln(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return mi[e]?mi[e].apply(null,t):void 0}function ua(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Rn();if(t)return t=Vn(n,t)||t,tc(Ah.definitions,n,t)||tc(en.styles,n,t)}const Ah=new Ng,Pg=()=>{$e.autoReplaceSvg=!1,$e.observeMutations=!1,Jn("noAuto")},Wg={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return bn?(Jn("beforeI2svg",e),Ln("pseudoElements2svg",e),Ln("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,wg(()=>{zg({autoReplaceSvgRoot:t}),Jn("watch",e)})}},Bg={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=Bs(e[0]);return{prefix:n,iconName:Vn(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat($e.cssPrefix,"-"))>-1||e.match(sg))){const t=zs(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Rn(),iconName:Vn(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Rn();return{prefix:t,iconName:Vn(t,e)||e}}}},Pt={noAuto:Pg,config:$e,dom:Wg,parse:Bg,library:Ah,findIconDefinition:ua,toHtml:Mr},zg=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)&&bn&&$e.autoReplaceSvg&&Pt.dom.i2svg({node:t})};function js(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Mr(n))}}),Object.defineProperty(e,"node",{get:function(){if(!bn)return;const n=st.createElement("div");return n.innerHTML=e.html,n.children}}),e}function jg(e){let{children:t,main:n,mask:i,attributes:r,styles:a,transform:f}=e;if(nl(f)&&n.found&&!i.found){const{width:g,height:o}=n,p={x:g/o/2,y:.5};r.style=Ws(le(le({},a),{},{"transform-origin":"".concat(p.x+f.x/16,"em ").concat(p.y+f.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}function Hg(e){let{prefix:t,iconName:n,children:i,attributes:r,symbol:a}=e;const f=a===!0?"".concat(t,"-").concat($e.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:le(le({},r),{},{id:f}),children:i}]}]}function sl(e){const{icons:{main:t,mask:n},prefix:i,iconName:r,transform:a,symbol:f,title:g,maskId:o,titleId:p,extra:s,watchable:l=!1}=e,{width:u,height:c}=n.found?n:t,h=Hp.includes(i),d=[$e.replacementClass,r?"".concat($e.cssPrefix,"-").concat(r):""].filter(C=>s.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(s.classes).join(" ");let m={children:[],attributes:le(le({},s.attributes),{},{"data-prefix":i,"data-icon":r,class:d,role:s.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(u," ").concat(c)})};const b=h&&!~s.classes.indexOf("fa-fw")?{width:"".concat(u/c*16*.0625,"em")}:{};l&&(m.attributes[qn]=""),g&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(p||ir())},children:[g]}),delete m.attributes.title);const y=le(le({},m),{},{prefix:i,iconName:r,main:t,mask:n,maskId:o,transform:a,symbol:f,styles:le(le({},b),s.styles)}),{children:S,attributes:_}=n.found&&t.found?Ln("generateAbstractMask",y)||{children:[],attributes:{}}:Ln("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=S,y.attributes=_,f?Hg(y):jg(y)}function sc(e){const{content:t,width:n,height:i,transform:r,title:a,extra:f,watchable:g=!1}=e,o=le(le(le({},f.attributes),a?{title:a}:{}),{},{class:f.classes.join(" ")});g&&(o[qn]="");const p=le({},f.styles);nl(r)&&(p.transform=vg({transform:r,startCentered:!0,width:n,height:i}),p["-webkit-transform"]=p.transform);const s=Ws(p);s.length>0&&(o.style=s);const l=[];return l.push({tag:"span",attributes:o,children:[t]}),a&&l.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),l}function Ug(e){const{content:t,title:n,extra:i}=e,r=le(le(le({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),a=Ws(i.styles);a.length>0&&(r.style=a);const f=[];return f.push({tag:"span",attributes:r,children:[t]}),n&&f.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),f}const{styles:$o}=en;function ha(e){const t=e[0],n=e[1],[i]=e.slice(4);let r=null;return Array.isArray(i)?r={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(_o.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(_o.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(_o.PRIMARY),fill:"currentColor",d:i[1]}}]}:r={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:r}}const Vg={found:!1,width:512,height:512};function Gg(e,t){!ch&&!$e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function da(e,t){let n=t;return t==="fa"&&$e.styleDefault!==null&&(t=Rn()),new Promise((i,r)=>{if(n==="fa"){const a=Ch(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&$o[t]&&$o[t][e]){const a=$o[t][e];return i(ha(a))}Gg(e,t),i(le(le({},Vg),{},{icon:$e.showMissingIcons&&e?Ln("missingIconAbstract")||{}:{}}))})}const oc=()=>{},fa=$e.measurePerformance&&zr&&zr.mark&&zr.measure?zr:{mark:oc,measure:oc},Hi='FA "6.7.2"',Yg=e=>(fa.mark("".concat(Hi," ").concat(e," begins")),()=>kh(e)),kh=e=>{fa.mark("".concat(Hi," ").concat(e," ends")),fa.measure("".concat(Hi," ").concat(e),"".concat(Hi," ").concat(e," begins"),"".concat(Hi," ").concat(e," ends"))};var ol={begin:Yg,end:kh};const Xr=()=>{};function ac(e){return typeof(e.getAttribute?e.getAttribute(qn):null)=="string"}function Kg(e){const t=e.getAttribute?e.getAttribute(qa):null,n=e.getAttribute?e.getAttribute(Ja):null;return t&&n}function Zg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains($e.replacementClass)}function Xg(){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 qg(e){return st.createElement(e)}function Mh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?Qg:qg}=t;if(typeof e=="string")return st.createTextNode(e);const i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){i.appendChild(Mh(a,{ceFn:n}))}),i}function Jg(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(Mh(n),t)}),t.getAttribute(qn)===null&&$e.keepOriginalSource){let n=st.createComment(Jg(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~tl(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 a=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=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const r=n.map(a=>Mr(a)).join(`
|
559
|
+
`);t.setAttribute(qn,""),t.innerHTML=r}};function lc(e){e()}function Th(e,t){const n=typeof t=="function"?t:Xr;if(e.length===0)n();else{let i=lc;$e.mutateApproach===ng&&(i=En.requestAnimationFrame||lc),i(()=>{const r=Xg(),a=ol.begin("mutate");e.map(r),a(),n()})}}let al=!1;function Eh(){al=!0}function pa(){al=!1}let ps=null;function cc(e){if(!Zl||!$e.observeMutations)return;const{treeCallback:t=Xr,nodeCallback:n=Xr,pseudoElementsCallback:i=Xr,observeMutationsRoot:r=st}=e;ps=new Zl(a=>{if(al)return;const f=Rn();Li(a).forEach(g=>{if(g.type==="childList"&&g.addedNodes.length>0&&!ac(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"&&ac(g.target)&&~lg.indexOf(g.attributeName))if(g.attributeName==="class"&&Kg(g.target)){const{prefix:o,iconName:p}=zs(tl(g.target));g.target.setAttribute(qa,o||f),p&&g.target.setAttribute(Ja,p)}else Zg(g.target)&&n(g.target)})}),bn&&ps.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function em(){ps&&ps.disconnect()}function tm(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((i,r)=>{const a=r.split(":"),f=a[0],g=a.slice(1);return f&&g.length>0&&(i[f]=g.join(":").trim()),i},{})),n}function nm(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let r=zs(tl(e));return r.prefix||(r.prefix=Rn()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=kg(r.prefix,e.innerText)||rl(r.prefix,aa(e.innerText))),!r.iconName&&$e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function im(e){const t=Li(e.attributes).reduce((r,a)=>(r.name!=="class"&&r.name!=="style"&&(r[a.name]=a.value),r),{}),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 rm(){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 uc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:i,rest:r}=nm(e),a=im(e),f=ca("parseNodeAttributes",{},e);let g=t.styleParser?tm(e):[];return le({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:r,styles:g,attributes:a}},f)}const{styles:sm}=en;function Rh(e){const t=$e.autoReplaceSvg==="nest"?uc(e,{styleParser:!1}):uc(e);return~t.extra.classes.indexOf(hh)?Ln("generateLayersText",e,t):Ln("generateSvgReplacementMutation",e,t)}function om(){return[...Bp,...ta]}function hc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!bn)return Promise.resolve();const n=st.documentElement.classList,i=s=>n.add("".concat(ql,"-").concat(s)),r=s=>n.remove("".concat(ql,"-").concat(s)),a=$e.autoFetchSvg?om():rh.concat(Object.keys(sm));a.includes("fa")||a.push("fa");const f=[".".concat(hh,":not([").concat(qn,"])")].concat(a.map(s=>".".concat(s,":not([").concat(qn,"])"))).join(", ");if(f.length===0)return Promise.resolve();let g=[];try{g=Li(e.querySelectorAll(f))}catch{}if(g.length>0)i("pending"),r("complete");else return Promise.resolve();const o=ol.begin("onTree"),p=g.reduce((s,l)=>{try{const u=Rh(l);u&&s.push(u)}catch(u){ch||u.name==="MissingIcon"&&console.error(u)}return s},[]);return new Promise((s,l)=>{Promise.all(p).then(u=>{Th(u,()=>{i("active"),i("complete"),r("pending"),typeof t=="function"&&t(),o(),s()})}).catch(u=>{o(),l(u)})})}function am(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Rh(e).then(n=>{n&&Th([n],t)})}function lm(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(t||{}).icon?t:ua(t||{});let{mask:r}=n;return r&&(r=(r||{}).icon?r:ua(r||{})),e(i,le(le({},n),{},{mask:r}))}}const cm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Jt,symbol:i=!1,mask:r=null,maskId:a=null,title:f=null,titleId:g=null,classes:o=[],attributes:p={},styles:s={}}=t;if(!e)return;const{prefix:l,iconName:u,icon:c}=e;return js(le({type:"icon"},e),()=>(Jn("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")),sl({icons:{main:ha(c),mask:r?ha(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:l,iconName:u,transform:le(le({},Jt),n),symbol:i,title:f,maskId:a,titleId:g,extra:{attributes:p,styles:s,classes:o}})))};var um={mixout(){return{icon:lm(cm)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=hc,e.nodeCallback=am,e}}},provides(e){e.i2svg=function(t){const{node:n=st,callback:i=()=>{}}=t;return hc(n,i)},e.generateSvgReplacementMutation=function(t,n){const{iconName:i,title:r,titleId:a,prefix:f,transform:g,symbol:o,mask:p,maskId:s,extra:l}=n;return new Promise((u,c)=>{Promise.all([da(i,f),p.iconName?da(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[d,m]=h;u([t,sl({icons:{main:d,mask:m},prefix:f,iconName:i,transform:g,symbol:o,maskId:s,title:r,titleId:a,extra:l,watchable:!0})])}).catch(c)})},e.generateAbstractIcon=function(t){let{children:n,attributes:i,main:r,transform:a,styles:f}=t;const g=Ws(f);g.length>0&&(i.style=g);let o;return nl(a)&&(o=Ln("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),n.push(o||r.icon),{children:n,attributes:i}}}},hm={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return js({type:"layer"},()=>{Jn("beforeDOMElementCreation",{assembler:e,params:t});let i=[];return e(r=>{Array.isArray(r)?r.map(a=>{i=i.concat(a.abstract)}):i=i.concat(r.abstract)}),[{tag:"span",attributes:{class:["".concat($e.cssPrefix,"-layers"),...n].join(" ")},children:i}]})}}}},dm={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:i=[],attributes:r={},styles:a={}}=t;return js({type:"counter",content:e},()=>(Jn("beforeDOMElementCreation",{content:e,params:t}),Ug({content:e.toString(),title:n,extra:{attributes:r,styles:a,classes:["".concat($e.cssPrefix,"-layers-counter"),...i]}})))}}}},fm={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Jt,title:i=null,classes:r=[],attributes:a={},styles:f={}}=t;return js({type:"text",content:e},()=>(Jn("beforeDOMElementCreation",{content:e,params:t}),sc({content:e,transform:le(le({},Jt),n),title:i,extra:{attributes:a,styles:f,classes:["".concat($e.cssPrefix,"-layers-text"),...r]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:i,transform:r,extra:a}=n;let f=null,g=null;if(nh){const o=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();f=p.width/o,g=p.height/o}return $e.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,sc({content:t.innerHTML,width:f,height:g,transform:r,title:i,extra:a,watchable:!0})])}}};const pm=new RegExp('"',"ug"),dc=[1105920,1112319],fc=le(le(le(le({},{FontAwesome:{normal:"fas",400:"fas"}}),Fp),eg),Yp),ga=Object.keys(fc).reduce((e,t)=>(e[t.toLowerCase()]=fc[t],e),{}),gm=Object.keys(ga).reduce((e,t)=>{const n=ga[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function mm(e){const t=e.replace(pm,""),n=_g(t,0),i=n>=dc[0]&&n<=dc[1],r=t.length===2?t[0]===t[1]:!1;return{value:aa(r?t[0]:t),isSecondary:i||r}}function vm(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),r=isNaN(i)?"normal":i;return(ga[n]||{})[r]||gm[n]}function pc(e,t){const n="".concat(tg).concat(t.replace(":","-"));return new Promise((i,r)=>{if(e.getAttribute(n)!==null)return i();const f=Li(e.children).filter(u=>u.getAttribute(ia)===t)[0],g=En.getComputedStyle(e,t),o=g.getPropertyValue("font-family"),p=o.match(og),s=g.getPropertyValue("font-weight"),l=g.getPropertyValue("content");if(f&&!p)return e.removeChild(f),i();if(p&&l!=="none"&&l!==""){const u=g.getPropertyValue("content");let c=vm(o,s);const{value:h,isSecondary:d}=mm(u),m=p[0].startsWith("FontAwesome");let b=rl(c,h),y=b;if(m){const S=Mg(h);S.iconName&&S.prefix&&(b=S.iconName,c=S.prefix)}if(b&&!d&&(!f||f.getAttribute(qa)!==c||f.getAttribute(Ja)!==y)){e.setAttribute(n,y),f&&e.removeChild(f);const S=rm(),{extra:_}=S;_.attributes[ia]=t,da(b,c).then(C=>{const w=sl(le(le({},S),{},{icons:{main:C,mask:$h()},prefix:c,iconName:y,extra:_,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(R=>Mr(R)).join(`
|
560
|
+
`),e.removeAttribute(n),i()}).catch(r)}else i()}else i()})}function ym(e){return Promise.all([pc(e,"::before"),pc(e,"::after")])}function bm(e){return e.parentNode!==document.head&&!~ig.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(ia)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function gc(e){if(bn)return new Promise((t,n)=>{const i=Li(e.querySelectorAll("*")).filter(bm).map(ym),r=ol.begin("searchPseudoElements");Eh(),Promise.all(i).then(()=>{r(),pa(),t()}).catch(()=>{r(),pa(),n()})})}var wm={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=gc,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=st}=t;$e.searchPseudoElements&&gc(n)}}};let mc=!1;var Sm={mixout(){return{dom:{unwatch(){Eh(),mc=!0}}}},hooks(){return{bootstrap(){cc(ca("mutationObserverCallbacks",{}))},noAuto(){em()},watch(e){const{observeMutationsRoot:t}=e;mc?pa():cc(ca("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const vc=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,i)=>{const r=i.toLowerCase().split("-"),a=r[0];let f=r.slice(1).join("-");if(a&&f==="h")return n.flipX=!0,n;if(a&&f==="v")return n.flipY=!0,n;if(f=parseFloat(f),isNaN(f))return n;switch(a){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 _m={mixout(){return{parse:{transform:e=>vc(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=vc(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:i,containerWidth:r,iconWidth:a}=t;const f={transform:"translate(".concat(r/2," 256)")},g="translate(".concat(i.x*32,", ").concat(i.y*32,") "),o="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),s={transform:"".concat(g," ").concat(o," ").concat(p)},l={transform:"translate(".concat(a/2*-1," -256)")},u={outer:f,inner:s,path:l};return{tag:"g",attributes:le({},u.outer),children:[{tag:"g",attributes:le({},u.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:le(le({},n.icon.attributes),u.path)}]}]}}}};const Ao={x:0,y:0,width:"100%",height:"100%"};function yc(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 xm(e){return e.tag==="g"?e.children:[e]}var Cm={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),i=n?zs(n.split(" ").map(r=>r.trim())):$h();return i.prefix||(i.prefix=Rn()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:i,main:r,mask:a,maskId:f,transform:g}=t;const{width:o,icon:p}=r,{width:s,icon:l}=a,u=mg({transform:g,containerWidth:s,iconWidth:o}),c={tag:"rect",attributes:le(le({},Ao),{},{fill:"white"})},h=p.children?{children:p.children.map(yc)}:{},d={tag:"g",attributes:le({},u.inner),children:[yc(le({tag:p.tag,attributes:le(le({},p.attributes),u.path)},h))]},m={tag:"g",attributes:le({},u.outer),children:[d]},b="mask-".concat(f||ir()),y="clip-".concat(f||ir()),S={tag:"mask",attributes:le(le({},Ao),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[c,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:xm(l)},S]};return n.push(_,{tag:"rect",attributes:le({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},Ao)}),{children:n,attributes:i}}}},$m={provides(e){let t=!1;En.matchMedia&&(t=En.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],i={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:le(le({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const a=le(le({},r),{},{attributeName:"opacity"}),f={tag:"circle",attributes:le(le({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||f.children.push({tag:"animate",attributes:le(le({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:le(le({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(f),n.push({tag:"path",attributes:le(le({},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:le(le({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:le(le({},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:le(le({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Am={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),i=n===null?!1:n===""?!0:n;return e.symbol=i,e}}}},km=[bg,um,hm,dm,fm,wm,Sm,_m,Cm,$m,Am];Fg(km,{mixoutsTo:Pt});Pt.noAuto;Pt.config;const Mm=Pt.library;Pt.dom;const ma=Pt.parse;Pt.findIconDefinition;Pt.toHtml;const Tm=Pt.icon;Pt.layer;Pt.text;Pt.counter;/*!
|
561
|
+
* Font Awesome Free 6.7.2 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 Em={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"]},Lm=Rm,Om={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"]},Im={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"]},Nm={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"]},Dm=Nm,Fm={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"]},Pm={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"]},Wm={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"]},Bm={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"]},zm=Lh,jm={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"]},Hm={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"]},Um=Hm,Vm={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"]},Gm={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"]},Ym={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"]},Km={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"]},Zm={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"]},Xm={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 ll(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Je={},vi=[],tn=()=>{},Qm=()=>!1,Hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cl=e=>e.startsWith("onUpdate:"),St=Object.assign,ul=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qm=Object.prototype.hasOwnProperty,Ye=(e,t)=>qm.call(e,t),Ie=Array.isArray,yi=e=>Us(e)==="[object Map]",Oh=e=>Us(e)==="[object Set]",Oe=e=>typeof e=="function",ut=e=>typeof e=="string",Fn=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Ih=e=>(ot(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),Nh=Object.prototype.toString,Us=e=>Nh.call(e),Jm=e=>Us(e).slice(8,-1),Dh=e=>Us(e)==="[object Object]",hl=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zi=ll(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ev=/-(\w)/g,jt=Vs(e=>e.replace(ev,(t,n)=>n?n.toUpperCase():"")),tv=/\B([A-Z])/g,ai=Vs(e=>e.replace(tv,"-$1").toLowerCase()),Tr=Vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Vs(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)},Fh=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},va=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let bc;const Gs=()=>bc||(bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function dl(e){if(Ie(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=ut(i)?sv(i):dl(i);if(r)for(const a in r)t[a]=r[a]}return t}else if(ut(e)||ot(e))return e}const nv=/;(?![^(]*\))/g,iv=/:([^]+)/,rv=/\/\*[^]*?\*\//g;function sv(e){const t={};return e.replace(rv,"").split(nv).forEach(n=>{if(n){const i=n.split(iv);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Er(e){let t="";if(ut(e))t=e;else if(Ie(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 ov="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",av=ll(ov);function Ph(e){return!!e||e===""}const Wh=e=>!!(e&&e.__v_isRef===!0),we=e=>ut(e)?e:e==null?"":Ie(e)||ot(e)&&(e.toString===Nh||!Oe(e.toString))?Wh(e)?we(e.value):JSON.stringify(e,Bh,2):String(e),Bh=(e,t)=>Wh(t)?Bh(e,t.value):yi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],a)=>(n[Mo(i,a)+" =>"]=r,n),{})}:Oh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mo(n))}:Fn(t)?Mo(t):ot(t)&&!Ie(t)&&!Dh(t)?String(t):t,Mo=(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 zh{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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function lv(e){return new zh(e)}function jh(){return At}function cv(e,t=!1){At&&At.cleanups.push(e)}let et;const To=new WeakSet;class Hh{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,To.has(this)&&(To.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Vh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wc(this),Gh(this);const t=et,n=Ut;et=this,Ut=!0;try{return this.fn()}finally{Yh(this),et=t,Ut=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)gl(t);this.deps=this.depsTail=void 0,wc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?To.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ya(this)&&this.run()}get dirty(){return ya(this)}}let Uh=0,Xi,Qi;function Vh(e,t=!1){if(e.flags|=8,t){e.next=Qi,Qi=e;return}e.next=Xi,Xi=e}function fl(){Uh++}function pl(){if(--Uh>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 Gh(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yh(e){let t,n=e.depsTail,i=n;for(;i;){const r=i.prevDep;i.version===-1?(i===n&&(n=r),gl(i),uv(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=t,e.depsTail=n}function ya(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Kh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Kh(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&&!ya(e)){e.flags&=-3;return}const n=et,i=Ut;et=e,Ut=!0;try{Gh(e);const r=e.fn(e._value);(t.version===0||Tn(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{et=n,Ut=i,Yh(e),e.flags&=-3}}function gl(e,t=!1){const{dep:n,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)gl(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function uv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ut=!0;const Zh=[];function Pn(){Zh.push(Ut),Ut=!1}function Wn(){const e=Zh.pop();Ut=e===void 0?!0:e}function wc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=et;et=void 0;try{t()}finally{et=n}}}let sr=0,hv=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Ys{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!et||!Ut||et===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==et)n=this.activeLink=new hv(et,this),et.deps?(n.prevDep=et.depsTail,et.depsTail.nextDep=n,et.depsTail=n):et.deps=et.depsTail=n,Xh(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=et.depsTail,n.nextDep=void 0,et.depsTail.nextDep=n,et.depsTail=n,et.deps===n&&(et.deps=i)}return n}trigger(t){this.version++,sr++,this.notify(t)}notify(t){fl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{pl()}}}function Xh(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)Xh(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const gs=new WeakMap,Yn=Symbol(""),ba=Symbol(""),or=Symbol("");function mt(e,t,n){if(Ut&&et){let i=gs.get(e);i||gs.set(e,i=new Map);let r=i.get(n);r||(i.set(n,r=new Ys),r.map=i,r.key=n),r.track()}}function dn(e,t,n,i,r,a){const f=gs.get(e);if(!f){sr++;return}const g=o=>{o&&o.trigger()};if(fl(),t==="clear")f.forEach(g);else{const o=Ie(e),p=o&&hl(n);if(o&&n==="length"){const s=Number(i);f.forEach((l,u)=>{(u==="length"||u===or||!Fn(u)&&u>=s)&&g(l)})}else switch((n!==void 0||f.has(void 0))&&g(f.get(n)),p&&g(f.get(or)),t){case"add":o?p&&g(f.get("length")):(g(f.get(Yn)),yi(e)&&g(f.get(ba)));break;case"delete":o||(g(f.get(Yn)),yi(e)&&g(f.get(ba)));break;case"set":yi(e)&&g(f.get(Yn));break}}pl()}function dv(e,t){const n=gs.get(e);return n&&n.get(t)}function li(e){const t=Ve(e);return t===e?t:(mt(t,"iterate",or),Bt(e)?t:t.map(vt))}function Ks(e){return mt(e=Ve(e),"iterate",or),e}const fv={__proto__:null,[Symbol.iterator](){return Eo(this,Symbol.iterator,vt)},concat(...e){return li(this).concat(...e.map(t=>Ie(t)?li(t):t))},entries(){return Eo(this,"entries",e=>(e[1]=vt(e[1]),e))},every(e,t){return an(this,"every",e,t,void 0,arguments)},filter(e,t){return an(this,"filter",e,t,n=>n.map(vt),arguments)},find(e,t){return an(this,"find",e,t,vt,arguments)},findIndex(e,t){return an(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return an(this,"findLast",e,t,vt,arguments)},findLastIndex(e,t){return an(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return an(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ro(this,"includes",e)},indexOf(...e){return Ro(this,"indexOf",e)},join(e){return li(this).join(e)},lastIndexOf(...e){return Ro(this,"lastIndexOf",e)},map(e,t){return an(this,"map",e,t,void 0,arguments)},pop(){return Pi(this,"pop")},push(...e){return Pi(this,"push",e)},reduce(e,...t){return Sc(this,"reduce",e,t)},reduceRight(e,...t){return Sc(this,"reduceRight",e,t)},shift(){return Pi(this,"shift")},some(e,t){return an(this,"some",e,t,void 0,arguments)},splice(...e){return Pi(this,"splice",e)},toReversed(){return li(this).toReversed()},toSorted(e){return li(this).toSorted(e)},toSpliced(...e){return li(this).toSpliced(...e)},unshift(...e){return Pi(this,"unshift",e)},values(){return Eo(this,"values",vt)}};function Eo(e,t,n){const i=Ks(e),r=i[t]();return i!==e&&!Bt(e)&&(r._next=r.next,r.next=()=>{const a=r._next();return a.value&&(a.value=n(a.value)),a}),r}const pv=Array.prototype;function an(e,t,n,i,r,a){const f=Ks(e),g=f!==e&&!Bt(e),o=f[t];if(o!==pv[t]){const l=o.apply(e,a);return g?vt(l):l}let p=n;f!==e&&(g?p=function(l,u){return n.call(this,vt(l),u,e)}:n.length>2&&(p=function(l,u){return n.call(this,l,u,e)}));const s=o.call(f,p,i);return g&&r?r(s):s}function Sc(e,t,n,i){const r=Ks(e);let a=n;return r!==e&&(Bt(e)?n.length>3&&(a=function(f,g,o){return n.call(this,f,g,o,e)}):a=function(f,g,o){return n.call(this,f,vt(g),o,e)}),r[t](a,...i)}function Ro(e,t,n){const i=Ve(e);mt(i,"iterate",or);const r=i[t](...n);return(r===-1||r===!1)&&yl(n[0])?(n[0]=Ve(n[0]),i[t](...n)):r}function Pi(e,t,n=[]){Pn(),fl();const i=Ve(e)[t].apply(e,n);return pl(),Wn(),i}const gv=ll("__proto__,__v_isRef,__isVue"),Qh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fn));function mv(e){Fn(e)||(e=String(e));const t=Ve(this);return mt(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 r=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return a;if(n==="__v_raw")return i===(r?a?Av:nd:a?td:ed).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const f=Ie(t);if(!r){let o;if(f&&(o=fv[n]))return o;if(n==="hasOwnProperty")return mv}const g=Reflect.get(t,n,lt(t)?t:i);return(Fn(n)?Qh.has(n):gv(n))||(r||mt(t,"get",n),a)?g:lt(g)?f&&hl(n)?g:g.value:ot(g)?r?Zs(g):Oi(g):g}}class Jh extends qh{constructor(t=!1){super(!1,t)}set(t,n,i,r){let a=t[n];if(!this._isShallow){const o=ei(a);if(!Bt(i)&&!ei(i)&&(a=Ve(a),i=Ve(i)),!Ie(t)&<(a)&&!lt(i))return o?!1:(a.value=i,!0)}const f=Ie(t)&&hl(n)?Number(n)<t.length:Ye(t,n),g=Reflect.set(t,n,i,lt(t)?t:r);return t===Ve(r)&&(f?Tn(i,a)&&dn(t,"set",n,i):dn(t,"add",n,i)),g}deleteProperty(t,n){const i=Ye(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&i&&dn(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!Fn(n)||!Qh.has(n))&&mt(t,"has",n),i}ownKeys(t){return mt(t,"iterate",Ie(t)?"length":Yn),Reflect.ownKeys(t)}}class vv extends qh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const yv=new Jh,bv=new vv,wv=new Jh(!0);const wa=e=>e,Hr=e=>Reflect.getPrototypeOf(e);function Sv(e,t,n){return function(...i){const r=this.__v_raw,a=Ve(r),f=yi(a),g=e==="entries"||e===Symbol.iterator&&f,o=e==="keys"&&f,p=r[e](...i),s=n?wa:t?Sa:vt;return!t&&mt(a,"iterate",o?ba:Yn),{next(){const{value:l,done:u}=p.next();return u?{value:l,done:u}:{value:g?[s(l[0]),s(l[1])]:s(l),done:u}},[Symbol.iterator](){return this}}}}function Ur(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _v(e,t){const n={get(r){const a=this.__v_raw,f=Ve(a),g=Ve(r);e||(Tn(r,g)&&mt(f,"get",r),mt(f,"get",g));const{has:o}=Hr(f),p=t?wa:e?Sa:vt;if(o.call(f,r))return p(a.get(r));if(o.call(f,g))return p(a.get(g));a!==f&&a.get(r)},get size(){const r=this.__v_raw;return!e&&mt(Ve(r),"iterate",Yn),Reflect.get(r,"size",r)},has(r){const a=this.__v_raw,f=Ve(a),g=Ve(r);return e||(Tn(r,g)&&mt(f,"has",r),mt(f,"has",g)),r===g?a.has(r):a.has(r)||a.has(g)},forEach(r,a){const f=this,g=f.__v_raw,o=Ve(g),p=t?wa:e?Sa:vt;return!e&&mt(o,"iterate",Yn),g.forEach((s,l)=>r.call(a,p(s),p(l),f))}};return St(n,e?{add:Ur("add"),set:Ur("set"),delete:Ur("delete"),clear:Ur("clear")}:{add(r){!t&&!Bt(r)&&!ei(r)&&(r=Ve(r));const a=Ve(this);return Hr(a).has.call(a,r)||(a.add(r),dn(a,"add",r,r)),this},set(r,a){!t&&!Bt(a)&&!ei(a)&&(a=Ve(a));const f=Ve(this),{has:g,get:o}=Hr(f);let p=g.call(f,r);p||(r=Ve(r),p=g.call(f,r));const s=o.call(f,r);return f.set(r,a),p?Tn(a,s)&&dn(f,"set",r,a):dn(f,"add",r,a),this},delete(r){const a=Ve(this),{has:f,get:g}=Hr(a);let o=f.call(a,r);o||(r=Ve(r),o=f.call(a,r)),g&&g.call(a,r);const p=a.delete(r);return o&&dn(a,"delete",r,void 0),p},clear(){const r=Ve(this),a=r.size!==0,f=r.clear();return a&&dn(r,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Sv(r,e,t)}),n}function ml(e,t){const n=_v(e,t);return(i,r,a)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(Ye(n,r)&&r in i?n:i,r,a)}const xv={get:ml(!1,!1)},Cv={get:ml(!1,!0)},$v={get:ml(!0,!1)};const ed=new WeakMap,td=new WeakMap,nd=new WeakMap,Av=new WeakMap;function kv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mv(e){return e.__v_skip||!Object.isExtensible(e)?0:kv(Jm(e))}function Oi(e){return ei(e)?e:vl(e,!1,yv,xv,ed)}function id(e){return vl(e,!1,wv,Cv,td)}function Zs(e){return vl(e,!0,bv,$v,nd)}function vl(e,t,n,i,r){if(!ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const f=Mv(e);if(f===0)return e;const g=new Proxy(e,f===2?i:n);return r.set(e,g),g}function bi(e){return ei(e)?bi(e.__v_raw):!!(e&&e.__v_isReactive)}function ei(e){return!!(e&&e.__v_isReadonly)}function Bt(e){return!!(e&&e.__v_isShallow)}function yl(e){return e?!!e.__v_raw:!1}function Ve(e){const t=e&&e.__v_raw;return t?Ve(t):e}function rd(e){return!Ye(e,"__v_skip")&&Object.isExtensible(e)&&Fh(e,"__v_skip",!0),e}const vt=e=>ot(e)?Oi(e):e,Sa=e=>ot(e)?Zs(e):e;function lt(e){return e?e.__v_isRef===!0:!1}function Ke(e){return sd(e,!1)}function Kn(e){return sd(e,!0)}function sd(e,t){return lt(e)?e:new Tv(e,t)}class Tv{constructor(t,n){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ve(t),this._value=n?t:vt(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)||ei(t);t=i?t:Ve(t),Tn(t,n)&&(this._rawValue=t,this._value=i?t:vt(t),this.dep.trigger())}}function ce(e){return lt(e)?e.value:e}function bt(e){return Oe(e)?e():ce(e)}const Ev={get:(e,t,n)=>t==="__v_raw"?e:ce(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return lt(r)&&!lt(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function od(e){return bi(e)?e:new Proxy(e,Ev)}class Rv{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ys,{get:i,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ad(e){return new Rv(e)}class Lv{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 dv(Ve(this._object),this._key)}}class Ov{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 bl(e,t,n){return lt(e)?e:Oe(e)?new Ov(e):ot(e)&&arguments.length>1?Iv(e,t,n):Ke(e)}function Iv(e,t,n){const i=e[t];return lt(i)?i:new Lv(e,t,n)}class Nv{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ys(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=sr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&et!==this)return Vh(this,!0),!0}get value(){const t=this.dep.track();return Kh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Dv(e,t,n=!1){let i,r;return Oe(e)?i=e:(i=e.get,r=e.set),new Nv(i,r,n)}const Vr={},ms=new WeakMap;let jn;function Fv(e,t=!1,n=jn){if(n){let i=ms.get(n);i||ms.set(n,i=[]),i.push(e)}}function Pv(e,t,n=Je){const{immediate:i,deep:r,once:a,scheduler:f,augmentJob:g,call:o}=n,p=_=>r?_:Bt(_)||r===!1||r===0?fn(_,1):fn(_);let s,l,u,c,h=!1,d=!1;if(lt(e)?(l=()=>e.value,h=Bt(e)):bi(e)?(l=()=>p(e),h=!0):Ie(e)?(d=!0,h=e.some(_=>bi(_)||Bt(_)),l=()=>e.map(_=>{if(lt(_))return _.value;if(bi(_))return p(_);if(Oe(_))return o?o(_,2):_()})):Oe(e)?t?l=o?()=>o(e,2):e:l=()=>{if(u){Pn();try{u()}finally{Wn()}}const _=jn;jn=s;try{return o?o(e,3,[c]):e(c)}finally{jn=_}}:l=tn,t&&r){const _=l,C=r===!0?1/0:r;l=()=>fn(_(),C)}const m=jh(),b=()=>{s.stop(),m&&m.active&&ul(m.effects,s)};if(a&&t){const _=t;t=(...C)=>{_(...C),b()}}let y=d?new Array(e.length).fill(Vr):Vr;const S=_=>{if(!(!(s.flags&1)||!s.dirty&&!_))if(t){const C=s.run();if(r||h||(d?C.some((w,A)=>Tn(w,y[A])):Tn(C,y))){u&&u();const w=jn;jn=s;try{const A=[C,y===Vr?void 0:d&&y[0]===Vr?[]:y,c];o?o(t,3,A):t(...A),y=C}finally{jn=w}}}else s.run()};return g&&g(S),s=new Hh(l),s.scheduler=f?()=>f(S,!1):S,c=_=>Fv(_,!1,s),u=s.onStop=()=>{const _=ms.get(s);if(_){if(o)o(_,4);else for(const C of _)C();ms.delete(s)}},t?i?S(!0):y=s.run():f?f(S.bind(null,!0),!0):s.run(),b.pause=s.pause.bind(s),b.resume=s.resume.bind(s),b.stop=b,b}function fn(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))fn(e.value,t,n);else if(Ie(e))for(let i=0;i<e.length;i++)fn(e[i],t,n);else if(Oh(e)||yi(e))e.forEach(i=>{fn(i,t,n)});else if(Dh(e)){for(const i in e)fn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&fn(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 Rr(e,t,n,i){try{return i?e(...i):e()}catch(r){Xs(r,t,n)}}function rn(e,t,n,i){if(Oe(e)){const r=Rr(e,t,n,i);return r&&Ih(r)&&r.catch(a=>{Xs(a,t,n)}),r}if(Ie(e)){const r=[];for(let a=0;a<e.length;a++)r.push(rn(e[a],t,n,i));return r}}function Xs(e,t,n,i=!0){const r=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||Je;if(t){let g=t.parent;const o=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;g;){const s=g.ec;if(s){for(let l=0;l<s.length;l++)if(s[l](e,o,p)===!1)return}g=g.parent}if(a){Pn(),Rr(a,null,10,[e,o,p]),Wn();return}}Wv(e,n,r,i,f)}function Wv(e,t,n,i=!0,r=!1){if(r)throw e;console.error(e)}const kt=[];let Qt=-1;const wi=[];let An=null,ci=0;const ld=Promise.resolve();let vs=null;function Lr(e){const t=vs||ld;return e?t.then(this?e.bind(this):e):t}function Bv(e){let t=Qt+1,n=kt.length;for(;t<n;){const i=t+n>>>1,r=kt[i],a=ar(r);a<e||a===e&&r.flags&2?t=i+1:n=i}return t}function wl(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(Bv(t),0,e),e.flags|=1,cd()}}function cd(){vs||(vs=ld.then(hd))}function zv(e){Ie(e)?wi.push(...e):An&&e.id===-1?An.splice(ci+1,0,e):e.flags&1||(wi.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(wi.length){const t=[...new Set(wi)].sort((n,i)=>ar(n)-ar(i));if(wi.length=0,An){An.push(...t);return}for(An=t,ci=0;ci<An.length;ci++){const n=An[ci];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}An=null,ci=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),Rr(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(),vs=null,(kt.length||wi.length)&&hd()}}let Mt=null,dd=null;function ys(e){const t=Mt;return Mt=e,dd=e&&e.type.__scopeId||null,t}function it(e,t=Mt,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&Lc(-1);const a=ys(t);let f;try{f=e(...r)}finally{ys(a),i._d&&Lc(1)}return f};return i._n=!0,i._c=!0,i._d=!0,i}function Sl(e,t){if(Mt===null)return e;const n=to(Mt),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[a,f,g,o=Je]=t[r];a&&(Oe(a)&&(a={mounted:a,updated:a}),a.deep&&fn(f),i.push({dir:a,instance:n,value:f,oldValue:void 0,arg:g,modifiers:o}))}return e}function Bn(e,t,n,i){const r=e.dirs,a=t&&t.dirs;for(let f=0;f<r.length;f++){const g=r[f];a&&(g.oldValue=a[f].value);let o=g.dir[i];o&&(Pn(),rn(o,n,8,[e.el,g,e,t]),Wn())}}const jv=Symbol("_vte"),Hv=e=>e.__isTeleport;function _l(e,t){e.shapeFlag&6&&e.component?(e.transition=t,_l(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 xe(e,t){return Oe(e)?St({name:e.name},t,{setup:e}):e}function fd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function bs(e,t,n,i,r=!1){if(Ie(e)){e.forEach((h,d)=>bs(h,t&&(Ie(t)?t[d]:t),n,i,r));return}if(qi(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&bs(e,t,n,i.component.subTree);return}const a=i.shapeFlag&4?to(i.component):i.el,f=r?null:a,{i:g,r:o}=e,p=t&&t.r,s=g.refs===Je?g.refs={}:g.refs,l=g.setupState,u=Ve(l),c=l===Je?()=>!1:h=>Ye(u,h);if(p!=null&&p!==o&&(ut(p)?(s[p]=null,c(p)&&(l[p]=null)):lt(p)&&(p.value=null)),Oe(o))Rr(o,g,12,[f,s]);else{const h=ut(o),d=lt(o);if(h||d){const m=()=>{if(e.f){const b=h?c(o)?l[o]:s[o]:o.value;r?Ie(b)&&ul(b,a):Ie(b)?b.includes(a)||b.push(a):h?(s[o]=[a],c(o)&&(l[o]=s[o])):(o.value=[a],e.k&&(s[e.k]=o.value))}else h?(s[o]=f,c(o)&&(l[o]=f)):d&&(o.value=f,e.k&&(s[e.k]=f))};f?(m.id=-1,Ot(m,n)):m()}}}Gs().requestIdleCallback;Gs().cancelIdleCallback;const qi=e=>!!e.type.__asyncLoader,pd=e=>e.type.__isKeepAlive;function Uv(e,t){gd(e,"a",t)}function Vv(e,t){gd(e,"da",t)}function gd(e,t,n=ht){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Qs(t,i,n),n){let r=n.parent;for(;r&&r.parent;)pd(r.parent.vnode)&&Gv(i,t,n,r),r=r.parent}}function Gv(e,t,n,i){const r=Qs(t,e,i,!0);vd(()=>{ul(i[t],r)},n)}function Qs(e,t,n=ht,i=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...f)=>{Pn();const g=Or(n),o=rn(t,n,e,f);return g(),Wn(),o});return i?r.unshift(a):r.push(a),a}}const wn=e=>(t,n=ht)=>{(!cr||e==="sp")&&Qs(e,(...i)=>t(...i),n)},Yv=wn("bm"),ct=wn("m"),Kv=wn("bu"),Zv=wn("u"),md=wn("bum"),vd=wn("um"),Xv=wn("sp"),Qv=wn("rtg"),qv=wn("rtc");function Jv(e,t=ht){Qs("ec",e,t)}const ey="components";function Ze(e,t){return ny(ey,e,!0,t)||e}const ty=Symbol.for("v-ndc");function ny(e,t,n=!0,i=!1){const r=Mt||ht;if(r){const a=r.type;{const g=jy(a,!1);if(g&&(g===t||g===jt(t)||g===Tr(jt(t))))return a}const f=xc(r[e]||a[e],t)||xc(r.appContext[e],t);return!f&&i?a:f}}function xc(e,t){return e&&(e[t]||e[jt(t)]||e[Tr(jt(t))])}function Ft(e,t,n,i){let r;const a=n,f=Ie(e);if(f||ut(e)){const g=f&&bi(e);let o=!1;g&&(o=!Bt(e),e=Ks(e)),r=new Array(e.length);for(let p=0,s=e.length;p<s;p++)r[p]=t(o?vt(e[p]):e[p],p,void 0,a)}else if(typeof e=="number"){r=new Array(e);for(let g=0;g<e;g++)r[g]=t(g+1,g,void 0,a)}else if(ot(e))if(e[Symbol.iterator])r=Array.from(e,(g,o)=>t(g,o,void 0,a));else{const g=Object.keys(e);r=new Array(g.length);for(let o=0,p=g.length;o<p;o++){const s=g[o];r[o]=t(e[s],s,o,a)}}else r=[];return r}const _a=e=>e?Pd(e)?to(e):_a(e.parent):null,Ji=St(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=>bd(e),$forceUpdate:e=>e.f||(e.f=()=>{wl(e.update)}),$nextTick:e=>e.n||(e.n=Lr.bind(e.proxy)),$watch:e=>xy.bind(e)}),Lo=(e,t)=>e!==Je&&!e.__isScriptSetup&&Ye(e,t),iy={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:a,accessCache:f,type:g,appContext:o}=e;let p;if(t[0]!=="$"){const c=f[t];if(c!==void 0)switch(c){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return a[t]}else{if(Lo(i,t))return f[t]=1,i[t];if(r!==Je&&Ye(r,t))return f[t]=2,r[t];if((p=e.propsOptions[0])&&Ye(p,t))return f[t]=3,a[t];if(n!==Je&&Ye(n,t))return f[t]=4,n[t];xa&&(f[t]=0)}}const s=Ji[t];let l,u;if(s)return t==="$attrs"&&mt(e.attrs,"get",""),s(e);if((l=g.__cssModules)&&(l=l[t]))return l;if(n!==Je&&Ye(n,t))return f[t]=4,n[t];if(u=o.config.globalProperties,Ye(u,t))return u[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:a}=e;return Lo(r,t)?(r[t]=n,!0):i!==Je&&Ye(i,t)?(i[t]=n,!0):Ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:a}},f){let g;return!!n[f]||e!==Je&&Ye(e,f)||Lo(t,f)||(g=a[0])&&Ye(g,f)||Ye(i,f)||Ye(Ji,f)||Ye(r.config.globalProperties,f)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Cc(e){return Ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xa=!0;function ry(e){const t=bd(e),n=e.proxy,i=e.ctx;xa=!1,t.beforeCreate&&$c(t.beforeCreate,e,"bc");const{data:r,computed:a,methods:f,watch:g,provide:o,inject:p,created:s,beforeMount:l,mounted:u,beforeUpdate:c,updated:h,activated:d,deactivated:m,beforeDestroy:b,beforeUnmount:y,destroyed:S,unmounted:_,render:C,renderTracked:w,renderTriggered:A,errorCaptured:R,serverPrefetch:E,expose:T,inheritAttrs:O,components:$,directives:v,filters:x}=t;if(p&&sy(p,i,null),f)for(const L in f){const I=f[L];Oe(I)&&(i[L]=I.bind(n))}if(r){const L=r.call(n,n);ot(L)&&(e.data=Oi(L))}if(xa=!0,a)for(const L in a){const I=a[L],N=Oe(I)?I.bind(n,n):Oe(I.get)?I.get.bind(n,n):tn,F=!Oe(I)&&Oe(I.set)?I.set.bind(n):tn,W=Ce({get:N,set:F});Object.defineProperty(i,L,{enumerable:!0,configurable:!0,get:()=>W.value,set:U=>W.value=U})}if(g)for(const L in g)yd(g[L],i,n,L);if(o){const L=Oe(o)?o.call(n):o;Reflect.ownKeys(L).forEach(I=>{Jr(I,L[I])})}s&&$c(s,e,"c");function M(L,I){Ie(I)?I.forEach(N=>L(N.bind(n))):I&&L(I.bind(n))}if(M(Yv,l),M(ct,u),M(Kv,c),M(Zv,h),M(Uv,d),M(Vv,m),M(Jv,R),M(qv,w),M(Qv,A),M(md,y),M(vd,_),M(Xv,E),Ie(T))if(T.length){const L=e.exposed||(e.exposed={});T.forEach(I=>{Object.defineProperty(L,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});C&&e.render===tn&&(e.render=C),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),v&&(e.directives=v),E&&fd(e)}function sy(e,t,n=tn){Ie(e)&&(e=Ca(e));for(const i in e){const r=e[i];let a;ot(r)?"default"in r?a=zt(r.from||i,r.default,!0):a=zt(r.from||i):a=zt(r),lt(a)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:f=>a.value=f}):t[i]=a}}function $c(e,t,n){rn(Ie(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function yd(e,t,n,i){let r=i.includes(".")?Od(n,i):()=>n[i];if(ut(e)){const a=t[e];Oe(a)&&Qe(r,a)}else if(Oe(e))Qe(r,e.bind(n));else if(ot(e))if(Ie(e))e.forEach(a=>yd(a,t,n,i));else{const a=Oe(e.handler)?e.handler.bind(n):t[e.handler];Oe(a)&&Qe(r,a,e)}}function bd(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:a,config:{optionMergeStrategies:f}}=e.appContext,g=a.get(t);let o;return g?o=g:!r.length&&!n&&!i?o=t:(o={},r.length&&r.forEach(p=>ws(o,p,f,!0)),ws(o,t,f)),ot(t)&&a.set(t,o),o}function ws(e,t,n,i=!1){const{mixins:r,extends:a}=t;a&&ws(e,a,n,!0),r&&r.forEach(f=>ws(e,f,n,!0));for(const f in t)if(!(i&&f==="expose")){const g=oy[f]||n&&n[f];e[f]=g?g(e[f],t[f]):t[f]}return e}const oy={data:Ac,props:kc,emits:kc,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:ly,provide:Ac,inject:ay};function Ac(e,t){return t?e?function(){return St(Oe(e)?e.call(this,this):e,Oe(t)?t.call(this,this):t)}:t:e}function ay(e,t){return Ui(Ca(e),Ca(t))}function Ca(e){if(Ie(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?St(Object.create(null),e,t):t}function kc(e,t){return e?Ie(e)&&Ie(t)?[...new Set([...e,...t])]:St(Object.create(null),Cc(e),Cc(t??{})):t}function ly(e,t){if(!e)return t;if(!t)return e;const n=St(Object.create(null),e);for(const i in t)n[i]=$t(e[i],t[i]);return n}function wd(){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 cy=0;function uy(e,t){return function(i,r=null){Oe(i)||(i=St({},i)),r!=null&&!ot(r)&&(r=null);const a=wd(),f=new WeakSet,g=[];let o=!1;const p=a.app={_uid:cy++,_component:i,_props:r,_container:null,_context:a,_instance:null,version:Uy,get config(){return a.config},set config(s){},use(s,...l){return f.has(s)||(s&&Oe(s.install)?(f.add(s),s.install(p,...l)):Oe(s)&&(f.add(s),s(p,...l))),p},mixin(s){return a.mixins.includes(s)||a.mixins.push(s),p},component(s,l){return l?(a.components[s]=l,p):a.components[s]},directive(s,l){return l?(a.directives[s]=l,p):a.directives[s]},mount(s,l,u){if(!o){const c=p._ceVNode||se(i,r);return c.appContext=a,u===!0?u="svg":u===!1&&(u=void 0),e(c,s,u),o=!0,p._container=s,s.__vue_app__=p,to(c.component)}},onUnmount(s){g.push(s)},unmount(){o&&(rn(g,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(s,l){return a.provides[s]=l,p},runWithContext(s){const l=Zn;Zn=p;try{return s()}finally{Zn=l}}};return p}}let Zn=null;function Jr(e,t){if(ht){let n=ht.provides;const i=ht.parent&&ht.parent.provides;i===n&&(n=ht.provides=Object.create(i)),n[e]=t}}function zt(e,t,n=!1){const i=ht||Mt;if(i||Zn){const r=Zn?Zn._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Oe(t)?t.call(i&&i.proxy):t}}function Sd(){return!!(ht||Mt||Zn)}const _d={},xd=()=>Object.create(_d),Cd=e=>Object.getPrototypeOf(e)===_d;function hy(e,t,n,i=!1){const r={},a=xd();e.propsDefaults=Object.create(null),$d(e,t,r,a);for(const f in e.propsOptions[0])f in r||(r[f]=void 0);n?e.props=i?r:id(r):e.type.props?e.props=r:e.props=a,e.attrs=a}function dy(e,t,n,i){const{props:r,attrs:a,vnode:{patchFlag:f}}=e,g=Ve(r),[o]=e.propsOptions;let p=!1;if((i||f>0)&&!(f&16)){if(f&8){const s=e.vnode.dynamicProps;for(let l=0;l<s.length;l++){let u=s[l];if(qs(e.emitsOptions,u))continue;const c=t[u];if(o)if(Ye(a,u))c!==a[u]&&(a[u]=c,p=!0);else{const h=jt(u);r[h]=$a(o,g,h,c,e,!1)}else c!==a[u]&&(a[u]=c,p=!0)}}}else{$d(e,t,r,a)&&(p=!0);let s;for(const l in g)(!t||!Ye(t,l)&&((s=ai(l))===l||!Ye(t,s)))&&(o?n&&(n[l]!==void 0||n[s]!==void 0)&&(r[l]=$a(o,g,l,void 0,e,!0)):delete r[l]);if(a!==g)for(const l in a)(!t||!Ye(t,l))&&(delete a[l],p=!0)}p&&dn(e.attrs,"set","")}function $d(e,t,n,i){const[r,a]=e.propsOptions;let f=!1,g;if(t)for(let o in t){if(Zi(o))continue;const p=t[o];let s;r&&Ye(r,s=jt(o))?!a||!a.includes(s)?n[s]=p:(g||(g={}))[s]=p:qs(e.emitsOptions,o)||(!(o in i)||p!==i[o])&&(i[o]=p,f=!0)}if(a){const o=Ve(n),p=g||Je;for(let s=0;s<a.length;s++){const l=a[s];n[l]=$a(r,o,l,p[l],e,!Ye(p,l))}}return f}function $a(e,t,n,i,r,a){const f=e[n];if(f!=null){const g=Ye(f,"default");if(g&&i===void 0){const o=f.default;if(f.type!==Function&&!f.skipFactory&&Oe(o)){const{propsDefaults:p}=r;if(n in p)i=p[n];else{const s=Or(r);i=p[n]=o.call(null,t),s()}}else i=o;r.ce&&r.ce._setProp(n,i)}f[0]&&(a&&!g?i=!1:f[1]&&(i===""||i===ai(n))&&(i=!0))}return i}const fy=new WeakMap;function Ad(e,t,n=!1){const i=n?fy:t.propsCache,r=i.get(e);if(r)return r;const a=e.props,f={},g=[];let o=!1;if(!Oe(e)){const s=l=>{o=!0;const[u,c]=Ad(l,t,!0);St(f,u),c&&g.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!a&&!o)return ot(e)&&i.set(e,vi),vi;if(Ie(a))for(let s=0;s<a.length;s++){const l=jt(a[s]);Mc(l)&&(f[l]=Je)}else if(a)for(const s in a){const l=jt(s);if(Mc(l)){const u=a[s],c=f[l]=Ie(u)||Oe(u)?{type:u}:St({},u),h=c.type;let d=!1,m=!0;if(Ie(h))for(let b=0;b<h.length;++b){const y=h[b],S=Oe(y)&&y.name;if(S==="Boolean"){d=!0;break}else S==="String"&&(m=!1)}else d=Oe(h)&&h.name==="Boolean";c[0]=d,c[1]=m,(d||Ye(c,"default"))&&g.push(l)}}const p=[f,g];return ot(e)&&i.set(e,p),p}function Mc(e){return e[0]!=="$"&&!Zi(e)}const kd=e=>e[0]==="_"||e==="$stable",xl=e=>Ie(e)?e.map(qt):[qt(e)],py=(e,t,n)=>{if(t._n)return t;const i=it((...r)=>xl(t(...r)),n);return i._c=!1,i},Md=(e,t,n)=>{const i=e._ctx;for(const r in e){if(kd(r))continue;const a=e[r];if(Oe(a))t[r]=py(r,a,i);else if(a!=null){const f=xl(a);t[r]=()=>f}}},Td=(e,t)=>{const n=xl(t);e.slots.default=()=>n},Ed=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},gy=(e,t,n)=>{const i=e.slots=xd();if(e.vnode.shapeFlag&32){const r=t._;r?(Ed(i,t,n),n&&Fh(i,"_",r,!0)):Md(t,i)}else t&&Td(e,t)},my=(e,t,n)=>{const{vnode:i,slots:r}=e;let a=!0,f=Je;if(i.shapeFlag&32){const g=t._;g?n&&g===1?a=!1:Ed(r,t,n):(a=!t.$stable,Md(t,r)),f=t}else t&&(Td(e,t),f={default:1});if(a)for(const g in r)!kd(g)&&f[g]==null&&delete r[g]},Ot=Ey;function vy(e){return yy(e)}function yy(e,t){const n=Gs();n.__VUE__=!0;const{insert:i,remove:r,patchProp:a,createElement:f,createText:g,createComment:o,setText:p,setElementText:s,parentNode:l,nextSibling:u,setScopeId:c=tn,insertStaticContent:h}=e,d=(P,z,G,J=null,te=null,ie=null,pe=void 0,fe=null,de=!!z.dynamicChildren)=>{if(P===z)return;P&&!Wi(P,z)&&(J=j(P),U(P,te,ie,!0),P=null),z.patchFlag===-2&&(de=!1,z.dynamicChildren=null);const{type:ae,ref:ke,shapeFlag:ye}=z;switch(ae){case Js:m(P,z,G,J);break;case ti:b(P,z,G,J);break;case es:P==null&&y(z,G,J,pe);break;case Be:$(P,z,G,J,te,ie,pe,fe,de);break;default:ye&1?C(P,z,G,J,te,ie,pe,fe,de):ye&6?v(P,z,G,J,te,ie,pe,fe,de):(ye&64||ye&128)&&ae.process(P,z,G,J,te,ie,pe,fe,de,Z)}ke!=null&&te&&bs(ke,P&&P.ref,ie,z||P,!z)},m=(P,z,G,J)=>{if(P==null)i(z.el=g(z.children),G,J);else{const te=z.el=P.el;z.children!==P.children&&p(te,z.children)}},b=(P,z,G,J)=>{P==null?i(z.el=o(z.children||""),G,J):z.el=P.el},y=(P,z,G,J)=>{[P.el,P.anchor]=h(P.children,z,G,J,P.el,P.anchor)},S=({el:P,anchor:z},G,J)=>{let te;for(;P&&P!==z;)te=u(P),i(P,G,J),P=te;i(z,G,J)},_=({el:P,anchor:z})=>{let G;for(;P&&P!==z;)G=u(P),r(P),P=G;r(z)},C=(P,z,G,J,te,ie,pe,fe,de)=>{z.type==="svg"?pe="svg":z.type==="math"&&(pe="mathml"),P==null?w(z,G,J,te,ie,pe,fe,de):E(P,z,te,ie,pe,fe,de)},w=(P,z,G,J,te,ie,pe,fe)=>{let de,ae;const{props:ke,shapeFlag:ye,transition:Ae,dirs:Le}=P;if(de=P.el=f(P.type,ie,ke&&ke.is,ke),ye&8?s(de,P.children):ye&16&&R(P.children,de,null,J,te,Oo(P,ie),pe,fe),Le&&Bn(P,null,J,"created"),A(de,P,P.scopeId,pe,J),ke){for(const he in ke)he!=="value"&&!Zi(he)&&a(de,he,null,ke[he],ie,J);"value"in ke&&a(de,"value",null,ke.value,ie),(ae=ke.onVnodeBeforeMount)&&Zt(ae,J,P)}Le&&Bn(P,null,J,"beforeMount");const X=by(te,Ae);X&&Ae.beforeEnter(de),i(de,z,G),((ae=ke&&ke.onVnodeMounted)||X||Le)&&Ot(()=>{ae&&Zt(ae,J,P),X&&Ae.enter(de),Le&&Bn(P,null,J,"mounted")},te)},A=(P,z,G,J,te)=>{if(G&&c(P,G),J)for(let ie=0;ie<J.length;ie++)c(P,J[ie]);if(te){let ie=te.subTree;if(z===ie||Nd(ie.type)&&(ie.ssContent===z||ie.ssFallback===z)){const pe=te.vnode;A(P,pe,pe.scopeId,pe.slotScopeIds,te.parent)}}},R=(P,z,G,J,te,ie,pe,fe,de=0)=>{for(let ae=de;ae<P.length;ae++){const ke=P[ae]=fe?kn(P[ae]):qt(P[ae]);d(null,ke,z,G,J,te,ie,pe,fe)}},E=(P,z,G,J,te,ie,pe)=>{const fe=z.el=P.el;let{patchFlag:de,dynamicChildren:ae,dirs:ke}=z;de|=P.patchFlag&16;const ye=P.props||Je,Ae=z.props||Je;let Le;if(G&&zn(G,!1),(Le=Ae.onVnodeBeforeUpdate)&&Zt(Le,G,z,P),ke&&Bn(z,P,G,"beforeUpdate"),G&&zn(G,!0),(ye.innerHTML&&Ae.innerHTML==null||ye.textContent&&Ae.textContent==null)&&s(fe,""),ae?T(P.dynamicChildren,ae,fe,G,J,Oo(z,te),ie):pe||I(P,z,fe,null,G,J,Oo(z,te),ie,!1),de>0){if(de&16)O(fe,ye,Ae,G,te);else if(de&2&&ye.class!==Ae.class&&a(fe,"class",null,Ae.class,te),de&4&&a(fe,"style",ye.style,Ae.style,te),de&8){const X=z.dynamicProps;for(let he=0;he<X.length;he++){const ge=X[he],Te=ye[ge],Ne=Ae[ge];(Ne!==Te||ge==="value")&&a(fe,ge,Te,Ne,te,G)}}de&1&&P.children!==z.children&&s(fe,z.children)}else!pe&&ae==null&&O(fe,ye,Ae,G,te);((Le=Ae.onVnodeUpdated)||ke)&&Ot(()=>{Le&&Zt(Le,G,z,P),ke&&Bn(z,P,G,"updated")},J)},T=(P,z,G,J,te,ie,pe)=>{for(let fe=0;fe<z.length;fe++){const de=P[fe],ae=z[fe],ke=de.el&&(de.type===Be||!Wi(de,ae)||de.shapeFlag&70)?l(de.el):G;d(de,ae,ke,null,J,te,ie,pe,!0)}},O=(P,z,G,J,te)=>{if(z!==G){if(z!==Je)for(const ie in z)!Zi(ie)&&!(ie in G)&&a(P,ie,z[ie],null,te,J);for(const ie in G){if(Zi(ie))continue;const pe=G[ie],fe=z[ie];pe!==fe&&ie!=="value"&&a(P,ie,fe,pe,te,J)}"value"in G&&a(P,"value",z.value,G.value,te)}},$=(P,z,G,J,te,ie,pe,fe,de)=>{const ae=z.el=P?P.el:g(""),ke=z.anchor=P?P.anchor:g("");let{patchFlag:ye,dynamicChildren:Ae,slotScopeIds:Le}=z;Le&&(fe=fe?fe.concat(Le):Le),P==null?(i(ae,G,J),i(ke,G,J),R(z.children||[],G,ke,te,ie,pe,fe,de)):ye>0&&ye&64&&Ae&&P.dynamicChildren?(T(P.dynamicChildren,Ae,G,te,ie,pe,fe),(z.key!=null||te&&z===te.subTree)&&Rd(P,z,!0)):I(P,z,G,ke,te,ie,pe,fe,de)},v=(P,z,G,J,te,ie,pe,fe,de)=>{z.slotScopeIds=fe,P==null?z.shapeFlag&512?te.ctx.activate(z,G,J,pe,de):x(z,G,J,te,ie,pe,de):k(P,z,de)},x=(P,z,G,J,te,ie,pe)=>{const fe=P.component=Fy(P,J,te);if(pd(P)&&(fe.ctx.renderer=Z),Py(fe,!1,pe),fe.asyncDep){if(te&&te.registerDep(fe,M,pe),!P.el){const de=fe.subTree=se(ti);b(null,de,z,G)}}else M(fe,P,z,G,te,ie,pe)},k=(P,z,G)=>{const J=z.component=P.component;if(My(P,z,G))if(J.asyncDep&&!J.asyncResolved){L(J,z,G);return}else J.next=z,J.update();else z.el=P.el,J.vnode=z},M=(P,z,G,J,te,ie,pe)=>{const fe=()=>{if(P.isMounted){let{next:ye,bu:Ae,u:Le,parent:X,vnode:he}=P;{const Ue=Ld(P);if(Ue){ye&&(ye.el=he.el,L(P,ye,pe)),Ue.asyncDep.then(()=>{P.isUnmounted||fe()});return}}let ge=ye,Te;zn(P,!1),ye?(ye.el=he.el,L(P,ye,pe)):ye=he,Ae&&qr(Ae),(Te=ye.props&&ye.props.onVnodeBeforeUpdate)&&Zt(Te,X,ye,he),zn(P,!0);const Ne=Ec(P),He=P.subTree;P.subTree=Ne,d(He,Ne,l(He.el),j(He),P,te,ie),ye.el=Ne.el,ge===null&&Ty(P,Ne.el),Le&&Ot(Le,te),(Te=ye.props&&ye.props.onVnodeUpdated)&&Ot(()=>Zt(Te,X,ye,he),te)}else{let ye;const{el:Ae,props:Le}=z,{bm:X,m:he,parent:ge,root:Te,type:Ne}=P,He=qi(z);zn(P,!1),X&&qr(X),!He&&(ye=Le&&Le.onVnodeBeforeMount)&&Zt(ye,ge,z),zn(P,!0);{Te.ce&&Te.ce._injectChildStyle(Ne);const Ue=P.subTree=Ec(P);d(null,Ue,G,J,P,te,ie),z.el=Ue.el}if(he&&Ot(he,te),!He&&(ye=Le&&Le.onVnodeMounted)){const Ue=z;Ot(()=>Zt(ye,ge,Ue),te)}(z.shapeFlag&256||ge&&qi(ge.vnode)&&ge.vnode.shapeFlag&256)&&P.a&&Ot(P.a,te),P.isMounted=!0,z=G=J=null}};P.scope.on();const de=P.effect=new Hh(fe);P.scope.off();const ae=P.update=de.run.bind(de),ke=P.job=de.runIfDirty.bind(de);ke.i=P,ke.id=P.uid,de.scheduler=()=>wl(ke),zn(P,!0),ae()},L=(P,z,G)=>{z.component=P;const J=P.vnode.props;P.vnode=z,P.next=null,dy(P,z.props,J,G),my(P,z.children,G),Pn(),_c(P),Wn()},I=(P,z,G,J,te,ie,pe,fe,de=!1)=>{const ae=P&&P.children,ke=P?P.shapeFlag:0,ye=z.children,{patchFlag:Ae,shapeFlag:Le}=z;if(Ae>0){if(Ae&128){F(ae,ye,G,J,te,ie,pe,fe,de);return}else if(Ae&256){N(ae,ye,G,J,te,ie,pe,fe,de);return}}Le&8?(ke&16&&V(ae,te,ie),ye!==ae&&s(G,ye)):ke&16?Le&16?F(ae,ye,G,J,te,ie,pe,fe,de):V(ae,te,ie,!0):(ke&8&&s(G,""),Le&16&&R(ye,G,J,te,ie,pe,fe,de))},N=(P,z,G,J,te,ie,pe,fe,de)=>{P=P||vi,z=z||vi;const ae=P.length,ke=z.length,ye=Math.min(ae,ke);let Ae;for(Ae=0;Ae<ye;Ae++){const Le=z[Ae]=de?kn(z[Ae]):qt(z[Ae]);d(P[Ae],Le,G,null,te,ie,pe,fe,de)}ae>ke?V(P,te,ie,!0,!1,ye):R(z,G,J,te,ie,pe,fe,de,ye)},F=(P,z,G,J,te,ie,pe,fe,de)=>{let ae=0;const ke=z.length;let ye=P.length-1,Ae=ke-1;for(;ae<=ye&&ae<=Ae;){const Le=P[ae],X=z[ae]=de?kn(z[ae]):qt(z[ae]);if(Wi(Le,X))d(Le,X,G,null,te,ie,pe,fe,de);else break;ae++}for(;ae<=ye&&ae<=Ae;){const Le=P[ye],X=z[Ae]=de?kn(z[Ae]):qt(z[Ae]);if(Wi(Le,X))d(Le,X,G,null,te,ie,pe,fe,de);else break;ye--,Ae--}if(ae>ye){if(ae<=Ae){const Le=Ae+1,X=Le<ke?z[Le].el:J;for(;ae<=Ae;)d(null,z[ae]=de?kn(z[ae]):qt(z[ae]),G,X,te,ie,pe,fe,de),ae++}}else if(ae>Ae)for(;ae<=ye;)U(P[ae],te,ie,!0),ae++;else{const Le=ae,X=ae,he=new Map;for(ae=X;ae<=Ae;ae++){const De=z[ae]=de?kn(z[ae]):qt(z[ae]);De.key!=null&&he.set(De.key,ae)}let ge,Te=0;const Ne=Ae-X+1;let He=!1,Ue=0;const Xe=new Array(Ne);for(ae=0;ae<Ne;ae++)Xe[ae]=0;for(ae=Le;ae<=ye;ae++){const De=P[ae];if(Te>=Ne){U(De,te,ie,!0);continue}let nt;if(De.key!=null)nt=he.get(De.key);else for(ge=X;ge<=Ae;ge++)if(Xe[ge-X]===0&&Wi(De,z[ge])){nt=ge;break}nt===void 0?U(De,te,ie,!0):(Xe[nt-X]=ae+1,nt>=Ue?Ue=nt:He=!0,d(De,z[nt],G,null,te,ie,pe,fe,de),Te++)}const qe=He?wy(Xe):vi;for(ge=qe.length-1,ae=Ne-1;ae>=0;ae--){const De=X+ae,nt=z[De],xn=De+1<ke?z[De+1].el:J;Xe[ae]===0?d(null,nt,G,xn,te,ie,pe,fe,de):He&&(ge<0||ae!==qe[ge]?W(nt,G,xn,2):ge--)}}},W=(P,z,G,J,te=null)=>{const{el:ie,type:pe,transition:fe,children:de,shapeFlag:ae}=P;if(ae&6){W(P.component.subTree,z,G,J);return}if(ae&128){P.suspense.move(z,G,J);return}if(ae&64){pe.move(P,z,G,Z);return}if(pe===Be){i(ie,z,G);for(let ye=0;ye<de.length;ye++)W(de[ye],z,G,J);i(P.anchor,z,G);return}if(pe===es){S(P,z,G);return}if(J!==2&&ae&1&&fe)if(J===0)fe.beforeEnter(ie),i(ie,z,G),Ot(()=>fe.enter(ie),te);else{const{leave:ye,delayLeave:Ae,afterLeave:Le}=fe,X=()=>i(ie,z,G),he=()=>{ye(ie,()=>{X(),Le&&Le()})};Ae?Ae(ie,X,he):he()}else i(ie,z,G)},U=(P,z,G,J=!1,te=!1)=>{const{type:ie,props:pe,ref:fe,children:de,dynamicChildren:ae,shapeFlag:ke,patchFlag:ye,dirs:Ae,cacheIndex:Le}=P;if(ye===-2&&(te=!1),fe!=null&&bs(fe,null,G,P,!0),Le!=null&&(z.renderCache[Le]=void 0),ke&256){z.ctx.deactivate(P);return}const X=ke&1&&Ae,he=!qi(P);let ge;if(he&&(ge=pe&&pe.onVnodeBeforeUnmount)&&Zt(ge,z,P),ke&6)K(P.component,G,J);else{if(ke&128){P.suspense.unmount(G,J);return}X&&Bn(P,null,z,"beforeUnmount"),ke&64?P.type.remove(P,z,G,Z,J):ae&&!ae.hasOnce&&(ie!==Be||ye>0&&ye&64)?V(ae,z,G,!1,!0):(ie===Be&&ye&384||!te&&ke&16)&&V(de,z,G),J&&B(P)}(he&&(ge=pe&&pe.onVnodeUnmounted)||X)&&Ot(()=>{ge&&Zt(ge,z,P),X&&Bn(P,null,z,"unmounted")},G)},B=P=>{const{type:z,el:G,anchor:J,transition:te}=P;if(z===Be){H(G,J);return}if(z===es){_(P);return}const ie=()=>{r(G),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(P.shapeFlag&1&&te&&!te.persisted){const{leave:pe,delayLeave:fe}=te,de=()=>pe(G,ie);fe?fe(P.el,ie,de):de()}else ie()},H=(P,z)=>{let G;for(;P!==z;)G=u(P),r(P),P=G;r(z)},K=(P,z,G)=>{const{bum:J,scope:te,job:ie,subTree:pe,um:fe,m:de,a:ae}=P;Tc(de),Tc(ae),J&&qr(J),te.stop(),ie&&(ie.flags|=8,U(pe,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())},V=(P,z,G,J=!1,te=!1,ie=0)=>{for(let pe=ie;pe<P.length;pe++)U(P[pe],z,G,J,te)},j=P=>{if(P.shapeFlag&6)return j(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const z=u(P.anchor||P.el),G=z&&z[jv];return G?u(G):z};let Q=!1;const q=(P,z,G)=>{P==null?z._vnode&&U(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)},Z={p:d,um:U,m:W,r:B,mt:x,mc:R,pc:I,pbc:T,n:j,o:e};return{render:q,hydrate:void 0,createApp:uy(q)}}function Oo({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 by(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rd(e,t,n=!1){const i=e.children,r=t.children;if(Ie(i)&&Ie(r))for(let a=0;a<i.length;a++){const f=i[a];let g=r[a];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=r[a]=kn(r[a]),g.el=f.el),!n&&g.patchFlag!==-2&&Rd(f,g)),g.type===Js&&(g.el=f.el)}}function wy(e){const t=e.slice(),n=[0];let i,r,a,f,g;const o=e.length;for(i=0;i<o;i++){const p=e[i];if(p!==0){if(r=n[n.length-1],e[r]<p){t[i]=r,n.push(i);continue}for(a=0,f=n.length-1;a<f;)g=a+f>>1,e[n[g]]<p?a=g+1:f=g;p<e[n[a]]&&(a>0&&(t[i]=n[a-1]),n[a]=i)}}for(a=n.length,f=n[a-1];a-- >0;)n[a]=f,f=t[f];return n}function Ld(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ld(t)}function Tc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Sy=Symbol.for("v-scx"),_y=()=>zt(Sy);function Cl(e,t){return $l(e,null,t)}function Qe(e,t,n){return $l(e,t,n)}function $l(e,t,n=Je){const{immediate:i,deep:r,flush:a,once:f}=n,g=St({},n),o=t&&i||!t&&a!=="post";let p;if(cr){if(a==="sync"){const c=_y();p=c.__watcherHandles||(c.__watcherHandles=[])}else if(!o){const c=()=>{};return c.stop=tn,c.resume=tn,c.pause=tn,c}}const s=ht;g.call=(c,h,d)=>rn(c,s,h,d);let l=!1;a==="post"?g.scheduler=c=>{Ot(c,s&&s.suspense)}:a!=="sync"&&(l=!0,g.scheduler=(c,h)=>{h?c():wl(c)}),g.augmentJob=c=>{t&&(c.flags|=4),l&&(c.flags|=2,s&&(c.id=s.uid,c.i=s))};const u=Pv(e,t,g);return cr&&(p?p.push(u):o&&u()),u}function xy(e,t,n){const i=this.proxy,r=ut(e)?e.includes(".")?Od(i,e):()=>i[e]:e.bind(i,i);let a;Oe(t)?a=t:(a=t.handler,n=t);const f=Or(this),g=$l(r,a.bind(i),n);return f(),g}function Od(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}const Cy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${jt(t)}Modifiers`]||e[`${ai(t)}Modifiers`];function $y(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Je;let r=n;const a=t.startsWith("update:"),f=a&&Cy(i,t.slice(7));f&&(f.trim&&(r=n.map(s=>ut(s)?s.trim():s)),f.number&&(r=n.map(va)));let g,o=i[g=ko(t)]||i[g=ko(jt(t))];!o&&a&&(o=i[g=ko(ai(t))]),o&&rn(o,e,6,r);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,r)}}function Id(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const a=e.emits;let f={},g=!1;if(!Oe(e)){const o=p=>{const s=Id(p,t,!0);s&&(g=!0,St(f,s))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!a&&!g?(ot(e)&&i.set(e,null),null):(Ie(a)?a.forEach(o=>f[o]=null):St(f,a),ot(e)&&i.set(e,f),f)}function qs(e,t){return!e||!Hs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ye(e,t[0].toLowerCase()+t.slice(1))||Ye(e,ai(t))||Ye(e,t))}function Ec(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[a],slots:f,attrs:g,emit:o,render:p,renderCache:s,props:l,data:u,setupState:c,ctx:h,inheritAttrs:d}=e,m=ys(e);let b,y;try{if(n.shapeFlag&4){const _=r||i,C=_;b=qt(p.call(C,_,s,l,c,u,h)),y=g}else{const _=t;b=qt(_.length>1?_(l,{attrs:g,slots:f,emit:o}):_(l,null)),y=t.props?g:Ay(g)}}catch(_){er.length=0,Xs(_,e,1),b=se(ti)}let S=b;if(y&&d!==!1){const _=Object.keys(y),{shapeFlag:C}=S;_.length&&C&7&&(a&&_.some(cl)&&(y=ky(y,a)),S=xi(S,y,!1,!0))}return n.dirs&&(S=xi(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&_l(S,n.transition),b=S,ys(m),b}const Ay=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hs(n))&&((t||(t={}))[n]=e[n]);return t},ky=(e,t)=>{const n={};for(const i in e)(!cl(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function My(e,t,n){const{props:i,children:r,component:a}=e,{props:f,children:g,patchFlag:o}=t,p=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&o>=0){if(o&1024)return!0;if(o&16)return i?Rc(i,f,p):!!f;if(o&8){const s=t.dynamicProps;for(let l=0;l<s.length;l++){const u=s[l];if(f[u]!==i[u]&&!qs(p,u))return!0}}}else return(r||g)&&(!g||!g.$stable)?!0:i===f?!1:i?f?Rc(i,f,p):!0:!!f;return!1}function Rc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const a=i[r];if(t[a]!==e[a]&&!qs(n,a))return!0}return!1}function Ty({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 Nd=e=>e.__isSuspense;function Ey(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):zv(e)}const Be=Symbol.for("v-fgt"),Js=Symbol.for("v-txt"),ti=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 Lc(e,t=!1){lr+=e,e<0&&It&&t&&(It.hasOnce=!0)}function Dd(e){return e.dynamicChildren=lr>0?It||vi:null,Ry(),lr>0&&It&&It.push(e),e}function re(e,t,n,i,r,a){return Dd(D(e,t,n,i,r,a,!0))}function _e(e,t,n,i,r){return Dd(se(e,t,n,i,r,!0))}function Ss(e){return e?e.__v_isVNode===!0:!1}function Wi(e,t){return e.type===t.type&&e.key===t.key}const Fd=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||lt(e)||Oe(e)?{i:Mt,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,i=0,r=null,a=e===Be?0:1,f=!1,g=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fd(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:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Mt};return g?(kl(o,n),a&128&&e.normalize(o)):n&&(o.shapeFlag|=ut(n)?8:16),lr>0&&!f&&It&&(o.patchFlag>0||a&6)&&o.patchFlag!==32&&It.push(o),o}const se=Ly;function Ly(e,t=null,n=null,i=0,r=null,a=!1){if((!e||e===ty)&&(e=ti),Ss(e)){const g=xi(e,t,!0);return n&&kl(g,n),lr>0&&!a&&It&&(g.shapeFlag&6?It[It.indexOf(e)]=g:It.push(g)),g.patchFlag=-2,g}if(Hy(e)&&(e=e.__vccOpts),t){t=Oy(t);let{class:g,style:o}=t;g&&!ut(g)&&(t.class=Er(g)),ot(o)&&(yl(o)&&!Ie(o)&&(o=St({},o)),t.style=dl(o))}const f=ut(e)?1:Nd(e)?128:Hv(e)?64:ot(e)?4:Oe(e)?2:0;return D(e,t,n,i,r,f,a,!0)}function Oy(e){return e?yl(e)||Cd(e)?St({},e):e:null}function xi(e,t,n=!1,i=!1){const{props:r,ref:a,patchFlag:f,children:g,transition:o}=e,p=t?Iy(r||{},t):r,s={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Fd(p),ref:t&&t.ref?n&&a?Ie(a)?a.concat(ts(t)):[a,ts(t)]:ts(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:o,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xi(e.ssContent),ssFallback:e.ssFallback&&xi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return o&&i&&_l(s,o.clone(s)),s}function rt(e=" ",t=0){return se(Js,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(),_e(ti,null,e)):se(ti,null,e)}function qt(e){return e==null||typeof e=="boolean"?se(ti):Ie(e)?se(Be,null,e.slice()):Ss(e)?kn(e):se(Js,null,String(e))}function kn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xi(e)}function kl(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Ie(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),kl(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Cd(t)?t._ctx=Mt:r===3&&Mt&&(Mt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Oe(t)?(t={default:t,_ctx:Mt},n=32):(t=String(t),i&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Iy(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Er([t.class,i.class]));else if(r==="style")t.style=dl([t.style,i.style]);else if(Hs(r)){const a=t[r],f=i[r];f&&a!==f&&!(Ie(a)&&a.includes(f))&&(t[r]=a?[].concat(a,f):f)}else r!==""&&(t[r]=i[r])}return t}function Zt(e,t,n,i=null){rn(e,t,7,[n,i])}const Ny=wd();let Dy=0;function Fy(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||Ny,a={uid:Dy++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new zh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ad(i,r),emitsOptions:Id(i,r),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 a.ctx={_:a},a.root=t?t.root:a,a.emit=$y.bind(null,a),e.ce&&e.ce(a),a}let ht=null;const eo=()=>ht||Mt;let _s,Aa;{const e=Gs(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),a=>{r.length>1?r.forEach(f=>f(a)):r[0](a)}};_s=t("__VUE_INSTANCE_SETTERS__",n=>ht=n),Aa=t("__VUE_SSR_SETTERS__",n=>cr=n)}const Or=e=>{const t=ht;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Oc=()=>{ht&&ht.scope.off(),_s(null)};function Pd(e){return e.vnode.shapeFlag&4}let cr=!1;function Py(e,t=!1,n=!1){t&&Aa(t);const{props:i,children:r}=e.vnode,a=Pd(e);hy(e,i,a,t),gy(e,r,n);const f=a?Wy(e,t):void 0;return t&&Aa(!1),f}function Wy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,iy);const{setup:i}=n;if(i){Pn();const r=e.setupContext=i.length>1?zy(e):null,a=Or(e),f=Rr(i,e,0,[e.props,r]),g=Ih(f);if(Wn(),a(),(g||e.sp)&&!qi(e)&&fd(e),g){if(f.then(Oc,Oc),t)return f.then(o=>{Ic(e,o)}).catch(o=>{Xs(o,e,0)});e.asyncDep=f}else Ic(e,f)}else Wd(e)}function Ic(e,t,n){Oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ot(t)&&(e.setupState=od(t)),Wd(e)}function Wd(e,t,n){const i=e.type;e.render||(e.render=i.render||tn);{const r=Or(e);Pn();try{ry(e)}finally{Wn(),r()}}}const By={get(e,t){return mt(e,"get",""),e[t]}};function zy(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,By),slots:e.slots,emit:e.emit,expose:t}}function to(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(od(rd(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 jy(e,t=!0){return Oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Hy(e){return Oe(e)&&"__vccOpts"in e}const Ce=(e,t)=>Dv(e,t,cr);function no(e,t,n){const i=arguments.length;return i===2?ot(t)&&!Ie(t)?Ss(t)?se(e,null,[t]):se(e,t):se(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ss(n)&&(n=[n]),se(e,t,n))}const Uy="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 ka;const Nc=typeof window<"u"&&window.trustedTypes;if(Nc)try{ka=Nc.createPolicy("vue",{createHTML:e=>e})}catch{}const Bd=ka?e=>ka.createHTML(e):e=>e,Vy="http://www.w3.org/2000/svg",Gy="http://www.w3.org/1998/Math/MathML",un=typeof document<"u"?document:null,Dc=un&&un.createElement("template"),Yy={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 r=t==="svg"?un.createElementNS(Vy,e):t==="mathml"?un.createElementNS(Gy,e):n?un.createElement(e,{is:n}):un.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>un.createTextNode(e),createComment:e=>un.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>un.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,a){const f=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===a||!(r=r.nextSibling)););else{Dc.innerHTML=Bd(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const g=Dc.content;if(i==="svg"||i==="mathml"){const o=g.firstChild;for(;o.firstChild;)g.appendChild(o.firstChild);g.removeChild(o)}t.insertBefore(g,n)}return[f?f.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ky=Symbol("_vtc");function Zy(e,t,n){const i=e[Ky];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Fc=Symbol("_vod"),Xy=Symbol("_vsh"),Qy=Symbol(""),qy=/(^|;)\s*display\s*:/;function Jy(e,t,n){const i=e.style,r=ut(n);let a=!1;if(n&&!r){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"&&(a=!0),ns(i,f,n[f])}else if(r){if(t!==n){const f=i[Qy];f&&(n+=";"+f),i.cssText=n,a=qy.test(n)}}else t&&e.removeAttribute("style");Fc in e&&(e[Fc]=a?i.display:"",e[Xy]&&(i.display="none"))}const Pc=/\s*!important$/;function ns(e,t,n){if(Ie(n))n.forEach(i=>ns(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=e0(e,t);Pc.test(n)?e.setProperty(ai(i),n.replace(Pc,""),"important"):e[i]=n}}const Wc=["Webkit","Moz","ms"],Io={};function e0(e,t){const n=Io[t];if(n)return n;let i=jt(t);if(i!=="filter"&&i in e)return Io[t]=i;i=Tr(i);for(let r=0;r<Wc.length;r++){const a=Wc[r]+i;if(a in e)return Io[t]=a}return t}const Bc="http://www.w3.org/1999/xlink";function zc(e,t,n,i,r,a=av(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Bc,t.slice(6,t.length)):e.setAttributeNS(Bc,t,n):n==null||a&&!Ph(n)?e.removeAttribute(t):e.setAttribute(t,a?"":Fn(n)?String(n):n)}function jc(e,t,n,i,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Bd(n):n);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const g=a==="OPTION"?e.getAttribute("value")||"":e.value,o=n==null?e.type==="checkbox"?"on":"":String(n);(g!==o||!("_value"in e))&&(e.value=o),n==null&&e.removeAttribute(t),e._value=n;return}let f=!1;if(n===""||n==null){const g=typeof e[t];g==="boolean"?n=Ph(n):n==null&&g==="string"?(n="",f=!0):g==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(r||t)}function ui(e,t,n,i){e.addEventListener(t,n,i)}function t0(e,t,n,i){e.removeEventListener(t,n,i)}const Hc=Symbol("_vei");function n0(e,t,n,i,r=null){const a=e[Hc]||(e[Hc]={}),f=a[t];if(i&&f)f.value=i;else{const[g,o]=i0(t);if(i){const p=a[t]=o0(i,r);ui(e,g,p,o)}else f&&(t0(e,g,f,o),a[t]=void 0)}}const Uc=/(?:Once|Passive|Capture)$/;function i0(e){let t;if(Uc.test(e)){t={};let i;for(;i=e.match(Uc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ai(e.slice(2)),t]}let No=0;const r0=Promise.resolve(),s0=()=>No||(r0.then(()=>No=0),No=Date.now());function o0(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;rn(a0(i,n.value),t,5,[i])};return n.value=e,n.attached=s0(),n}function a0(e,t){if(Ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const Vc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,l0=(e,t,n,i,r,a)=>{const f=r==="svg";t==="class"?Zy(e,i,f):t==="style"?Jy(e,n,i):Hs(t)?cl(t)||n0(e,t,n,i,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):c0(e,t,i,f))?(jc(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zc(e,t,i,f,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ut(i))?jc(e,jt(t),i,a,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),zc(e,t,i,f))};function c0(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vc(t)&&Oe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Vc(t)&&ut(n)?!1:t in e}const Gc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?n=>qr(t,n):t};function u0(e){e.target.composing=!0}function Yc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Do=Symbol("_assign"),Ml={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[Do]=Gc(r);const a=i||r.props&&r.props.type==="number";ui(e,t?"change":"input",f=>{if(f.target.composing)return;let g=e.value;n&&(g=g.trim()),a&&(g=va(g)),e[Do](g)}),n&&ui(e,"change",()=>{e.value=e.value.trim()}),t||(ui(e,"compositionstart",u0),ui(e,"compositionend",Yc),ui(e,"change",Yc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:r,number:a}},f){if(e[Do]=Gc(f),e.composing)return;const g=(a||e.type==="number")&&!/^0\d/.test(e.value)?va(e.value):e.value,o=t??"";g!==o&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||r&&e.value.trim()===o)||(e.value=o))}},h0=St({patchProp:l0},Yy);let Kc;function d0(){return Kc||(Kc=vy(h0))}const f0=(...e)=>{const t=d0().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=g0(i);if(!r)return;const a=t._component;!Oe(a)&&!a.render&&!a.template&&(a.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const f=n(r,!1,p0(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),f},t};function p0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function g0(e){return ut(e)?document.querySelector(e):e}function Zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zc(Object(n),!0).forEach(function(i){Et(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function m0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v0(e){var t=m0(e,"string");return typeof t=="symbol"?t:t+""}function xs(e){"@babel/helpers - typeof";return xs=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},xs(e)}function Et(e,t,n){return t=v0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y0(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 b0(e,t){if(e==null)return{};var n=y0(e,t),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)i=a[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var w0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zd={exports:{}};(function(e){(function(t){var n=function(b,y,S){if(!p(y)||l(y)||u(y)||c(y)||o(y))return y;var _,C=0,w=0;if(s(y))for(_=[],w=y.length;C<w;C++)_.push(n(b,y[C],S));else{_={};for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&(_[b(A,S)]=n(b,y[A],S))}return _},i=function(b,y){y=y||{};var S=y.separator||"_",_=y.split||/(?=[A-Z])/;return b.split(_).join(S)},r=function(b){return h(b)?b:(b=b.replace(/[\-_\s]+(.)?/g,function(y,S){return S?S.toUpperCase():""}),b.substr(0,1).toLowerCase()+b.substr(1))},a=function(b){var y=r(b);return y.substr(0,1).toUpperCase()+y.substr(1)},f=function(b,y){return i(b,y).toLowerCase()},g=Object.prototype.toString,o=function(b){return typeof b=="function"},p=function(b){return b===Object(b)},s=function(b){return g.call(b)=="[object Array]"},l=function(b){return g.call(b)=="[object Date]"},u=function(b){return g.call(b)=="[object RegExp]"},c=function(b){return g.call(b)=="[object Boolean]"},h=function(b){return b=b-0,b===b},d=function(b,y){var S=y&&"process"in y?y.process:y;return typeof S!="function"?b:function(_,C){return S(_,b,C)}},m={camelize:r,decamelize:f,pascalize:a,depascalize:f,camelizeKeys:function(b,y){return n(d(r,y),b)},decamelizeKeys:function(b,y){return n(d(f,y),b,y)},pascalizeKeys:function(b,y){return n(d(a,y),b)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(w0)})(zd);var S0=zd.exports,_0=["class","style"];function x0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),r=S0.camelize(n.slice(0,i)),a=n.slice(i+1).trim();return t[r]=a,t},{})}function C0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function jd(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(o){return jd(o)}),r=Object.keys(e.attributes||{}).reduce(function(o,p){var s=e.attributes[p];switch(p){case"class":o.class=C0(s);break;case"style":o.style=x0(s);break;default:o.attrs[p]=s}return o},{attrs:{},class:{},style:{}});n.class;var a=n.style,f=a===void 0?{}:a,g=b0(n,_0);return no(e.tag,pn(pn(pn({},t),{},{class:r.class,style:pn(pn({},r.style),f)},r.attrs),g),i)}var Hd=!1;try{Hd=!0}catch{}function $0(){if(!Hd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Fo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Et({},e,t):{}}function A0(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"},Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(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),Et(Et(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 Xc(e){if(e&&xs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ma.icon)return ma.icon(e);if(e===null)return null;if(xs(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 k0=xe({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,r=Ce(function(){return Xc(t.icon)}),a=Ce(function(){return Fo("classes",A0(t))}),f=Ce(function(){return Fo("transform",typeof t.transform=="string"?ma.transform(t.transform):t.transform)}),g=Ce(function(){return Fo("mask",Xc(t.mask))}),o=Ce(function(){return Tm(r.value,pn(pn(pn(pn({},a.value),f.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Qe(o,function(s){if(!s)return $0("Could not find one or more icon(s)",r.value,g.value)},{immediate:!0});var p=Ce(function(){return o.value?jd(o.value.abstract[0],{},i):null});return function(){return p.value}}});function io(e){return jh()?(cv(e),!0):!1}const Po=new WeakMap,M0=(...e)=>{var t;const n=e[0],i=(t=eo())==null?void 0:t.proxy;if(i==null&&!Sd())throw new Error("injectLocal must be called in setup");return i&&Po.has(i)&&n in Po.get(i)?Po.get(i)[n]:zt(...e)},Ud=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const T0=e=>e!=null,E0=Object.prototype.toString,R0=e=>E0.call(e)==="[object Object]",L0=()=>{};function Tl(...e){if(e.length!==1)return bl(...e);const t=e[0];return typeof t=="function"?Zs(ad(()=>({get:t,set:L0}))):Ke(t)}function O0(e,t){function n(...i){return new Promise((r,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(a)})}return n}const Vd=e=>e();function I0(e=Vd,t={}){const{initialState:n="active"}=t,i=Tl(n==="active");function r(){i.value=!1}function a(){i.value=!0}const f=(...g)=>{i.value&&e(...g)};return{isActive:Zs(i),pause:r,resume:a,eventFilter:f}}function Qc(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function is(e){return Array.isArray(e)?e:[e]}function N0(e){return eo()}function D0(e,t,n={}){const{eventFilter:i=Vd,...r}=n;return Qe(e,O0(i,t),r)}function F0(e,t,n={}){const{eventFilter:i,initialState:r="active",...a}=n,{eventFilter:f,pause:g,resume:o,isActive:p}=I0(i,{initialState:r});return{stop:D0(e,t,{...a,eventFilter:f}),pause:g,resume:o,isActive:p}}function Gd(e,t=!0,n){N0()?ct(e,n):t?e():Lr(e)}function Ir(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,r=lt(e),a=Kn(e);function f(g){if(arguments.length)return a.value=g,a.value;{const o=bt(n);return a.value=a.value===o?bt(i):o,a.value}}return r?f:[a,f]}function P0(e,t,n){return Qe(e,t,{...n,immediate:!0})}const Ci=Ud?window:void 0,W0=Ud?window.document:void 0;function El(e){var t;const n=bt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Ma(...e){const t=[],n=()=>{t.forEach(g=>g()),t.length=0},i=(g,o,p,s)=>(g.addEventListener(o,p,s),()=>g.removeEventListener(o,p,s)),r=Ce(()=>{const g=is(bt(e[0])).filter(o=>o!=null);return g.every(o=>typeof o!="string")?g:void 0}),a=P0(()=>{var g,o;return[(o=(g=r.value)==null?void 0:g.map(p=>El(p)))!=null?o:[Ci].filter(p=>p!=null),is(bt(r.value?e[1]:e[0])),is(ce(r.value?e[2]:e[1])),bt(r.value?e[3]:e[2])]},([g,o,p,s])=>{if(n(),!(g!=null&&g.length)||!(o!=null&&o.length)||!(p!=null&&p.length))return;const l=R0(s)?{...s}:s;t.push(...g.flatMap(u=>o.flatMap(c=>p.map(h=>i(u,c,h,l)))))},{flush:"post"}),f=()=>{a(),n()};return io(n),f}function B0(){const e=Kn(!1),t=eo();return t&&ct(()=>{e.value=!0},t),e}function Yd(e){const t=B0();return Ce(()=>(t.value,!!e()))}function z0(e,t,n={}){const{window:i=Ci,...r}=n;let a;const f=Yd(()=>i&&"MutationObserver"in i),g=()=>{a&&(a.disconnect(),a=void 0)},o=Ce(()=>{const u=bt(e),c=is(u).map(El).filter(T0);return new Set(c)}),p=Qe(()=>o.value,u=>{g(),f.value&&u.size&&(a=new MutationObserver(t),u.forEach(c=>a.observe(c,r)))},{immediate:!0,flush:"post"}),s=()=>a==null?void 0:a.takeRecords(),l=()=>{p(),g()};return io(l),{isSupported:f,stop:l,takeRecords:s}}const j0=Symbol("vueuse-ssr-width");function H0(){const e=Sd()?M0(j0,null):null;return typeof e=="number"?e:void 0}function U0(e,t={}){const{window:n=Ci,ssrWidth:i=H0()}=t,r=Yd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),a=Kn(typeof i=="number"),f=Kn(),g=Kn(!1),o=p=>{g.value=p.matches};return Cl(()=>{if(a.value){a.value=!r.value;const p=bt(e).split(",");g.value=p.some(s=>{const l=s.includes("not all"),u=s.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),c=s.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(u||c);return u&&h&&(h=i>=Qc(u[1])),c&&h&&(h=i<=Qc(c[1])),l?!h:h});return}r.value&&(f.value=n.matchMedia(bt(e)),g.value=f.value.matches)}),Ma(f,"change",o,{passive:!0}),Ce(()=>g.value)}const Gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yr="__vueuse_ssr_handlers__",V0=G0();function G0(){return Yr in Gr||(Gr[Yr]=Gr[Yr]||{}),Gr[Yr]}function Kd(e,t){return V0[e]||t}function Y0(e){return U0("(prefers-color-scheme: dark)",e)}function K0(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 Z0={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 X0(e,t,n,i={}){var r;const{flush:a="pre",deep:f=!0,listenToStorageChanges:g=!0,writeDefaults:o=!0,mergeDefaults:p=!1,shallow:s,window:l=Ci,eventFilter:u,onError:c=O=>{console.error(O)},initOnMounted:h}=i,d=(s?Kn:Ke)(typeof t=="function"?t():t),m=Ce(()=>bt(e));if(!n)try{n=Kd("getDefaultStorage",()=>{var O;return(O=Ci)==null?void 0:O.localStorage})()}catch(O){c(O)}if(!n)return d;const b=bt(t),y=K0(b),S=(r=i.serializer)!=null?r:Z0[y],{pause:_,resume:C}=F0(d,()=>A(d.value),{flush:a,deep:f,eventFilter:u});Qe(m,()=>E(),{flush:a}),l&&g&&Gd(()=>{n instanceof Storage?Ma(l,"storage",E,{passive:!0}):Ma(l,qc,T),h&&E()}),h||E();function w(O,$){if(l){const v={key:m.value,oldValue:O,newValue:$,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",v):new CustomEvent(qc,{detail:v}))}}function A(O){try{const $=n.getItem(m.value);if(O==null)w($,null),n.removeItem(m.value);else{const v=S.write(O);$!==v&&(n.setItem(m.value,v),w($,v))}}catch($){c($)}}function R(O){const $=O?O.newValue:n.getItem(m.value);if($==null)return o&&b!=null&&n.setItem(m.value,S.write(b)),b;if(!O&&p){const v=S.read($);return typeof p=="function"?p(v,b):y==="object"&&!Array.isArray(v)?{...b,...v}:v}else return typeof $!="string"?$:S.read($)}function E(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){d.value=b;return}if(!(O&&O.key!==m.value)){_();try{(O==null?void 0:O.newValue)!==S.write(d.value)&&(d.value=R(O))}catch($){c($)}finally{O?Lr(C):C()}}}}function T(O){E(O.detail)}return d}const Q0="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function q0(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=Ci,storage:a,storageKey:f="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:o,emitAuto:p,disableTransition:s=!0}=e,l={auto:"",light:"light",dark:"dark",...e.modes||{}},u=Y0({window:r}),c=Ce(()=>u.value?"dark":"light"),h=o||(f==null?Tl(i):X0(f,i,a,{window:r,listenToStorageChanges:g})),d=Ce(()=>h.value==="auto"?c.value:h.value),m=Kd("updateHTMLAttrs",(_,C,w)=>{const A=typeof _=="string"?r==null?void 0:r.document.querySelector(_):El(_);if(!A)return;const R=new Set,E=new Set;let T=null;if(C==="class"){const $=w.split(/\s/g);Object.values(l).flatMap(v=>(v||"").split(/\s/g)).filter(Boolean).forEach(v=>{$.includes(v)?R.add(v):E.add(v)})}else T={key:C,value:w};if(R.size===0&&E.size===0&&T===null)return;let O;s&&(O=r.document.createElement("style"),O.appendChild(document.createTextNode(Q0)),r.document.head.appendChild(O));for(const $ of R)A.classList.add($);for(const $ of E)A.classList.remove($);T&&A.setAttribute(T.key,T.value),s&&(r.getComputedStyle(O).opacity,document.head.removeChild(O))});function b(_){var C;m(t,n,(C=l[_])!=null?C:_)}function y(_){e.onChanged?e.onChanged(_,b):b(_)}Qe(d,y,{flush:"post",immediate:!0}),Gd(()=>y(d.value));const S=Ce({get(){return p?h.value:d.value},set(_){h.value=_}});return Object.assign(S,{store:h,system:c,state:d})}function Zd(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=q0({...e,onChanged:(f,g)=>{var o;e.onChanged?(o=e.onChanged)==null||o.call(e,f==="dark",g,f):g(f)},modes:{dark:t,light:n}}),r=Ce(()=>i.system.value);return Ce({get(){return i.value==="dark"},set(f){const g=f?"dark":"light";r.value===g?i.value="auto":i.value=g}})}function Sn(e=null,t={}){var n,i,r;const{document:a=W0,restoreOnUnmount:f=l=>l}=t,g=(n=a==null?void 0:a.title)!=null?n:"",o=Tl((i=e??(a==null?void 0:a.title))!=null?i:null),p=!!(e&&typeof e=="function");function s(l){if(!("titleTemplate"in t))return l;const u=t.titleTemplate||"%s";return typeof u=="function"?u(l):bt(u).replace(/%s/g,l)}return Qe(o,(l,u)=>{l!==u&&a&&(a.title=s(l??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!p&&z0((r=a.head)==null?void 0:r.querySelector("title"),()=>{a&&a.title!==o.value&&(o.value=s(a.title))},{childList:!0}),io(()=>{if(f){const l=f(g,o.value||"");l!=null&&a&&(a.title=l)}}),o}const J0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},eb={class:"navbar-menu"},tb={class:"navbar-start"},nb={class:"navbar-end"},ib={class:"navbar-item"},rb=xe({__name:"NavbarItem",setup(e){const t=Zd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=Ir(t);return(i,r)=>{const a=Ze("router-link"),f=Ze("font-awesome-icon");return Y(),re("nav",J0,[r[8]||(r[8]=D("div",{class:"navbar-brand"},[D("a",{class:"navbar-item"},[D("h1",{class:"title"},"Mihari")])],-1)),D("div",eb,[D("div",tb,[se(a,{class:"navbar-item",to:{name:"Alerts"}},{default:it(()=>r[1]||(r[1]=[rt("Alerts")])),_:1}),se(a,{class:"navbar-item",to:{name:"Artifacts"}},{default:it(()=>r[2]||(r[2]=[rt("Artifacts")])),_:1}),se(a,{class:"navbar-item",to:{name:"Rules"}},{default:it(()=>r[3]||(r[3]=[rt("Rules")])),_:1}),se(a,{class:"navbar-item",to:{name:"NewRule"}},{default:it(()=>r[4]||(r[4]=[rt("New Rule")])),_:1}),se(a,{class:"navbar-item",to:{name:"Config"}},{default:it(()=>r[5]||(r[5]=[rt("Config")])),_:1}),r[6]||(r[6]=D("a",{class:"navbar-item"},[D("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),r[7]||(r[7]=D("a",{class:"navbar-item"},[D("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1))]),D("div",nb,[D("div",ib,[D("span",{class:"icon",onClick:r[0]||(r[0]=g=>ce(n)())},[se(f,{icon:ce(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),Nr=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},sb=Nr(rb,[["__scopeId","data-v-a9b95eb0"]]),ob={class:"section is-medium"},ab={class:"container"},lb=xe({__name:"App",setup(e){return(t,n)=>{const i=Ze("router-view");return Y(),re(Be,null,[se(sb),D("section",ob,[D("div",ab,[se(i)])])],64)}}});/*!
|
581
|
+
* vue-router v4.5.0
|
582
|
+
* (c) 2024 Eduardo San Martin Morote
|
583
|
+
* @license MIT
|
584
|
+
*/const hi=typeof document<"u";function Xd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Xd(e.default)}const Ge=Object.assign;function Wo(e,t){const n={};for(const i in t){const r=t[i];n[i]=Gt(r)?r.map(e):e(r)}return n}const tr=()=>{},Gt=Array.isArray,Qd=/#/g,ub=/&/g,hb=/\//g,db=/=/g,fb=/\?/g,qd=/\+/g,pb=/%5B/g,gb=/%5D/g,Jd=/%5E/g,mb=/%60/g,ef=/%7B/g,vb=/%7C/g,tf=/%7D/g,yb=/%20/g;function Rl(e){return encodeURI(""+e).replace(vb,"|").replace(pb,"[").replace(gb,"]")}function bb(e){return Rl(e).replace(ef,"{").replace(tf,"}").replace(Jd,"^")}function Ta(e){return Rl(e).replace(qd,"%2B").replace(yb,"+").replace(Qd,"%23").replace(ub,"%26").replace(mb,"`").replace(ef,"{").replace(tf,"}").replace(Jd,"^")}function wb(e){return Ta(e).replace(db,"%3D")}function Sb(e){return Rl(e).replace(Qd,"%23").replace(fb,"%3F")}function _b(e){return e==null?"":Sb(e).replace(hb,"%2F")}function ur(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const xb=/\/$/,Cb=e=>e.replace(xb,"");function Bo(e,t,n="/"){let i,r={},a="",f="";const g=t.indexOf("#");let o=t.indexOf("?");return g<o&&g>=0&&(o=-1),o>-1&&(i=t.slice(0,o),a=t.slice(o+1,g>-1?g:t.length),r=e(a)),g>-1&&(i=i||t.slice(0,g),f=t.slice(g,t.length)),i=Mb(i??t,n),{fullPath:i+(a&&"?")+a+f,path:i,query:r,hash:ur(f)}}function $b(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Jc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ab(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&$i(t.matched[i],n.matched[r])&&nf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function $i(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(!kb(e[n],t[n]))return!1;return!0}function kb(e,t){return Gt(e)?eu(e,t):Gt(t)?eu(t,e):e===t}function eu(e,t){return Gt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Mb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let a=n.length-1,f,g;for(f=0;f<i.length;f++)if(g=i[f],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).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 Tb(e){if(!e)if(hi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Cb(e)}const Eb=/^[^#]+#/;function Rb(e,t){return e.replace(Eb,"#")+t}function Lb(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 ro=()=>({left:window.scrollX,top:window.scrollY});function Ob(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Lb(r,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 tu(e,t){return(history.state?history.state.position-t:-1)+e}const Ea=new Map;function Ib(e,t){Ea.set(e,t)}function Nb(e){const t=Ea.get(e);return Ea.delete(e),t}let Db=()=>location.protocol+"//"+location.host;function rf(e,t){const{pathname:n,search:i,hash:r}=t,a=e.indexOf("#");if(a>-1){let g=r.includes(e.slice(a))?e.slice(a).length:1,o=r.slice(g);return o[0]!=="/"&&(o="/"+o),Jc(o,"")}return Jc(n,e)+i+r}function Fb(e,t,n,i){let r=[],a=[],f=null;const g=({state:u})=>{const c=rf(e,location),h=n.value,d=t.value;let m=0;if(u){if(n.value=c,t.value=u,f&&f===h){f=null;return}m=d?u.position-d.position:0}else i(c);r.forEach(b=>{b(n.value,h,{delta:m,type:hr.pop,direction:m?m>0?nr.forward:nr.back:nr.unknown})})};function o(){f=n.value}function p(u){r.push(u);const c=()=>{const h=r.indexOf(u);h>-1&&r.splice(h,1)};return a.push(c),c}function s(){const{history:u}=window;u.state&&u.replaceState(Ge({},u.state,{scroll:ro()}),"")}function l(){for(const u of a)u();a=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:o,listen:p,destroy:l}}function nu(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?ro():null}}function Pb(e){const{history:t,location:n}=window,i={value:rf(e,n)},r={value:t.state};r.value||a(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(o,p,s){const l=e.indexOf("#"),u=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:Db()+e+o;try{t[s?"replaceState":"pushState"](p,"",u),r.value=p}catch(c){console.error(c),n[s?"replace":"assign"](u)}}function f(o,p){const s=Ge({},t.state,nu(r.value.back,o,r.value.forward,!0),p,{position:r.value.position});a(o,s,!0),i.value=o}function g(o,p){const s=Ge({},r.value,t.state,{forward:o,scroll:ro()});a(s.current,s,!0);const l=Ge({},nu(i.value,o,null),{position:s.position+1},p);a(o,l,!1),i.value=o}return{location:i,state:r,push:g,replace:f}}function Wb(e){e=Tb(e);const t=Pb(e),n=Fb(e,t.state,t.location,t.replace);function i(a,f=!0){f||n.pauseListeners(),history.go(a)}const r=Ge({location:"",base:e,go:i,createHref:Rb.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Bb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Wb(e)}function zb(e){return typeof e=="string"||e&&typeof e=="object"}function sf(e){return typeof e=="string"||typeof e=="symbol"}const of=Symbol("");var iu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(iu||(iu={}));function Ai(e,t){return Ge(new Error,{type:e,[of]:!0},t)}function ln(e,t){return e instanceof Error&&of in e&&(t==null||!!(e.type&t))}const ru="[^/]+?",jb={sensitive:!1,strict:!1,start:!0,end:!0},Hb=/[.+*?^${}()[\]/\\]/g;function Ub(e,t){const n=Ge({},jb,t),i=[];let r=n.start?"^":"";const a=[];for(const p of e){const s=p.length?[]:[90];n.strict&&!p.length&&(r+="/");for(let l=0;l<p.length;l++){const u=p[l];let c=40+(n.sensitive?.25:0);if(u.type===0)l||(r+="/"),r+=u.value.replace(Hb,"\\$&"),c+=40;else if(u.type===1){const{value:h,repeatable:d,optional:m,regexp:b}=u;a.push({name:h,repeatable:d,optional:m});const y=b||ru;if(y!==ru){c+=10;try{new RegExp(`(${y})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+_.message)}}let S=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;l||(S=m&&p.length<2?`(?:/${S})`:"/"+S),m&&(S+="?"),r+=S,c+=20,m&&(c+=-8),d&&(c+=-20),y===".*"&&(c+=-50)}s.push(c)}i.push(s)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const f=new RegExp(r,n.sensitive?"":"i");function g(p){const s=p.match(f),l={};if(!s)return null;for(let u=1;u<s.length;u++){const c=s[u]||"",h=a[u-1];l[h.name]=c&&h.repeatable?c.split("/"):c}return l}function o(p){let s="",l=!1;for(const u of e){(!l||!s.endsWith("/"))&&(s+="/"),l=!1;for(const c of u)if(c.type===0)s+=c.value;else if(c.type===1){const{value:h,repeatable:d,optional:m}=c,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)u.length<2&&(s.endsWith("/")?s=s.slice(0,-1):l=!0);else throw new Error(`Missing required param "${h}"`);s+=y}}return s||"/"}return{re:f,score:i,keys:a,parse:g,stringify:o}}function Vb(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,r=t.score;for(;n<i.length&&n<r.length;){const a=Vb(i[n],r[n]);if(a)return a;n++}if(Math.abs(r.length-i.length)===1){if(su(i))return 1;if(su(r))return-1}return r.length-i.length}function su(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Gb={type:0,value:""},Yb=/[a-zA-Z0-9_]/;function Kb(e){if(!e)return[[]];if(e==="/")return[[Gb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${p}": ${c}`)}let n=0,i=n;const r=[];let a;function f(){a&&r.push(a),a=[]}let g=0,o,p="",s="";function l(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===3?(a.length>1&&(o==="*"||o==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:s,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):t("Invalid state to consume buffer"),p="")}function u(){p+=o}for(;g<e.length;){if(o=e[g++],o==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:o==="/"?(p&&l(),f()):o===":"?(l(),n=1):u();break;case 4:u(),n=i;break;case 1:o==="("?n=2:Yb.test(o)?u():(l(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&g--);break;case 2:o===")"?s[s.length-1]=="\\"?s=s.slice(0,-1)+o:n=3:s+=o;break;case 3:l(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&g--,s="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),l(),f(),r}function Zb(e,t,n){const i=Ub(Kb(e.path),n),r=Ge(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Xb(e,t){const n=[],i=new Map;t=cu({strict:!1,end:!0,sensitive:!1},t);function r(l){return i.get(l)}function a(l,u,c){const h=!c,d=au(l);d.aliasOf=c&&c.record;const m=cu(t,l),b=[d];if("alias"in l){const _=typeof l.alias=="string"?[l.alias]:l.alias;for(const C of _)b.push(au(Ge({},d,{components:c?c.record.components:d.components,path:C,aliasOf:c?c.record:d})))}let y,S;for(const _ of b){const{path:C}=_;if(u&&C[0]!=="/"){const w=u.record.path,A=w[w.length-1]==="/"?"":"/";_.path=u.record.path+(C&&A+C)}if(y=Zb(_,u,m),c?c.alias.push(y):(S=S||y,S!==y&&S.alias.push(y),h&&l.name&&!lu(y)&&f(l.name)),lf(y)&&o(y),d.children){const w=d.children;for(let A=0;A<w.length;A++)a(w[A],y,c&&c.children[A])}c=c||y}return S?()=>{f(S)}:tr}function f(l){if(sf(l)){const u=i.get(l);u&&(i.delete(l),n.splice(n.indexOf(u),1),u.children.forEach(f),u.alias.forEach(f))}else{const u=n.indexOf(l);u>-1&&(n.splice(u,1),l.record.name&&i.delete(l.record.name),l.children.forEach(f),l.alias.forEach(f))}}function g(){return n}function o(l){const u=Jb(l,n);n.splice(u,0,l),l.record.name&&!lu(l)&&i.set(l.record.name,l)}function p(l,u){let c,h={},d,m;if("name"in l&&l.name){if(c=i.get(l.name),!c)throw Ai(1,{location:l});m=c.record.name,h=Ge(ou(u.params,c.keys.filter(S=>!S.optional).concat(c.parent?c.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),l.params&&ou(l.params,c.keys.map(S=>S.name))),d=c.stringify(h)}else if(l.path!=null)d=l.path,c=n.find(S=>S.re.test(d)),c&&(h=c.parse(d),m=c.record.name);else{if(c=u.name?i.get(u.name):n.find(S=>S.re.test(u.path)),!c)throw Ai(1,{location:l,currentLocation:u});m=c.record.name,h=Ge({},u.params,l.params),d=c.stringify(h)}const b=[];let y=c;for(;y;)b.unshift(y.record),y=y.parent;return{name:m,path:d,params:h,matched:b,meta:qb(b)}}e.forEach(l=>a(l));function s(){n.length=0,i.clear()}return{addRoute:a,resolve:p,removeRoute:f,clearRoutes:s,getRoutes:g,getRecordMatcher:r}}function ou(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function au(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Qb(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 Qb(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 lu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qb(e){return e.reduce((t,n)=>Ge(t,n.meta),{})}function cu(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Jb(e,t){let n=0,i=t.length;for(;n!==i;){const a=n+i>>1;af(e,t[a])<0?i=a:n=a+1}const r=e1(e);return r&&(i=t.lastIndexOf(r,i-1)),i}function e1(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 t1(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<i.length;++r){const a=i[r].replace(qd," "),f=a.indexOf("="),g=ur(f<0?a:a.slice(0,f)),o=f<0?null:ur(a.slice(f+1));if(g in t){let p=t[g];Gt(p)||(p=t[g]=[p]),p.push(o)}else t[g]=o}return t}function uu(e){let t="";for(let n in e){const i=e[n];if(n=wb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Gt(i)?i.map(a=>a&&Ta(a)):[i&&Ta(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function n1(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Gt(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return t}const i1=Symbol(""),hu=Symbol(""),so=Symbol(""),Ll=Symbol(""),Ra=Symbol("");function Bi(){let e=[];function t(i){return e.push(i),()=>{const r=e.indexOf(i);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Mn(e,t,n,i,r,a=f=>f()){const f=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((g,o)=>{const p=u=>{u===!1?o(Ai(4,{from:n,to:t})):u instanceof Error?o(u):zb(u)?o(Ai(2,{from:t,to:u})):(f&&i.enterCallbacks[r]===f&&typeof u=="function"&&f.push(u),g())},s=a(()=>e.call(i&&i.instances[r],t,n,p));let l=Promise.resolve(s);e.length<3&&(l=l.then(p)),l.catch(u=>o(u))})}function zo(e,t,n,i,r=a=>a()){const a=[];for(const f of e)for(const g in f.components){let o=f.components[g];if(!(t!=="beforeRouteEnter"&&!f.instances[g]))if(Xd(o)){const s=(o.__vccOpts||o)[t];s&&a.push(Mn(s,n,i,f,g,r))}else{let p=o();a.push(()=>p.then(s=>{if(!s)throw new Error(`Couldn't resolve component "${g}" at "${f.path}"`);const l=cb(s)?s.default:s;f.mods[g]=s,f.components[g]=l;const c=(l.__vccOpts||l)[t];return c&&Mn(c,n,i,f,g,r)()}))}}return a}function du(e){const t=zt(so),n=zt(Ll),i=Ce(()=>{const o=ce(e.to);return t.resolve(o)}),r=Ce(()=>{const{matched:o}=i.value,{length:p}=o,s=o[p-1],l=n.matched;if(!s||!l.length)return-1;const u=l.findIndex($i.bind(null,s));if(u>-1)return u;const c=fu(o[p-2]);return p>1&&fu(s)===c&&l[l.length-1].path!==c?l.findIndex($i.bind(null,o[p-2])):u}),a=Ce(()=>r.value>-1&&l1(n.params,i.value.params)),f=Ce(()=>r.value>-1&&r.value===n.matched.length-1&&nf(n.params,i.value.params));function g(o={}){if(a1(o)){const p=t[ce(e.replace)?"replace":"push"](ce(e.to)).catch(tr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:Ce(()=>i.value.href),isActive:a,isExactActive:f,navigate:g}}function r1(e){return e.length===1?e[0]:e}const s1=xe({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:du,setup(e,{slots:t}){const n=Oi(du(e)),{options:i}=zt(so),r=Ce(()=>({[pu(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[pu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&r1(t.default(n));return e.custom?a:no("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},a)}}}),o1=s1;function a1(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 l1(e,t){for(const n in t){const i=t[n],r=e[n];if(typeof i=="string"){if(i!==r)return!1}else if(!Gt(r)||r.length!==i.length||i.some((a,f)=>a!==r[f]))return!1}return!0}function fu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pu=(e,t,n)=>e??t??n,c1=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=zt(Ra),r=Ce(()=>e.route||i.value),a=zt(hu,0),f=Ce(()=>{let p=ce(a);const{matched:s}=r.value;let l;for(;(l=s[p])&&!l.components;)p++;return p}),g=Ce(()=>r.value.matched[f.value]);Jr(hu,Ce(()=>f.value+1)),Jr(i1,g),Jr(Ra,r);const o=Ke();return Qe(()=>[o.value,g.value,e.name],([p,s,l],[u,c,h])=>{s&&(s.instances[l]=p,c&&c!==s&&p&&p===u&&(s.leaveGuards.size||(s.leaveGuards=c.leaveGuards),s.updateGuards.size||(s.updateGuards=c.updateGuards))),p&&s&&(!c||!$i(s,c)||!u)&&(s.enterCallbacks[l]||[]).forEach(d=>d(p))},{flush:"post"}),()=>{const p=r.value,s=e.name,l=g.value,u=l&&l.components[s];if(!u)return gu(n.default,{Component:u,route:p});const c=l.props[s],h=c?c===!0?p.params:typeof c=="function"?c(p):c:null,m=no(u,Ge({},h,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(l.instances[s]=null)},ref:o}));return gu(n.default,{Component:m,route:p})||m}}});function gu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const u1=c1;function h1(e){const t=Xb(e.routes,e),n=e.parseQuery||t1,i=e.stringifyQuery||uu,r=e.history,a=Bi(),f=Bi(),g=Bi(),o=Kn($n);let p=$n;hi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=Wo.bind(null,j=>""+j),l=Wo.bind(null,_b),u=Wo.bind(null,ur);function c(j,Q){let q,Z;return sf(j)?(q=t.getRecordMatcher(j),Z=Q):Z=j,t.addRoute(Z,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=Ge({},Q||o.value),typeof j=="string"){const G=Bo(n,j,Q.path),J=t.resolve({path:G.path},Q),te=r.createHref(G.fullPath);return Ge(G,J,{params:u(J.params),hash:ur(G.hash),redirectedFrom:void 0,href:te})}let q;if(j.path!=null)q=Ge({},j,{path:Bo(n,j.path,Q.path).path});else{const G=Ge({},j.params);for(const J in G)G[J]==null&&delete G[J];q=Ge({},j,{params:l(G)}),Q.params=l(Q.params)}const Z=t.resolve(q,Q),ue=j.hash||"";Z.params=s(u(Z.params));const P=$b(i,Ge({},j,{hash:bb(ue),path:Z.path})),z=r.createHref(P);return Ge({fullPath:P,hash:ue,query:i===uu?n1(j.query):j.query||{}},Z,{redirectedFrom:void 0,href:z})}function y(j){return typeof j=="string"?Bo(n,j,o.value.path):Ge({},j)}function S(j,Q){if(p!==j)return Ai(8,{from:Q,to:j})}function _(j){return A(j)}function C(j){return _(Ge(y(j),{replace:!0}))}function w(j){const Q=j.matched[j.matched.length-1];if(Q&&Q.redirect){const{redirect:q}=Q;let Z=typeof q=="function"?q(j):q;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=y(Z):{path:Z},Z.params={}),Ge({query:j.query,hash:j.hash,params:Z.path!=null?{}:j.params},Z)}}function A(j,Q){const q=p=b(j),Z=o.value,ue=j.state,P=j.force,z=j.replace===!0,G=w(q);if(G)return A(Ge(y(G),{state:typeof G=="object"?Ge({},ue,G.state):ue,force:P,replace:z}),Q||q);const J=q;J.redirectedFrom=Q;let te;return!P&&Ab(i,Z,q)&&(te=Ai(16,{to:J,from:Z}),W(Z,Z,!0,!1)),(te?Promise.resolve(te):T(J,Z)).catch(ie=>ln(ie)?ln(ie,2)?ie:F(ie):I(ie,J,Z)).then(ie=>{if(ie){if(ln(ie,2))return A(Ge({replace:z},y(ie.to),{state:typeof ie.to=="object"?Ge({},ue,ie.to.state):ue,force:P}),Q||J)}else ie=$(J,Z,!0,z,ue);return O(J,Z,ie),ie})}function R(j,Q){const q=S(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 T(j,Q){let q;const[Z,ue,P]=d1(j,Q);q=zo(Z.reverse(),"beforeRouteLeave",j,Q);for(const G of Z)G.leaveGuards.forEach(J=>{q.push(Mn(J,j,Q))});const z=R.bind(null,j,Q);return q.push(z),V(q).then(()=>{q=[];for(const G of a.list())q.push(Mn(G,j,Q));return q.push(z),V(q)}).then(()=>{q=zo(ue,"beforeRouteUpdate",j,Q);for(const G of ue)G.updateGuards.forEach(J=>{q.push(Mn(J,j,Q))});return q.push(z),V(q)}).then(()=>{q=[];for(const G of P)if(G.beforeEnter)if(Gt(G.beforeEnter))for(const J of G.beforeEnter)q.push(Mn(J,j,Q));else q.push(Mn(G.beforeEnter,j,Q));return q.push(z),V(q)}).then(()=>(j.matched.forEach(G=>G.enterCallbacks={}),q=zo(P,"beforeRouteEnter",j,Q,E),q.push(z),V(q))).then(()=>{q=[];for(const G of f.list())q.push(Mn(G,j,Q));return q.push(z),V(q)}).catch(G=>ln(G,8)?G:Promise.reject(G))}function O(j,Q,q){g.list().forEach(Z=>E(()=>Z(j,Q,q)))}function $(j,Q,q,Z,ue){const P=S(j,Q);if(P)return P;const z=Q===$n,G=hi?history.state:{};q&&(Z||z?r.replace(j.fullPath,Ge({scroll:z&&G&&G.scroll},ue)):r.push(j.fullPath,ue)),o.value=j,W(j,Q,q,z),F()}let v;function x(){v||(v=r.listen((j,Q,q)=>{if(!K.listening)return;const Z=b(j),ue=w(Z);if(ue){A(Ge(ue,{replace:!0,force:!0}),Z).catch(tr);return}p=Z;const P=o.value;hi&&Ib(tu(P.fullPath,q.delta),ro()),T(Z,P).catch(z=>ln(z,12)?z:ln(z,2)?(A(Ge(y(z.to),{force:!0}),Z).then(G=>{ln(G,20)&&!q.delta&&q.type===hr.pop&&r.go(-1,!1)}).catch(tr),Promise.reject()):(q.delta&&r.go(-q.delta,!1),I(z,Z,P))).then(z=>{z=z||$(Z,P,!1),z&&(q.delta&&!ln(z,8)?r.go(-q.delta,!1):q.type===hr.pop&&ln(z,20)&&r.go(-1,!1)),O(Z,P,z)}).catch(tr)}))}let k=Bi(),M=Bi(),L;function I(j,Q,q){F(j);const Z=M.list();return Z.length?Z.forEach(ue=>ue(j,Q,q)):console.error(j),Promise.reject(j)}function N(){return L&&o.value!==$n?Promise.resolve():new Promise((j,Q)=>{k.add([j,Q])})}function F(j){return L||(L=!j,x(),k.list().forEach(([Q,q])=>j?q(j):Q()),k.reset()),j}function W(j,Q,q,Z){const{scrollBehavior:ue}=e;if(!hi||!ue)return Promise.resolve();const P=!q&&Nb(tu(j.fullPath,0))||(Z||!q)&&history.state&&history.state.scroll||null;return Lr().then(()=>ue(j,Q,P)).then(z=>z&&Ob(z)).catch(z=>I(z,j,Q))}const U=j=>r.go(j);let B;const H=new Set,K={currentRoute:o,listening:!0,addRoute:c,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:d,resolve:b,options:e,push:_,replace:C,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:a.add,beforeResolve:f.add,afterEach:g.add,onError:M.add,isReady:N,install(j){const Q=this;j.component("RouterLink",o1),j.component("RouterView",u1),j.config.globalProperties.$router=Q,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>ce(o)}),hi&&!B&&o.value===$n&&(B=!0,_(r.location).catch(ue=>{}));const q={};for(const ue in $n)Object.defineProperty(q,ue,{get:()=>o.value[ue],enumerable:!0});j.provide(so,Q),j.provide(Ll,id(q)),j.provide(Ra,o);const Z=j.unmount;H.add(j),j.unmount=function(){H.delete(j),H.size<1&&(p=$n,v&&v(),v=null,o.value=$n,B=!1,L=!1),Z()}}};function V(j){return j.reduce((Q,q)=>Q.then(()=>E(q)),Promise.resolve())}return K}function d1(e,t){const n=[],i=[],r=[],a=Math.max(t.matched.length,e.matched.length);for(let f=0;f<a;f++){const g=t.matched[f];g&&(e.matched.find(p=>$i(p,g))?i.push(g):n.push(g));const o=e.matched[f];o&&(t.matched.find(p=>$i(p,o))||r.push(o))}return[n,i,r]}function Ii(){return zt(so)}function f1(e){return zt(Ll)}const jo=new WeakMap;function ki(e,t,n={}){const{mode:i="replace",route:r=f1(),router:a=Ii(),transform:f}=n;let g=c=>c,o=c=>c;typeof f=="function"?g=f:f&&(f.get&&(g=f.get),f.set&&(o=f.set)),jo.has(a)||jo.set(a,new Map);const p=jo.get(a);let s=r.query[e];io(()=>{s=void 0});let l;const u=ad((c,h)=>(l=h,{get(){return c(),g(s!==void 0?s:bt(t))},set(d){d=o(d),s!==d&&(s=d===bt(t)?void 0:d,p.set(e,d===bt(t)?void 0:d),h(),Lr(()=>{if(p.size===0)return;const m=Object.fromEntries(p.entries());p.clear();const{params:b,query:y,hash:S}=r;a[bt(i)]({params:b,query:{...y,...m},hash:S})}))}}));return Qe(()=>r.query[e],c=>{s!==g(c)&&(s=c,l())},{flush:"sync"}),u}/*! CAF: shared.mjs
|
585
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
586
|
+
MIT License: http://getify.mit-license.org
|
587
|
+
*/const gn=Symbol("Cleanup Function"),Ol=Symbol("Timeout Token"),pi=Symbol("Signal Reason"),pt=Symbol("Unset"),[rs,p1]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Nl(t.signal.reason)]}();class ni{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[pi]=pt;var i=(r,a)=>{var f=()=>{if(a&&this.signal){let g=Dr(this.signal);this._trackSignalReason(g),a(g!==pt?g:void 0)}a=null};this.signal.addEventListener("abort",f,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",f,!1),this.signal.pr&&(this.signal.pr[gn]=null)),f=null}};this.signal.pr=new Promise(i),this.signal.pr[gn]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:pt;this._trackSignalReason(n),this.controller&&(rs&&n!==pt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[gn]&&this.signal.pr[gn](),this.signal.pr=null),delete this.signal[pi],rs||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==pt&&(rs||"reason"in this.signal||(this.signal.reason=t),this.signal[pi]===pt&&(this.signal[pi]=t))}}function Dr(e){return e&&e.aborted?rs&&p1?Nl(e.reason)?pt:e.reason:pi in e?e[pi]:pt:pt}function cf(e){if(e.pr)return e.pr;var t,n=new Promise(function(r,a){t=()=>{if(a&&e){let f=Dr(e);a(f!==pt?f:void 0)}a=null},e.addEventListener("abort",t,!1)});return n[gn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[gn]=t=null)},n.catch(n[gn]),n}function Il(e){e instanceof AbortController&&(e=new ni(e));var t=e&&e instanceof ni?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:cf(t)}}function La(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Hn(e){return typeof e=="function"}function g1(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Nl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function oo(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 Oa=Object.assign(m1,{cancelToken:ni,delay:uf,timeout:v1,signalRace:y1,signalAll:b1,tokenCycle:w1});function m1(e){return function(n,...i){var r,a;if({tokenOrSignal:n,signal:r,signalPr:a}=Il(n),r.aborted)return a;var f=a.catch(function(l){var u=Dr(r);u=u!==pt?u:l;try{var c=g.return();throw c.value!==void 0?c.value:u!==pt?u:void 0}finally{g=o=f=p=null}}),{it:g,result:o}=S1.call(this,e,r,...i),p=Promise.race([o,f]);if(n!==r&&n[Ol]){let s=function(u){oo(n,u),Hn(n.discard)&&n.discard(),n=s=null};p.then(s,s)}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(a,f){n&&(i.catch(function(){if(f&&n&&g){let p=Dr(n);clearTimeout(g),f(p!==pt?p:`delay (${t}) interrupted`),a=f=g=n=null}}),i=null);var g=setTimeout(function(){a(`delayed: ${t}`),a=f=g=n=null},t)})}function v1(e,t="Timeout"){e=Number(e)||0;var n=new ni;return uf(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,Ol,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...r){oo(n,r.length>0?r[0]:pt),n.discard(),n=null}}function hf(e){return e.reduce(function(n,i){var r=cf(i);return n[0].push(r),i.pr||n[1].push(r),n},[[],[]])}function df(e,t,n){e.then(function(r){oo(t,r),t.discard(),t=null}).then(function(){for(let r of n)r[gn]&&r[gn]();n=null})}function ff(e){return e.catch(t=>t)}function y1(e){var t=new ni,[n,i]=hf(e);return df(ff(Promise.race(n)),t,i),t.signal}function b1(e){var t=new ni,[n,i]=hf(e);return df(Promise.all(n.map(ff)),t,i),t.signal}function w1(){var e;return function(...n){return e&&(oo(e,n.length>0?n[0]:pt),e.discard()),e=new ni}}function S1(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(r){try{var a=n.next(r);r=null}catch(f){return Promise.reject(f)}return function f(g){var o=Promise.resolve(g.value);return g.done?n=null:(o=o.then(i,function(s){return Promise.resolve(n.throw(s)).then(f)})).catch(function(){n=null}),g=null,o}(a)}()}}/*! CAF: cag.mjs
|
591
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
592
|
+
MIT License: http://getify.mit-license.org
|
593
|
+
*/Na=Oa(Na);Object.assign(gf,{onEvent:mf,onceEvent:Na});var Ia=new WeakSet;const Ho=Symbol("unset"),pf=Symbol("returned"),mu=Symbol("canceled");function gf(e){return function(n,...i){var r,a;if({tokenOrSignal:n,signal:r,signalPr:a}=Il(n),r.aborted){let l=Dr(r);throw l=l!==pt?l:"Aborted",l}var f=La(),{it:g,ait:o}=x1(e,f.pr,s,r,...i),p=o.return;return o.return=function(u){try{return f.pr.resolved=!0,f.resolve(pf),Promise.resolve(g.return(u))}finally{p.call(o),s()}},o;function s(){n&&n!==r&&n[Ol]&&n.abort(),o&&(o.return=p,n=f=g=o=p=null)}}}function mf(e,t,n,i=!1){var r,a,f=!1,g=gf(function*({pwait:l}){f||o();try{for(;;){if(r.length==0){let{pr:u,resolve:c}=La();r.push(u),a.push(c)}yield yield l(r.shift())}}finally{Hn(t.removeEventListener)?t.removeEventListener(n,p,i):Hn(t.removeListener)?t.removeListener(n,p):Hn(t.off)&&t.off(n,p),r.length=a.length=0}})(e,t,n,i);return g.start=o,g;function o(){f||(f=!0,r=[],a=[],Hn(t.addEventListener)?t.addEventListener(n,p,i):Hn(t.addListener)?t.addListener(n,p):Hn(t.on)&&t.on(n,p))}function p(s){if(a.length>0)a.shift()(s);else{let{pr:l,resolve:u}=La();r.push(l),u(s)}}}function*Na(e,t,n,i=!1){try{var r=mf(e,t,n,i);return(yield r.next()).value}finally{r.return()}}function _1(e){var t=Promise.resolve(e);return Ia.add(t),t}function x1(e,t,n,i,...r){var a=e.call(this,{signal:i,pwait:_1},...r);e=r=null;var f=i.pr.catch(g=>{throw{[mu]:!0,reason:g}});return f.catch(()=>{}),{it:a,ait:async function*(){var o,p=Ho;try{for(;!t.resolved;)if(p!==Ho?(o=p,p=Ho,o=a.throw(o)):o=a.next(o),g1(o.value))if(Ia.has(o.value)){Ia.delete(o.value);try{if((o=await Promise.race([t,f,o.value]))===pf)return}catch(s){if(s[mu]){let l=a.return();throw l.value!==void 0?l.value:s.reason}p=s}}else o=yield o.value;else{if(o.done)return o.value;o=yield o.value}}finally{a=t=null,n()}}()}}const C1=e=>e._runningInstances.length>=e._maxConcurrency,$1=e=>{const t=e._activeInstances[0];t&&t.cancel()},A1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function zi(e,t){return t?k1(()=>e()._instances,t):Ce(()=>[])}function k1(e,t,n){return Ce(()=>e().filter(i=>i[t]))}function M1(e){return Ce(()=>e().length)}function vu(e){return Ce(()=>{const t=e();return t[t.length-1]})}function T1(e){return Ce(()=>e()[0])}const vf=e=>e;function yf(e){return Oi(e)}function E1(){const e={},t=new Promise((n,i)=>{e.resolve=n,e.reject=i});return e.promise=t,e}function xt(e){return O1(function*(t,...n){return e(t,...n)})}function R1(e,t,n){const i=vf({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Ce(()=>r.isCanceling&&r.isFinished),isActive:Ce(()=>r.isRunning&&!r.isCanceling),isSuccessful:!1,isNotDropped:Ce(()=>!r.isDropped),isError:Ce(()=>!!r.error),status:Ce(()=>{const f=r,g=[[f.isRunning,"running"],[f.isEnqueued,"enqueued"],[f.isCanceled,"canceled"],[f.isCanceling,"canceling"],[f.isDropped,"dropped"],[f.isError,"error"],[f.isSuccessful,"success"]].find(([o])=>o);return g&&g[1]}),error:null,value:null,cancel({force:f}={force:!1}){if(f||(r.isCanceling=!0,r.isEnqueued&&(r.isFinished=!0),r.isEnqueued=!1),r.token&&r._canAbort){r.token.abort("cancel");try{r.token.discard()}catch{}r.token=void 0,r._canAbort=!1}},canceledOn(f){return f.pr.catch(()=>{r.cancel()}),r},_run(){L1(r,e,t,n)},_handled:!0,_deferredObject:E1(),_shouldThrow:!1,_canAbort:!0,then(f,g){return r._shouldThrow=!0,r._deferredObject.promise.then(f,g)},catch(f,g=!0){return r._shouldThrow=g,r._deferredObject.promise.catch(f)},finally(f){return r._shouldThrow=!0,r._deferredObject.promise.finally(f)}}),r=yf(i),{modifiers:a}=n;return a.drop?r.isDropped=!0:a.enqueue?r.isEnqueued=!0:r._run(),r}function L1(e,t,n,i){const r=new Oa.cancelToken,a=Oa(t,r);e.token=r,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function f(){e.isRunning=!1,e.isFinished=!0}a.call(e,r,...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 O1(e,t={cancelOnUnmount:!0}){const n=lv(),i=vf({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Ce(()=>r._isRestartable||r._isDropping||r._isEnqueuing||r._isKeepingLatest),isIdle:Ce(()=>!r.isRunning),isRunning:Ce(()=>!!r._instances.find(a=>a.isRunning)),isError:Ce(()=>!!(r.last&&r.last.isError)),_instances:[],_successfulInstances:zi(()=>r,"isSuccessful"),_runningInstances:zi(()=>r,"isRunning"),_enqueuedInstances:zi(()=>r,"isEnqueued"),_notDroppedInstances:zi(()=>r,"isNotDropped"),_activeInstances:zi(()=>r,"isActive"),performCount:M1(()=>r._instances),last:vu(()=>r._notDroppedInstances),lastSuccessful:vu(()=>r._successfulInstances),firstEnqueued:T1(()=>r._enqueuedInstances),cancelAll({force:a}={force:!1}){r._instances.forEach(f=>{try{(a||!f.isDropped&&!f.isFinished)&&f.cancel({force:a})}catch(g){if(g!=="cancel")throw g}})},perform(...a){const f={enqueue:!1,drop:!1};r._hasConcurrency&&C1(r)&&(r._isDropping&&(f.drop=!0),r._isRestartable&&$1(r),r._isKeepingLatest&&A1(r),(r._isEnqueuing||r._isKeepingLatest)&&(f.enqueue=!0));const g=()=>I1(r),o=()=>R1(e,a,{modifiers:f,onFinish:g,scope:n,id:r._instances.length+1}),p=n.active?n.run(o):o();return r._instances=[...r._instances,p],p},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){n.stop(),this.clear()},restartable(){return r._resetModifierFlags(),r._isRestartable=!0,r},drop(){return r._resetModifierFlags(),r._isDropping=!0,r},enqueue(){return r._resetModifierFlags(),r._isEnqueuing=!0,r},keepLatest(){return r._resetModifierFlags(),r._isKeepingLatest=!0,r},_resetModifierFlags(){r._isKeepingLatest=!1,r._isRestartable=!1,r._isEnqueuing=!1,r._isDropping=!1},maxConcurrency(a){return r._maxConcurrency=a,r}}),r=yf(i);return t.cancelOnUnmount&&eo()&&md(()=>{r._instances&&r.destroy()}),r}function I1(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:N1}=Object.prototype,{getPrototypeOf:Dl}=Object,ao=(e=>t=>{const n=N1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>ao(t)===e),lo=e=>t=>typeof t===e,{isArray:Ni}=Array,dr=lo("undefined");function D1(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 F1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wf(e.buffer),t}const P1=lo("string"),Nt=lo("function"),Sf=lo("number"),co=e=>e!==null&&typeof e=="object",W1=e=>e===!0||e===!1,ss=e=>{if(ao(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)},B1=Kt("Date"),z1=Kt("File"),j1=Kt("Blob"),H1=Kt("FileList"),U1=e=>co(e)&&Nt(e.pipe),V1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nt(e.append)&&((t=ao(e))==="formdata"||t==="object"&&Nt(e.toString)&&e.toString()==="[object FormData]"))},G1=Kt("URLSearchParams"),[Y1,K1,Z1,X1]=["ReadableStream","Request","Response","Headers"].map(Kt),Q1=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,r;if(typeof e!="object"&&(e=[e]),Ni(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),f=a.length;let g;for(i=0;i<f;i++)g=a[i],t.call(null,e[g],g,e)}}function _f(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,r;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xf=e=>!dr(e)&&e!==Gn;function Da(){const{caseless:e}=xf(this)&&this||{},t={},n=(i,r)=>{const a=e&&_f(t,r)||r;ss(t[a])&&ss(i)?t[a]=Da(t[a],i):ss(i)?t[a]=Da({},i):Ni(i)?t[a]=i.slice():t[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Fr(arguments[i],n);return t}const q1=(e,t,n,{allOwnKeys:i}={})=>(Fr(t,(r,a)=>{n&&Nt(r)?e[a]=bf(r,n):e[a]=r},{allOwnKeys:i}),e),J1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ew=(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)},tw=(e,t,n,i)=>{let r,a,f;const g={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)f=r[a],(!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},nw=(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},iw=e=>{if(!e)return null;if(Ni(e))return e;let t=e.length;if(!Sf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dl(Uint8Array)),sw=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=i.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},ow=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},aw=Kt("HTMLFormElement"),lw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),yu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cw=Kt("RegExp"),Cf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Fr(n,(r,a)=>{let f;(f=t(r,a,e))!==!1&&(i[a]=f||r)}),Object.defineProperties(e,i)},uw=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+"'")})}})},hw=(e,t)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return Ni(e)?i(e):i(String(e).split(t)),n},dw=()=>{},fw=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pw(e){return!!(e&&Nt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const gw=e=>{const t=new Array(10),n=(i,r)=>{if(co(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[r]=i;const a=Ni(i)?[]:{};return Fr(i,(f,g)=>{const o=n(f,r+1);!dr(o)&&(a[g]=o)}),t[r]=void 0,a}}return i};return n(e,0)},mw=Kt("AsyncFunction"),vw=e=>e&&(co(e)||Nt(e))&&Nt(e.then)&&Nt(e.catch),$f=((e,t)=>e?setImmediate:t?((n,i)=>(Gn.addEventListener("message",({source:r,data:a})=>{r===Gn&&a===n&&i.length&&i.shift()()},!1),r=>{i.push(r),Gn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nt(Gn.postMessage)),yw=typeof queueMicrotask<"u"?queueMicrotask.bind(Gn):typeof process<"u"&&process.nextTick||$f,ee={isArray:Ni,isArrayBuffer:wf,isBuffer:D1,isFormData:V1,isArrayBufferView:F1,isString:P1,isNumber:Sf,isBoolean:W1,isObject:co,isPlainObject:ss,isReadableStream:Y1,isRequest:K1,isResponse:Z1,isHeaders:X1,isUndefined:dr,isDate:B1,isFile:z1,isBlob:j1,isRegExp:cw,isFunction:Nt,isStream:U1,isURLSearchParams:G1,isTypedArray:rw,isFileList:H1,forEach:Fr,merge:Da,extend:q1,trim:Q1,stripBOM:J1,inherits:ew,toFlatObject:tw,kindOf:ao,kindOfTest:Kt,endsWith:nw,toArray:iw,forEachEntry:sw,matchAll:ow,isHTMLForm:aw,hasOwnProperty:yu,hasOwnProp:yu,reduceDescriptors:Cf,freezeMethods:uw,toObjectSet:hw,toCamelCase:lw,noop:dw,toFiniteNumber:fw,findKey:_f,global:Gn,isContextDefined:xf,isSpecCompliantForm:pw,toJSONObject:gw,isAsyncFn:mw,isThenable:vw,setImmediate:$f,asap:yw};function Pe(e,t,n,i,r){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),r&&(this.response=r,this.status=r.status?r.status:null)}ee.inherits(Pe,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:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const Af=Pe.prototype,kf={};["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=>{kf[e]={value:e}});Object.defineProperties(Pe,kf);Object.defineProperty(Af,"isAxiosError",{value:!0});Pe.from=(e,t,n,i,r,a)=>{const f=Object.create(Af);return ee.toFlatObject(e,f,function(o){return o!==Error.prototype},g=>g!=="isAxiosError"),Pe.call(f,e.message,t,n,i,r),f.cause=e,f.name=e.name,a&&Object.assign(f,a),f};const bw=null;function Fa(e){return ee.isPlainObject(e)||ee.isArray(e)}function Mf(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function bu(e,t,n){return e?e.concat(t).map(function(r,a){return r=Mf(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function ww(e){return ee.isArray(e)&&!e.some(Fa)}const Sw=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function uo(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!ee.isUndefined(m[d])});const i=n.metaTokens,r=n.visitor||s,a=n.dots,f=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(r))throw new TypeError("visitor must be a function");function p(h){if(h===null)return"";if(ee.isDate(h))return h.toISOString();if(!o&&ee.isBlob(h))throw new Pe("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(h)||ee.isTypedArray(h)?o&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function s(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(ee.endsWith(d,"{}"))d=i?d:d.slice(0,-2),h=JSON.stringify(h);else if(ee.isArray(h)&&ww(h)||(ee.isFileList(h)||ee.endsWith(d,"[]"))&&(b=ee.toArray(h)))return d=Mf(d),b.forEach(function(S,_){!(ee.isUndefined(S)||S===null)&&t.append(f===!0?bu([d],_,a):f===null?d:d+"[]",p(S))}),!1}return Fa(h)?!0:(t.append(bu(m,d,a),p(h)),!1)}const l=[],u=Object.assign(Sw,{defaultVisitor:s,convertValue:p,isVisitable:Fa});function c(h,d){if(!ee.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(h),ee.forEach(h,function(b,y){(!(ee.isUndefined(b)||b===null)&&r.call(t,b,ee.isString(y)?y.trim():y,d,u))===!0&&c(b,d?d.concat(y):[y])}),l.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return c(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&&uo(e,this,t)}const Tf=Fl.prototype;Tf.append=function(t,n){this._pairs.push([t,n])};Tf.toString=function(t){const n=t?function(i){return t.call(this,i,wu)}:wu;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function _w(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ef(e,t,n){if(!t)return e;const i=n&&n.encode||_w;ee.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(r?a=r(t,n):a=ee.isURLSearchParams(t)?t.toString():new Fl(t,n).toString(i),a){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Su{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){ee.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Rf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xw=typeof URLSearchParams<"u"?URLSearchParams:Fl,Cw=typeof FormData<"u"?FormData:null,$w=typeof Blob<"u"?Blob:null,Aw={isBrowser:!0,classes:{URLSearchParams:xw,FormData:Cw,Blob:$w},protocols:["http","https","file","blob","url","data"]},Pl=typeof window<"u"&&typeof document<"u",Pa=typeof navigator=="object"&&navigator||void 0,kw=Pl&&(!Pa||["ReactNative","NativeScript","NS"].indexOf(Pa.product)<0),Mw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tw=Pl&&window.location.href||"http://localhost",Ew=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pl,hasStandardBrowserEnv:kw,hasStandardBrowserWebWorkerEnv:Mw,navigator:Pa,origin:Tw},Symbol.toStringTag,{value:"Module"})),yt={...Ew,...Aw};function Rw(e,t){return uo(e,new yt.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return yt.isNode&&ee.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Lw(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ow(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function Lf(e){function t(n,i,r,a){let f=n[a++];if(f==="__proto__")return!0;const g=Number.isFinite(+f),o=a>=n.length;return f=!f&&ee.isArray(r)?r.length:f,o?(ee.hasOwnProp(r,f)?r[f]=[r[f],i]:r[f]=i,!g):((!r[f]||!ee.isObject(r[f]))&&(r[f]=[]),t(n,i,r[f],a)&&ee.isArray(r[f])&&(r[f]=Ow(r[f])),!g)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(i,r)=>{t(Lw(i),r,n,0)}),n}return null}function Iw(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Pr={transitional:Rf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=ee.isObject(t);if(a&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return r?JSON.stringify(Lf(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Rw(t,this.formSerializer).toString();if((g=ee.isFileList(t))||i.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return uo(g?{"files[]":t}:t,o&&new o,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),Iw(t)):t}],transformResponse:[function(t){const n=this.transitional||Pr.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(i&&!this.responseType||r)){const f=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(g){if(f)throw g.name==="SyntaxError"?Pe.from(g,Pe.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:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Pr.headers[e]={}});const Nw=ee.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"]),Dw=e=>{const t={};let n,i,r;return e&&e.split(`
|
594
|
+
`).forEach(function(f){r=f.indexOf(":"),n=f.substring(0,r).trim().toLowerCase(),i=f.substring(r+1).trim(),!(!n||t[n]&&Nw[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},_u=Symbol("internals");function ji(e){return e&&String(e).trim().toLowerCase()}function os(e){return e===!1||e==null?e:ee.isArray(e)?e.map(os):String(e)}function Fw(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 Pw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Uo(e,t,n,i,r){if(ee.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!ee.isString(t)){if(ee.isString(i))return t.indexOf(i)!==-1;if(ee.isRegExp(i))return i.test(t)}}function Ww(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Bw(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,a,f){return this[i].call(this,t,r,a,f)},configurable:!0})})}let Rt=class{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function a(g,o,p){const s=ji(o);if(!s)throw new Error("header name must be a non-empty string");const l=ee.findKey(r,s);(!l||r[l]===void 0||p===!0||p===void 0&&r[l]!==!1)&&(r[l||o]=os(g))}const f=(g,o)=>ee.forEach(g,(p,s)=>a(p,s,o));if(ee.isPlainObject(t)||t instanceof this.constructor)f(t,n);else if(ee.isString(t)&&(t=t.trim())&&!Pw(t))f(Dw(t),n);else if(ee.isHeaders(t))for(const[g,o]of t.entries())a(o,g,i);else t!=null&&a(n,t,i);return this}get(t,n){if(t=ji(t),t){const i=ee.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return Fw(r);if(ee.isFunction(n))return n.call(this,r,i);if(ee.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ji(t),t){const i=ee.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Uo(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function a(f){if(f=ji(f),f){const g=ee.findKey(i,f);g&&(!n||Uo(i,i[g],g,n))&&(delete i[g],r=!0)}}return ee.isArray(t)?t.forEach(a):a(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!t||Uo(this,this[a],a,t,!0))&&(delete this[a],r=!0)}return r}normalize(t){const n=this,i={};return ee.forEach(this,(r,a)=>{const f=ee.findKey(i,a);if(f){n[f]=os(r),delete n[a];return}const g=t?Ww(a):String(a).trim();g!==a&&delete n[a],n[g]=os(r),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&ee.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(r=>i.set(r)),i}static accessor(t){const i=(this[_u]=this[_u]={accessors:{}}).accessors,r=this.prototype;function a(f){const g=ji(f);i[g]||(Bw(r,f),i[g]=!0)}return ee.isArray(t)?t.forEach(a):a(t),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(Rt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ee.freezeMethods(Rt);function Vo(e,t){const n=this||Pr,i=t||n,r=Rt.from(i.headers);let a=i.data;return ee.forEach(e,function(g){a=g.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function Of(e){return!!(e&&e.__CANCEL__)}function Di(e,t,n){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(Di,Pe,{__CANCEL__:!0});function If(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Pe("Request failed with status code "+n.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jw(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,a=0,f;return t=t!==void 0?t:1e3,function(o){const p=Date.now(),s=i[a];f||(f=p),n[r]=o,i[r]=p;let l=a,u=0;for(;l!==r;)u+=n[l++],l=l%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),p-f<t)return;const c=s&&p-s;return c?Math.round(u*1e3/c):void 0}}function Hw(e,t){let n=0,i=1e3/t,r,a;const f=(p,s=Date.now())=>{n=s,r=null,a&&(clearTimeout(a),a=null),e.apply(null,p)};return[(...p)=>{const s=Date.now(),l=s-n;l>=i?f(p,s):(r=p,a||(a=setTimeout(()=>{a=null,f(r)},i-l)))},()=>r&&f(r)]}const Cs=(e,t,n=3)=>{let i=0;const r=jw(50,250);return Hw(a=>{const f=a.loaded,g=a.lengthComputable?a.total:void 0,o=f-i,p=r(o),s=f<=g;i=f;const l={loaded:f,total:g,progress:g?f/g:void 0,bytes:o,rate:p||void 0,estimated:p&&g&&s?(g-f)/p:void 0,event:a,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(l)},n)},xu=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Cu=e=>(...t)=>ee.asap(()=>e(...t)),Uw=yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Vw=yt.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const f=[e+"="+encodeURIComponent(t)];ee.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),ee.isString(i)&&f.push("path="+i),ee.isString(r)&&f.push("domain="+r),a===!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 Gw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nf(e,t,n){let i=!Gw(t);return e&&i||n==!1?Yw(e,t):t}const $u=e=>e instanceof Rt?{...e}:e;function ii(e,t){t=t||{};const n={};function i(p,s,l,u){return ee.isPlainObject(p)&&ee.isPlainObject(s)?ee.merge.call({caseless:u},p,s):ee.isPlainObject(s)?ee.merge({},s):ee.isArray(s)?s.slice():s}function r(p,s,l,u){if(ee.isUndefined(s)){if(!ee.isUndefined(p))return i(void 0,p,l,u)}else return i(p,s,l,u)}function a(p,s){if(!ee.isUndefined(s))return i(void 0,s)}function f(p,s){if(ee.isUndefined(s)){if(!ee.isUndefined(p))return i(void 0,p)}else return i(void 0,s)}function g(p,s,l){if(l in t)return i(p,s);if(l in e)return i(void 0,p)}const o={url:a,method:a,data:a,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,s,l)=>r($u(p),$u(s),l,!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(s){const l=o[s]||r,u=l(e[s],t[s],s);ee.isUndefined(u)&&l!==g||(n[s]=u)}),n}const Df=e=>{const t=ii({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:f,auth:g}=t;t.headers=f=Rt.from(f),t.url=Ef(Nf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),g&&f.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let o;if(ee.isFormData(n)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((o=f.getContentType())!==!1){const[p,...s]=o?o.split(";").map(l=>l.trim()).filter(Boolean):[];f.setContentType([p||"multipart/form-data",...s].join("; "))}}if(yt.hasStandardBrowserEnv&&(i&&ee.isFunction(i)&&(i=i(t)),i||i!==!1&&Uw(t.url))){const p=r&&a&&Vw.read(a);p&&f.set(r,p)}return t},Kw=typeof XMLHttpRequest<"u",Zw=Kw&&function(e){return new Promise(function(n,i){const r=Df(e);let a=r.data;const f=Rt.from(r.headers).normalize();let{responseType:g,onUploadProgress:o,onDownloadProgress:p}=r,s,l,u,c,h;function d(){c&&c(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function b(){if(!m)return;const S=Rt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};If(function(A){n(A),d()},function(A){i(A),d()},C),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 Pe("Request aborted",Pe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){i(new Pe("Network Error",Pe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||Rf;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),i(new Pe(_,C.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,m)),m=null},a===void 0&&f.setContentType(null),"setRequestHeader"in m&&ee.forEach(f.toJSON(),function(_,C){m.setRequestHeader(C,_)}),ee.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),g&&g!=="json"&&(m.responseType=r.responseType),p&&([u,h]=Cs(p,!0),m.addEventListener("progress",u)),o&&m.upload&&([l,c]=Cs(o),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=S=>{m&&(i(!S||S.type?new Di(null,e,m):S),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const y=zw(r.url);if(y&&yt.protocols.indexOf(y)===-1){i(new Pe("Unsupported protocol "+y+":",Pe.ERR_BAD_REQUEST,e));return}m.send(a||null)})},Xw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,r;const a=function(p){if(!r){r=!0,g();const s=p instanceof Error?p:this.reason;i.abort(s instanceof Pe?s:new Di(s instanceof Error?s.message:s))}};let f=t&&setTimeout(()=>{f=null,a(new Pe(`timeout ${t} of ms exceeded`,Pe.ETIMEDOUT))},t);const g=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:o}=i;return o.unsubscribe=()=>ee.asap(g),o}},Qw=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,r;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},qw=async function*(e,t){for await(const n of Jw(e))yield*Qw(n,t)},Jw=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 r=qw(e,t);let a=0,f,g=o=>{f||(f=!0,i&&i(o))};return new ReadableStream({async pull(o){try{const{done:p,value:s}=await r.next();if(p){g(),o.close();return}let l=s.byteLength;if(n){let u=a+=l;n(u)}o.enqueue(new Uint8Array(s))}catch(p){throw g(p),p}},cancel(o){return g(o),r.return()}},{highWaterMark:2})},ho=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ff=ho&&typeof ReadableStream=="function",eS=ho&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tS=Ff&&Pf(()=>{let e=!1;const t=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ku=64*1024,Wa=Ff&&Pf(()=>ee.isReadableStream(new Response("").body)),$s={stream:Wa&&(e=>e.body)};ho&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!$s[t]&&($s[t]=ee.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new Pe(`Response type '${t}' is not supported`,Pe.ERR_NOT_SUPPORT,i)})})})(new Response);const nS=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(yt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await eS(e)).byteLength},iS=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??nS(t)},rS=ho&&(async e=>{let{url:t,method:n,data:i,signal:r,cancelToken:a,timeout:f,onDownloadProgress:g,onUploadProgress:o,responseType:p,headers:s,withCredentials:l="same-origin",fetchOptions:u}=Df(e);p=p?(p+"").toLowerCase():"text";let c=Xw([r,a&&a.toAbortSignal()],f),h;const d=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let m;try{if(o&&tS&&n!=="get"&&n!=="head"&&(m=await iS(s,i))!==0){let C=new Request(t,{method:"POST",body:i,duplex:"half"}),w;if(ee.isFormData(i)&&(w=C.headers.get("content-type"))&&s.setContentType(w),C.body){const[A,R]=xu(m,Cs(Cu(o)));i=Au(C.body,ku,A,R)}}ee.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;h=new Request(t,{...u,signal:c,method:n.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:b?l:void 0});let y=await fetch(h);const S=Wa&&(p==="stream"||p==="response");if(Wa&&(g||S&&d)){const C={};["status","statusText","headers"].forEach(E=>{C[E]=y[E]});const w=ee.toFiniteNumber(y.headers.get("content-length")),[A,R]=g&&xu(w,Cs(Cu(g),!0))||[];y=new Response(Au(y.body,ku,A,()=>{R&&R(),d&&d()}),C)}p=p||"text";let _=await $s[ee.findKey($s,p)||"text"](y,e);return!S&&d&&d(),await new Promise((C,w)=>{If(C,w,{data:_,headers:Rt.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 Pe("Network Error",Pe.ERR_NETWORK,e,h),{cause:b.cause||b}):Pe.from(b,b&&b.code,e,h)}}),Ba={http:bw,xhr:Zw,fetch:rS};ee.forEach(Ba,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mu=e=>`- ${e}`,sS=e=>ee.isFunction(e)||e===null||e===!1,Wf={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let a=0;a<t;a++){n=e[a];let f;if(i=n,!sS(n)&&(i=Ba[(f=String(n)).toLowerCase()],i===void 0))throw new Pe(`Unknown adapter '${f}'`);if(i)break;r[f||"#"+a]=i}if(!i){const a=Object.entries(r).map(([g,o])=>`adapter ${g} `+(o===!1?"is not supported by the environment":"is not available in the build"));let f=t?a.length>1?`since :
|
596
|
+
`+a.map(Mu).join(`
|
597
|
+
`):" "+Mu(a[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i},adapters:Ba};function Go(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Di(null,e)}function Tu(e){return Go(e),e.headers=Rt.from(e.headers),e.data=Vo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wf.getAdapter(e.adapter||Pr.adapter)(e).then(function(i){return Go(e),i.data=Vo.call(e,e.transformResponse,i),i.headers=Rt.from(i.headers),i},function(i){return Of(i)||(Go(e),i&&i.response&&(i.response.data=Vo.call(e,e.transformResponse,i.response),i.response.headers=Rt.from(i.response.headers))),Promise.reject(i)})}const Bf="1.8.3",fo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fo[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Eu={};fo.transitional=function(t,n,i){function r(a,f){return"[Axios v"+Bf+"] Transitional option '"+a+"'"+f+(i?". "+i:"")}return(a,f,g)=>{if(t===!1)throw new Pe(r(f," has been removed"+(n?" in "+n:"")),Pe.ERR_DEPRECATED);return n&&!Eu[f]&&(Eu[f]=!0,console.warn(r(f," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,f,g):!0}};fo.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function oS(e,t,n){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],f=t[a];if(f){const g=e[a],o=g===void 0||f(g,a,e);if(o!==!0)throw new Pe("option "+a+" must be "+o,Pe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Pe("Unknown option "+a,Pe.ERR_BAD_OPTION)}}const as={assertOptions:oS,validators:fo},Xt=as.validators;let Xn=class{constructor(t){this.defaults=t,this.interceptors={request:new Su,response:new Su}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
598
|
+
`+a):i.stack=a}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ii(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&as.assertOptions(i,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean)},!1),r!=null&&(ee.isFunction(r)?n.paramsSerializer={serialize:r}:as.assertOptions(r,{encode:Xt.function,serialize:Xt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),as.assertOptions(n,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=a&&ee.merge(a.common,a[n.method]);a&&ee.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=Rt.concat(f,a);const g=[];let o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(o=o&&d.synchronous,g.unshift(d.fulfilled,d.rejected))});const p=[];this.interceptors.response.forEach(function(d){p.push(d.fulfilled,d.rejected)});let s,l=0,u;if(!o){const h=[Tu.bind(this),void 0];for(h.unshift.apply(h,g),h.push.apply(h,p),u=h.length,s=Promise.resolve(n);l<u;)s=s.then(h[l++],h[l++]);return s}u=g.length;let c=n;for(l=0;l<u;){const h=g[l++],d=g[l++];try{c=h(c)}catch(m){d.call(this,m);break}}try{s=Tu.call(this,c)}catch(h){return Promise.reject(h)}for(l=0,u=p.length;l<u;)s=s.then(p[l++],p[l++]);return s}getUri(t){t=ii(this.defaults,t);const n=Nf(t.baseURL,t.url,t.allowAbsoluteUrls);return Ef(n,t.params,t.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(t){Xn.prototype[t]=function(n,i){return this.request(ii(i||{},{method:t,url:n,data:(i||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(i){return function(a,f,g){return this.request(ii(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:f}))}}Xn.prototype[t]=n(),Xn.prototype[t+"Form"]=n(!0)});let aS=class zf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const f=new Promise(g=>{i.subscribe(g),a=g}).then(r);return f.cancel=function(){i.unsubscribe(a)},f},t(function(a,f,g){i.reason||(i.reason=new Di(a,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 zf(function(r){t=r}),cancel:t}}};function lS(e){return function(n){return e.apply(null,n)}}function cS(e){return ee.isObject(e)&&e.isAxiosError===!0}const za={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(za).forEach(([e,t])=>{za[t]=e});function jf(e){const t=new Xn(e),n=bf(Xn.prototype.request,t);return ee.extend(n,Xn.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return jf(ii(e,r))},n}const tt=jf(Pr);tt.Axios=Xn;tt.CanceledError=Di;tt.CancelToken=aS;tt.isCancel=Of;tt.VERSION=Bf;tt.toFormData=uo;tt.AxiosError=Pe;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=lS;tt.isAxiosError=cS;tt.mergeConfig=ii;tt.AxiosHeaders=Rt;tt.formToJSON=e=>Lf(ee.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=Wf.getAdapter;tt.HttpStatusCode=za;tt.default=tt;const{Axios:iM,AxiosError:uS,CanceledError:rM,isCancel:sM,CancelToken:oM,VERSION:aM,all:lM,Cancel:cM,isAxiosError:uM,spread:hM,toFormData:dM,AxiosHeaders:fM,HttpStatusCode:pM,formToJSON:gM,getAdapter:mM,mergeConfig:vM}=tt;var je;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const a={};for(const f of r)a[f]=f;return a},e.getValidEnumValues=r=>{const a=e.objectKeys(r).filter(g=>typeof r[r[g]]!="number"),f={};for(const g of a)f[g]=r[g];return e.objectValues(f)},e.objectValues=r=>e.objectKeys(r).map(function(a){return r[a]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const a=[];for(const f in r)Object.prototype.hasOwnProperty.call(r,f)&&a.push(f);return a},e.find=(r,a)=>{for(const f of r)if(a(f))return f},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function i(r,a=" | "){return r.map(f=>typeof f=="string"?`'${f}'`:f).join(a)}e.joinValues=i,e.jsonStringifyReplacer=(r,a)=>typeof a=="bigint"?a.toString():a})(je||(je={}));var ja;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(ja||(ja={}));const be=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),hn=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}},oe=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),hS=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(a){return a.message},i={_errors:[]},r=a=>{for(const f of a.issues)if(f.code==="invalid_union")f.unionErrors.map(r);else if(f.code==="invalid_return_type")r(f.returnTypeError);else if(f.code==="invalid_arguments")r(f.argumentsError);else if(f.path.length===0)i._errors.push(n(f));else{let g=i,o=0;for(;o<f.path.length;){const p=f.path[o];o===f.path.length-1?(g[p]=g[p]||{_errors:[]},g[p]._errors.push(n(f))):g[p]=g[p]||{_errors:[]},g=g[p],o++}}};return r(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,je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}Dt.create=e=>new Dt(e);const Mi=(e,t)=>{let n;switch(e.code){case oe.invalid_type:e.received===be.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case oe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,je.jsonStringifyReplacer)}`;break;case oe.unrecognized_keys:n=`Unrecognized key(s) in object: ${je.joinValues(e.keys,", ")}`;break;case oe.invalid_union:n="Invalid input";break;case oe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${je.joinValues(e.options)}`;break;case oe.invalid_enum_value:n=`Invalid enum value. Expected ${je.joinValues(e.options)}, received '${e.received}'`;break;case oe.invalid_arguments:n="Invalid function arguments";break;case oe.invalid_return_type:n="Invalid function return type";break;case oe.invalid_date:n="Invalid date";break;case oe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case oe.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 oe.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 oe.custom:n="Invalid input";break;case oe.invalid_intersection_types:n="Intersection results could not be merged";break;case oe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case oe.not_finite:n="Number must be finite";break;default:n=t.defaultError,je.assertNever(e)}return{message:n}};let Hf=Mi;function dS(e){Hf=e}function As(){return Hf}const ks=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],f={...r,path:a};if(r.message!==void 0)return{...r,path:a,message:r.message};let g="";const o=i.filter(p=>!!p).slice().reverse();for(const p of o)g=p(f,{data:t,defaultError:g}).message;return{...r,path:a,message:g}},fS=[];function ve(e,t){const n=As(),i=ks({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Mi?void 0:Mi].filter(r=>!!r)});e.common.issues.push(i)}class _t{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 r of n){if(r.status==="aborted")return Re;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const r of n){const a=await r.key,f=await r.value;i.push({key:a,value:f})}return _t.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const r of n){const{key:a,value:f}=r;if(a.status==="aborted"||f.status==="aborted")return Re;a.status==="dirty"&&t.dirty(),f.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof f.value<"u"||r.alwaysSet)&&(i[a.value]=f.value)}return{status:t.value,value:i}}}const Re=Object.freeze({status:"aborted"}),gi=e=>({status:"dirty",value:e}),Tt=e=>({status:"valid",value:e}),Ha=e=>e.status==="aborted",Ua=e=>e.status==="dirty",ri=e=>e.status==="valid",fr=e=>typeof Promise<"u"&&e instanceof Promise;function Ms(e,t,n,i){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Uf(e,t,n,i,r){if(typeof t=="function"?e!==t||!0:!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 sn{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}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 Ru=(e,t)=>{if(ri(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 We(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=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:r}:{errorMap:(f,g)=>{var o,p;const{message:s}=e;return f.code==="invalid_enum_value"?{message:s??g.defaultError}:typeof g.data>"u"?{message:(o=s??i)!==null&&o!==void 0?o:g.defaultError}:f.code!=="invalid_type"?{message:g.defaultError}:{message:(p=s??n)!==null&&p!==void 0?p:g.defaultError}},description:r}}class ze{get description(){return this._def.description}_getType(t){return hn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:hn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _t,ctx:{common:t.parent.common,data:t.data,parsedType:hn(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 r={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:hn(t)},a=this._parseSync({data:t,path:r.path,parent:r});return Ru(r,a)}"~validate"(t){var n,i;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:hn(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:r});return ri(a)?{value:a.value}:{issues:r.common.issues}}catch(a){!((i=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>ri(a)?{value:a.value}:{issues:r.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:hn(t)},r=this._parse({data:t,path:i.path,parent:i}),a=await(fr(r)?r:Promise.resolve(r));return Ru(i,a)}refine(t,n){const i=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,a)=>{const f=t(r),g=()=>a.addIssue({code:oe.custom,...i(r)});return typeof Promise<"u"&&f instanceof Promise?f.then(o=>o?!0:(g(),!1)):f?!0:(g(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new Yt({schema:this,typeName:Ee.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 Ei.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({...We(this._def),schema:this,typeName:Ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new xr({...We(this._def),innerType:this,defaultValue:n,typeName:Ee.ZodDefault})}brand(){return new Wl({typeName:Ee.ZodBranded,type:this,...We(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Cr({...We(this._def),innerType:this,catchValue:n,typeName:Ee.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 pS=/^c[^\s-]{8,}$/i,gS=/^[0-9a-z]+$/,mS=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vS=/^[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,yS=/^[a-z0-9_-]{21}$/i,bS=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wS=/^[-+]?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)?)??$/,SS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_S="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Yo;const xS=/^(?:(?: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])$/,CS=/^(?:(?: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]))$/,AS=/^(([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])$/,kS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,MS=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Vf="((\\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])))",TS=new RegExp(`^${Vf}$`);function Gf(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 ES(e){return new RegExp(`^${Gf(e)}$`)}function Yf(e){let t=`${Vf}T${Gf(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 RS(e,t){return!!((t==="v4"||!t)&&xS.test(e)||(t==="v6"||!t)&&$S.test(e))}function LS(e,t){if(!bS.test(e))return!1;try{const[n]=e.split("."),i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function OS(e,t){return!!((t==="v4"||!t)&&CS.test(e)||(t==="v6"||!t)&&AS.test(e))}class Ht extends ze{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==be.string){const a=this._getOrReturnCtx(t);return ve(a,{code:oe.invalid_type,expected:be.string,received:a.parsedType}),Re}const i=new _t;let r;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="max")t.data.length>a.value&&(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="length"){const f=t.data.length>a.value,g=t.data.length<a.value;(f||g)&&(r=this._getOrReturnCtx(t,r),f?ve(r,{code:oe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):g&&ve(r,{code:oe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if(a.kind==="email")SS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"email",code:oe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="emoji")Yo||(Yo=new RegExp(_S,"u")),Yo.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"emoji",code:oe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="uuid")vS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"uuid",code:oe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="nanoid")yS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"nanoid",code:oe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid")pS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"cuid",code:oe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid2")gS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"cuid2",code:oe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="ulid")mS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"ulid",code:oe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),ve(r,{validation:"url",code:oe.invalid_string,message:a.message}),i.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"regex",code:oe.invalid_string,message:a.message}),i.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),i.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty()):a.kind==="datetime"?Yf(a).test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.invalid_string,validation:"datetime",message:a.message}),i.dirty()):a.kind==="date"?TS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?ES(a).test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.invalid_string,validation:"time",message:a.message}),i.dirty()):a.kind==="duration"?wS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"duration",code:oe.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?RS(t.data,a.version)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"ip",code:oe.invalid_string,message:a.message}),i.dirty()):a.kind==="jwt"?LS(t.data,a.alg)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"jwt",code:oe.invalid_string,message:a.message}),i.dirty()):a.kind==="cidr"?OS(t.data,a.version)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"cidr",code:oe.invalid_string,message:a.message}),i.dirty()):a.kind==="base64"?kS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"base64",code:oe.invalid_string,message:a.message}),i.dirty()):a.kind==="base64url"?MS.test(t.data)||(r=this._getOrReturnCtx(t,r),ve(r,{validation:"base64url",code:oe.invalid_string,message:a.message}),i.dirty()):je.assertNever(a);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:oe.invalid_string,...Se.errToObj(i)})}_addCheck(t){return new Ht({...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 Ht({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get 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}}Ht.create=e=>{var t;return new Ht({checks:[],typeName:Ee.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...We(e)})};function IS(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,a=parseInt(e.toFixed(r).replace(".","")),f=parseInt(t.toFixed(r).replace(".",""));return a%f/Math.pow(10,r)}class On extends ze{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 a=this._getOrReturnCtx(t);return ve(a,{code:oe.invalid_type,expected:be.number,received:a.parsedType}),Re}let i;const r=new _t;for(const a of this._def.checks)a.kind==="int"?je.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="multipleOf"?IS(t.data,a.value)!==0&&(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.not_finite,message:a.message}),r.dirty()):je.assertNever(a);return{status:r.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,r){return new On({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Se.toString(r)}]})}_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"&&je.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}On.create=e=>new On({checks:[],typeName:Ee.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...We(e)});class In extends ze{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 r=new _t;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:oe.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):je.assertNever(a);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ve(n,{code:oe.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,r){return new In({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Se.toString(r)}]})}_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:Ee.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...We(e)})};class pr extends ze{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==be.boolean){const i=this._getOrReturnCtx(t);return ve(i,{code:oe.invalid_type,expected:be.boolean,received:i.parsedType}),Re}return Tt(t.data)}}pr.create=e=>new pr({typeName:Ee.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...We(e)});class si extends ze{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==be.date){const a=this._getOrReturnCtx(t);return ve(a,{code:oe.invalid_type,expected:be.date,received:a.parsedType}),Re}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ve(a,{code:oe.invalid_date}),Re}const i=new _t;let r;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),i.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(r=this._getOrReturnCtx(t,r),ve(r,{code:oe.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):je.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new si({...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}}si.create=e=>new si({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ee.ZodDate,...We(e)});class Ts extends ze{_parse(t){if(this._getType(t)!==be.symbol){const i=this._getOrReturnCtx(t);return ve(i,{code:oe.invalid_type,expected:be.symbol,received:i.parsedType}),Re}return Tt(t.data)}}Ts.create=e=>new Ts({typeName:Ee.ZodSymbol,...We(e)});class gr extends ze{_parse(t){if(this._getType(t)!==be.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:oe.invalid_type,expected:be.undefined,received:i.parsedType}),Re}return Tt(t.data)}}gr.create=e=>new gr({typeName:Ee.ZodUndefined,...We(e)});class mr extends ze{_parse(t){if(this._getType(t)!==be.null){const i=this._getOrReturnCtx(t);return ve(i,{code:oe.invalid_type,expected:be.null,received:i.parsedType}),Re}return Tt(t.data)}}mr.create=e=>new mr({typeName:Ee.ZodNull,...We(e)});class Ti extends ze{constructor(){super(...arguments),this._any=!0}_parse(t){return Tt(t.data)}}Ti.create=e=>new Ti({typeName:Ee.ZodAny,...We(e)});class Qn extends ze{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Tt(t.data)}}Qn.create=e=>new Qn({typeName:Ee.ZodUnknown,...We(e)});class yn extends ze{_parse(t){const n=this._getOrReturnCtx(t);return ve(n,{code:oe.invalid_type,expected:be.never,received:n.parsedType}),Re}}yn.create=e=>new yn({typeName:Ee.ZodNever,...We(e)});class Es extends ze{_parse(t){if(this._getType(t)!==be.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:oe.invalid_type,expected:be.void,received:i.parsedType}),Re}return Tt(t.data)}}Es.create=e=>new Es({typeName:Ee.ZodVoid,...We(e)});class Vt extends ze{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==be.array)return ve(n,{code:oe.invalid_type,expected:be.array,received:n.parsedType}),Re;if(r.exactLength!==null){const f=n.data.length>r.exactLength.value,g=n.data.length<r.exactLength.value;(f||g)&&(ve(n,{code:f?oe.too_big:oe.too_small,minimum:g?r.exactLength.value:void 0,maximum:f?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(ve(n,{code:oe.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(ve(n,{code:oe.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((f,g)=>r.type._parseAsync(new sn(n,f,n.path,g)))).then(f=>_t.mergeArray(i,f));const a=[...n.data].map((f,g)=>r.type._parseSync(new sn(n,f,n.path,g)));return _t.mergeArray(i,a)}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:Ee.ZodArray,...We(t)});function di(e){if(e instanceof at){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=nn.create(di(i))}return new at({...e._def,shape:()=>t})}else return e instanceof Vt?new Vt({...e._def,type:di(e.element)}):e instanceof nn?nn.create(di(e.unwrap())):e instanceof Dn?Dn.create(di(e.unwrap())):e instanceof on?on.create(e.items.map(t=>di(t))):e}class at extends ze{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=je.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==be.object){const p=this._getOrReturnCtx(t);return ve(p,{code:oe.invalid_type,expected:be.object,received:p.parsedType}),Re}const{status:i,ctx:r}=this._processInputParams(t),{shape:a,keys:f}=this._getCached(),g=[];if(!(this._def.catchall instanceof yn&&this._def.unknownKeys==="strip"))for(const p in r.data)f.includes(p)||g.push(p);const o=[];for(const p of f){const s=a[p],l=r.data[p];o.push({key:{status:"valid",value:p},value:s._parse(new sn(r,l,r.path,p)),alwaysSet:p in r.data})}if(this._def.catchall instanceof yn){const p=this._def.unknownKeys;if(p==="passthrough")for(const s of g)o.push({key:{status:"valid",value:s},value:{status:"valid",value:r.data[s]}});else if(p==="strict")g.length>0&&(ve(r,{code:oe.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 s of g){const l=r.data[s];o.push({key:{status:"valid",value:s},value:p._parse(new sn(r,l,r.path,s)),alwaysSet:s in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const p=[];for(const s of o){const l=await s.key,u=await s.value;p.push({key:l,value:u,alwaysSet:s.alwaysSet})}return p}).then(p=>_t.mergeObjectSync(i,p)):_t.mergeObjectSync(i,o)}get shape(){return this._def.shape()}strict(t){return Se.errToObj,new at({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var r,a,f,g;const o=(f=(a=(r=this._def).errorMap)===null||a===void 0?void 0:a.call(r,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:o}:{message:o}}}:{}})}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:Ee.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new at({...this._def,catchall:t})}pick(t){const n={};return je.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}omit(t){const n={};return je.objectKeys(this.shape).forEach(i=>{t[i]||(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}deepPartial(){return di(this)}partial(t){const n={};return je.objectKeys(this.shape).forEach(i=>{const r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}),new at({...this._def,shape:()=>n})}required(t){const n={};return je.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])n[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof nn;)a=a._def.innerType;n[i]=a}}),new at({...this._def,shape:()=>n})}keyof(){return Kf(je.objectKeys(this.shape))}}at.create=(e,t)=>new at({shape:()=>e,unknownKeys:"strip",catchall:yn.create(),typeName:Ee.ZodObject,...We(t)});at.strictCreate=(e,t)=>new at({shape:()=>e,unknownKeys:"strict",catchall:yn.create(),typeName:Ee.ZodObject,...We(t)});at.lazycreate=(e,t)=>new at({shape:e,unknownKeys:"strip",catchall:yn.create(),typeName:Ee.ZodObject,...We(t)});class vr extends ze{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function r(a){for(const g of a)if(g.result.status==="valid")return g.result;for(const g of a)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;const f=a.map(g=>new Dt(g.ctx.common.issues));return ve(n,{code:oe.invalid_union,unionErrors:f}),Re}if(n.common.async)return Promise.all(i.map(async a=>{const f={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:f}),ctx:f}})).then(r);{let a;const f=[];for(const o of i){const p={...n,common:{...n.common,issues:[]},parent:null},s=o._parseSync({data:n.data,path:n.path,parent:p});if(s.status==="valid")return s;s.status==="dirty"&&!a&&(a={result:s,ctx:p}),p.common.issues.length&&f.push(p.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const g=f.map(o=>new Dt(o));return ve(n,{code:oe.invalid_union,unionErrors:g}),Re}}get options(){return this._def.options}}vr.create=(e,t)=>new vr({options:e,typeName:Ee.ZodUnion,...We(t)});const cn=e=>e instanceof wr?cn(e.schema):e instanceof Yt?cn(e.innerType()):e instanceof Sr?[e.value]:e instanceof Nn?e.options:e instanceof _r?je.objectValues(e.enum):e instanceof xr?cn(e._def.innerType):e instanceof gr?[void 0]:e instanceof mr?[null]:e instanceof nn?[void 0,...cn(e.unwrap())]:e instanceof Dn?[null,...cn(e.unwrap())]:e instanceof Wl||e instanceof $r?cn(e.unwrap()):e instanceof Cr?cn(e._def.innerType):[];class po extends ze{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==be.object)return ve(n,{code:oe.invalid_type,expected:be.object,received:n.parsedType}),Re;const i=this.discriminator,r=n.data[i],a=this.optionsMap.get(r);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(ve(n,{code:oe.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 r=new Map;for(const a of n){const f=cn(a.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(r.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);r.set(g,a)}}return new po({typeName:Ee.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...We(i)})}}function Va(e,t){const n=hn(e),i=hn(t);if(e===t)return{valid:!0,data:e};if(n===be.object&&i===be.object){const r=je.objectKeys(t),a=je.objectKeys(e).filter(g=>r.indexOf(g)!==-1),f={...e,...t};for(const g of a){const o=Va(e[g],t[g]);if(!o.valid)return{valid:!1};f[g]=o.data}return{valid:!0,data:f}}else if(n===be.array&&i===be.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let a=0;a<e.length;a++){const f=e[a],g=t[a],o=Va(f,g);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}else return n===be.date&&i===be.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class yr extends ze{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=(a,f)=>{if(Ha(a)||Ha(f))return Re;const g=Va(a.value,f.value);return g.valid?((Ua(a)||Ua(f))&&n.dirty(),{status:n.value,value:g.data}):(ve(i,{code:oe.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(([a,f])=>r(a,f)):r(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:Ee.ZodIntersection,...We(n)});class on extends ze{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==be.array)return ve(i,{code:oe.invalid_type,expected:be.array,received:i.parsedType}),Re;if(i.data.length<this._def.items.length)return ve(i,{code:oe.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:oe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...i.data].map((f,g)=>{const o=this._def.items[g]||this._def.rest;return o?o._parse(new sn(i,f,i.path,g)):null}).filter(f=>!!f);return i.common.async?Promise.all(a).then(f=>_t.mergeArray(n,f)):_t.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new on({...this._def,rest:t})}}on.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new on({items:e,typeName:Ee.ZodTuple,rest:null,...We(t)})};class br extends ze{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:oe.invalid_type,expected:be.object,received:i.parsedType}),Re;const r=[],a=this._def.keyType,f=this._def.valueType;for(const g in i.data)r.push({key:a._parse(new sn(i,g,i.path,g)),value:f._parse(new sn(i,i.data[g],i.path,g)),alwaysSet:g in i.data});return i.common.async?_t.mergeObjectAsync(n,r):_t.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof ze?new br({keyType:t,valueType:n,typeName:Ee.ZodRecord,...We(i)}):new br({keyType:Ht.create(),valueType:t,typeName:Ee.ZodRecord,...We(n)})}}class Rs extends ze{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:oe.invalid_type,expected:be.map,received:i.parsedType}),Re;const r=this._def.keyType,a=this._def.valueType,f=[...i.data.entries()].map(([g,o],p)=>({key:r._parse(new sn(i,g,i.path,[p,"key"])),value:a._parse(new sn(i,o,i.path,[p,"value"]))}));if(i.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const o of f){const p=await o.key,s=await o.value;if(p.status==="aborted"||s.status==="aborted")return Re;(p.status==="dirty"||s.status==="dirty")&&n.dirty(),g.set(p.value,s.value)}return{status:n.value,value:g}})}else{const g=new Map;for(const o of f){const p=o.key,s=o.value;if(p.status==="aborted"||s.status==="aborted")return Re;(p.status==="dirty"||s.status==="dirty")&&n.dirty(),g.set(p.value,s.value)}return{status:n.value,value:g}}}}Rs.create=(e,t,n)=>new Rs({valueType:t,keyType:e,typeName:Ee.ZodMap,...We(n)});class oi extends ze{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==be.set)return ve(i,{code:oe.invalid_type,expected:be.set,received:i.parsedType}),Re;const r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(ve(i,{code:oe.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(ve(i,{code:oe.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const a=this._def.valueType;function f(o){const p=new Set;for(const s of o){if(s.status==="aborted")return Re;s.status==="dirty"&&n.dirty(),p.add(s.value)}return{status:n.value,value:p}}const g=[...i.data.values()].map((o,p)=>a._parse(new sn(i,o,i.path,p)));return i.common.async?Promise.all(g).then(o=>f(o)):f(g)}min(t,n){return new oi({...this._def,minSize:{value:t,message:Se.toString(n)}})}max(t,n){return new oi({...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)}}oi.create=(e,t)=>new oi({valueType:e,minSize:null,maxSize:null,typeName:Ee.ZodSet,...We(t)});class Si extends ze{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==be.function)return ve(n,{code:oe.invalid_type,expected:be.function,received:n.parsedType}),Re;function i(g,o){return ks({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,As(),Mi].filter(p=>!!p),issueData:{code:oe.invalid_arguments,argumentsError:o}})}function r(g,o){return ks({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,As(),Mi].filter(p=>!!p),issueData:{code:oe.invalid_return_type,returnTypeError:o}})}const a={errorMap:n.common.contextualErrorMap},f=n.data;if(this._def.returns instanceof Ei){const g=this;return Tt(async function(...o){const p=new Dt([]),s=await g._def.args.parseAsync(o,a).catch(c=>{throw p.addIssue(i(o,c)),p}),l=await Reflect.apply(f,this,s);return await g._def.returns._def.type.parseAsync(l,a).catch(c=>{throw p.addIssue(r(l,c)),p})})}else{const g=this;return Tt(function(...o){const p=g._def.args.safeParse(o,a);if(!p.success)throw new Dt([i(o,p.error)]);const s=Reflect.apply(f,this,p.data),l=g._def.returns.safeParse(s,a);if(!l.success)throw new Dt([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Si({...this._def,args:on.create(t).rest(Qn.create())})}returns(t){return new Si({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new Si({args:t||on.create([]).rest(Qn.create()),returns:n||Qn.create(),typeName:Ee.ZodFunction,...We(i)})}}class wr extends ze{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:Ee.ZodLazy,...We(t)});class Sr extends ze{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ve(n,{received:n.data,code:oe.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}}Sr.create=(e,t)=>new Sr({value:e,typeName:Ee.ZodLiteral,...We(t)});function Kf(e,t){return new Nn({values:e,typeName:Ee.ZodEnum,...We(t)})}class Nn extends ze{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:je.joinValues(i),received:n.parsedType,code:oe.invalid_type}),Re}if(Ms(this,Vi)||Uf(this,Vi,new Set(this._def.values)),!Ms(this,Vi).has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ve(n,{received:n.data,code:oe.invalid_enum_value,options:i}),Re}return Tt(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=Kf;class _r extends ze{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=je.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==be.string&&i.parsedType!==be.number){const r=je.objectValues(n);return ve(i,{expected:je.joinValues(r),received:i.parsedType,code:oe.invalid_type}),Re}if(Ms(this,Gi)||Uf(this,Gi,new Set(je.getValidEnumValues(this._def.values))),!Ms(this,Gi).has(t.data)){const r=je.objectValues(n);return ve(i,{received:i.data,code:oe.invalid_enum_value,options:r}),Re}return Tt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;_r.create=(e,t)=>new _r({values:e,typeName:Ee.ZodNativeEnum,...We(t)});class Ei extends ze{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:oe.invalid_type,expected:be.promise,received:n.parsedType}),Re;const i=n.parsedType===be.promise?n.data:Promise.resolve(n.data);return Tt(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ei.create=(e,t)=>new Ei({type:e,typeName:Ee.ZodPromise,...We(t)});class Yt extends ze{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,a={addIssue:f=>{ve(i,f),f.fatal?n.abort():n.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),r.type==="preprocess"){const f=r.transform(i.data,a);if(i.common.async)return Promise.resolve(f).then(async g=>{if(n.value==="aborted")return Re;const o=await this._def.schema._parseAsync({data:g,path:i.path,parent:i});return o.status==="aborted"?Re:o.status==="dirty"||n.value==="dirty"?gi(o.value):o});{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"?gi(g.value):g}}if(r.type==="refinement"){const f=g=>{const o=r.refinement(g,a);if(i.common.async)return Promise.resolve(o);if(o 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(r.type==="transform")if(i.common.async===!1){const f=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!ri(f))return f;const g=r.transform(f.value,a);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:g}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(f=>ri(f)?Promise.resolve(r.transform(f.value,a)).then(g=>({status:n.value,value:g})):f);je.assertNever(r)}}Yt.create=(e,t,n)=>new Yt({schema:e,typeName:Ee.ZodEffects,effect:t,...We(n)});Yt.createWithPreprocess=(e,t,n)=>new Yt({schema:t,effect:{type:"preprocess",transform:e},typeName:Ee.ZodEffects,...We(n)});class nn extends ze{_parse(t){return this._getType(t)===be.undefined?Tt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nn.create=(e,t)=>new nn({innerType:e,typeName:Ee.ZodOptional,...We(t)});class Dn extends ze{_parse(t){return this._getType(t)===be.null?Tt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Dn.create=(e,t)=>new Dn({innerType:e,typeName:Ee.ZodNullable,...We(t)});class xr extends ze{_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:Ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...We(t)});class Cr extends ze{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return fr(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Dt(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.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:Ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...We(t)});class Ls extends ze{_parse(t){if(this._getType(t)!==be.nan){const i=this._getOrReturnCtx(t);return ve(i,{code:oe.invalid_type,expected:be.nan,received:i.parsedType}),Re}return{status:"valid",value:t.data}}}Ls.create=e=>new Ls({typeName:Ee.ZodNaN,...We(e)});const NS=Symbol("zod_brand");class Wl extends ze{_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 ze{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Re:a.status==="dirty"?(n.dirty(),gi(a.value)):this._def.out._parseAsync({data:a.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?Re:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new Wr({in:t,out:n,typeName:Ee.ZodPipeline})}}class $r extends ze{_parse(t){const n=this._def.innerType._parse(t),i=r=>(ri(r)&&(r.value=Object.freeze(r.value)),r);return fr(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}}$r.create=(e,t)=>new $r({innerType:e,typeName:Ee.ZodReadonly,...We(t)});function Lu(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Zf(e,t={},n){return e?Ti.create().superRefine((i,r)=>{var a,f;const g=e(i);if(g instanceof Promise)return g.then(o=>{var p,s;if(!o){const l=Lu(t,i),u=(s=(p=l.fatal)!==null&&p!==void 0?p:n)!==null&&s!==void 0?s:!0;r.addIssue({code:"custom",...l,fatal:u})}});if(!g){const o=Lu(t,i),p=(f=(a=o.fatal)!==null&&a!==void 0?a:n)!==null&&f!==void 0?f:!0;r.addIssue({code:"custom",...o,fatal:p})}}):Ti.create()}const DS={object:at.lazycreate};var Ee;(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"})(Ee||(Ee={}));const FS=(e,t={message:`Input not instance of ${e.name}`})=>Zf(n=>n instanceof e,t),Xf=Ht.create,Qf=On.create,PS=Ls.create,WS=In.create,qf=pr.create,BS=si.create,zS=Ts.create,jS=gr.create,HS=mr.create,US=Ti.create,VS=Qn.create,GS=yn.create,YS=Es.create,KS=Vt.create,ZS=at.create,XS=at.strictCreate,QS=vr.create,qS=po.create,JS=yr.create,e_=on.create,t_=br.create,n_=Rs.create,i_=oi.create,r_=Si.create,s_=wr.create,o_=Sr.create,a_=Nn.create,l_=_r.create,c_=Ei.create,Ou=Yt.create,u_=nn.create,h_=Dn.create,d_=Yt.createWithPreprocess,f_=Wr.create,p_=()=>Xf().optional(),g_=()=>Qf().optional(),m_=()=>qf().optional(),v_={string:e=>Ht.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=>si.create({...e,coerce:!0})},y_=Re;var ne=Object.freeze({__proto__:null,defaultErrorMap:Mi,setErrorMap:dS,getErrorMap:As,makeIssue:ks,EMPTY_PATH:fS,addIssueToContext:ve,ParseStatus:_t,INVALID:Re,DIRTY:gi,OK:Tt,isAborted:Ha,isDirty:Ua,isValid:ri,isAsync:fr,get util(){return je},get objectUtil(){return ja},ZodParsedType:be,getParsedType:hn,ZodType:ze,datetimeRegex:Yf,ZodString:Ht,ZodNumber:On,ZodBigInt:In,ZodBoolean:pr,ZodDate:si,ZodSymbol:Ts,ZodUndefined:gr,ZodNull:mr,ZodAny:Ti,ZodUnknown:Qn,ZodNever:yn,ZodVoid:Es,ZodArray:Vt,ZodObject:at,ZodUnion:vr,ZodDiscriminatedUnion:po,ZodIntersection:yr,ZodTuple:on,ZodRecord:br,ZodMap:Rs,ZodSet:oi,ZodFunction:Si,ZodLazy:wr,ZodLiteral:Sr,ZodEnum:Nn,ZodNativeEnum:_r,ZodPromise:Ei,ZodEffects:Yt,ZodTransformer:Yt,ZodOptional:nn,ZodNullable:Dn,ZodDefault:xr,ZodCatch:Cr,ZodNaN:Ls,BRAND:NS,ZodBranded:Wl,ZodPipeline:Wr,ZodReadonly:$r,custom:Zf,Schema:ze,ZodSchema:ze,late:DS,get ZodFirstPartyTypeKind(){return Ee},coerce:v_,any:US,array:KS,bigint:WS,boolean:qf,date:BS,discriminatedUnion:qS,effect:Ou,enum:a_,function:r_,instanceof:FS,intersection:JS,lazy:s_,literal:o_,map:n_,nan:PS,nativeEnum:l_,never:GS,null:HS,nullable:h_,number:Qf,object:ZS,oboolean:m_,onumber:g_,optional:u_,ostring:p_,pipeline:f_,preprocess:d_,promise:c_,record:t_,set:i_,strictObject:XS,string:Xf,symbol:zS,transformer:Ou,tuple:e_,undefined:jS,union:QS,unknown:VS,void:YS,NEVER:y_,ZodIssueCode:oe,quotelessJson:hS,ZodError:Dt});const go=ne.object({total:ne.number(),currentPage:ne.number(),pageSize:ne.number()}),b_=ne.object({key:ne.string(),value:ne.string().nullish()}),w_=ne.object({name:ne.string(),configured:ne.boolean(),items:ne.array(b_).nullish(),type:ne.string()}),S_=ne.object({results:ne.array(w_)}),mo=ne.object({id:ne.number(),name:ne.string()}),__=go.extend({results:ne.array(mo)}),x_=ne.object({resource:ne.string(),value:ne.string()}),Iu=ne.object({name:ne.string().nullish()}),C_=ne.object({createdOn:ne.string().nullish(),updatedOn:ne.string().nullish(),expiresOn:ne.string().nullish(),registrar:Iu.nullish(),contacts:ne.array(Iu)}),$_=ne.object({number:ne.number()}),A_=ne.object({country:ne.string(),countryCode:ne.string()}),k_=ne.object({name:ne.string()}),M_=ne.object({name:ne.string()}),T_=ne.object({name:ne.string()}),E_=ne.object({number:ne.number()}),Bl=ne.object({id:ne.number(),data:ne.string(),dataType:ne.string(),source:ne.string(),query:ne.string().nullish(),metadata:ne.any().nullish(),createdAt:ne.string(),autonomousSystem:$_.nullish(),whoisRecord:C_.nullish(),geolocation:A_.nullish(),dnsRecords:ne.array(x_).nullish(),reverseDnsNames:ne.array(k_).nullish(),cpes:ne.array(M_).nullish(),ports:ne.array(E_).nullish(),vulnerabilities:ne.array(T_).nullish(),tags:ne.array(mo)}),Jf=ne.object({id:ne.number(),ruleId:ne.string(),createdAt:ne.string(),tags:ne.array(mo),artifacts:ne.array(Bl)}),R_=go.extend({results:ne.array(Jf)});ne.object({q:ne.string(),page:ne.number().nullish(),limit:ne.number().nullish()});ne.object({countryCode:ne.string(),asn:ne.string().nullish(),loc:ne.string().nullish()});ne.object({lat:ne.number(),long:ne.number()});ne.object({name:ne.string(),code:ne.string(),lat:ne.number(),long:ne.number()});ne.union([ne.literal("ip"),ne.literal("domain"),ne.literal("url"),ne.literal("hash"),ne.literal("mail")]);ne.object({name:ne.string(),type:ne.string(),baseURL:ne.string(),favicon:ne.function().returns(ne.string()),href:ne.function().args(ne.string()).returns(ne.string())});const ls=ne.object({id:ne.string(),title:ne.string(),description:ne.string(),yaml:ne.string(),createdAt:ne.string(),updatedAt:ne.string(),tags:ne.array(mo)});ne.object({yaml:ne.string()});ne.object({yaml:ne.string()});ne.object({analyzer:ne.string(),query:ne.string()});const L_=go.extend({results:ne.array(ls)}),O_=go.extend({results:ne.array(Bl)}),ep=ne.object({message:ne.string()});ep.extend({detail:ne.any().nullish()});const Nu=ep.extend({queued:ne.boolean()});ne.union([ne.literal("Alerts"),ne.literal("Rules"),ne.literal("Artifacts")]);const dt=tt.create(),Ct={async getConfigs(){const e=await dt.get("/api/configs");return S_.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await dt.get("/api/alerts",{params:e});return R_.parse(t.data)},async getAlert(e){const t=await dt.get(`/api/alerts/${e}`);return Jf.parse(t.data)},async getTags(){const e=await dt.get("/api/tags");return __.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 O_.parse(t.data)},async enrichArtifact(e){const t=await dt.post(`/api/artifacts/${e}/enrich`);return Nu.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 L_.parse(t.data)},async getRule(e){const t=await dt.get(`/api/rules/${e}`);return ls.parse(t.data)},async searchRule(e){const t=await dt.post(`/api/rules/${e}/search`);return Nu.parse(t.data)},async createRule(e){const t=await dt.post("/api/rules/",e);return ls.parse(t.data)},async updateRule(e){const t=await dt.put("/api/rules/",e);return ls.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 vo(){return xt(async(e,t)=>await Ct.getAlerts(t))}function I_(){return xt(async(e,t)=>await Ct.deleteAlert(t))}function N_(){return xt(async(e,t)=>await Ct.deleteTag(t))}function D_(){return xt(async(e,t)=>await Ct.getArtifact(t))}function tp(){return xt(async(e,t)=>await Ct.deleteArtifact(t))}function F_(){return xt(async(e,t)=>await Ct.enrichArtifact(t))}function P_(){return xt(async()=>await Ct.getConfigs())}function W_(){return xt(async(e,t)=>await Ct.getIpInfo(t))}function np(){return xt(async(e,t)=>await Ct.getRules(t))}function ip(){return xt(async(e,t)=>await Ct.getRule(t))}function B_(){return xt(async(e,t)=>await Ct.deleteRule(t))}function z_(){return xt(async(e,t)=>await Ct.searchRule(t))}function j_(){return xt(async(e,t)=>await Ct.createRule(t))}function H_(){return xt(async(e,t)=>await Ct.updateRule(t))}function zl(){return xt(async(e,t)=>await Ct.getArtifacts(t))}function U_(){return xt(async(e,t)=>await Ct.getAlert(t))}const V_={class:"buttons is-pulled-right"},G_=["href"],Y_={class:"icon is-small"},K_={class:"icon is-small"},rp=xe({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,i=t,r=Ce(()=>`/api/alerts/${n.alert.id}`),a=I_(),f=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await a.perform(n.alert.id),i("delete")}catch(o){tt.isAxiosError(o)&&i("set-error",o)}};return(g,o)=>{const p=Ze("font-awesome-icon");return Y(),re("span",V_,[D("a",{class:"button is-link is-light is-small",href:r.value,target:"_blank"},[o[0]||(o[0]=D("span",null,"JSON",-1)),D("span",Y_,[se(p,{icon:"barcode"})])],8,G_),D("button",{class:"button is-light is-small",onClick:f},[o[1]||(o[1]=D("span",null,"Delete",-1)),D("span",K_,[se(p,{icon:"times"})])])])}}});var Ar=Z_;function Z_(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const X_={key:0,class:"control"},Q_=xe({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,r=Ke(!1),a=Ke(!1),f=tp(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await f.perform(n.artifact.id),r.value=!0,i("delete"))},o=()=>{a.value=!0},p=()=>{a.value=!1};return(s,l)=>{const u=Ze("router-link");return r.value?me("",!0):(Y(),re("div",X_,[D("div",{class:"tags has-addons are-medium",onMouseover:o,onMouseleave:p},[se(u,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:it(()=>[rt(we(ce(Ar)(e.artifact.data,32)),1)]),_:1},8,["to"]),a.value?(Y(),re("span",{key:0,class:"tag is-delete",onClick:g})):me("",!0)],32)]))}}}),q_={class:"field is-grouped is-grouped-multiline"},sp=xe({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,r=Ke(0),a=()=>{r.value+=1};return Qe(r,()=>{r.value>=n.artifacts.length&&i("delete")}),(f,g)=>(Y(),re("div",q_,[(Y(!0),re(Be,null,Ft(e.artifacts,o=>(Y(),_e(Q_,{key:o.id,artifact:o,onDelete:a},null,8,["artifact"]))),128))]))}});var Os={d:(e,t)=>{for(var n in t)Os.o(t,n)&&!Os.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},op={};function Ga(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 ap(e,t){if(e){if(typeof e=="string")return Ga(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)?Ga(e,t):void 0}}function Is(e){return function(t){if(Array.isArray(t))return Ga(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||ap(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 Ns(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Os.d(op,{Z:()=>ix});const Me=(Du={computed:()=>Ce,createTextVNode:()=>rt,createVNode:()=>se,defineComponent:()=>xe,reactive:()=>Oi,ref:()=>Ke,watch:()=>Qe,watchEffect:()=>Cl},Ko={},Os.d(Ko,Du),Ko),J_=(0,Me.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Me.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),ex=(0,Me.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,Me.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Me.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,Me.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(i){return i.stopPropagation()}},[(0,Me.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Me.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),tx=(0,Me.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,Me.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Me.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Me.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 Du,Ko;function Ya(e){return Ya=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},Ya(e)}function lp(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,r=i||{},a=r.key,f=r.index,g=r.type,o=g===void 0?"content":g,p=r.showComma,s=p!==void 0&&p,l=r.length,u=l===void 0?1:l,c=lp(e);if(c==="array"){var h=Fu(e.map(function(b,y,S){return Un(b,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==S.length-1,length:u,type:o})}));return[Un("[",t,n,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(h,Un("]",t,n,{showComma:s,length:e.length,type:"arrayEnd"})[0])}if(c==="object"){var d=Object.keys(e),m=Fu(d.map(function(b,y,S){return Un(e[b],/^[a-zA-Z_]\w*$/.test(b)?"".concat(t,".").concat(b):"".concat(t,'["').concat(b,'"]'),n+1,{key:b,showComma:y!==S.length-1,length:u,type:o})}));return[Un("{",t,n,{showComma:!1,key:a,index:f,length:d.length,type:"objectStart"})[0]].concat(m,Un("}",t,n,{showComma:s,length:d.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:a,index:f,path:t,showComma:s,length:u,type:o}]}function Fu(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Is(e),n=[];t.length;){var i=t.shift();Array.isArray(i)?t.unshift.apply(t,Is(i)):n.push(i)}return n}function Ka(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(Ya(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(a){return Ka(a,t)});return t.set(e,n),n}var i={};for(var r in e)i[r]=Ka(e[r],t);return t.set(e,i),i}function Pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pu(Object(n),!0).forEach(function(i){Ns(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var cp={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 nx=(0,Me.defineComponent)({name:"TreeNode",props:Wu(Wu({},cp),{},{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,Me.computed)(function(){return lp(e.node.content)}),r=(0,Me.computed)(function(){return"vjs-value vjs-value-".concat(i.value)}),a=(0,Me.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),f=(0,Me.computed)(function(){return e.selectableType==="multiple"}),g=(0,Me.computed)(function(){return e.selectableType==="single"}),o=(0,Me.computed)(function(){return e.nodeSelectable(e.node)&&(f.value||g.value)}),p=(0,Me.reactive)({editing:!1}),s=function(y){var S,_,C=(_=(S=y.target)===null||S===void 0?void 0:S.value)==="null"?null:_==="undefined"?void 0:_==="true"||_!=="false"&&(_[0]+_[_.length-1]==='""'||_[0]+_[_.length-1]==="''"?_.slice(1,-1):typeof Number(_)=="number"&&!isNaN(Number(_))||_==="NaN"?Number(_):_);n("valueChange",C,e.node.path)},l=(0,Me.computed)(function(){var y,S=(y=e.node)===null||y===void 0?void 0:y.content;return S===null?S="null":S===void 0&&(S="undefined"),i.value==="string"?'"'.concat(S,'"'):S+""}),u=function(){var y=e.renderNodeValue;return y?y({node:e.node,defaultValue:l.value}):l.value},c=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),o.value&&e.selectOnClickNode&&n("selectedChange",e.node)},b=function(y){if(e.editable&&!p.editing){p.editing=!0;var S=function _(C){var w;C.target!==y.target&&((w=C.target)===null||w===void 0?void 0:w.parentElement)!==y.target&&(p.editing=!1,document.removeEventListener("click",_))};document.removeEventListener("click",S),document.addEventListener("click",S)}};return function(){var y,S=e.node;return(0,Me.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,Me.createVNode)("span",{class:"vjs-node-index"},[S.id+1]),e.showSelectController&&o.value&&S.type!=="objectEnd"&&S.type!=="arrayEnd"&&(0,Me.createVNode)(ex,{isMultiple:f.value,checked:e.checked,onChange:d},null),(0,Me.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(S.level)).map(function(_,C){return(0,Me.createVNode)("div",{key:C,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,Me.createVNode)(tx,{nodeType:S.type,onClick:h},null)]),S.key&&(0,Me.createVNode)("span",{class:"vjs-key"},[(y=e.renderNodeKey,y?y({node:e.node,defaultKey:a.value||""}):a.value),(0,Me.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,Me.createVNode)("span",null,[S.type!=="content"&&S.content?(0,Me.createVNode)(J_,{data:S.content.toString(),onClick:c},null):(0,Me.createVNode)("span",{class:r.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,Me.createVNode)("input",{value:l.value,onChange:s,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):u()]),S.showComma&&(0,Me.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,Me.createVNode)("span",{class:"vjs-comment"},[(0,Me.createTextVNode)(" // "),S.length,(0,Me.createTextVNode)(" items ")])])])}}});function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bu(Object(n),!0).forEach(function(i){Ns(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}const ix=(0,Me.defineComponent)({name:"Tree",props:Lt(Lt({},cp),{},{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,r=(0,Me.ref)(),a=(0,Me.computed)(function(){return Un(e.data,e.rootPath)}),f=function(S,_){return a.value.reduce(function(C,w){var A,R=w.level>=S||w.length>=_,E=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,w);return w.type!=="objectStart"&&w.type!=="arrayStart"||!R&&!E?C:Lt(Lt({},C),{},Ns({},w.path,1))},{})},g=(0,Me.reactive)({translateY:0,visibleData:null,hiddenPaths:f(e.deep,e.collapsedNodeLength)}),o=(0,Me.computed)(function(){for(var S=null,_=[],C=a.value.length,w=0;w<C;w++){var A=Lt(Lt({},a.value[w]),{},{id:w}),R=g.hiddenPaths[A.path];if(S&&S.path===A.path){var E=S.type==="objectStart",T=Lt(Lt(Lt({},A),S),{},{showComma:A.showComma,content:E?"{...}":"[...]",type:E?"objectCollapsed":"arrayCollapsed"});S=null,_.push(T)}else{if(R&&!S){S=A;continue}if(S)continue;_.push(A)}}return _}),p=(0,Me.computed)(function(){var S=e.selectedValue;return S&&e.selectableType==="multiple"&&Array.isArray(S)?S:[S]}),s=(0,Me.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."}),l=function(){var S=o.value;if(e.virtual){var _,C=e.height/e.itemHeight,w=((_=r.value)===null||_===void 0?void 0:_.scrollTop)||0,A=Math.floor(w/e.itemHeight),R=A<0?0:A+C>S.length?S.length-C:A;R<0&&(R=0);var E=R+C;g.translateY=R*e.itemHeight,g.visibleData=S.filter(function(T,O){return O>=R&&O<E})}else g.visibleData=S},u=function(){l()},c=function(S){var _,C,w=S.path,A=e.selectableType;if(A==="multiple"){var R=p.value.findIndex(function($){return $===w}),E=Is(p.value);R!==-1?E.splice(R,1):E.push(w),n("update:selectedValue",E),n("selectedChange",E,Is(p.value))}else if(A==="single"&&p.value[0]!==w){var T=(_=p.value,C=1,function($){if(Array.isArray($))return $}(_)||function($,v){var x=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(x!=null){var k,M,L=[],I=!0,N=!1;try{for(x=x.call($);!(I=(k=x.next()).done)&&(L.push(k.value),!v||L.length!==v);I=!0);}catch(F){N=!0,M=F}finally{try{I||x.return==null||x.return()}finally{if(N)throw M}}return L}}(_,C)||ap(_,C)||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,T)}},h=function(S){n("nodeClick",S)},d=function(S,_){if(S)g.hiddenPaths=Lt(Lt({},g.hiddenPaths),{},Ns({},_,1));else{var C=Lt({},g.hiddenPaths);delete C[_],g.hiddenPaths=C}},m=function(S,_){e.collapsedOnClickBrackets&&d(S,_.path),n("bracketsClick",S,_)},b=function(S,_){d(S,_.path),n("iconClick",S,_)},y=function(S,_){var C=Ka(e.data),w=e.rootPath;new Function("data","val","data".concat(_.slice(w.length),"=val"))(C,S),n("update:data",C)};return(0,Me.watchEffect)(function(){s.value&&function(S){throw new Error("[VueJSONPretty] ".concat(S))}(s.value)}),(0,Me.watchEffect)(function(){o.value&&l()}),(0,Me.watch)(function(){return e.deep},function(S){S&&(g.hiddenPaths=f(S,e.collapsedNodeLength))}),(0,Me.watch)(function(){return e.collapsedNodeLength},function(S){S&&(g.hiddenPaths=f(e.deep,S))}),function(){var S,_,C=(S=e.renderNodeKey)!==null&&S!==void 0?S:i.renderNodeKey,w=(_=e.renderNodeValue)!==null&&_!==void 0?_:i.renderNodeValue,A=g.visibleData&&g.visibleData.map(function(R){return(0,Me.createVNode)(nx,{key:R.id,node:R,collapsed:!!g.hiddenPaths[R.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:p.value.includes(R.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:C,renderNodeValue:w,onNodeClick:h,onBracketsClick:m,onIconClick:b,onSelectedChange:c,onValueChange:y,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,Me.createVNode)("div",{ref:r,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?u:void 0,style:e.showLineNumber?Lt({paddingLeft:"".concat(12*Number(a.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,Me.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,Me.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(o.value.length*e.itemHeight,"px")}},[(0,Me.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[A])])]):A])}}});var up=op.Z;const rx={class:"notification is-danger is-light"},sx={key:1},ox={key:2},ax={key:0,class:"message"},lx={class:"message-body"},gt=xe({__name:"ErrorMessage",props:{error:{type:uS,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,i=t,r=Ce(()=>{var f;if(n.error.response)return(f=n.error.response)==null?void 0:f.data}),a=()=>{i("dispose")};return(f,g)=>{var o;return Y(),re(Be,null,[D("div",rx,[e.disposable?(Y(),re("button",{key:0,class:"delete",onClick:a})):me("",!0),r.value?(Y(),re("p",sx,we(r.value.message),1)):(Y(),re("p",ox,we(e.error),1))]),(o=r.value)!=null&&o.detail?(Y(),re("article",ax,[D("div",lx,[se(ce(up),{data:r.value.detail},null,8,["data"])])])):me("",!0)],64)}}}),cx={key:0,class:"control"},ux=xe({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=Ke(!1),i=Ke(!1),r=N_(),a=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await r.perform(t.tag.id),n.value=!0)},f=()=>{i.value=!0},g=()=>{i.value=!1},o=p=>`tag:"${p}"`;return(p,s)=>{const l=Ze("router-link");return n.value?me("",!0):(Y(),re("div",cx,[D("div",{class:"tags has-addons are-medium",onMouseover:f,onMouseleave:g},[se(l,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:o(e.tag.name)}}},{default:it(()=>[rt(we(e.tag.name),1)]),_:1},8,["to"]),i.value&&e.deletable?(Y(),re("a",{key:0,class:"tag is-delete",onClick:a})):me("",!0)],32)]))}}}),hx={class:"field is-grouped is-grouped-multiline"},Br=xe({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(Y(),re("div",hx,[(Y(!0),re(Be,null,Ft(e.tags,i=>(Y(),_e(ux,{tag:i,key:i.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),dx={key:0,class:"box"},fx={class:"table is-fullwidth is-completely-borderless"},px={key:0},gx={class:"help"},mx=xe({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ke(!1),r=Ke(),a=p=>{r.value=p},f=()=>{r.value=void 0},g=()=>{n("delete")},o=()=>{i.value=!0};return(p,s)=>{const l=Ze("router-link");return i.value?me("",!0):(Y(),re("div",dx,[r.value?(Y(),_e(gt,{key:0,class:"block",error:r.value,disposable:!0,onDispose:f},null,8,["error"])):me("",!0),D("p",null,[se(rp,{alert:e.alert,onDelete:g,onSetError:a},null,8,["alert"])]),se(l,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:it(()=>[rt(we(e.alert.id),1)]),_:1},8,["to"]),D("table",fx,[D("tr",null,[s[0]||(s[0]=D("th",null,"Rule",-1)),D("td",null,[se(l,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:it(()=>[rt(we(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[s[1]||(s[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(sp,{artifacts:e.alert.artifacts,onDelete:o},null,8,["artifacts"])])]),e.alert.tags.length>0?(Y(),re("tr",px,[s[2]||(s[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",gx,"Created at: "+we(e.alert.createdAt),1)]))}}}),vx={key:0,class:"message is-warning"},yx={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},bx={key:0,class:"pagination-list"},wx={key:1,class:"pagination-list"},Sx={key:0},_x={key:1},xx={key:2},Cx={key:3},$x={key:4},Ax={key:5},jl=xe({__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,r=u=>u===n.currentPage+1||u===n.currentPage-1,a=Ce(()=>Math.ceil(n.total/n.pageSize)),f=Ce(()=>a.value===1),g=Ce(()=>n.currentPage>1),o=Ce(()=>n.currentPage-1===1),p=Ce(()=>n.currentPage<a.value),s=Ce(()=>n.currentPage+1===a.value),l=u=>{i("update-page",u)};return(u,c)=>e.total===0?(Y(),re("article",vx,c[6]||(c[6]=[D("div",{class:"message-body"},"There is no result to show.",-1)]))):(Y(),re("nav",yx,[f.value?(Y(),re("ul",bx,[D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:c[0]||(c[0]=h=>l(1))},"1")])])):(Y(),re("ul",wx,[g.value&&!o.value?(Y(),re("li",Sx,[D("a",{class:"pagination-link mt-2",onClick:c[1]||(c[1]=h=>l(1))}," 1")])):me("",!0),g.value&&!o.value&&!r(2)?(Y(),re("li",_x,c[7]||(c[7]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):me("",!0),g.value?(Y(),re("li",xx,[D("a",{class:"pagination-link mt-2",onClick:c[2]||(c[2]=h=>l(e.currentPage-1))},we(e.currentPage-1),1)])):me("",!0),D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:c[3]||(c[3]=h=>l(e.currentPage))},we(e.currentPage),1)]),p.value?(Y(),re("li",Cx,[D("a",{class:"pagination-link mt-2",onClick:c[4]||(c[4]=h=>l(e.currentPage+1))},we(e.currentPage+1),1)])):me("",!0),p.value&&!s.value&&!r(a.value-1)?(Y(),re("li",$x,c[8]||(c[8]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):me("",!0),p.value&&!s.value?(Y(),re("li",Ax,[D("a",{class:"pagination-link mt-2",onClick:c[5]||(c[5]=h=>l(a.value))},we(a.value),1)])):me("",!0)]))]))}}),kx={key:0},Mx={class:"help"},Tx={key:1},hp=xe({__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,r=g=>{i("update-page",g)},a=()=>{i("refresh")},f=Ce(()=>n.alerts.results.length>0);return(g,o)=>f.value?(Y(),re("div",kx,[(Y(!0),re(Be,null,Ft(e.alerts.results,p=>(Y(),_e(mx,{alert:p,key:p.id,onDelete:a},null,8,["alert"]))),128)),se(jl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:r},null,8,["total","currentPage","pageSize"]),D("p",Mx,"("+we(e.alerts.total)+" results in total, "+we(e.alerts.results.length)+" shown)",1)])):(Y(),re("div",Tx,o[0]||(o[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),Ex=xe({name:"LoadingItem"}),Rx={class:"has-text-centered"},Lx={class:"fa-3x"};function Ox(e,t,n,i,r,a){const f=Ze("font-awesome-icon");return Y(),re("div",Rx,[D("div",Lx,[se(f,{icon:"spinner",spin:""})])])}const _n=Nr(Ex,[["render",Ox]]),Ix={class:"block"},Nx={class:"field has-addons"},Dx={class:"control is-expanded"},Fx={class:"control"},Px={class:"icon is-small"},Wx={class:"control"},Bx={class:"icon is-small"},zx={key:0,class:"content"},jx={key:0,class:"block"},Hx=xe({__name:"AlertsWrapper",setup(e){const t=ki("page","1"),n=ki("q",""),i=Ke(!1),r=vo(),a=async()=>{const s={q:n.value,page:parseInt(t.value)};return await r.perform(s)},f=s=>{t.value=s.toString()},g=async()=>{t.value="1",await a()},o=g,p=Ir(i);return ct(async()=>{await a()}),Qe(t,async()=>{await a()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,l)=>{var h,d;const u=Ze("font-awesome-icon"),c=Ze("router-link");return Y(),re(Be,null,[D("div",Ix,[D("div",Nx,[D("p",Dx,[Sl(D("input",{class:"input",type:"text","onUpdate:modelValue":l[0]||(l[0]=m=>lt(n)?n.value=m:null)},null,512),[[Ml,ce(n)]])]),D("p",Fx,[D("a",{class:"button is-primary",onClick:g},[D("span",Px,[se(u,{icon:"search"})]),l[2]||(l[2]=D("span",null,"Search",-1))])]),D("p",Wx,[D("a",{class:"button is-info",onClick:l[1]||(l[1]=m=>ce(p)())},[D("span",Bx,[se(u,{icon:"question"})]),l[3]||(l[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),re("div",zx,[l[6]||(l[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(c,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:it(()=>l[4]||(l[4]=[rt("rule.id:foo AND artifact.data:example.com")])),_:1})]),D("li",null,[se(c,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:it(()=>l[5]||(l[5]=[rt("tag:foo AND created_at >= 2020-01-01")])),_:1})])])])):me("",!0)]),ce(r).performCount>0?(Y(),re("div",jx,[ce(r).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(r).isError?(Y(),_e(gt,{key:1,error:(h=ce(r).last)==null?void 0:h.error},null,8,["error"])):me("",!0),(d=ce(r).last)!=null&&d.value?(Y(),_e(hp,{key:2,alerts:ce(r).last.value,page:ce(t),onUpdatePage:f,onRefresh:ce(o)},null,8,["alerts","page","onRefresh"])):me("",!0)])):me("",!0)],64)}}}),Ux={class:"columns"},Vx={class:"column is-one-third"},Gx={class:"card"},Yx={class:"card-content"},Kx={class:"level is-mobile"},Zx={class:"level-item"},Xx={class:"title"},Qx={class:"level-item"},qx={class:"icon"},Jx={class:"column is-one-third"},eC={class:"card"},tC={class:"card-content"},nC={class:"level is-mobile"},iC={class:"level-item"},rC={class:"title"},sC={class:"level-item"},oC={class:"icon"},aC={class:"column is-one-third"},lC={class:"card"},cC={class:"card-content"},uC={class:"level is-mobile"},hC={class:"level-item"},dC={class:"title"},fC={class:"level-item"},pC={class:"icon"},gC=xe({__name:"OverviewCards",setup(e){const t=vo(),n=np(),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})}),(r,a)=>{var g,o,p,s,l,u;const f=Ze("font-awesome-icon");return Y(),re("div",Ux,[D("div",Vx,[D("div",Gx,[D("div",Yx,[D("div",Kx,[D("div",Zx,[D("div",null,[a[0]||(a[0]=D("h3",{class:"subtitle is-spaced"},"Rules",-1)),D("h1",Xx,we(((o=(g=ce(n).last)==null?void 0:g.value)==null?void 0:o.total)??"N/A"),1)])]),D("div",Qx,[D("span",qx,[se(f,{icon:"file",size:"2x"})])])])])])]),D("div",Jx,[D("div",eC,[D("div",tC,[D("div",nC,[D("div",iC,[D("div",null,[a[1]||(a[1]=D("h3",{class:"subtitle is-spaced"},"Alerts",-1)),D("h1",rC,we(((s=(p=ce(t).last)==null?void 0:p.value)==null?void 0:s.total)??"N/A"),1)])]),D("div",sC,[D("span",oC,[se(f,{icon:"bell",size:"2x"})])])])])])]),D("div",aC,[D("div",lC,[D("div",cC,[D("div",uC,[D("div",hC,[D("div",null,[a[2]||(a[2]=D("h3",{class:"subtitle is-spaced"},"Artifacts",-1)),D("h1",dC,we(((u=(l=ce(i).last)==null?void 0:l.value)==null?void 0:u.total)??"N/A"),1)])]),D("div",fC,[D("span",pC,[se(f,{icon:"ticket",size:"2x"})])])])])])])])}}}),mC=xe({__name:"AlertsView",setup(e){return Sn("Alerts - Mihari"),(t,n)=>(Y(),re(Be,null,[se(gC),n[0]||(n[0]=D("hr",null,null,-1)),se(Hx)],64))}}),dp=xe({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=Ke(1),i=Ce(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),r=vo(),a=async()=>{const g={q:i.value,page:n.value};return await r.perform(g)},f=g=>{n.value=g};return ct(async()=>{await a()}),Qe([t,n],async()=>{await a()}),(g,o)=>{var p,s;return Y(),re(Be,null,[ce(r).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(r).isError?(Y(),_e(gt,{key:1,error:(p=ce(r).last)==null?void 0:p.error},null,8,["error"])):me("",!0),(s=ce(r).last)!=null&&s.value?(Y(),_e(hp,{key:2,page:n.value.toString(),alerts:ce(r).last.value,onUpdatePage:f},null,8,["page","alerts"])):me("",!0)],64)}}}),vC={class:"block"},yC={class:"is-size-2"},bC={class:"is-clearfix"},wC={class:"table is-fullwidth is-completely-borderless"},SC={key:0},_C={class:"help"},xC={class:"block"},CC=xe({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ke(),r=o=>{i.value=o},a=()=>{i.value=void 0},f=()=>{n("delete")},g=f;return(o,p)=>{const s=Ze("router-link");return Y(),re(Be,null,[i.value?(Y(),_e(gt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:a},null,8,["error"])):me("",!0),D("div",vC,[D("h2",yC,we(e.alert.id),1),D("p",bC,[se(rp,{alert:e.alert,onDelete:f,onSetError:r},null,8,["alert"])]),D("table",wC,[D("tr",null,[p[0]||(p[0]=D("th",null,"Rule",-1)),D("td",null,[se(s,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:it(()=>[rt(we(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[p[1]||(p[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(sp,{artifacts:e.alert.artifacts,onDelete:ce(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Y(),re("tr",SC,[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",_C,"Created at: "+we(e.alert.createdAt),1)]),p[4]||(p[4]=D("hr",null,null,-1)),D("div",xC,[p[3]||(p[3]=D("h2",{class:"is-size-2 block"},"Related Alerts",-1)),se(dp,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),$C=xe({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=Ii(),i=U_(),r=()=>{n.push("/")};return ct(async()=>{await i.perform(t.id)}),(a,f)=>{var g,o;return Y(),re(Be,null,[ce(i).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(i).isError?(Y(),_e(gt,{key:1,error:(g=ce(i).last)==null?void 0:g.error},null,8,["error"])):me("",!0),(o=ce(i).last)!=null&&o.value?(Y(),_e(CC,{key:2,alert:ce(i).last.value,onDelete:r},null,8,["alert"])):me("",!0)],64)}}}),AC=xe({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Alert:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(i,r)=>(Y(),_e($C,{id:parseInt(e.id)},null,8,["id"]))}}),kC={class:"buttons is-pulled-right"},MC=["href"],TC={class:"icon is-small"},EC={class:"icon is-small"},RC={class:"icon is-small"},LC={class:"icon is-small"},OC={key:0},IC={class:"modal is-active"},NC={class:"modal-card"},DC={class:"modal-card-head"},FC={class:"modal-card-body"},PC=xe({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,r=Ce(()=>`/api/artifacts/${n.artifact.id}`),a=Ke(!1),f=tp(),g=F_(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await f.perform(n.artifact.id),i("delete")}catch(u){tt.isAxiosError(u)&&i("set-error",u)}},p=async()=>{try{const l=await g.perform(n.artifact.id);i("set-message",l)}catch(l){tt.isAxiosError(l)&&i("set-error",l)}},s=Ir(a);return(l,u)=>{const c=Ze("font-awesome-icon");return Y(),re(Be,null,[D("span",kC,[D("a",{class:"button is-link is-light is-small",href:r.value,target:"_blank"},[u[3]||(u[3]=D("span",null,"JSON",-1)),D("span",TC,[se(c,{icon:"barcode"})])],8,MC),e.artifact.metadata?(Y(),re("button",{key:0,class:"button is-info is-light is-small",onClick:u[0]||(u[0]=h=>ce(s)())},[u[4]||(u[4]=D("span",null,"Metadata",-1)),D("span",EC,[se(c,{icon:"info-circle"})])])):me("",!0),D("button",{class:"button is-primary is-light is-small",onClick:p},[u[5]||(u[5]=D("span",null,"Enrich",-1)),D("span",RC,[ce(g).isRunning?(Y(),_e(c,{key:0,icon:"spinner",spin:""})):(Y(),_e(c,{key:1,icon:"lightbulb"}))])]),D("button",{class:"button is-light is-small",onClick:o},[u[6]||(u[6]=D("span",null,"Delete",-1)),D("span",LC,[se(c,{icon:"times"})])])]),e.artifact.metadata&&a.value?(Y(),re("div",OC,[D("div",IC,[D("div",{class:"modal-background",onClick:u[1]||(u[1]=h=>ce(s)())}),D("div",NC,[D("header",DC,[u[7]||(u[7]=D("p",{class:"modal-card-title"},"Metadata",-1)),D("button",{class:"delete","aria-label":"close",onClick:u[2]||(u[2]=h=>ce(s)())})]),D("section",FC,[se(ce(up),{data:e.artifact.metadata},null,8,["data"])])])])])):me("",!0)],64)}}}),fp=Nr(PC,[["__scopeId","data-v-dac610f8"]]),WC={class:"notification is-info is-light"},yo=xe({__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(r,a)=>(Y(),re("div",WC,[e.disposable?(Y(),re("button",{key:0,class:"delete",onClick:i})):me("",!0),D("p",null,we(e.message.message),1)]))}}),BC={class:"box"},zC={class:"block"},jC={class:"table is-fullwidth is-completely-borderless"},HC={key:0},UC={class:"help"},VC=xe({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ke(),r=Ke(),a=s=>{i.value=s},f=()=>{i.value=void 0},g=()=>{n("delete")},o=s=>{s.queued&&(r.value=s)},p=()=>{r.value=void 0};return(s,l)=>{const u=Ze("router-link");return Y(),re("div",BC,[i.value?(Y(),_e(gt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:f},null,8,["error"])):me("",!0),r.value?(Y(),_e(yo,{key:1,class:"block",message:r.value,disposable:!0,onDispose:p},null,8,["message"])):me("",!0),D("div",zC,[D("p",null,[se(fp,{artifact:e.artifact,onDelete:g,onSetError:a,onSetMessage:o},null,8,["artifact"])]),se(u,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:it(()=>[rt(we(e.artifact.id),1)]),_:1},8,["to"])]),D("table",jC,[D("tr",null,[l[0]||(l[0]=D("th",null,"Data",-1)),D("td",null,we(e.artifact.data),1)]),D("tr",null,[l[1]||(l[1]=D("th",null,"Data Type",-1)),D("td",null,we(e.artifact.dataType),1)]),D("tr",null,[l[2]||(l[2]=D("th",null,"Source",-1)),D("td",null,we(e.artifact.source),1)]),D("tr",null,[l[3]||(l[3]=D("th",null,"Query",-1)),D("td",null,we(ce(Ar)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),re("tr",HC,[l[4]||(l[4]=D("th",null,"Tags",-1)),D("td",null,[se(Br,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):me("",!0)]),l[5]||(l[5]=D("p",{class:"block is-clearfix"},null,-1)),D("p",UC,"Created at: "+we(e.artifact.createdAt),1)])}}}),GC={key:0},YC={class:"help"},KC={key:1},ZC=xe({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,r=Ce(()=>n.artifacts.results.length>0),a=g=>{i("update-page",g)},f=()=>{i("refresh")};return(g,o)=>r.value?(Y(),re("div",GC,[(Y(!0),re(Be,null,Ft(e.artifacts.results,p=>(Y(),_e(VC,{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:a},null,8,["total","currentPage","pageSize"]),D("p",YC," ("+we(e.artifacts.total)+" results in total, "+we(e.artifacts.results.length)+" shown) ",1)])):(Y(),re("div",KC,o[0]||(o[0]=[D("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1)])))}}),XC={class:"block"},QC={class:"field has-addons"},qC={class:"control is-expanded"},JC={class:"control"},e$={class:"icon is-small"},t$={class:"control"},n$={class:"icon is-small"},i$={key:0,class:"content mt-3"},r$={key:0,class:"block"},s$=xe({__name:"ArtifactsWrapper",setup(e){const t=ki("page","1"),n=ki("q",""),i=Ke(!1),r=zl(),a=async()=>{const s={q:n.value,page:parseInt(t.value)};return await r.perform(s)},f=s=>{t.value=s.toString()},g=async()=>{t.value="1",await a()},o=g,p=Ir(i);return ct(async()=>{await a()}),Qe(t,async()=>{await a()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,l)=>{var c,h;const u=Ze("font-awesome-icon");return Y(),re(Be,null,[D("div",XC,[D("div",QC,[D("p",qC,[Sl(D("input",{class:"input",type:"text","onUpdate:modelValue":l[0]||(l[0]=d=>lt(n)?n.value=d:null)},null,512),[[Ml,ce(n)]])]),D("p",JC,[D("a",{class:"button is-primary",onClick:g},[D("span",e$,[se(u,{icon:"search"})]),l[2]||(l[2]=D("span",null,"Search",-1))])]),D("p",t$,[D("a",{class:"button is-info",onClick:l[1]||(l[1]=d=>ce(p)())},[D("span",n$,[se(u,{icon:"question"})]),l[3]||(l[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),re("div",i$,l[4]||(l[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)]),ce(r).performCount>0?(Y(),re("div",r$,[ce(r).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(r).isError?(Y(),_e(gt,{key:1,error:(c=ce(r).last)==null?void 0:c.error},null,8,["error"])):me("",!0),(h=ce(r).last)!=null&&h.value?(Y(),_e(ZC,{key:2,artifacts:ce(r).last.value,onUpdatePage:f,onRefresh:ce(o)},null,8,["artifacts","onRefresh"])):me("",!0)])):me("",!0)],64)}}}),o$=xe({__name:"ArtifactsView",setup(e){const t=()=>{Sn("Artifacts - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),_e(s$))}}),a$={class:"tags are-medium"},l$=xe({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,i)=>{const r=Ze("router-link");return Y(),re("div",a$,[se(r,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:it(()=>[rt(we(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),c$={class:"tags are-medium"},u$=xe({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,i)=>{const r=Ze("router-link");return Y(),re("div",c$,[(Y(!0),re(Be,null,Ft(e.cpes,a=>(Y(),_e(r,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:it(()=>[rt(we(a.name),1)]),_:2},1032,["to"]))),128))])}}}),h$={class:"field is-grouped is-grouped-multiline"},d$={class:"tags has-addons are-medium"},f$={class:"tag is-dark"},p$=xe({__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 r=Ze("router-link");return Y(),re("div",h$,[(Y(!0),re(Be,null,Ft(e.dnsRecords,(a,f)=>(Y(),re("div",{class:"control",key:f},[D("div",d$,[D("span",f$,we(a.resource),1),se(r,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:a.resource,value:a.value})}}},{default:it(()=>[rt(we(ce(Ar)(a.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),g$={class:"tags are-medium"},m$=xe({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,i)=>{const r=Ze("router-link");return Y(),re("div",g$,[(Y(!0),re(Be,null,Ft(e.ports,a=>(Y(),_e(r,{class:"tag",key:a.number,to:{name:"Artifacts",query:{q:t(a.number)}}},{default:it(()=>[rt(we(a.number),1)]),_:2},1032,["to"]))),128))])}}}),v$={class:"tags are-medium"},y$=xe({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,i)=>{const r=Ze("router-link");return Y(),re("div",v$,[(Y(!0),re(Be,null,Ft(e.reverseDnsNames,a=>(Y(),_e(r,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:it(()=>[rt(we(a.name),1)]),_:2},1032,["to"]))),128))])}}}),b$={class:"tags are-medium"},w$=xe({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,i)=>{const r=Ze("router-link");return Y(),re("div",b$,[(Y(!0),re(Be,null,Ft(e.vulnerabilities,a=>(Y(),_e(r,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:it(()=>[rt(we(a.name),1)]),_:2},1032,["to"]))),128))])}}}),S$={class:"field is-grouped is-grouped-multiline"},_$={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"},R$={class:"control"},L$={class:"tags has-addons are-medium"},O$={class:"tag"},I$=xe({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>{var i;return Y(),re("div",S$,[D("div",_$,[D("div",x$,[n[0]||(n[0]=D("span",{class:"tag is-dark"},"Registrar",-1)),D("span",C$,we(((i=e.whoisRecord.registrar)==null?void 0:i.name)||"N/A"),1)])]),D("div",$$,[D("div",A$,[n[1]||(n[1]=D("span",{class:"tag is-dark"},"Created on",-1)),D("span",k$,we(e.whoisRecord.createdOn||"N/A"),1)])]),D("div",M$,[D("div",T$,[n[2]||(n[2]=D("span",{class:"tag is-dark"},"Updated on",-1)),D("span",E$,we(e.whoisRecord.updatedOn||"N/A"),1)])]),D("div",R$,[D("div",L$,[n[3]||(n[3]=D("span",{class:"tag is-dark"},"Expires on",-1)),D("span",O$,we(e.whoisRecord.expiresOn||"N/A"),1)])])])}}}),N$=["href"],D$=["src"],F$=xe({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Zd();return(n,i)=>(Y(),re("a",{href:e.link.href(e.data),class:Er(["tag",ce(t)?"":"is-white"]),target:"_blank"},[D("img",{src:e.link.favicon(),alt:"favicon"},null,8,D$),D("span",null,we(e.link.name),1)],10,N$))}}),P$=Nr(F$,[["__scopeId","data-v-d0b695fc"]]);class Wt{constructor(){Fe(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 W$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class B$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class z$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class j$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class H$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class U$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class V$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class G$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class pp extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class Y$ extends pp{constructor(){super();Fe(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class gp extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class K$ extends gp{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class Z$ extends gp{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class X$ extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(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();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class Q$ extends Hl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class q$ extends Hl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class J$ 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 Za=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eA(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 r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}var Zo={exports:{}};const tA={},nA=Object.freeze(Object.defineProperty({__proto__:null,default:tA},Symbol.toStringTag,{value:"Module"})),zu=eA(nA);/**
|
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 ju;function iA(){return ju||(ju=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 r=!n&&typeof self=="object",a=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=Za:r&&(i=self);var f=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",o="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],s=[24,16,8,0],l=[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],u=["hex","array","digest","arrayBuffer"],c=[];(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(R){return new S(A,!0).update(R)[w]()}},d=function(w){var A=h("hex",w);a&&(A=m(A,w)),A.create=function(){return new S(w)},A.update=function(T){return A.create().update(T)};for(var R=0;R<u.length;++R){var E=u[R];A[E]=h(E,w)}return A},m=function(w,A){var R=zu,E=zu.Buffer,T=A?"sha224":"sha256",O;E.from&&!i.JS_SHA256_NO_BUFFER_FROM?O=E.from:O=function(v){return new E(v)};var $=function(v){if(typeof v=="string")return R.createHash(T).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?R.createHash(T).update(O(v)).digest("hex"):w(v)};return $},b=function(w,A){return function(R,E){return new _(R,A,!0).update(E)[w]()}},y=function(w){var A=b("hex",w);A.create=function(T){return new _(T,w)},A.update=function(T,O){return A.create(T).update(O)};for(var R=0;R<u.length;++R){var E=u[R];A[E]=b(E,w)}return A};function S(w,A){A?(c[0]=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0,this.blocks=c):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}S.prototype.update=function(w){if(!this.finalized){var A,R=typeof w;if(R!=="string"){if(R==="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,T=0,O,$=w.length,v=this.blocks;T<$;){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;T<$&&O<64;++T)v[O>>>2]|=w[T]<<s[O++&3];else for(O=this.start;T<$&&O<64;++T)E=w.charCodeAt(T),E<128?v[O>>>2]|=E<<s[O++&3]:E<2048?(v[O>>>2]|=(192|E>>>6)<<s[O++&3],v[O>>>2]|=(128|E&63)<<s[O++&3]):E<55296||E>=57344?(v[O>>>2]|=(224|E>>>12)<<s[O++&3],v[O>>>2]|=(128|E>>>6&63)<<s[O++&3],v[O>>>2]|=(128|E&63)<<s[O++&3]):(E=65536+((E&1023)<<10|w.charCodeAt(++T)&1023),v[O>>>2]|=(240|E>>>18)<<s[O++&3],v[O>>>2]|=(128|E>>>12&63)<<s[O++&3],v[O>>>2]|=(128|E>>>6&63)<<s[O++&3],v[O>>>2]|=(128|E&63)<<s[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}},S.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()}},S.prototype.hash=function(){var w=this.h0,A=this.h1,R=this.h2,E=this.h3,T=this.h4,O=this.h5,$=this.h6,v=this.h7,x=this.blocks,k,M,L,I,N,F,W,U,B,H,K;for(k=16;k<64;++k)N=x[k-15],M=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=x[k-2],L=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,x[k]=x[k-16]+M+x[k-7]+L<<0;for(K=A&R,k=0;k<64;k+=4)this.first?(this.is224?(U=300032,N=x[0]-1413257819,v=N-150054599<<0,E=N+24177077<<0):(U=704751109,N=x[0]-210244248,v=N-1521486534<<0,E=N+143694565<<0),this.first=!1):(M=(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10),L=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),U=w&A,I=U^w&R^K,W=T&O^~T&$,N=v+L+W+l[k]+x[k],F=M+I,v=E+N<<0,E=N+F<<0),M=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),L=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),B=E&w,I=B^E&A^U,W=v&T^~v&O,N=$+L+W+l[k+1]+x[k+1],F=M+I,$=R+N<<0,R=N+F<<0,M=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),L=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),H=R&E,I=H^R&w^B,W=$&v^~$&T,N=O+L+W+l[k+2]+x[k+2],F=M+I,O=A+N<<0,A=N+F<<0,M=(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),L=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),K=A&R,I=K^A&E^H,W=O&$^~O&v,N=T+L+W+l[k+3]+x[k+3],F=M+I,T=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+R<<0,this.h3=this.h3+E<<0,this.h4=this.h4+T<<0,this.h5=this.h5+O<<0,this.h6=this.h6+$<<0,this.h7=this.h7+v<<0},S.prototype.hex=function(){this.finalize();var w=this.h0,A=this.h1,R=this.h2,E=this.h3,T=this.h4,O=this.h5,$=this.h6,v=this.h7,x=o[w>>>28&15]+o[w>>>24&15]+o[w>>>20&15]+o[w>>>16&15]+o[w>>>12&15]+o[w>>>8&15]+o[w>>>4&15]+o[w&15]+o[A>>>28&15]+o[A>>>24&15]+o[A>>>20&15]+o[A>>>16&15]+o[A>>>12&15]+o[A>>>8&15]+o[A>>>4&15]+o[A&15]+o[R>>>28&15]+o[R>>>24&15]+o[R>>>20&15]+o[R>>>16&15]+o[R>>>12&15]+o[R>>>8&15]+o[R>>>4&15]+o[R&15]+o[E>>>28&15]+o[E>>>24&15]+o[E>>>20&15]+o[E>>>16&15]+o[E>>>12&15]+o[E>>>8&15]+o[E>>>4&15]+o[E&15]+o[T>>>28&15]+o[T>>>24&15]+o[T>>>20&15]+o[T>>>16&15]+o[T>>>12&15]+o[T>>>8&15]+o[T>>>4&15]+o[T&15]+o[O>>>28&15]+o[O>>>24&15]+o[O>>>20&15]+o[O>>>16&15]+o[O>>>12&15]+o[O>>>8&15]+o[O>>>4&15]+o[O&15]+o[$>>>28&15]+o[$>>>24&15]+o[$>>>20&15]+o[$>>>16&15]+o[$>>>12&15]+o[$>>>8&15]+o[$>>>4&15]+o[$&15];return this.is224||(x+=o[v>>>28&15]+o[v>>>24&15]+o[v>>>20&15]+o[v>>>16&15]+o[v>>>12&15]+o[v>>>8&15]+o[v>>>4&15]+o[v&15]),x},S.prototype.toString=S.prototype.hex,S.prototype.digest=function(){this.finalize();var w=this.h0,A=this.h1,R=this.h2,E=this.h3,T=this.h4,O=this.h5,$=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,R>>>24&255,R>>>16&255,R>>>8&255,R&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,T>>>24&255,T>>>16&255,T>>>8&255,T&255,O>>>24&255,O>>>16&255,O>>>8&255,O&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255];return this.is224||x.push(v>>>24&255,v>>>16&255,v>>>8&255,v&255),x},S.prototype.array=S.prototype.digest,S.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 _(w,A,R){var E,T=typeof w;if(T==="string"){var O=[],$=w.length,v=0,x;for(E=0;E<$;++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(T==="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 S(A,!0).update(w).array());var k=[],M=[];for(E=0;E<64;++E){var L=w[E]||0;k[E]=92^L,M[E]=54^L}S.call(this,A,R),this.update(M),this.oKeyPad=k,this.inner=!0,this.sharedMemory=R}_.prototype=new S,_.prototype.finalize=function(){if(S.prototype.finalize.call(this),this.inner){this.inner=!1;var w=this.array();S.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(w),S.prototype.finalize.call(this)}};var C=d();C.sha256=C,C.sha224=d(!0),C.sha256.hmac=y(),C.sha224.hmac=y(!0),f?e.exports=C:(i.sha256=C.sha256,i.sha224=C.sha224)})()}(Zo)),Zo.exports}var rA=iA(),Xo,Hu;function sA(){return Hu||(Hu=1,Xo=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}),Xo}var Kr={},Uu;function oA(){if(Uu)return Kr;Uu=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 r(f){for(var g=/([^=?#&]+)=?([^&]*)/g,o={},p;p=g.exec(f);){var s=n(p[1]),l=n(p[2]);s===null||l===null||s in o||(o[s]=l)}return o}function a(f,g){g=g||"";var o=[],p,s;typeof g!="string"&&(g="?");for(s in f)if(e.call(f,s)){if(p=f[s],!p&&(p===null||p===t||isNaN(p))&&(p=""),s=i(s),p=i(p),s===null||p===null)continue;o.push(s+"="+p)}return o.length?g+o.join("&"):""}return Kr.stringify=a,Kr.parse=r,Kr}var Qo,Vu;function aA(){if(Vu)return Qo;Vu=1;var e=sA(),t=oA(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,r=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,a=/:\d+$/,f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function o(y){return(y||"").toString().replace(n,"")}var p=[["#","hash"],["?","query"],function(S,_){return u(_.protocol)?S.replace(/\\/g,"/"):S},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],s={hash:1,query:1};function l(y){var S;typeof window<"u"?S=window:typeof Za<"u"?S=Za:typeof self<"u"?S=self:S={};var _=S.location||{};y=y||_;var C={},w=typeof y,A;if(y.protocol==="blob:")C=new d(unescape(y.pathname),{});else if(w==="string"){C=new d(y,{});for(A in s)delete C[A]}else if(w==="object"){for(A in y)A in s||(C[A]=y[A]);C.slashes===void 0&&(C.slashes=r.test(y.href))}return C}function u(y){return y==="file:"||y==="ftp:"||y==="http:"||y==="https:"||y==="ws:"||y==="wss:"}function c(y,S){y=o(y),y=y.replace(i,""),S=S||{};var _=f.exec(y),C=_[1]?_[1].toLowerCase():"",w=!!_[2],A=!!_[3],R=0,E;return w?A?(E=_[2]+_[3]+_[4],R=_[2].length+_[3].length):(E=_[2]+_[4],R=_[2].length):A?(E=_[3]+_[4],R=_[3].length):E=_[4],C==="file:"?R>=2&&(E=E.slice(2)):u(C)?E=_[4]:C?w&&(E=E.slice(2)):R>=2&&u(S.protocol)&&(E=_[4]),{protocol:C,slashes:w||u(C),slashesCount:R,rest:E}}function h(y,S){if(y==="")return S;for(var _=(S||"/").split("/").slice(0,-1).concat(y.split("/")),C=_.length,w=_[C-1],A=!1,R=0;C--;)_[C]==="."?_.splice(C,1):_[C]===".."?(_.splice(C,1),R++):R&&(C===0&&(A=!0),_.splice(C,1),R--);return A&&_.unshift(""),(w==="."||w==="..")&&_.push(""),_.join("/")}function d(y,S,_){if(y=o(y),y=y.replace(i,""),!(this instanceof d))return new d(y,S,_);var C,w,A,R,E,T,O=p.slice(),$=typeof S,v=this,x=0;for($!=="object"&&$!=="string"&&(_=S,S=null),_&&typeof _!="function"&&(_=t.parse),S=l(S),w=c(y||"",S),C=!w.protocol&&!w.slashes,v.slashes=w.slashes||C&&S.slashes,v.protocol=w.protocol||S.protocol||"",y=w.rest,(w.protocol==="file:"&&(w.slashesCount!==2||g.test(y))||!w.slashes&&(w.protocol||w.slashesCount<2||!u(v.protocol)))&&(O[3]=[/(.*)/,"pathname"]);x<O.length;x++){if(R=O[x],typeof R=="function"){y=R(y,v);continue}A=R[0],T=R[1],A!==A?v[T]=y:typeof A=="string"?(E=A==="@"?y.lastIndexOf(A):y.indexOf(A),~E&&(typeof R[2]=="number"?(v[T]=y.slice(0,E),y=y.slice(E+R[2])):(v[T]=y.slice(E),y=y.slice(0,E)))):(E=A.exec(y))&&(v[T]=E[1],y=y.slice(0,E.index)),v[T]=v[T]||C&&R[3]&&S[T]||"",R[4]&&(v[T]=v[T].toLowerCase())}_&&(v.query=_(v.query)),C&&S.slashes&&v.pathname.charAt(0)!=="/"&&(v.pathname!==""||S.pathname!=="")&&(v.pathname=h(v.pathname,S.pathname)),v.pathname.charAt(0)!=="/"&&u(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:"&&u(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString()}function m(y,S,_){var C=this;switch(y){case"query":typeof S=="string"&&S.length&&(S=(_||t.parse)(S)),C[y]=S;break;case"port":C[y]=S,e(S,C.protocol)?S&&(C.host=C.hostname+":"+S):(C.host=C.hostname,C[y]="");break;case"hostname":C[y]=S,C.port&&(S+=":"+C.port),C.host=S;break;case"host":C[y]=S,a.test(S)?(S=S.split(":"),C.port=S.pop(),C.hostname=S.join(":")):(C.hostname=S,C.port="");break;case"protocol":C.protocol=S.toLowerCase(),C.slashes=!_;break;case"pathname":case"hash":if(S){var w=y==="pathname"?"/":"#";C[y]=S.charAt(0)!==w?w+S:S}else C[y]=S;break;case"username":case"password":C[y]=encodeURIComponent(S);break;case"auth":var A=S.indexOf(":");~A?(C.username=S.slice(0,A),C.username=encodeURIComponent(decodeURIComponent(C.username)),C.password=S.slice(A+1),C.password=encodeURIComponent(decodeURIComponent(C.password))):C.username=encodeURIComponent(decodeURIComponent(S))}for(var R=0;R<p.length;R++){var E=p[R];E[4]&&(C[E[1]]=C[E[1]].toLowerCase())}return C.auth=C.password?C.username+":"+C.password:C.username,C.origin=C.protocol!=="file:"&&u(C.protocol)&&C.host?C.protocol+"//"+C.host:"null",C.href=C.toString(),C}function b(y){(!y||typeof y!="function")&&(y=t.stringify);var S,_=this,C=_.host,w=_.protocol;w&&w.charAt(w.length-1)!==":"&&(w+=":");var A=w+(_.protocol&&_.slashes||u(_.protocol)?"//":"");return _.username?(A+=_.username,_.password&&(A+=":"+_.password),A+="@"):_.password?(A+=":"+_.password,A+="@"):_.protocol!=="file:"&&u(_.protocol)&&!C&&_.pathname!=="/"&&(A+="@"),(C[C.length-1]===":"||a.test(_.hostname)&&!_.port)&&(C+=":"),A+=C+_.pathname,S=typeof _.query=="object"?y(_.query):_.query,S&&(A+=S.charAt(0)!=="?"?"?"+S:S),_.hash&&(A+=_.hash),A}return d.prototype={set:m,toString:b},d.extractProtocol=c,d.location=l,d.trimLeft=o,d.qs=t,Qo=d,Qo}var lA=aA();const cA=Fi(lA);class bo extends Wt{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class uA extends bo{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class hA extends bo{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class dA extends bo{constructor(){super(),this.type="url"}href(t){const n=rA.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new cA(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class fA extends bo{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const pA=[new W$,new B$,new z$,new H$,new j$,new U$,new V$,new G$,new Y$,new pp,new K$,new Z$,new X$,new Q$,new q$,new J$,new uA,new fA,new hA,new dA],gA={class:"tags are-medium"},mA=xe({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=Ce(()=>pA.filter(i=>i.type===t.type));return(i,r)=>(Y(),re("div",gA,[(Y(!0),re(Be,null,Ft(n.value,a=>(Y(),_e(P$,{data:e.data,link:a,key:a.name},null,8,["data","link"]))),128))]))}});var cs={exports:{}},vA=cs.exports,Gu;function yA(){return Gu||(Gu=1,function(e,t){(function(n,i){e.exports=i()})(vA,function(){var n=1e3,i=6e4,r=36e5,a="millisecond",f="second",g="minute",o="hour",p="day",s="week",l="month",u="quarter",c="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"],M=x%100;return"["+x+(k[(M-20)%10]||k[M]||k[0])+"]"}},S=function(x,k,M){var L=String(x);return!L||L.length>=k?x:""+Array(k+1-L.length).join(M)+x},_={s:S,z:function(x){var k=-x.utcOffset(),M=Math.abs(k),L=Math.floor(M/60),I=M%60;return(k<=0?"+":"-")+S(L,2,"0")+":"+S(I,2,"0")},m:function x(k,M){if(k.date()<M.date())return-x(M,k);var L=12*(M.year()-k.year())+(M.month()-k.month()),I=k.clone().add(L,l),N=M-I<0,F=k.clone().add(L+(N?-1:1),l);return+(-(L+(M-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:l,y:c,w:s,d:p,D:h,h:o,m:g,s:f,ms:a,Q:u}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},C="en",w={};w[C]=y;var A="$isDayjsObject",R=function(x){return x instanceof $||!(!x||!x[A])},E=function x(k,M,L){var I;if(!k)return C;if(typeof k=="string"){var N=k.toLowerCase();w[N]&&(I=N),M&&(w[N]=M,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!L&&I&&(C=I),I||!L&&C},T=function(x,k){if(R(x))return x.clone();var M=typeof k=="object"?k:{};return M.date=x,M.args=arguments,new $(M)},O=_;O.l=E,O.i=R,O.w=function(x,k){return T(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var $=function(){function x(M){this.$L=E(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[A]=!0}var k=x.prototype;return k.parse=function(M){this.$d=function(L){var I=L.date,N=L.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,U=(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,U)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)}}return new Date(I)}(M),this.init()},k.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},k.$utils=function(){return O},k.isValid=function(){return this.$d.toString()!==d},k.isSame=function(M,L){var I=T(M);return this.startOf(L)<=I&&I<=this.endOf(L)},k.isAfter=function(M,L){return T(M)<this.startOf(L)},k.isBefore=function(M,L){return this.endOf(L)<T(M)},k.$g=function(M,L,I){return O.u(M)?this[L]:this.set(I,M)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(M,L){var I=this,N=!!O.u(L)||L,F=O.p(M),W=function(q,Z){var ue=O.w(I.$u?Date.UTC(I.$y,Z,q):new Date(I.$y,Z,q),I);return N?ue:ue.endOf(p)},U=function(q,Z){return O.w(I.toDate()[q].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Z)),I)},B=this.$W,H=this.$M,K=this.$D,V="set"+(this.$u?"UTC":"");switch(F){case c:return N?W(1,0):W(31,11);case l:return N?W(1,H):W(0,H+1);case s: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 U(V+"Hours",0);case o:return U(V+"Minutes",1);case g:return U(V+"Seconds",2);case f:return U(V+"Milliseconds",3);default:return this.clone()}},k.endOf=function(M){return this.startOf(M,!1)},k.$set=function(M,L){var I,N=O.p(M),F="set"+(this.$u?"UTC":""),W=(I={},I[p]=F+"Date",I[h]=F+"Date",I[l]=F+"Month",I[c]=F+"FullYear",I[o]=F+"Hours",I[g]=F+"Minutes",I[f]=F+"Seconds",I[a]=F+"Milliseconds",I)[N],U=N===p?this.$D+(L-this.$W):L;if(N===l||N===c){var B=this.clone().set(h,1);B.$d[W](U),B.init(),this.$d=B.set(h,Math.min(this.$D,B.daysInMonth())).$d}else W&&this.$d[W](U);return this.init(),this},k.set=function(M,L){return this.clone().$set(M,L)},k.get=function(M){return this[O.p(M)]()},k.add=function(M,L){var I,N=this;M=Number(M);var F=O.p(L),W=function(H){var K=T(N);return O.w(K.date(K.date()+Math.round(H*M)),N)};if(F===l)return this.set(l,this.$M+M);if(F===c)return this.set(c,this.$y+M);if(F===p)return W(1);if(F===s)return W(7);var U=(I={},I[g]=i,I[o]=r,I[f]=n,I)[F]||1,B=this.$d.getTime()+M*U;return O.w(B,this)},k.subtract=function(M,L){return this.add(-1*M,L)},k.format=function(M){var L=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var N=M||"YYYY-MM-DDTHH:mm:ssZ",F=O.z(this),W=this.$H,U=this.$m,B=this.$M,H=I.weekdays,K=I.months,V=I.meridiem,j=function(Z,ue,P,z){return Z&&(Z[ue]||Z(L,N))||P[ue].slice(0,z)},Q=function(Z){return O.s(W%12||12,Z,"0")},q=V||function(Z,ue,P){var z=Z<12?"AM":"PM";return P?z.toLowerCase():z};return N.replace(b,function(Z,ue){return ue||function(P){switch(P){case"YY":return String(L.$y).slice(-2);case"YYYY":return O.s(L.$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 L.$D;case"DD":return O.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return j(I.weekdaysMin,L.$W,H,2);case"ddd":return j(I.weekdaysShort,L.$W,H,3);case"dddd":return H[L.$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,U,!0);case"A":return q(W,U,!1);case"m":return String(U);case"mm":return O.s(U,2,"0");case"s":return String(L.$s);case"ss":return O.s(L.$s,2,"0");case"SSS":return O.s(L.$ms,3,"0");case"Z":return F}return null}(Z)||F.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(M,L,I){var N,F=this,W=O.p(L),U=T(M),B=(U.utcOffset()-this.utcOffset())*i,H=this-U,K=function(){return O.m(F,U)};switch(W){case c:N=K()/12;break;case l:N=K();break;case u:N=K()/3;break;case s:N=(H-B)/6048e5;break;case p:N=(H-B)/864e5;break;case o:N=H/r;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(l).$D},k.$locale=function(){return w[this.$L]},k.locale=function(M,L){if(!M)return this.$L;var I=this.clone(),N=E(M,L,!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=$.prototype;return T.prototype=v,[["$ms",a],["$s",f],["$m",g],["$H",o],["$W",p],["$M",l],["$y",c],["$D",h]].forEach(function(x){v[x[1]]=function(k){return this.$g(k,x[0],x[1])}}),T.extend=function(x,k){return x.$i||(x(k,$,T),x.$i=!0),T},T.locale=E,T.isDayjs=R,T.unix=function(x){return T(1e3*x)},T.en=w[C],T.Ls=w,T.p={},T})}(cs)),cs.exports}var bA=yA();const wo=Fi(bA);var us={exports:{}},wA=us.exports,Yu;function SA(){return Yu||(Yu=1,function(e,t){(function(n,i){e.exports=i()})(wA,function(){return function(n,i,r){n=n||{};var a=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,s,l,u){return a.fromToBase(p,s,l,u)}r.en.relativeTime=f,a.fromToBase=function(p,s,l,u,c){for(var h,d,m,b=l.$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"}],S=y.length,_=0;_<S;_+=1){var C=y[_];C.d&&(h=u?r(p).diff(l,C.d,!0):l.diff(p,C.d,!0));var w=(n.rounding||Math.round)(Math.abs(h));if(m=h>0,w<=C.r||!C.r){w<=1&&_>0&&(C=y[_-1]);var A=b[C.l];c&&(w=c(""+w)),d=typeof A=="string"?A.replace("%d",w):A(w,s,C.l,m);break}}if(s)return d;var R=m?b.future:b.past;return typeof R=="function"?R(d):R.replace("%s",d)},a.to=function(p,s){return g(p,s,this,!0)},a.from=function(p,s){return g(p,s,this)};var o=function(p){return p.$u?r.utc():r()};a.toNow=function(p){return this.to(o(this),p)},a.fromNow=function(p){return this.from(o(this),p)}}})}(us)),us.exports}var _A=SA();const xA=Fi(_A);var hs={exports:{}},CA=hs.exports,Ku;function $A(){return Ku||(Ku=1,function(e,t){(function(n,i){e.exports=i()})(CA,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(r,a,f){var g,o=function(u,c,h){h===void 0&&(h={});var d=new Date(u),m=function(b,y){y===void 0&&(y={});var S=y.timeZoneName||"short",_=b+"|"+S,C=i[_];return C||(C=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:S}),i[_]=C),C}(c,h);return m.formatToParts(d)},p=function(u,c){for(var h=o(u,c),d=[],m=0;m<h.length;m+=1){var b=h[m],y=b.type,S=b.value,_=n[y];_>=0&&(d[_]=parseInt(S,10))}var C=d[3],w=C===24?0:C,A=d[0]+"-"+d[1]+"-"+d[2]+" "+w+":"+d[4]+":"+d[5]+":000",R=+u;return(f.utc(A).valueOf()-(R-=R%1e3))/6e4},s=a.prototype;s.tz=function(u,c){u===void 0&&(u=g);var h,d=this.utcOffset(),m=this.toDate(),b=m.toLocaleString("en-US",{timeZone:u}),y=Math.round((m-new Date(b))/1e3/60),S=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number(S))h=this.utcOffset(0,c);else if(h=f(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(S,!0),c){var _=h.utcOffset();h=h.add(d-_,"minute")}return h.$x.$timezone=u,h},s.offsetName=function(u){var c=this.$x.$timezone||f.tz.guess(),h=o(this.valueOf(),c,{timeZoneName:u}).find(function(d){return d.type.toLowerCase()==="timezonename"});return h&&h.value};var l=s.startOf;s.startOf=function(u,c){if(!this.$x||!this.$x.$timezone)return l.call(this,u,c);var h=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(h,u,c).tz(this.$x.$timezone,!0)},f.tz=function(u,c,h){var d=h&&c,m=h||c||g,b=p(+f(),m);if(typeof u!="string")return f(u).tz(m);var y=function(w,A,R){var E=w-60*A*1e3,T=p(E,R);if(A===T)return[E,A];var O=p(E-=60*(T-A)*1e3,R);return T===O?[E,T]:[w-60*Math.min(T,O)*1e3,Math.max(T,O)]}(f.utc(u,d).valueOf(),b,m),S=y[0],_=y[1],C=f(S).utcOffset(_);return C.$x.$timezone=m,C},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(u){g=u}}})}(hs)),hs.exports}var AA=$A();const kA=Fi(AA);var ds={exports:{}},MA=ds.exports,Zu;function TA(){return Zu||(Zu=1,function(e,t){(function(n,i){e.exports=i()})(MA,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(a,f,g){var o=f.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new f(m)},o.utc=function(d){var m=g(this.toDate(),{locale:this.$L,utc:!0});return d?m.add(this.utcOffset(),n):m},o.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=o.parse;o.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),p.call(this,d)};var s=o.init;o.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 s.call(this)};var l=o.utcOffset;o.utcOffset=function(d,m){var b=this.$utils().u;if(b(d))return this.$u?0:b(this.$offset)?l.call(this):this.$offset;if(typeof d=="string"&&(d=function(C){C===void 0&&(C="");var w=C.match(i);if(!w)return null;var A=(""+w[0]).match(r)||["-",0,0],R=A[0],E=60*+A[1]+ +A[2];return E===0?0:R==="+"?E:-E}(d),d===null))return this;var y=Math.abs(d)<=16?60*d:d,S=this;if(m)return S.$offset=y,S.$u=d===0,S;if(d!==0){var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(S=this.local().add(y+_,n)).$offset=y,S.$x.$localOffset=_}else S=this.utc();return S};var u=o.format;o.format=function(d){var m=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,m)},o.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var c=o.toDate;o.toDate=function(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var h=o.diff;o.diff=function(d,m,b){if(d&&this.$u===d.$u)return h.call(this,d,m,b);var y=this.local(),S=g(d).local();return h.call(y,S,m,b)}}})}(ds)),ds.exports}var EA=TA();const RA=Fi(EA),LA=[{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 OA(e){return LA.find(n=>n.code===e)}wo.extend(xA);wo.extend(kA);wo.extend(RA);function mp(e){const t=OA(e);if(t)return{lat:t.lat,long:t.long}}function IA(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 mp(e.countryCode)}const NA={class:"block"},DA={class:"is-size-2"},FA={class:"is-clearfix"},PA={class:"columns"},WA={key:0,class:"column is-half"},BA={key:0},zA={class:"is-size-4"},jA={class:"has-text-grey"},HA=["src"],UA={key:1},VA=["src"],GA={class:"column"},YA={class:"table is-fullwidth is-completely-borderless"},KA={key:0},ZA={class:"help"},XA={class:"block"},QA={class:"block"},qA={key:0,class:"block"},JA={key:1,class:"block"},e2={key:2,class:"block"},t2={key:3,class:"block"},n2={key:4,class:"block"},i2={key:5,class:"block"},r2={key:6,class:"block"},s2=xe({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,i=t,r=Ke(),a=Ke(),f=Ke(),g=Ke(),o=m=>{f.value=m},p=()=>{f.value=void 0},s=()=>{i("delete")},l=m=>{m.queued?g.value=m:i("refresh")},u=()=>{g.value=void 0},c=Ce(()=>{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=W_();return ct(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=mp(n.artifact.geolocation.countryCode);else{const b=await d.perform(n.artifact.data);m=IA(b),a.value=b.countryCode}r.value=h(m)}}),(m,b)=>{var y;return Y(),re(Be,null,[f.value?(Y(),_e(gt,{key:0,class:"block",error:f.value,disposable:!0,onDispose:p},null,8,["error"])):me("",!0),g.value?(Y(),_e(yo,{key:1,class:"block",message:g.value,disposable:!0,onDispose:u},null,8,["message"])):me("",!0),D("div",NA,[D("h2",DA,we(e.artifact.id),1),D("p",FA,[se(fp,{artifact:e.artifact,onDelete:s,onSetError:o,onSetMessage:l},null,8,["artifact"])])]),D("div",PA,[r.value||c.value?(Y(),re("div",WA,[r.value?(Y(),re("div",BA,[D("h4",zA,[b[0]||(b[0]=rt(" Geolocation ")),D("span",jA,we(a.value||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),D("iframe",{class:"mb-4",src:r.value,width:"100%",height:"240px"},null,8,HA)])):me("",!0),c.value?(Y(),re("div",UA,[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:c.value,class:"liveshot",alt:"liveshot"},null,8,VA)])):me("",!0)])):me("",!0),D("div",GA,[b[9]||(b[9]=D("h4",{class:"is-size-4"},"Information",-1)),D("table",YA,[D("tr",null,[b[3]||(b[3]=D("th",null,"Data",-1)),D("td",null,we(ce(Ar)(e.artifact.data,64)),1)]),D("tr",null,[b[4]||(b[4]=D("th",null,"Data type",-1)),D("td",null,we(e.artifact.dataType),1)]),D("tr",null,[b[5]||(b[5]=D("th",null,"Source",-1)),D("td",null,we(e.artifact.source),1)]),D("tr",null,[b[6]||(b[6]=D("th",null,"Query",-1)),D("td",null,we(ce(Ar)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),re("tr",KA,[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",ZA,"Created at: "+we(e.artifact.createdAt),1)])]),D("div",XA,[se(mA,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),D("div",QA,[e.artifact.autonomousSystem?(Y(),re("div",qA,[b[10]||(b[10]=D("h4",{class:"is-size-4 mb-2"},"AS",-1)),se(l$,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):me("",!0),e.artifact.reverseDnsNames?(Y(),re("div",JA,[b[11]||(b[11]=D("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),se(y$,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):me("",!0),e.artifact.dnsRecords?(Y(),re("div",e2,[b[12]||(b[12]=D("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),se(p$,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):me("",!0),e.artifact.cpes?(Y(),re("div",t2,[b[13]||(b[13]=D("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),se(u$,{cpes:e.artifact.cpes},null,8,["cpes"])])):me("",!0),e.artifact.vulnerabilities?(Y(),re("div",n2,[b[14]||(b[14]=D("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),se(w$,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):me("",!0),e.artifact.ports?(Y(),re("div",i2,[b[15]||(b[15]=D("h4",{class:"is-size-4 mb-2"},"Ports",-1)),se(m$,{ports:e.artifact.ports},null,8,["ports"])])):me("",!0),e.artifact.whoisRecord?(Y(),re("div",r2,[b[16]||(b[16]=D("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),se(I$,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):me("",!0)])],64)}}}),o2=Nr(s2,[["__scopeId","data-v-aadb0460"]]),a2=xe({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=D_(),i=Ii(),r=async()=>{await n.perform(t.id)},a=async()=>{await r()},f=async()=>{i.push("/")};return ct(async()=>{await r()}),Qe(t,async()=>{await r()}),(g,o)=>{var p,s;return Y(),re(Be,null,[ce(n).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(n).isError?(Y(),_e(gt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):me("",!0),(s=ce(n).last)!=null&&s.value?(Y(),_e(o2,{key:2,artifact:ce(n).last.value,onRefresh:a,onDelete:f},null,8,["artifact"])):me("",!0)],64)}}}),l2=xe({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Artifact:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(i,r)=>(Y(),_e(a2,{id:parseInt(e.id)},null,8,["id"]))}}),c2={class:"box"},u2={class:"table-container"},h2={class:"table is-fullwidth"},d2={key:0,class:"button is-success is-small ml-1"},f2={class:"icon is-small"},p2={key:1,class:"button is-warning is-small ml-1"},g2={class:"icon is-small"},m2={class:"field is-grouped is-grouped-multiline"},v2={class:"tags has-addons"},y2={class:"tag is-dark"},b2=xe({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const i=Ze("font-awesome-icon");return Y(),re("div",c2,[D("div",u2,[D("table",h2,[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),re(Be,null,Ft(e.configs.results,r=>(Y(),re("tr",{key:r.name},[D("td",null,we(r.name),1),D("td",null,we(r.type),1),D("td",null,[r.configured?(Y(),re("button",d2,[D("span",f2,[se(i,{icon:"check"})]),n[0]||(n[0]=D("span",null,"Yes",-1))])):(Y(),re("button",p2,[D("span",g2,[se(i,{icon:"exclamation"})]),n[1]||(n[1]=D("span",null,"No",-1))]))]),D("td",null,[D("div",m2,[(Y(!0),re(Be,null,Ft(r.items,(a,f)=>(Y(),re("div",{class:"control",key:f},[D("div",v2,[D("span",y2,we(a.key),1),D("span",{class:Er(["tag",{"is-success":a.value,"is-warning":!a.value}])},we(a.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),w2=xe({__name:"ConfigsWrapper",setup(e){const t=P_();return ct(async()=>{await t.perform()}),(n,i)=>{var r,a;return Y(),re(Be,null,[ce(t).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(t).isError?(Y(),_e(gt,{key:1,error:(r=ce(t).last)==null?void 0:r.error},null,8,["error"])):me("",!0),(a=ce(t).last)!=null&&a.value?(Y(),_e(b2,{key:2,configs:ce(t).last.value},null,8,["configs"])):me("",!0)],64)}}}),S2=xe({__name:"ConfigView",setup(e){return Sn("Configuration - Mihari"),(t,n)=>(Y(),_e(w2))}});var qo={exports:{}},Xu;function _2(){return Xu||(Xu=1,function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var r=function(s,l,u){if(typeof s!="string"){r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),r.modules[s]||(r.payloads[s]=u,r.modules[s]=null)};r.modules={},r.payloads={};var a=function(s,l,u){if(typeof l=="string"){var c=o(s,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var h=[],d=0,m=l.length;d<m;++d){var b=o(s,l[d]);if(b==null&&f.original)return;h.push(b)}return u&&u.apply(null,h)||!0}},f=function(s,l){var u=a("",s,l);return u==null&&f.original?f.original.apply(this,arguments):u},g=function(s,l){if(l.indexOf("!")!==-1){var u=l.split("!");return g(s,u[0])+"!"+g(s,u[1])}if(l.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&h!=l;){var h=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},o=function(s,l){l=g(s,l);var u=r.modules[l];if(!u){if(u=r.payloads[l],typeof u=="function"){var c={},h={id:l,uri:"",exports:c,packaged:!0},d=function(b,y){return a(l,b,y)},m=u(d,c,h);c=m||h.exports,r.modules[l]=c,delete r.payloads[l]}u=r.modules[l]=c||u}return u};function p(s){var l=i;i[s]||(i[s]={}),l=i[s],(!l.define||!l.define.packaged)&&(r.original=l.define,l.define=r,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(f.original=l.require,l.require=f,l.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,r){function a(f,g,o){Object.defineProperty(f,g,{value:o,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||a(String.prototype,"startsWith",function(f,g){return g=g||0,this.lastIndexOf(f,g)===g}),String.prototype.endsWith||a(String.prototype,"endsWith",function(f,g){var o=this;(g===void 0||g>o.length)&&(g=o.length),g-=f.length;var p=o.indexOf(f,g);return p!==-1&&p===g}),String.prototype.repeat||a(String.prototype,"repeat",function(f){for(var g="",o=this;f>0;)f&1&&(g+=o),(f>>=1)&&(o+=o);return g}),String.prototype.includes||a(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),o=1;o<arguments.length;o++){var p=arguments[o];p!=null&&Object.keys(p).forEach(function(s){g[s]=p[s]})}return g}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(g){return f[g]})}),Array.prototype.find||a(Array.prototype,"find",function(f){for(var g=this.length,o=arguments[1],p=0;p<g;p++){var s=this[p];if(f.call(o,s,p,this))return s}}),Array.prototype.findIndex||a(Array.prototype,"findIndex",function(f){for(var g=this.length,o=arguments[1],p=0;p<g;p++){var s=this[p];if(f.call(o,s,p,this))return p}}),Array.prototype.includes||a(Array.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Array.prototype.fill||a(Array.prototype,"fill",function(f){for(var g=this,o=g.length>>>0,p=arguments[1],s=p>>0,l=s<0?Math.max(o+s,0):Math.min(s,o),u=arguments[2],c=u===void 0?o:u>>0,h=c<0?Math.max(o+c,0):Math.min(c,o);l<h;)g[l]=f,l++;return g}),Array.of||a(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,i,r){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,r){i.deepCopy=function a(f){if(typeof f!="object"||!f)return f;var g;if(Array.isArray(f)){g=[];for(var o=0;o<f.length;o++)g[o]=a(f[o]);return g}if(Object.prototype.toString.call(f)!=="[object Object]")return f;g={};for(var o in f)g[o]=a(f[o]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,r){i.last=function(g){return g[g.length-1]},i.stringReverse=function(g){return g.split("").reverse().join("")},i.stringRepeat=function(g,o){for(var p="";o>0;)o&1&&(p+=g),(o>>=1)&&(g+=g);return p};var a=/^\s\s*/,f=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(a,"")},i.stringTrimRight=function(g){return g.replace(f,"")},i.copyObject=function(g){var o={};for(var p in g)o[p]=g[p];return o},i.copyArray=function(g){for(var o=[],p=0,s=g.length;p<s;p++)g[p]&&typeof g[p]=="object"?o[p]=this.copyObject(g[p]):o[p]=g[p];return o},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var o={},p=0;p<g.length;p++)o[g[p]]=1;return o},i.createMap=function(g){var o=Object.create(null);for(var p in g)o[p]=g[p];return o},i.arrayRemove=function(g,o){for(var p=0;p<=g.length;p++)o===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,o){var p=[];return g.replace(o,function(s){p.push({offset:arguments[arguments.length-2],length:s.length})}),p},i.deferredCall=function(g){var o=null,p=function(){o=null,g()},s=function(l){return s.cancel(),o=setTimeout(p,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),g(),s},s.cancel=function(){return clearTimeout(o),o=null,s},s.isPending=function(){return o},s},i.delayedCall=function(g,o){var p=null,s=function(){p=null,g()},l=function(u){p==null&&(p=setTimeout(s,u||o))};return l.delay=function(u){p&&clearTimeout(p),p=setTimeout(s,u||o)},l.schedule=l,l.call=function(){this.cancel(),g()},l.cancel=function(){p&&clearTimeout(p),p=null},l.isPending=function(){return p},l},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(g,o,p){return p&&g.codePointAt(o)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,r){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var a=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(a.platform)||["other"])[0].toLowerCase(),g=a.userAgent||"",o=a.appName||"";i.isWin=f=="win",i.isMac=f=="mac",i.isLinux=f=="linux",i.isIE=o=="Microsoft Internet Explorer"||o.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,r){var a=n("./useragent"),f="http://www.w3.org/1999/xhtml";i.buildDom=function u(c,h,d){if(typeof c=="string"&&c){var m=document.createTextNode(c);return h&&h.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&h&&h.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],y=0;y<c.length;y++){var S=u(c[y],h,d);S&&b.push(S)}return b}var _=document.createElement(c[0]),C=c[1],w=1;C&&typeof C=="object"&&!Array.isArray(C)&&(w=2);for(var y=w;y<c.length;y++)u(c[y],_,d);return w==2&&Object.keys(C).forEach(function(A){var R=C[A];A==="class"?_.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||A=="value"||A[0]=="$"?_[A]=R:A==="ref"?d&&(d[R]=_):A==="style"?typeof R=="string"&&(_.style.cssText=R):R!=null&&_.setAttribute(A,R)}),h&&h.appendChild(_),_},i.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},i.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||f,u):document.createElement(u)},i.removeChildren=function(u){u.innerHTML=""},i.createTextNode=function(u,c){var h=c?c.ownerDocument:document;return h.createTextNode(u)},i.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(u,c){var h=(u.className+"").split(/\s+/g);return h.indexOf(c)!==-1},i.addCssClass=function(u,c){i.hasCssClass(u,c)||(u.className+=" "+c)},i.removeCssClass=function(u,c){for(var h=u.className.split(/\s+/g);;){var d=h.indexOf(c);if(d==-1)break;h.splice(d,1)}u.className=h.join(" ")},i.toggleCssClass=function(u,c){for(var h=u.className.split(/\s+/g),d=!0;;){var m=h.indexOf(c);if(m==-1)break;d=!1,h.splice(m,1)}return d&&h.push(c),u.className=h.join(" "),d},i.setCssClass=function(u,c,h){h?i.addCssClass(u,c):i.removeCssClass(u,c)},i.hasCssString=function(u,c){var h=0,d;if(c=c||document,d=c.querySelectorAll("style")){for(;h<d.length;)if(d[h++].id===u)return!0}},i.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var g,o=[];i.useStrictCSP=function(u){g=u,u==!1?p():o||(o=[])};function p(){var u=o;o=null,u&&u.forEach(function(c){s(c[0],c[1])})}function s(u,c,h){if(!(typeof document>"u")){if(o){if(h)p();else if(h===!1)return o.push([u,c])}if(!g){var d=h;!h||!h.getRootNode?d=document:(d=h.getRootNode(),(!d||d==h)&&(d=document));var m=d.ownerDocument||d;if(c&&i.hasCssString(c,d))return null;c&&(u+=`
|
608
|
+
/*# sourceURL=ace/css/`+c+" */");var b=i.createElement("style");b.appendChild(m.createTextNode(u)),c&&(b.id=c),d==m&&(d=i.getDocumentHead(m)),d.insertBefore(b,d.firstChild)}}}if(i.importCssString=s,i.importCssStylsheet=function(u,c){i.buildDom(["link",{rel:"stylesheet",href:u}],i.getDocumentHead(c))},i.scrollbarWidth=function(u){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.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(c);var m=u&&u.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(h);var b=c.offsetWidth;d.overflow="scroll";var y=c.offsetWidth;return b===y&&(y=h.clientWidth),m.removeChild(h),b-y},i.computedStyle=function(u,c){return window.getComputedStyle(u,"")||{}},i.setStyle=function(u,c,h){u[c]!==h&&(u[c]=h)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=a.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,a.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");i.HI_DPI&&l.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!a.isEdge&&typeof l.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),l=null}i.HAS_CSS_TRANSFORMS?i.translate=function(u,c,h){u.style.transform="translate("+Math.round(c)+"px, "+Math.round(h)+"px)"}:i.translate=function(u,c,h){u.style.top=Math.round(h)+"px",u.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,r){/*
|
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 a=n("./dom");i.get=function(f,g){var o=new XMLHttpRequest;o.open("GET",f,!0),o.onreadystatechange=function(){o.readyState===4&&g(o.responseText)},o.send(null)},i.loadScript=function(f,g){var o=a.getDocumentHead(),p=document.createElement("script");p.src=f,o.appendChild(p),p.onload=p.onreadystatechange=function(s,l){(l||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,l||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,r){i.inherits=function(a,f){a.super_=f,a.prototype=Object.create(f.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(a,f){for(var g in f)a[g]=f[g];return a},i.implement=function(a,f){i.mixin(a,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,r){var a={},f=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};a._emit=a._dispatchEvent=function(o,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[o]||[],l=this._defaultHandlers[o];if(!(!s.length&&!l)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=o),p.stopPropagation||(p.stopPropagation=f),p.preventDefault||(p.preventDefault=g),s=s.slice();for(var u=0;u<s.length&&(s[u](p,this),!p.propagationStopped);u++);if(l&&!p.defaultPrevented)return l(p,this)}},a._signal=function(o,p){var s=(this._eventRegistry||{})[o];if(s){s=s.slice();for(var l=0;l<s.length;l++)s[l](p,this)}},a.once=function(o,p){var s=this;if(this.on(o,function l(){s.off(o,l),p.apply(null,arguments)}),!p)return new Promise(function(l){p=l})},a.setDefaultHandler=function(o,p){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[o]){var l=s[o],u=s._disabled_[o];u||(s._disabled_[o]=u=[]),u.push(l);var c=u.indexOf(p);c!=-1&&u.splice(c,1)}s[o]=p},a.removeDefaultHandler=function(o,p){var s=this._defaultHandlers;if(s){var l=s._disabled_[o];if(s[o]==p)l&&this.setDefaultHandler(o,l.pop());else if(l){var u=l.indexOf(p);u!=-1&&l.splice(u,1)}}},a.on=a.addEventListener=function(o,p,s){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[o];return l||(l=this._eventRegistry[o]=[]),l.indexOf(p)==-1&&l[s?"unshift":"push"](p),p},a.off=a.removeListener=a.removeEventListener=function(o,p){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[o];if(s){var l=s.indexOf(p);l!==-1&&s.splice(l,1)}},a.removeAllListeners=function(o){o||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[o]=void 0),this._defaultHandlers&&(this._defaultHandlers[o]=void 0)},i.EventEmitter=a}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,i,r){i.reportError=function(f,g){var o=new Error(f);o.data=g,typeof console=="object"&&console.error&&console.error(o),setTimeout(function(){throw o})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,i,r){var a={"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 gutter","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=a}),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,r){"no use strict";var a=n("./oop"),f=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,o=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 s('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]:s('misspelled option "'+h+'"')}};function s(h){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,u,c=function(){function h(){this.$defaultOptions={},l=o,u="dollarSigns"}return h.prototype.defineOptions=function(d,m,b){return d.$options||(this.$defaultOptions[m]=d.$options={}),Object.keys(b).forEach(function(y){var S=b[y];typeof S=="string"&&(S={forwardTo:S}),S.name||(S.name=y),d.$options[S.name]=S,"initialValue"in S&&(d["$"+S.name]=S.initialValue)}),a.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){l=d,m&&m.placeholders&&(u=m.placeholders)},h.prototype.nls=function(d,m,b){l[d]||(s("No message found for the key '"+d+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+m+"'."),l[m]||s("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=l[d]||l[m]||m;return b&&(u==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function(S,_){return _=="$"?"$":b[_]})),u==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function(S,_){return b[_]}))),y},h}();c.prototype.warn=s,c.prototype.reportError=g,a.implement(c.prototype,f),i.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,r){r.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,r){i.isDark=!1,i.cssClass="ace-tm",i.cssText=n("./textmate-css"),i.$id="ace/theme/textmate";var a=n("../lib/dom");a.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,r){"no use strict";var a=n("./lib/lang"),f=n("./lib/net"),g=n("./lib/dom"),o=n("./lib/app_config").AppConfig;r.exports=i=new o;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!p.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return p[c]},i.set=function(c,h){if(p.hasOwnProperty(c))p[c]=h;else if(this.setDefaultValue("",c,h)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&g.useStrictCSP(h)},i.all=function(){return a.copyObject(p)},i.$modes={},i.moduleUrl=function(c,h){if(p.$moduleUrls[c])return p.$moduleUrls[c];var d=c.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 S=p[h+"Path"];return S==null?S=p.basePath:m=="/"&&(h=m=""),S&&S.slice(-1)!="/"&&(S+="/"),S+h+m+b+this.get("suffix")},i.setModuleUrl=function(c,h){return p.$moduleUrls[c]=h};var s=function(c,h){if(c==="ace/theme/textmate"||c==="./theme/textmate")return h(null,n("./theme/textmate"));if(l)return l(c,h);console.error("loader is not configured")},l;i.setLoader=function(c){l=c},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(c,h){var d;if(Array.isArray(c))var m=c[0],b=c[1];else if(typeof c=="string")var b=c;var y=function(S){if(S&&!i.$loading[b])return h&&h(S);if(i.$loading[b]||(i.$loading[b]=[]),i.$loading[b].push(h),!(i.$loading[b].length>1)){var _=function(){s(b,function(C,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(R){R&&R(w)})})};if(!i.get("packaged"))return _();f.loadScript(i.moduleUrl(b,m),_),u()}};if(i.dynamicModules[b])i.dynamicModules[b]().then(function(S){S.default?y(S.default):y(S)});else{try{d=this.$require(b)}catch{}y(d||i.$loaded[b])}},i.$require=function(c){if(typeof r.require=="function"){var h="require";return r[h](c)}},i.setModuleLoader=function(c,h){i.dynamicModules[c]=h};var u=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"),u=function(){})};i.version="1.39.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,r){n("./lib/fixoldbrowsers");var a=n("./config");a.setLoader(function(p,s){n([p],function(l){s(null,l)})});var f=function(){return this||typeof window<"u"&&window}();r.exports=function(p){a.init=g,a.$require=n,p.require=n},g(!0);function g(p){if(!(!f||!f.document)){a.set("packaged",p||n.packaged||r.packaged||f.define&&(void 0).packaged);var s={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var h=c.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,S=0,_=y.length;S<_;S++){var C=y[S];C.name.indexOf("data-ace-")===0&&(s[o(C.name.replace(/^data-ace-/,""))]=C.value)}var w=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);w&&(l=w[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var A in s)typeof s[A]<"u"&&a.set(A,s[A])}}function o(p){return p.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,r){var a=function(){function f(g,o,p,s){this.start={row:g,column:o},this.end={row:p,column:s}}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,o){return this.compare(g,o)==0},f.prototype.compareRange=function(g){var o,p=g.end,s=g.start;return o=this.compare(p.row,p.column),o==1?(o=this.compare(s.row,s.column),o==1?2:o==0?1:0):o==-1?-2:(o=this.compare(s.row,s.column),o==-1?-1:o==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 o=this.compareRange(g);return o==-1||o==0||o==1},f.prototype.isEnd=function(g,o){return this.end.row==g&&this.end.column==o},f.prototype.isStart=function(g,o){return this.start.row==g&&this.start.column==o},f.prototype.setStart=function(g,o){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=o)},f.prototype.setEnd=function(g,o){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=o)},f.prototype.inside=function(g,o){return this.compare(g,o)==0?!(this.isEnd(g,o)||this.isStart(g,o)):!1},f.prototype.insideStart=function(g,o){return this.compare(g,o)==0?!this.isEnd(g,o):!1},f.prototype.insideEnd=function(g,o){return this.compare(g,o)==0?!this.isStart(g,o):!1},f.prototype.compare=function(g,o){return!this.isMultiLine()&&g===this.start.row?o<this.start.column?-1:o>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?o>=this.start.column?0:-1:this.end.row===g?o<=this.end.column?0:1:0},f.prototype.compareStart=function(g,o){return this.start.row==g&&this.start.column==o?-1:this.compare(g,o)},f.prototype.compareEnd=function(g,o){return this.end.row==g&&this.end.column==o?1:this.compare(g,o)},f.prototype.compareInside=function(g,o){return this.end.row==g&&this.end.column==o?1:this.start.row==g&&this.start.column==o?-1:this.compare(g,o)},f.prototype.clipRows=function(g,o){if(this.end.row>o)var p={row:o+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>o)var s={row:o+1,column:0};else if(this.start.row<g)var s={row:g,column:0};return f.fromPoints(s||this.start,p||this.end)},f.prototype.extend=function(g,o){var p=this.compare(g,o);if(p==0)return this;if(p==-1)var s={row:g,column:o};else var l={row:g,column:o};return f.fromPoints(s||this.start,l||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 o=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new f(o.row,o.column,p.row,p.column)},f.prototype.moveBy=function(g,o){this.start.row+=g,this.start.column+=o,this.end.row+=g,this.end.column+=o},f}();a.fromPoints=function(f,g){return new a(f.row,f.column,g.row,g.column)},a.comparePoints=function(f,g){return f.row-g.row||f.column-g.column},i.Range=a}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,r){for(var a=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},o=0;o<10;o++)g["Digit"+o]=48+o,g["Numpad"+o]=96+o,f.PRINTABLE_KEYS[48+o]=""+o,f.FUNCTION_KEYS[96+o]="Numpad"+o;for(var o=65;o<91;o++){var p=String.fromCharCode(o+32);g["Key"+p.toUpperCase()]=o,f.PRINTABLE_KEYS[o]=p}for(var o=1;o<13;o++)g["F"+o]=111+o,f.FUNCTION_KEYS[111+o]="F"+o;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)g[l]=g[l+"Left"]=g[l+"Right"]=s[l];i.$codeToKeyCode=g,f.PRINTABLE_KEYS[173]="-";for(var u in f.FUNCTION_KEYS){var c=f.FUNCTION_KEYS[u].toLowerCase();f[c]=parseInt(u,10)}for(var u in f.PRINTABLE_KEYS){var c=f.PRINTABLE_KEYS[u].toLowerCase();f[c]=parseInt(u,10)}a.mixin(f,f.MODIFIER_KEYS),a.mixin(f,f.PRINTABLE_KEYS),a.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-",a.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,r){var a=n("./keys"),f=n("./useragent"),g=null,o=0,p;function s(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function l(){return p==null&&s(),p}function u(S,_,C){this.elem=S,this.type=_,this.callback=C}u.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(S,_,C,w){S.addEventListener(_,C,l()),w&&w.$toDestroy.push(new u(S,_,C))},h=i.removeListener=function(S,_,C){S.removeEventListener(_,C,l())};i.stopEvent=function(S){return i.stopPropagation(S),i.preventDefault(S),!1},i.stopPropagation=function(S){S.stopPropagation&&S.stopPropagation()},i.preventDefault=function(S){S.preventDefault&&S.preventDefault()},i.getButton=function(S){return S.type=="dblclick"?0:S.type=="contextmenu"||f.isMac&&S.ctrlKey&&!S.altKey&&!S.shiftKey?2:S.button},i.capture=function(S,_,C){var w=S&&S.ownerDocument||document;function A(R){_&&_(R),C&&C(R),h(w,"mousemove",_),h(w,"mouseup",A),h(w,"dragstart",A)}return c(w,"mousemove",_),c(w,"mouseup",A),c(w,"dragstart",A),A},i.addMouseWheelListener=function(S,_,C){c(S,"wheel",function(w){var A=.15,R=w.deltaX||0,E=w.deltaY||0;switch(w.deltaMode){case w.DOM_DELTA_PIXEL:w.wheelX=R*A,w.wheelY=E*A;break;case w.DOM_DELTA_LINE:var T=15;w.wheelX=R*T,w.wheelY=E*T;break;case w.DOM_DELTA_PAGE:var O=150;w.wheelX=R*O,w.wheelY=E*O;break}_(w)},C)},i.addMultiMouseDownListener=function(S,_,C,w,A){var R=0,E,T,O,$={2:"dblclick",3:"tripleclick",4:"quadclick"};function v(x){if(i.getButton(x)!==0?R=0:x.detail>1?(R++,R>4&&(R=1)):R=1,f.isIE){var k=Math.abs(x.clientX-E)>5||Math.abs(x.clientY-T)>5;(!O||k)&&(R=1),O&&clearTimeout(O),O=setTimeout(function(){O=null},_[R-1]||600),R==1&&(E=x.clientX,T=x.clientY)}if(x._clicks=R,C[w]("mousedown",x),R>4)R=0;else if(R>1)return C[w]($[R],x)}Array.isArray(S)||(S=[S]),S.forEach(function(x){c(x,"mousedown",v,A)})};function d(S){return 0|(S.ctrlKey?1:0)|(S.altKey?2:0)|(S.shiftKey?4:0)|(S.metaKey?8:0)}i.getModifierString=function(S){return a.KEY_MODS[d(S)]};function m(S,_,C){var w=d(_);if(!C&&_.code&&(C=a.$codeToKeyCode[_.code]||C),!f.isMac&&g){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(w|=8),g.altGr)if((3&w)!=3)g.altGr=0;else return;if(C===18||C===17){var A=_.location;if(C===17&&A===1)g[C]==1&&(o=_.timeStamp);else if(C===18&&w===3&&A===2){var R=_.timeStamp-o;R<50&&(g.altGr=!0)}}}if(C in a.MODIFIER_KEYS&&(C=-1),!(!w&&C===13&&_.location===3&&(S(_,w,-C),_.defaultPrevented))){if(f.isChromeOS&&w&8){if(S(_,w,C),_.defaultPrevented)return;w&=-9}return!w&&!(C in a.FUNCTION_KEYS)&&!(C in a.PRINTABLE_KEYS)?!1:S(_,w,C)}}i.addCommandKeyListener=function(S,_,C){var w=null;c(S,"keydown",function(A){g[A.keyCode]=(g[A.keyCode]||0)+1;var R=m(_,A,A.keyCode);return w=A.defaultPrevented,R},C),c(S,"keypress",function(A){w&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(i.stopEvent(A),w=null)},C),c(S,"keyup",function(A){g[A.keyCode]=null},C),g||(b(),c(window,"focus",b))};function b(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var y=1;i.nextTick=function(S,_){_=_||window;var C="zero-timeout-message-"+y++,w=function(A){A.data==C&&(i.stopPropagation(A),h(_,"message",w),S())};c(_,"message",w),_.postMessage(C,"*")}}i.$idleBlocked=!1,i.onIdle=function(S,_){return setTimeout(function C(){i.$idleBlocked?setTimeout(C,100):S()},_)},i.$idleBlockId=null,i.blockIdle=function(S){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},S||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(S){setTimeout(S,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,r){var a;r.exports={lineMode:!1,pasteCancelled:function(){return a&&a>Date.now()-50?!0:a=!1},cancel:function(){a=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,i,r){var a=n("../lib/event"),f=n("../config").nls,g=n("../lib/useragent"),o=n("../lib/dom"),p=n("../lib/lang"),s=n("../clipboard"),l=g.isChrome<18,u=g.isIE,c=g.isChrome>63,h=400,d=n("../lib/keys"),m=d.KEY_MODS,b=g.isIOS,y=b?/\s/:/\n/,S=g.isMobile,_;_=function(C,w){var A=o.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",C.insertBefore(A,C.firstChild);var R=!1,E=!1,T=!1,O=!1,$="";S||(A.style.fontSize="1px");var v=!1,x=!1,k="",M=0,L=0,I=0,N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,W=0;try{var U=document.activeElement===A}catch{}this.setNumberOfExtraLines=function(X){if(N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,X<0){W=0;return}W=X},this.setAriaLabel=function(){var X="";if(w.$textInputAriaLabel&&(X+="".concat(w.$textInputAriaLabel,", ")),w.session){var he=w.session.selection.cursor.row;X+=f("text-input.aria-label","Cursor at row $0",[he+1])}A.setAttribute("aria-label",X)},this.setAriaOptions=function(X){X.activeDescendant?(A.setAttribute("aria-haspopup","true"),A.setAttribute("aria-autocomplete",X.inline?"both":"list"),A.setAttribute("aria-activedescendant",X.activeDescendant)):(A.setAttribute("aria-haspopup","false"),A.setAttribute("aria-autocomplete","both"),A.removeAttribute("aria-activedescendant")),X.role&&A.setAttribute("role",X.role),X.setLabel&&(A.setAttribute("aria-roledescription",f("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),a.addListener(A,"blur",function(X){x||(w.onBlur(X),U=!1)},w),a.addListener(A,"focus",function(X){if(!x){if(U=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(X),g.isEdge?setTimeout(H):H()}},w),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:w.renderer.enableKeyboardAccessibility}),$||c||this.$focusScroll=="browser")return A.focus({preventScroll:!0});var X=A.style.top;A.style.position="fixed",A.style.top="0px";try{var he=A.getBoundingClientRect().top!=0}catch{return}var ge=[];if(he)for(var Te=A.parentElement;Te&&Te.nodeType==1;)ge.push(Te),Te.setAttribute("ace_nocontext","true"),!Te.parentElement&&Te.getRootNode?Te=Te.getRootNode().host:Te=Te.parentElement;A.focus({preventScroll:!0}),he&&ge.forEach(function(Ne){Ne.removeAttribute("ace_nocontext")}),setTimeout(function(){A.style.position="",A.style.top=="0px"&&(A.style.top=X)},0)},this.blur=function(){A.blur()},this.isFocused=function(){return U},w.on("beforeEndOperation",function(){var X=w.curOp,he=X&&X.command&&X.command.name;if(he!="insertstring"){var ge=he&&(X.docChanged||X.selectionChanged);T&&ge&&(k=A.value="",pe()),H()}}),w.on("changeSelection",this.setAriaLabel);var B=function(X,he){for(var ge=he,Te=1;Te<=X-N&&Te<2*W+1;Te++)ge+=w.session.getLine(X-Te).length+1;return ge},H=b?function(X){if(!(!U||R&&!X||O)){X||(X="");var he=`
|
773
|
+
ab`+X+`cde fg
|
774
|
+
`;he!=A.value&&(A.value=k=he);var ge=4,Te=4+(X.length||(w.selection.isEmpty()?0:1));(M!=ge||L!=Te)&&A.setSelectionRange(ge,Te),M=ge,L=Te}}:function(){if(!(T||O)&&!(!U&&!Q)){T=!0;var X=0,he=0,ge="";if(w.session){var Te=w.selection,Ne=Te.getRange(),He=Te.cursor.row;He===F+1?(N=F+1,F=N+2*W):He===N-1?(F=N-1,N=F-2*W):(He<N-1||He>F+1)&&(N=He>W?He-W:0,F=He>W?He+W:2*W);for(var Ue=[],Xe=N;Xe<=F;Xe++)Ue.push(w.session.getLine(Xe));if(ge=Ue.join(`
|
775
|
+
`),X=B(Ne.start.row,Ne.start.column),he=B(Ne.end.row,Ne.end.column),Ne.start.row<N){var qe=w.session.getLine(N-1);X=Ne.start.row<N-1?0:X,he+=qe.length+1,ge=qe+`
|
776
|
+
`+ge}else if(Ne.end.row>F){var De=w.session.getLine(F+1);he=Ne.end.row>F+1?De.length:Ne.end.column,he+=ge.length+1,ge=ge+`
|
777
|
+
`+De}else S&&He>0&&(ge=`
|
778
|
+
`+ge,he+=1,X+=1);ge.length>h&&(X<h&&he<h?ge=ge.slice(0,h):(ge=`
|
779
|
+
`,X==he?X=he=0:(X=0,he=1)));var nt=ge+`
|
780
|
+
|
781
|
+
`;nt!=k&&(A.value=k=nt,M=L=nt.length)}if(Q&&(M=A.selectionStart,L=A.selectionEnd),L!=he||M!=X||A.selectionEnd!=L)try{A.setSelectionRange(X,he),M=X,L=he}catch{}T=!1}};this.resetSelection=H,U&&w.onFocus();var K=function(X){return X.selectionStart===0&&X.selectionEnd>=k.length&&X.value===k&&k&&X.selectionEnd!==L},V=function(X){T||(R?R=!1:K(A)?(w.selectAll(),H()):S&&A.selectionStart!=M&&H())},j=null;this.setInputHandler=function(X){j=X},this.getInputHandler=function(){return j};var Q=!1,q=function(X,he){if(Q&&(Q=!1),E)return H(),X&&w.onPaste(X),E=!1,"";for(var ge=A.selectionStart,Te=A.selectionEnd,Ne=M,He=k.length-L,Ue=X,Xe=X.length-ge,qe=X.length-Te,De=0;Ne>0&&k[De]==X[De];)De++,Ne--;for(Ue=Ue.slice(De),De=1;He>0&&k.length-De>M-1&&k[k.length-De]==X[X.length-De];)De++,He--;Xe-=De-1,qe-=De-1;var nt=Ue.length-De+1;if(nt<0&&(Ne=-nt,nt=0),Ue=Ue.slice(0,nt),!he&&!Ue&&!Xe&&!Ne&&!He&&!qe)return"";O=!0;var xn=!1;return g.isAndroid&&Ue==". "&&(Ue=" ",xn=!0),Ue&&!Ne&&!He&&!Xe&&!qe||v?w.onTextInput(Ue):w.onTextInput(Ue,{extendLeft:Ne,extendRight:He,restoreStart:Xe,restoreEnd:qe}),O=!1,k=X,M=ge,L=Te,I=qe,xn?`
|
782
|
+
`:Ue},Z=function(X){if(T)return ie();if(X&&X.inputType){if(X.inputType=="historyUndo")return w.execCommand("undo");if(X.inputType=="historyRedo")return w.execCommand("redo")}var he=A.value,ge=q(he,!0);(he.length>h+100||y.test(ge)||S&&M<1&&M==L)&&H()},ue=function(X,he,ge){var Te=X.clipboardData||window.clipboardData;if(!(!Te||l)){var Ne=u||ge?"Text":"text/plain";try{return he?Te.setData(Ne,he)!==!1:Te.getData(Ne)}catch(He){if(!ge)return ue(He,he,!0)}}},P=function(X,he){var ge=w.getCopyText();if(!ge)return a.preventDefault(X);ue(X,ge)?(b&&(H(ge),R=ge,setTimeout(function(){R=!1},10)),he?w.onCut():w.onCopy(),a.preventDefault(X)):(R=!0,A.value=ge,A.select(),setTimeout(function(){R=!1,H(),he?w.onCut():w.onCopy()}))},z=function(X){P(X,!0)},G=function(X){P(X,!1)},J=function(X){var he=ue(X);s.pasteCancelled()||(typeof he=="string"?(he&&w.onPaste(he,X),g.isIE&&setTimeout(H),a.preventDefault(X)):(A.value="",E=!0))};a.addCommandKeyListener(A,function(X,he,ge){if(!T)return w.onCommandKey(X,he,ge)},w),a.addListener(A,"select",V,w),a.addListener(A,"input",Z,w),a.addListener(A,"cut",z,w),a.addListener(A,"copy",G,w),a.addListener(A,"paste",J,w),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&a.addListener(C,"keydown",function(X){if(!(g.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:G(X);break;case 86:J(X);break;case 88:z(X);break}},w);var te=function(X){if(!(T||!w.onCompositionStart||w.$readOnly)&&(T={},!v)){X.data&&(T.useTextareaForIME=!1),setTimeout(ie,0),w._signal("compositionStart"),w.on("mousedown",fe);var he=w.getSelectionRange();he.end.row=he.start.row,he.end.column=he.start.column,T.markerRange=he,T.selectionStart=M,w.onCompositionStart(T),T.useTextareaForIME?(k=A.value="",M=0,L=0):(A.msGetInputContext&&(T.context=A.msGetInputContext()),A.getInputContext&&(T.context=A.getInputContext()))}},ie=function(){if(!(!T||!w.onCompositionUpdate||w.$readOnly)){if(v)return fe();if(T.useTextareaForIME)w.onCompositionUpdate(A.value);else{var X=A.value;q(X),T.markerRange&&(T.context&&(T.markerRange.start.column=T.selectionStart=T.context.compositionStartOffset),T.markerRange.end.column=T.markerRange.start.column+L-T.selectionStart+I)}}},pe=function(X){!w.onCompositionEnd||w.$readOnly||(T=!1,w.onCompositionEnd(),w.off("mousedown",fe),X&&Z())};function fe(){x=!0,A.blur(),A.focus(),x=!1}var de=p.delayedCall(ie,50).schedule.bind(null,null);function ae(X){X.keyCode==27&&A.value.length<A.selectionStart&&(T||(k=A.value),M=L=-1,H()),de()}a.addListener(A,"compositionstart",te,w),a.addListener(A,"compositionupdate",ie,w),a.addListener(A,"keyup",ae,w),a.addListener(A,"keydown",de,w),a.addListener(A,"compositionend",pe,w),this.getElement=function(){return A},this.setCommandMode=function(X){v=X,A.readOnly=!1},this.setReadOnly=function(X){v||(A.readOnly=X)},this.setCopyWithEmptySelection=function(X){},this.onContextMenu=function(X){Q=!0,H(),w._emit("nativecontextmenu",{target:w,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,he){$||($=A.style.cssText),A.style.cssText=(he?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(M+L)*w.renderer.characterWidth*.5+"px;";var ge=w.container.getBoundingClientRect(),Te=o.computedStyle(w.container),Ne=ge.top+(parseInt(Te.borderTopWidth)||0),He=ge.left+(parseInt(Te.borderLeftWidth)||0),Ue=ge.bottom-Ne-A.clientHeight-2,Xe=function(qe){o.translate(A,qe.clientX-He-2,Math.min(qe.clientY-Ne-2,Ue))};Xe(X),X.type=="mousedown"&&(w.renderer.$isMousePressed=!0,clearTimeout(ke),g.isWin&&a.capture(w.container,Xe,ye))},this.onContextMenuClose=ye;var ke;function ye(){clearTimeout(ke),ke=setTimeout(function(){$&&(A.style.cssText=$,$=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}var Ae=function(X){w.textInput.onContextMenu(X),ye()};a.addListener(A,"mouseup",Ae,w),a.addListener(A,"mousedown",function(X){X.preventDefault(),ye()},w),a.addListener(w.renderer.scroller,"contextmenu",Ae,w),a.addListener(A,"contextmenu",Ae,w),b&&Le(C,w,A);function Le(X,he,ge){var Te=null,Ne=!1;ge.addEventListener("keydown",function(Ue){Te&&clearTimeout(Te),Ne=!0},!0),ge.addEventListener("keyup",function(Ue){Te=setTimeout(function(){Ne=!1},100)},!0);var He=function(Ue){if(document.activeElement===ge&&!(Ne||T||he.$mouseHandler.isMousePressed)&&!R){var Xe=ge.selectionStart,qe=ge.selectionEnd,De=null,nt=0;if(Xe==0?De=d.up:Xe==1?De=d.home:qe>L&&k[qe]==`
|
783
|
+
`?De=d.end:Xe<M&&k[Xe-1]==" "?(De=d.left,nt=m.option):Xe<M||Xe==M&&L!=M&&Xe==qe?De=d.left:qe>L&&k.slice(0,qe).split(`
|
784
|
+
`).length>2?De=d.down:qe>L&&k[qe-1]==" "?(De=d.right,nt=m.option):(qe>L||qe==L&&L!=M&&Xe==qe)&&(De=d.right),Xe!==qe&&(nt|=m.shift),De){var xn=he.onCommandKey({},nt,De);if(!xn&&he.commands){De=d.keyCodeToString(De);var Vl=he.commands.findKeyCommand(nt,De);Vl&&he.execCommand(Vl)}M=Xe,L=qe,H("")}}};document.addEventListener("selectionchange",He),he.on("destroy",function(){document.removeEventListener("selectionchange",He)})}this.destroy=function(){A.parentElement&&A.parentElement.removeChild(A)}},i.TextInput=_,i.$setUserAgentForTests=function(C,w){S=C,b=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,r){var a=n("../lib/useragent"),f=0,g=550,o=function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var h=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];h.forEach(function(d){u[d]=this[d]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),h=u.getDocumentPosition();this.mousedownEvent=u;var d=this.editor,m=u.getButton();if(m!==0){var b=d.getSelectionRange(),y=b.isEmpty();(y||m==1)&&d.selection.moveToPosition(h),m==2&&(d.textInput.onContextMenu(u.domEvent),a.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(h,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var h=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?h.selection.selectToPosition(u):c||h.selection.moveToPosition(u),c||this.select(),h.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,h=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(h);if(d==-1)u=this.$clickSelection.end;else if(d==1)u=this.$clickSelection.start;else{var m=s(this.$clickSelection,h);h=m.cursor,u=m.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(h),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,h=this.editor,d=h.renderer.screenToTextCoordinates(this.x,this.y),m=h.selection[u](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)c=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(y==1&&b>=0)c=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,c=m.start;else{var S=s(this.$clickSelection,d);d=S.cursor,c=S.anchor}h.selection.setSelectionAnchor(c.row,c.column)}h.selection.selectToPosition(d),h.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>f||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),h=this.editor,d=h.session,m=d.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=h.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),h=this.editor;this.setState("selectByLines");var d=h.getSelectionRange();d.isMultiLine()&&d.contains(c.row,c.column)?(this.$clickSelection=h.selection.getLineRange(d.start.row),this.$clickSelection.end=h.selection.getLineRange(d.end.row).end):this.$clickSelection=h.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var h=this.$lastScroll,d=u.domEvent.timeStamp,m=d-h.t,b=m?u.wheelX/m:h.vx,y=m?u.wheelY/m:h.vy;m<g&&(b=(b+h.vx)/2,y=(y+h.vy)/2);var S=Math.abs(b/y),_=!1;if(S>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(_=!0),S<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(_=!0),_)h.allowed=d;else if(d-h.allowed<g){var C=Math.abs(b)<=1.5*Math.abs(h.vx)&&Math.abs(y)<=1.5*Math.abs(h.vy);C?(_=!0,h.allowed=d):h.allowed=0}if(h.t=d,h.vx=b,h.vy=y,_)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l}();o.prototype.selectEnd=o.prototype.selectByLinesEnd,o.prototype.selectAllEnd=o.prototype.selectByLinesEnd,o.prototype.selectByWordsEnd=o.prototype.selectByLinesEnd,i.DefaultHandlers=o;function p(l,u,c,h){return Math.sqrt(Math.pow(c-l,2)+Math.pow(h-u,2))}function s(l,u){if(l.start.row==l.end.row)var c=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var c=u.column-4;else var c=2*u.row-l.start.row-l.end.row;return c<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,i,r){i.preventParentScroll=function(f){f.stopPropagation();var g=f.currentTarget,o=g.scrollHeight>g.clientHeight;o||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,i,r){var a=this&&this.__extends||function(){var d=function(m,b){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var _ in S)Object.prototype.hasOwnProperty.call(S,_)&&(y[_]=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 o=n("./range").Range,p=n("./lib/scroll").preventParentScroll,s="ace_tooltip",l=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=s,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=s+" "+(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=s,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}(),u=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,S;this.popups.sort(function($,v){return v.priority-$.priority});var _=[];try{for(var C=f(this.popups),w=C.next();!w.done;w=C.next()){var A=w.value,R=!0;try{for(var E=(y=void 0,f(_)),T=E.next();!T.done;T=E.next()){var O=T.value;if(this.doPopupsOverlap(O,A)){R=!1;break}}}catch($){y={error:$}}finally{try{T&&!T.done&&(S=E.return)&&S.call(E)}finally{if(y)throw y.error}}R?_.push(A):A.hide()}}catch($){m={error:$}}finally{try{w&&!w.done&&(b=C.return)&&b.call(C)}finally{if(m)throw m.error}}},d.prototype.doPopupsOverlap=function(m,b){var y=m.getElement().getBoundingClientRect(),S=b.getElement().getBoundingClientRect();return y.left<S.right&&y.right>S.left&&y.top<S.bottom&&y.bottom>S.top},d}(),c=new u;i.popupManager=c,i.Tooltip=l;var h=function(d){a(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 S=y.getElement();return S.style.whiteSpace="pre-wrap",S.style.pointerEvents="auto",S.addEventListener("mouseout",y.onMouseOut),S.tabIndex=-1,S.addEventListener("blur",(function(){S.contains(document.activeElement)||this.hide()}).bind(y)),S.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 S=y.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||S||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||S||(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,S=b.getDocumentPosition(),_=y.session.getLine(S.row);if(S.column==_.length){var C=y.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),w=y.session.documentToScreenPosition(S.row,S.column);if(w.column!=C.column||w.row!=C.row)return!0}return!1},m.prototype.setDataProvider=function(b){this.$gatherData=b},m.prototype.showForRange=function(b,y,S,_){var C=10;if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var w=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(w.theme)),this.isOpen=!0,this.addMarker(y,b.session),this.range=o.fromPoints(y.start,y.end);var A=w.textToScreenCoordinates(y.start.row,y.start.column),R=w.scroller.getBoundingClientRect();A.pageX<R.left&&(A.pageX=R.left);var E=this.getElement();E.innerHTML="",E.appendChild(S),E.style.maxHeight="",E.style.display="block";var T=E.clientHeight,O=E.clientWidth,$=window.innerHeight-A.pageY-w.lineHeight,v=!0;A.pageY-T<0&&A.pageY<$&&(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-C)+"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,c.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}(l);i.HoverTooltip=h}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,i,r){var a=this&&this.__extends||function(){var d=function(m,b){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var _ in S)Object.prototype.hasOwnProperty.call(S,_)&&(y[_]=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"),o=n("../lib/event"),p=n("../tooltip").Tooltip,s=n("../config").nls,l=5,u=3;i.GUTTER_TOOLTIP_LEFT_OFFSET=l,i.GUTTER_TOOLTIP_TOP_OFFSET=u;function c(d){var m=d.editor,b=m.renderer.$gutterLayer,y=new h(m,!0);d.editor.setDefaultHandler("guttermousedown",function(R){if(!(!m.isFocused()||R.getButton()!=0)){var E=b.getRegion(R);if(E!="foldWidgets"){var T=R.getDocumentPosition().row,O=m.session.selection;if(R.getShiftKey())O.selectTo(T,0);else{if(R.domEvent.detail==2)return m.selectAll(),R.preventDefault();d.$clickSelection=m.selection.getLineRange(T)}return d.setState("selectByLines"),d.captureMouse(R),R.preventDefault()}}});var S,_;function C(){var R=_.getDocumentPosition().row,E=m.session.getLength();if(R==E){var T=m.renderer.pixelToScreenCoordinates(0,_.y).row,O=_.$pos;if(T>m.session.documentToScreenRow(O.row,O.column))return w()}if(y.showTooltip(R),!!y.isOpen)if(m.on("mousewheel",w),m.on("changeSession",w),window.addEventListener("keydown",w,!0),d.$tooltipFollowsMouse)A(_);else{var $=_.getGutterRow(),v=b.$lines.get($);if(v){var x=v.element.querySelector(".ace_gutter_annotation"),k=x.getBoundingClientRect(),M=y.getElement().style;M.left=k.right-l+"px",M.top=k.bottom-u+"px"}else A(_)}}function w(R){R&&R.type==="keydown"&&(R.ctrlKey||R.metaKey)||R&&R.type==="mouseout"&&(!R.relatedTarget||y.getElement().contains(R.relatedTarget))||(S&&(S=clearTimeout(S)),y.isOpen&&(y.hideTooltip(),m.off("mousewheel",w),m.off("changeSession",w),window.removeEventListener("keydown",w,!0)))}function A(R){y.setPosition(R.x,R.y)}d.editor.setDefaultHandler("guttermousemove",function(R){var E=R.domEvent.target||R.domEvent.srcElement;if(g.hasCssClass(E,"ace_fold-widget"))return w();y.isOpen&&d.$tooltipFollowsMouse&&A(R),_=R,!S&&(S=setTimeout(function(){S=null,_&&!d.isMousePressed&&C()},50))}),o.addListener(m.renderer.$gutter,"mouseout",function(R){_=null,y.isOpen&&(S=setTimeout(function(){S=null,w(R)},50))},m)}i.GutterHandler=c;var h=function(d){a(m,d);function m(b,y){y===void 0&&(y=!1);var S=d.call(this,b.container)||this;S.editor=b,S.visibleTooltipRow;var _=S.getElement();return _.setAttribute("role","tooltip"),_.style.pointerEvents="auto",y&&(S.onMouseOut=S.onMouseOut.bind(S),_.addEventListener("mouseout",S.onMouseOut)),S}return m.prototype.onMouseOut=function(b){this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||this.hideTooltip())},m.prototype.setPosition=function(b,y){var S=window.innerWidth||document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight,C=this.getWidth(),w=this.getHeight();b+=15,y+=15,b+C>S&&(b-=b+C-S),y+w>_&&(y-=20+w),p.prototype.setPosition.call(this,b,y)},Object.defineProperty(m,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),m.prototype.showTooltip=function(b){var y,S=this.editor.renderer.$gutterLayer,_=S.$annotations[b],C;_?C={displayText:Array.from(_.displayText),type:Array.from(_.type)}:C={displayText:[],type:[]};var w=S.session.getFoldLine(b);if(w&&S.$showFoldedAnnotations){for(var A={error:[],security:[],warning:[],info:[],hint:[]},R={error:1,security:2,warning:3,info:4,hint:5},E,T=b+1;T<=w.end.row;T++)if(S.$annotations[T])for(var O=0;O<S.$annotations[T].text.length;O++){var $=S.$annotations[T].type[O];A[$].push(S.$annotations[T].text[O]),(!E||R[$]<R[E])&&(E=$)}if(["error","security","warning"].includes(E)){var v="".concat(m.annotationsToSummaryString(A)," in folded code.");C.displayText.push(v),C.type.push(E+"_fold")}}if(C.displayText.length===0)return this.hideTooltip();for(var x={error:[],security:[],warning:[],info:[],hint:[]},k=S.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",T=0;T<C.displayText.length;T++){var M=g.createElement("span"),L=g.createElement("span");(y=L.classList).add.apply(y,["ace_".concat(C.type[T]),k]),L.setAttribute("aria-label","".concat(m.annotationLabels[C.type[T].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(g.createTextNode(" ")),M.appendChild(L),M.appendChild(g.createTextNode(C.displayText[T])),M.appendChild(g.createElement("br")),x[C.type[T].replace("_fold","")].push(M)}var I=this.getElement();g.removeChildren(I),x.error.forEach(function(N){return I.appendChild(N)}),x.security.forEach(function(N){return I.appendChild(N)}),x.warning.forEach(function(N){return I.appendChild(N)}),x.info.forEach(function(N){return I.appendChild(N)}),x.hint.forEach(function(N){return I.appendChild(N)}),I.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=b,this.editor._signal("showGutterTooltip",this)},m.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},m.annotationsToSummaryString=function(b){var y,S,_=[],C=["error","security","warning","info","hint"];try{for(var w=f(C),A=w.next();!A.done;A=w.next()){var R=A.value;if(b[R].length){var E=b[R].length===1?m.annotationLabels[R].singular:m.annotationLabels[R].plural;_.push("".concat(b[R].length," ").concat(E))}}}catch(T){y={error:T}}finally{try{A&&!A.done&&(S=w.return)&&S.call(w)}finally{if(y)throw y.error}}return _.join(", ")},m}(p);i.GutterTooltip=h}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,r){var a=n("../lib/event"),f=n("../lib/useragent"),g=function(){function o(p,s){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=s,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 o.prototype.stopPropagation=function(){a.stopPropagation(this.domEvent),this.propagationStopped=!0},o.prototype.preventDefault=function(){a.preventDefault(this.domEvent),this.defaultPrevented=!0},o.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},o.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},o.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(p,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},o.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,s=p.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},o.prototype.getButton=function(){return a.getButton(this.domEvent)},o.prototype.getShiftKey=function(){return this.domEvent.shiftKey},o.prototype.getAccelKey=function(){return f.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},o}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,r){var a=n("../lib/dom"),f=n("../lib/event"),g=n("../lib/useragent"),o=200,p=200,s=5;function l(c){var h=c.editor,d=a.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){c[B]=this[B]},this),h.on("mousedown",this.onMouseDown.bind(c));var b=h.container,y,S,_,C,w,A,R=0,E,T,O,$,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()),T=!0,this.setState("drag")},this.onDragEnd=function(B){if(b.draggable=!1,T=!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 S=B.clientX,_=B.clientY,y||L(),R++,B.dataTransfer.dropEffect=E=U(B),f.preventDefault(B)},this.onDragOver=function(B){if(!(h.getReadOnly()||!W(B.dataTransfer)))return S=B.clientX,_=B.clientY,y||(L(),R++),N!==null&&(N=null),B.dataTransfer.dropEffect=E=U(B),f.preventDefault(B)},this.onDragLeave=function(B){if(R--,R<=0&&y)return I(),E=null,f.preventDefault(B)},this.onDrop=function(B){if(A){var H=B.dataTransfer;if(T)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(c),h),f.addListener(b,"dragend",this.onDragEnd.bind(c),h),f.addListener(b,"dragenter",this.onDragEnter.bind(c),h),f.addListener(b,"dragover",this.onDragOver.bind(c),h),f.addListener(b,"dragleave",this.onDragLeave.bind(c),h),f.addListener(b,"drop",this.onDrop.bind(c),h);function x(B,H){var K=Date.now(),V=!H||B.row!=H.row,j=!H||B.column!=H.column;if(!$||V||j)h.moveCursorToPosition(B),$=K,v={x:S,y:_};else{var Q=u(v.x,v.y,S,_);Q>s?$=null:K-$>=p&&(h.renderer.scrollCursorIntoView(),$=null)}}function k(B,H){var K=Date.now(),V=h.renderer.layerConfig.lineHeight,j=h.renderer.layerConfig.characterWidth,Q=h.renderer.scroller.getBoundingClientRect(),q={x:{left:S-Q.left,right:Q.right-S},y:{top:_-Q.top,bottom:Q.bottom-_}},Z=Math.min(q.x.left,q.x.right),ue=Math.min(q.y.top,q.y.bottom),P={row:B.row,column:B.column};Z/j<=2&&(P.column+=q.x.left<q.x.right?-3:2),ue/V<=1&&(P.row+=q.y.top<q.y.bottom?-1:1);var z=B.row!=P.row,G=B.column!=P.column,J=!H||B.row!=H.row;z||G&&!J?O?K-O>=o&&h.renderer.scrollCursorIntoView(P):O=K:O=null}function M(){var B=A;A=h.renderer.screenToTextCoordinates(S,_),x(A,B),k(A,B)}function L(){w=h.selection.toOrientedRange(),y=h.session.addMarker(w,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(C),M(),C=setInterval(M,20),R=0,f.addListener(document,"mousemove",F)}function I(){clearInterval(C),h.session.removeMarker(y),y=null,h.selection.fromOrientedRange(w),h.isFocused()&&!T&&h.$resetCursorStyle(),w=null,A=null,R=0,O=null,$=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 U(B){var H=["copy","copymove","all","uninitialized"],K=["move","copymove","linkmove","all","uninitialized"],V=g.isMac?B.altKey:B.ctrlKey,j="uninitialized";try{j=B.dataTransfer.effectAllowed.toLowerCase()}catch{}var Q="none";return V&&H.indexOf(j)>=0?Q="copy":K.indexOf(j)>=0?Q="move":H.indexOf(j)>=0&&(Q="copy"),Q}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,h=c.container;h.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var d=g.isWin?"default":"move";c.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(c){var h=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&h.dragDrop()}if(this.state==="dragWait"){var d=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var h=this.editor,d=c.inSelection(),m=c.getButton(),b=c.domEvent.detail||1;if(b===1&&m===0&&d){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),h.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var S=h.container;S.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,h,d,m){return Math.sqrt(Math.pow(d-c,2)+Math.pow(m-h,2))}i.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,r){var a=n("./mouse_event").MouseEvent,f=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(o,p){var s="scroll",l,u,c,h,d,m,b=0,y,S=0,_=0,C=0,w,A;function R(){var x=window.navigator&&window.navigator.clipboard,k=!1,M=function(){var N=p.getCopyText(),F=p.session.getUndoManager().hasUndo();A.replaceChild(g.buildDom(k?["span",!N&&L("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&L("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&L("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],x&&L("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&L("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],L("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],L("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),A.firstChild)},L=function(N){return p.commands.canExecute(N,p)},I=function(N){var F=N.target.getAttribute("action");if(F=="more"||!k)return k=!k,M();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){s="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&&T();return}A||R();var x=p.selection.cursor,k=p.renderer.textToScreenCoordinates(x.row,x.column),M=p.renderer.textToScreenCoordinates(0,0).pageX,L=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=M+L-I.left+"px"),A.style.display="",A.firstChild.style.display="none",p.on("input",T)}function T(x){A&&(A.style.display="none"),p.off("input",T)}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()),s="wait",E()}function $(){d=null,clearTimeout(d),p.selection.moveToPosition(y);var x=S>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);x&&!x.isEmpty()?p.selection.setRange(x):p.selection.selectWord(),s="wait"}f.addListener(o,"contextmenu",function(x){if(w){var k=p.textInput.getElement();k.focus()}},p),f.addListener(o,"touchstart",function(x){var k=x.touches;if(d||k.length>1){clearTimeout(d),d=null,c=-1,s="zoom";return}w=p.$mouseHandler.isMousePressed=!0;var M=p.renderer.layerConfig.lineHeight,L=p.renderer.layerConfig.lineHeight,I=x.timeStamp;h=I;var N=k[0],F=N.clientX,W=N.clientY;Math.abs(l-F)+Math.abs(u-W)>M&&(c=-1),l=x.clientX=F,u=x.clientY=W,_=C=0;var U=new a(x,p);if(y=U.getDocumentPosition(),I-c<500&&k.length==1&&!b)S++,x.preventDefault(),x.button=0,$();else{S=0;var B=p.selection.cursor,H=p.selection.isEmpty()?B:p.selection.anchor,K=p.renderer.$cursorLayer.getPixelPosition(B,!0),V=p.renderer.$cursorLayer.getPixelPosition(H,!0),j=p.renderer.scroller.getBoundingClientRect(),Q=p.renderer.layerConfig.offset,q=p.renderer.scrollLeft,Z=function(z,G){return z=z/L,G=G/M-.75,z*z+G*G};if(x.clientX<j.left){s="zoom";return}var ue=Z(x.clientX-j.left-K.left+q,x.clientY-j.top-K.top+Q),P=Z(x.clientX-j.left-V.left+q,x.clientY-j.top-V.top+Q);ue<3.5&&P<3.5&&(s=ue>P?"cursor":"anchor"),P<3.5?s="anchor":ue<3.5?s="cursor":s="scroll",d=setTimeout(O,450)}c=I},p),f.addListener(o,"touchend",function(x){w=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",b=0):d?(p.selection.moveToPosition(y),b=0,E()):s=="scroll"?(v(),T()):E(),clearTimeout(d),d=null},p),f.addListener(o,"touchmove",function(x){d&&(clearTimeout(d),d=null);var k=x.touches;if(!(k.length>1||s=="zoom")){var M=k[0],L=l-M.clientX,I=u-M.clientY;if(s=="wait")if(L*L+I*I>4)s="cursor";else return x.preventDefault();l=M.clientX,u=M.clientY,x.clientX=M.clientX,x.clientY=M.clientY;var N=x.timeStamp,F=N-h;if(h=N,s=="scroll"){var W=new a(x,p);W.speed=1,W.wheelX=L,W.wheelY=I,10*Math.abs(L)<Math.abs(I)&&(L=0),10*Math.abs(I)<Math.abs(L)&&(I=0),F!=0&&(_=L/F,C=I/F),p._emit("mousewheel",W),W.propagationStopped||(_=C=0)}else{var U=new a(x,p),B=U.getDocumentPosition();s=="cursor"?p.selection.moveCursorToPosition(B):s=="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(_)<.01&&(_=0),Math.abs(C)<.01&&(C=0),b<20&&(_=.9*_),b<20&&(C=.9*C);var x=p.session.getScrollTop();p.renderer.scrollBy(10*_,10*C),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,r){var a=n("../lib/event"),f=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,o=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,s=n("./dragdrop_handler").DragdropHandler,l=n("./touch_handler").addTouchListeners,u=n("../config"),c=function(){function h(d){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=d,new g(this),new o(this),new s(this);var b=function(_){var C=!document.hasFocus||!document.hasFocus()||!d.isFocused()&&document.activeElement==(d.textInput&&d.textInput.getElement());C&&window.focus(),d.focus(),setTimeout(function(){d.isFocused()||d.focus()})},y=d.renderer.getMouseEventTarget();a.addListener(y,"click",this.onMouseEvent.bind(this,"click"),d),a.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),d),a.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),a.addMouseWheelListener(d.container,this.onMouseWheel.bind(this,"mousewheel"),d),l(d.container,d);var S=d.renderer.$gutter;a.addListener(S,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),d),a.addListener(S,"click",this.onMouseEvent.bind(this,"gutterclick"),d),a.addListener(S,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),d),a.addListener(S,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),d),a.addListener(y,"mousedown",b,d),a.addListener(S,"mousedown",b,d),f.isIE&&d.renderer.scrollBarV&&(a.addListener(d.renderer.scrollBarV.element,"mousedown",b,d),a.addListener(d.renderer.scrollBarH.element,"mousedown",b,d)),d.on("mousemove",function(_){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var C=d.renderer.screenToTextCoordinates(_.x,_.y),w=d.session.selection.getRange(),A=d.renderer;!w.isEmpty()&&w.insideStart(C.row,C.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 S=this,_=function(E){if(E){if(f.isWebKit&&!E.which&&S.releaseMouse)return S.releaseMouse();S.x=E.clientX,S.y=E.clientY,m&&m(E),S.mouseEvent=new p(E,S.editor),S.$mouseMoved=!0}},C=function(E){b.off("beforeEndOperation",A),clearInterval(R),b.session&&w(),S[S.state+"End"]&&S[S.state+"End"](E),S.state="",S.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),S.$onCaptureMouseMove=S.releaseMouse=null,E&&S.onMouseEvent("mouseup",E),b.endOperation()},w=function(){S[S.state]&&S[S.state](),S.$mouseMoved=!1};if(f.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){C(d)});var A=function(E){S.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(S[S.state+"End"]&&S[S.state+"End"](),S.state="",S.releaseMouse())};b.on("beforeEndOperation",A),b.startOperation({command:{name:"mouse"}}),S.$onCaptureMouseMove=_,S.releaseMouse=a.capture(this.editor.container,_,C);var R=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&&a.stopEvent(m.domEvent))}).bind(this);setTimeout(d,10),this.editor.on("nativecontextmenu",d)},h.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},h}();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,i,r){var a=n("../lib/dom"),f=function(){function g(o){o.on("click",function(p){var s=p.getDocumentPosition(),l=o.session,u=l.getFoldAt(s.row,s.column,1);u&&(p.getAccelKey()?l.removeFold(u):l.expandFold(u),p.stop());var c=p.domEvent&&p.domEvent.target;c&&a.hasCssClass(c,"ace_inline_button")&&a.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),o.renderer.scrollCursorIntoView())}),o.on("gutterclick",function(p){var s=o.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var l=p.getDocumentPosition().row,u=o.session;u.foldWidgets&&u.foldWidgets[l]&&o.session.onFoldWidgetClick(l,p),o.isFocused()||o.focus(),p.stop()}}),o.on("gutterdblclick",function(p){var s=o.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var l=p.getDocumentPosition().row,u=o.session,c=u.getParentFoldRangeData(l,!0),h=c.range||c.firstRange;if(h){l=h.start.row;var d=u.getFoldAt(l,u.getLine(l).length,1);d?u.removeFold(d):(u.addFold("...",h),o.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,r){var a=n("../lib/keys"),f=n("../lib/event"),g=function(){function o(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return o.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},o.prototype.setKeyboardHandler=function(p){var s=this.$handlers;if(s[s.length-1]!=p){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(p,1)}},o.prototype.addKeyboardHandler=function(p,s){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var l=this.$handlers.indexOf(p);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(p):this.$handlers.splice(s,0,p),l==-1&&p.attach&&p.attach(this.$editor)}},o.prototype.removeKeyboardHandler=function(p){var s=this.$handlers.indexOf(p);return s==-1?!1:(this.$handlers.splice(s,1),p.detach&&p.detach(this.$editor),!0)},o.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},o.prototype.getStatusText=function(){var p=this.$data,s=p.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,p)||""}).filter(Boolean).join(" ")},o.prototype.$callKeyboardHandlers=function(p,s,l,u){for(var c,h=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,p,s,l,u),!(!(!c||!c.command)&&(c.command=="null"?h=!0:h=d.exec(c.command,this.$editor,c.args,u),h&&u&&p!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&f.stopEvent(u),h))););return!h&&p==-1&&(c={command:"insertstring"},h=d.exec("insertstring",this.$editor,s)),h&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),h},o.prototype.onCommandKey=function(p,s,l){var u=a.keyCodeToString(l);return this.$callKeyboardHandlers(s,u,l,p)},o.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},o}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,r){var a=0,f=0,g=!1,o=!1,p=!1,s=[[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]],l=[[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]],u=0,c=1,h=0,d=1,m=2,b=3,y=4,S=5,_=6,C=7,w=8,A=9,R=10,E=11,T=12,O=13,$=14,v=15,x=16,k=17,M=18,L=[M,M,M,M,M,M,M,M,M,_,S,_,w,S,M,M,M,M,M,M,M,M,M,M,M,M,M,M,S,S,S,_,w,y,y,E,E,E,y,y,y,y,y,R,A,R,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,M,M,M,M,M,M,S,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,A,y,E,E,E,E,y,y,y,y,h,y,y,M,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,M,M,M,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,S,O,$,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,V){var j=a?l:s,Q=null,q=null,Z=null,ue=0,P=null,z=null,G=-1,J=null,te=null,ie=[];if(!V)for(J=0,V=[];J<K;J++)V[J]=U(B[J]);for(f=a,g=!1,o=!1,p=!1,te=0;te<K;te++){if(Q=ue,ie[te]=q=W(B,V,ie,te),ue=j[Q][q],P=ue&240,ue&=15,H[te]=Z=j[ue][5],P>0)if(P==16){for(J=G;J<te;J++)H[J]=1;G=-1}else G=-1;if(z=j[ue][6],z)G==-1&&(G=te);else if(G>-1){for(J=G;J<te;J++)H[J]=Z;G=-1}V[te]==S&&(H[te]=0),f|=Z}if(p){for(J=0;J<K;J++)if(V[J]==_){H[J]=a;for(var pe=J-1;pe>=0&&V[pe]==w;pe--)H[pe]=a}}}function F(B,H,K){if(!(f<B)){if(B==1&&a==c&&!o){K.reverse();return}for(var V=K.length,j=0,Q,q,Z,ue;j<V;){if(H[j]>=B){for(Q=j+1;Q<V&&H[Q]>=B;)Q++;for(q=j,Z=Q-1;q<Z;q++,Z--)ue=K[q],K[q]=K[Z],K[Z]=ue;j=Q}j++}}}function W(B,H,K,V){var j=H[V],Q,q,Z,ue;switch(j){case h:case d:g=!1;case y:case b:return j;case m:return g?b:m;case C:return g=!0,d;case w:return y;case A:return V<1||V+1>=H.length||(Q=K[V-1])!=m&&Q!=b||(q=H[V+1])!=m&&q!=b?y:(g&&(q=b),q==Q?q:y);case R:return Q=V>0?K[V-1]:S,Q==m&&V+1<H.length&&H[V+1]==m?m:y;case E:if(V>0&&K[V-1]==m)return m;if(g)return y;for(ue=V+1,Z=H.length;ue<Z&&H[ue]==E;)ue++;return ue<Z&&H[ue]==m?m:y;case T:for(Z=H.length,ue=V+1;ue<Z&&H[ue]==T;)ue++;if(ue<Z){var P=B[V],z=P>=1425&&P<=2303||P==64286;if(Q=H[ue],z&&(Q==d||Q==C))return d}return V<1||(Q=H[V-1])==S?y:K[V-1];case S:return g=!1,o=!0,a;case _:return p=!0,y;case O:case $:case x:case k:case v:g=!1;case M:return y}}function U(B){var H=B.charCodeAt(0),K=H>>8;return K==0?H>191?h:L[H]:K==5?/[\u0591-\u05f4]/.test(B)?d:h:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(B)?T:/[\u0660-\u0669\u066b-\u066c]/.test(B)?b:H==1642?E:/[\u06f0-\u06f9]/.test(B)?m:C:K==32&&H<=8287?I[H&255]:K==254&&H>=65136?C: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 V=B.split(""),j=new Array(V.length),Q=new Array(V.length),q=[];a=K?c:u,N(V,q,V.length,H);for(var Z=0;Z<j.length;j[Z]=Z,Z++);F(2,q,j),F(1,q,j);for(var Z=0;Z<j.length-1;Z++)H[Z]===b?q[Z]=i.AN:q[Z]===d&&(H[Z]>C&&H[Z]<O||H[Z]===y||H[Z]===M)?q[Z]=i.ON_R:Z>0&&V[Z-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(V[Z])&&(q[Z-1]=q[Z]=i.R_H,Z++);V[V.length-1]===i.DOT&&(q[V.length-1]=i.B),V[0]===""&&(q[0]=i.RLE);for(var Z=0;Z<j.length;Z++)Q[Z]=q[j[Z]];return{logicalFromVisual:j,bidiLevels:Q}},i.hasBidiCharacters=function(B,H){for(var K=!1,V=0;V<B.length;V++)H[V]=U(B.charAt(V)),!K&&(H[V]==d||H[V]==C||H[V]==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,r){var a=n("./lib/bidiutil"),f=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,o=function(){function p(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=a,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(s.getValue())}return p.prototype.isBidiRow=function(s,l,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&g.test(s.lines.join(`
|
785
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(s=this.session.$docRowCache[u])}return s},p.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var u,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-s-1),u===c);)c=u,s++;else s=this.currentRow;return s},p.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var u=s===this.session.getLength()-1,c=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var h=this.session.$wrapData[s];h&&(l===void 0&&(l=this.getSplitIndex()),l>0&&h.length?(this.wrapIndent=h.indent,this.wrapOffset=this.wrapIndent*this.charWidths[a.L],this.line=l<h.length?this.line.substring(h[l-1],h[l]):this.line.substring(h[h.length-1])):this.line=this.line.substring(0,h[l]),l==h.length&&(this.line+=this.showInvisibles?c:a.DOT))}else this.line+=this.showInvisibles?c:a.DOT;var d=this.session,m=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,S){return y===" "||d.isFullWidth(y.charCodeAt(0))?(b=y===" "?d.getScreenTabSize(S+m):2,m+=b-1,f.stringRepeat(a.DOT,b)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==a.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 s=[];a.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=a.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,u=s.$measureCharWidth("ה");this.charWidths[a.L]=this.charWidths[a.EN]=this.charWidths[a.ON_R]=l,this.charWidths[a.R]=this.charWidths[a.AN]=u,this.charWidths[a.R_H]=u*.45,this.charWidths[a.B]=this.charWidths[a.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},p.prototype.setEolChar=function(s){this.EOL=s},p.prototype.setContentWidth=function(s){this.contentWidth=s},p.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(s,l){for(var u=s.getCursorPosition(),c=s.selection.getSelectionAnchor().row;c<=u.row;c++)!l&&s.session.getLine(c).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(c,0,1):l&&s.session.getLine(c).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:c},s.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,u=s>l?this.session.getOverwrite()?s:s-1:l,c=a.getVisualFromLogicalIdx(u,this.bidiMap),h=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&s<=l&&h[c]%2!==0&&c++;for(var m=0;m<c;m++)d+=this.charWidths[h[m]];return!this.session.getOverwrite()&&s>l&&h[c]%2===0&&(d+=this.charWidths[h[c]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},p.prototype.getSelections=function(s,l){var u=this.bidiMap,c=u.bidiLevels,h,d=[],m=0,b=Math.min(s,l)-this.wrapIndent,y=Math.max(s,l)-this.wrapIndent,S=!1,_=!1,C=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,A=0;A<c.length;A++)w=u.logicalFromVisual[A],h=c[A],S=w>=b&&w<y,S&&!_?C=m:!S&&_&&d.push({left:C,width:m-C}),m+=this.charWidths[h],_=S;if(S&&A===c.length&&d.push({left:C,width:m-C}),this.isRtlDir)for(var R=0;R<d.length;R++)d[R].left+=this.rtlLineOffset;return d},p.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),c=0,h=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[h]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>c+m/2;){if(c+=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?(u<c&&h--,l=this.bidiMap.logicalFromVisual[h]):h>0&&d[h-1]%2===0&&d[h]%2!==0?l=1+(u>c?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?l=1+this.bidiMap.logicalFromVisual[h]:(h>0&&d[h-1]%2!==0&&m!==0&&h--,l=this.bidiMap.logicalFromVisual[h]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},p}();i.BidiHandler=o}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,r){var a=n("./lib/oop"),f=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,p=function(){function s(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(c){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(l,u){this.$isEmpty=!1,this.anchor.setPosition(l,u)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var l=this.anchor,u=this.lead;return l.row>u.row||l.row==u.row&&l.column>u.column},s.prototype.getRange=function(){var l=this.anchor,u=this.lead;return this.$isEmpty?o.fromPoints(u,u):this.isBackwards()?o.fromPoints(u,l):o.fromPoints(l,u)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(l,u){var c=u?l.end:l.start,h=u?l.start:l.end;this.$setSelection(c.row,c.column,h.row,h.column)},s.prototype.$setSelection=function(l,u,c,h){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,u),this.cursor.setPosition(c,h),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||d!=this.$isEmpty||m)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(l){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),l.call(this)},s.prototype.selectTo=function(l,u){this.$moveSelection(function(){this.moveCursorTo(l,u)})},s.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},s.prototype.moveTo=function(l,u){this.clearSelection(),this.moveCursorTo(l,u)},s.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(l,u){if(typeof u>"u"){var c=l||this.lead;l=c.row,u=c.column}return this.session.getWordRange(l,u)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var l=this.getCursor(),u=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(u)},s.prototype.getLineRange=function(l,u){var c=typeof l=="number"?l:this.lead.row,h,d=this.session.getFoldLine(c);return d?(c=d.start.row,h=d.end.row):h=c,u===!0?new o(c,0,h,this.session.getLine(h).length):new o(c,0,h+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(l,u,c){var h=l.column,d=l.column+u;return c<0&&(h=l.column-u,d=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(h,d).split(" ").length-1==u},s.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(u.end.row,u.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 c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var l=this.lead.row,u=this.lead.column,c=this.session.documentToScreenRow(l,u),h=this.session.screenToDocumentPosition(c,0),d=this.session.getDisplayLine(l,null,h.row,h.column),m=d.match(/^\s*/);m[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(h.column+=m[0].length),this.moveCursorToPosition(h)},s.prototype.moveCursorLineEnd=function(){var l=this.lead,u=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==u.column){var c=this.session.getLine(u.row);if(u.column==c.length){var h=c.search(/\s+$/);h>0&&(u.column=h)}}this.moveCursorTo(u.row,u.column)},s.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,u=this.doc.getLine(l).length;this.moveCursorTo(l,u)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),h=c.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(l,u,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(h)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,h=c.substring(u)),u>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(h)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},s.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var h=this.session.getFoldStringAt(l,u,-1);h==null&&(h=this.doc.getLine(l).substring(0,u));var d=f.stringReverse(h);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(d)&&(u-=this.session.nonTokenRe.lastIndex,d=d.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},s.prototype.$shortWordEndIndex=function(l){var u=0,c,h=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(l))u=this.session.tokenRe.lastIndex;else{for(;(c=l[u])&&h.test(c);)u++;if(u<1){for(d.lastIndex=0;(c=l[u])&&!d.test(c);)if(d.lastIndex=0,u++,h.test(c))if(u>2){u--;break}else{for(;(c=l[u])&&h.test(c);)u++;if(u>2)break}}}return d.lastIndex=0,u},s.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),h=c.substring(u),d=this.session.getFoldAt(l,u,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(u==c.length){var m=this.doc.getLength();do l++,h=this.doc.getLine(l);while(l<m&&/^\s*$/.test(h));/^\s+/.test(h)||(h=""),u=0}var b=this.$shortWordEndIndex(h);this.moveCursorTo(l,u+b)},s.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1))return this.moveCursorTo(c.start.row,c.start.column);var h=this.session.getLine(l).substring(0,u);if(u===0){do l--,h=this.doc.getLine(l);while(l>0&&/^\s*$/.test(h));u=h.length,/\s+$/.test(h)||(h="")}var d=f.stringReverse(h),m=this.$shortWordEndIndex(d);return this.moveCursorTo(l,u-m)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(l,u){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),h;if(u===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(h=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(h/this.session.$bidiHandler.charWidths[0])):h=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];l<0?l-=d.rowsAbove||0:l>0&&(l+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(c.row+l,c.column,h);l!==0&&u===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+u,u===0)},s.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorTo=function(l,u,c){var h=this.session.getFoldAt(l,u,1);h&&(l=h.start.row,u=h.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(d.charAt(u))&&d.charAt(u-1)&&(this.lead.row==l&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(l,u),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(l,u,c){var h=this.session.screenToDocumentPosition(l,u);this.moveCursorTo(h.row,h.column,c)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(l){var u=this.getRange();return l?(l.start.column=u.start.column,l.start.row=u.start.row,l.end.column=u.end.column,l.end.row=u.end.row):l=u,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},s.prototype.getRangeOfMovements=function(l){var u=this.getCursor();try{l(this);var c=this.getCursor();return o.fromPoints(u,c)}catch{return o.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},s.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(u){var c=u.clone();return c.isBackwards=u.cursor==u.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},s.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var u=l.length;u--;){var c=o.fromPoints(l[u].start,l[u].end);l[u].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},s.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(l[u]))return!1;return!0},s}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,a.implement(p.prototype,g),i.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,r){var a=n("./lib/report_error").reportError,f=2e3,g=function(){function o(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var s in this.states){for(var l=this.states[s],u=[],c=0,h=this.matchMappings[s]={defaultToken:"text"},d="g",m=[],b=0;b<l.length;b++){var y=l[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 S=y.regex,_=new RegExp("(?:("+S+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||_==1?y.token=y.token[0]:_-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:_-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(_>1?y.onMatch=this.$applyToken:y.onMatch=y.token),_>1&&(/\\\d/.test(y.regex)?S=y.regex.replace(/\\([0-9]+)/g,function(C,w){return"\\"+(parseInt(w,10)+c+1)}):(_=1,S=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),h[c]=b,c+=_,u.push(S),y.onMatch||(y.onMatch=null)}}u.length||(h[0]=0,u.push("$")),m.forEach(function(C){C.splitRegex=this.createSplitterRegexp(C.regex,d)},this),this.regExps[s]=new RegExp("("+u.join(")|(")+")|($)",d)}}return o.prototype.$setMaxTokenCount=function(p){f=p|0},o.prototype.$applyToken=function(p){var s=this.splitRegex.exec(p).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:p}];for(var u=[],c=0,h=l.length;c<h;c++)s[c]&&(u[u.length]={type:l[c],value:s[c]});return u},o.prototype.$arrayTokens=function(p){if(!p)return[];var s=this.splitRegex.exec(p);if(!s)return"text";for(var l=[],u=this.tokenArray,c=0,h=u.length;c<h;c++)s[c+1]&&(l[l.length]={type:u[c],value:s[c+1]});return l},o.prototype.removeCapturingGroups=function(p){var s=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,u){return u?"(?:":l});return s},o.prototype.createSplitterRegexp=function(p,s){if(p.indexOf("(?=")!=-1){var l=0,u=!1,c={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(h,d,m,b,y,S){return u?u=y!="]":y?u=!0:b?(l==c.stack&&(c.end=S+1,c.stack=-1),l--):m&&(l++,m.length!=1&&(c.stack=l,c.start=S)),h}),c.end!=null&&/^\)*$/.test(p.substr(c.end))&&(p=p.substring(0,c.start)+p.substr(c.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(s||"").replace("g",""))},o.prototype.getLineTokens=function(p,s){if(s&&typeof s!="string"){var l=s.slice(0);s=l[0],s==="#tmp"&&(l.shift(),s=l.shift())}else var l=[];var u=s||"start",c=this.states[u];c||(u="start",c=this.states[u]);var h=this.matchMappings[u],d=this.regExps[u];d.lastIndex=0;for(var m,b=[],y=0,S=0,_={type:null,value:""};m=d.exec(p);){var C=h.defaultToken,w=null,A=m[0],R=d.lastIndex;if(R-A.length>y){var E=p.substring(y,R-A.length);_.type==C?_.value+=E:(_.type&&b.push(_),_={type:C,value:E})}for(var T=0;T<m.length-2;T++)if(m[T+1]!==void 0){w=c[h[T]],w.onMatch?C=w.onMatch(A,u,l,p):C=w.token,w.next&&(typeof w.next=="string"?u=w.next:u=w.next(u,l),c=this.states[u],c||(this.reportError("state doesn't exist",u),u="start",c=this.states[u]),h=this.matchMappings[u],y=R,d=this.regExps[u],d.lastIndex=R),w.consumeLineEnd&&(y=R);break}if(A){if(typeof C=="string")(!w||w.merge!==!1)&&_.type===C?_.value+=A:(_.type&&b.push(_),_={type:C,value:A});else if(C){_.type&&b.push(_),_={type:null,value:""};for(var T=0;T<C.length;T++)b.push(C[T])}}if(y==p.length)break;if(y=R,S++>f){for(S>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:p});y<p.length;)_.type&&b.push(_),_={value:p.substring(y,y+=500),type:"overflow"};u="start",l=[];break}}return _.type&&b.push(_),l.length>1&&l[0]!==u&&l.unshift("#tmp",u),{tokens:b,state:l.length?l:u}},o}();g.prototype.reportError=a,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,r){var a=n("../lib/deep_copy").deepCopy,f;f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,s){if(!s){for(var l in p)this.$rules[l]=p[l];return}for(var l in p){for(var u=p[l],c=0;c<u.length;c++){var h=u[c];(h.next||h.onMatch)&&(typeof h.next=="string"&&h.next.indexOf(s)!==0&&(h.next=s+h.next),h.nextState&&h.nextState.indexOf(s)!==0&&(h.nextState=s+h.nextState))}this.$rules[s+l]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(p,s,l,u,c){var h=typeof p=="function"?new p().getRules():p;if(u)for(var d=0;d<u.length;d++)u[d]=s+u[d];else{u=[];for(var m in h)u.push(s+m)}if(this.addRules(h,s),l)for(var b=Array.prototype[c?"push":"unshift"],d=0;d<u.length;d++)b.apply(this.$rules[u[d]],a(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var g=function(p,s){return(p!="start"||s.length)&&s.unshift(this.nextState,p),this.nextState},o=function(p,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var p=0,s=this.$rules;function l(u){var c=s[u];c.processed=!0;for(var h=0;h<c.length;h++){var d=c[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]||""),s[y]&&(y+=p++)),s[y]=b,d.next=y,l(y)}else b=="pop"&&(d.next=o);if(d.push&&(d.nextState=d.next||d.push,d.next=g,delete d.push),d.rules)for(var S in d.rules)s[S]?s[S].push&&s[S].push.apply(s[S],d.rules[S]):s[S]=d.rules[S];var _=typeof d=="string"?d:d.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?m=_.map(function(w){return s[w]}):m=s[_]),m){var C=[h,1].concat(m);d.noEscape&&(C=C.filter(function(w){return!w.next})),c.splice.apply(c,C),h--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(p,s,l,u){var c=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(h){for(var d=p[h],m=d.split(u||"|"),b=m.length;b--;){var y=m[b];this.$keywordList.push(y),l&&(y=y.toLowerCase()),c[y]=h}},this),p=null,l?function(h){return c[h.toLowerCase()]||s}:function(h){return c[h]||s}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),i.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,r){var a;a=function(){this.$behaviours={}},(function(){this.add=function(f,g,o){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][g]=o},this.addBehaviours=function(f){for(var g in f)for(var o in f[g])this.add(g,o,f[g][o])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,g){if(typeof f=="function")var o=new f().getBehaviours(g);else var o=f.getBehaviours(g);this.addBehaviours(o)},this.getBehaviours=function(f){if(f){for(var g={},o=0;o<f.length;o++)this.$behaviours[f[o]]&&(g[f[o]]=this.$behaviours[f[o]]);return g}else return this.$behaviours}}).call(a.prototype),i.Behaviour=a}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,i,r){var a=n("./range").Range,f=function(){function g(o,p,s){this.$session=o,this.$row=p,this.$rowTokens=o.getTokens(p);var l=o.getTokenAt(p,s);this.$tokenIndex=l?l.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 o;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,o||(o=this.$session.getLength()),this.$row>=o)return this.$row=o-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 o=this.$rowTokens,p=this.$tokenIndex,s=o[p].start;if(s!==void 0)return s;for(s=0;p>0;)p-=1,s+=o[p].value.length;return s},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var o=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new a(this.$row,p,this.$row,p+o.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,r){var a=n("../../lib/oop"),f=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,o=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,u={},c={'"':'"',"'":"'"},h=function(b){var y=-1;if(b.multiSelect&&(y=b.selection.index,u.rangeCount!=b.multiSelect.rangeCount&&(u={rangeCount:b.multiSelect.rangeCount})),u[y])return l=u[y];l=u[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(b,y,S,_){var C=b.end.row-b.start.row;return{text:S+y+_,selection:[0,b.start.column+1,C,b.end.column+(C?0:1)]}},m;m=function(b){b=b||{},this.add("braces","insertion",function(y,S,_,C,w){var A=_.getCursorPosition(),R=C.doc.getLine(A.row);if(w=="{"){h(_);var E=_.getSelectionRange(),T=C.doc.getTextRange(E),O=C.getTokenAt(A.row,A.column);if(T!==""&&T!=="{"&&_.getWrapBehavioursEnabled())return d(E,T,"{","}");if(O&&/(?:string)\.quasi|\.xml/.test(O.type)){var $=[/tag\-(?:open|name)/,/attribute\-name/];return $.some(function(N){return N.test(O.type)})||/(string)\.quasi/.test(O.type)&&O.value[A.column-O.start-1]!=="$"?void 0:(m.recordAutoInsert(_,C,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(_,C))return/[\]\}\)]/.test(R[A.column])||_.inMultiSelectMode||b.braces?(m.recordAutoInsert(_,C,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(_,C,"{"),{text:"{",selection:[1,1]})}else if(w=="}"){h(_);var v=R.substring(A.column,A.column+1);if(v=="}"){var x=C.$findOpeningBracket("}",{column:A.column+1,row:A.row});if(x!==null&&m.isAutoInsertedClosing(A,R,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(w==`
|
786
|
+
`||w==`\r
|
787
|
+
`){h(_);var k="";m.isMaybeInsertedClosing(A,R)&&(k=o.stringRepeat("}",l.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var v=R.substring(A.column,A.column+1);if(v==="}"){var M=C.findMatchingBracket({row:A.row,column:A.column+1},"}");if(!M)return null;var L=this.$getIndent(C.getLine(M.row))}else if(k)var L=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var I=L+C.getTabString();return{text:`
|
788
|
+
`+I+`
|
789
|
+
`+L+k,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,S,_,C,w){var A=C.doc.getTextRange(w);if(!w.isMultiLine()&&A=="{"){h(_);var R=C.doc.getLine(w.start.row),E=R.substring(w.end.column,w.end.column+1);if(E=="}")return w.end.column++,w;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,S,_,C,w){if(w=="("){h(_);var A=_.getSelectionRange(),R=C.doc.getTextRange(A);if(R!==""&&_.getWrapBehavioursEnabled())return d(A,R,"(",")");if(m.isSaneInsertion(_,C))return m.recordAutoInsert(_,C,")"),{text:"()",selection:[1,1]}}else if(w==")"){h(_);var E=_.getCursorPosition(),T=C.doc.getLine(E.row),O=T.substring(E.column,E.column+1);if(O==")"){var $=C.$findOpeningBracket(")",{column:E.column+1,row:E.row});if($!==null&&m.isAutoInsertedClosing(E,T,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,S,_,C,w){var A=C.doc.getTextRange(w);if(!w.isMultiLine()&&A=="("){h(_);var R=C.doc.getLine(w.start.row),E=R.substring(w.start.column+1,w.start.column+2);if(E==")")return w.end.column++,w}}),this.add("brackets","insertion",function(y,S,_,C,w){if(w=="["){h(_);var A=_.getSelectionRange(),R=C.doc.getTextRange(A);if(R!==""&&_.getWrapBehavioursEnabled())return d(A,R,"[","]");if(m.isSaneInsertion(_,C))return m.recordAutoInsert(_,C,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){h(_);var E=_.getCursorPosition(),T=C.doc.getLine(E.row),O=T.substring(E.column,E.column+1);if(O=="]"){var $=C.$findOpeningBracket("]",{column:E.column+1,row:E.row});if($!==null&&m.isAutoInsertedClosing(E,T,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,S,_,C,w){var A=C.doc.getTextRange(w);if(!w.isMultiLine()&&A=="["){h(_);var R=C.doc.getLine(w.start.row),E=R.substring(w.start.column+1,w.start.column+2);if(E=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(y,S,_,C,w){var A=C.$mode.$quotes||c;if(w.length==1&&A[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;h(_);var R=w,E=_.getSelectionRange(),T=C.doc.getTextRange(E);if(T!==""&&(T.length!=1||!A[T])&&_.getWrapBehavioursEnabled())return d(E,T,R,R);if(!T){var O=_.getCursorPosition(),$=C.doc.getLine(O.row),v=$.substring(O.column-1,O.column),x=$.substring(O.column,O.column+1),k=C.getTokenAt(O.row,O.column),M=C.getTokenAt(O.row,O.column+1);if(v=="\\"&&k&&/escape/.test(k.type))return null;var L=k&&/string|escape/.test(k.type),I=!M||/string|escape/.test(M.type),N;if(x==R)N=L!==I,N&&/string\.end/.test(M.type)&&(N=!1);else{if(L&&!I||L&&I)return null;var F=C.$mode.tokenRe;F.lastIndex=0;var W=F.test(v);F.lastIndex=0;var U=F.test(x),B=C.$mode.$pairQuotesAfter,H=B&&B[R]&&B[R].test(v);if(!H&&W||U||x&&!/[\s;,.})\]\\]/.test(x))return null;var K=$[O.column-2];if(v==R&&(K==R||F.test(K)))return null;N=!0}return{text:N?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,S,_,C,w){var A=C.$mode.$quotes||c,R=C.doc.getTextRange(w);if(!w.isMultiLine()&&A.hasOwnProperty(R)){h(_);var E=C.doc.getLine(w.start.row),T=E.substring(w.start.column+1,w.start.column+2);if(T==R)return w.end.column++,w}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,S,_,C,w){if(y==="doc-start"&&(w===`
|
790
|
+
`||w===`\r
|
791
|
+
`)&&_.selection.isEmpty()){var A=_.getCursorPosition();if(A.column===0)return;for(var R=C.doc.getLine(A.row),E=C.doc.getLine(A.row+1),T=C.getTokens(A.row),O=0,$=0;$<T.length;$++){O+=T[$].value.length;var v=T[$];if(O>=A.column){if(O===A.column){if(!/\.doc/.test(v.type))return;if(/\*\//.test(v.value)){var x=T[$+1];if(!x||!/\.doc/.test(x.type))return}}var k=A.column-(O-v.value.length),M=v.value.indexOf("*/"),L=v.value.indexOf("/**",M>-1?M+2:0);if(L!==-1&&k>L&&k<L+3||M!==-1&&L!==-1&&k>=M&&k<=L||!/\.doc/.test(v.type))return;break}}var I=this.$getIndent(R);if(/\s*\*/.test(E))return/^\s*\*/.test(R)?{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(R.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 S=b.getCursorPosition(),_=new g(y,S.row,S.column);if(!this.$matchTokenType(_.getCurrentToken()||"text",p)){if(/[)}\]]/.test(b.session.getLine(S.row)[S.column]))return!0;var C=new g(y,S.row,S.column+1);if(!this.$matchTokenType(C.getCurrentToken()||"text",p))return!1}return _.stepForward(),_.getCurrentTokenRow()!==S.row||this.$matchTokenType(_.getCurrentToken()||"text",s)},m.$matchTokenType=function(b,y){return y.indexOf(b.type||b)>-1},m.recordAutoInsert=function(b,y,S){var _=b.getCursorPosition(),C=y.doc.getLine(_.row);this.isAutoInsertedClosing(_,C,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=_.row,l.autoInsertedLineEnd=S+C.substr(_.column),l.autoInsertedBrackets++},m.recordMaybeInsert=function(b,y,S){var _=b.getCursorPosition(),C=y.doc.getLine(_.row);this.isMaybeInsertedClosing(_,C)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=_.row,l.maybeInsertedLineStart=C.substr(0,_.column)+S,l.maybeInsertedLineEnd=C.substr(_.column),l.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(b,y,S){return l.autoInsertedBrackets>0&&b.row===l.autoInsertedRow&&S===l.autoInsertedLineEnd[0]&&y.substr(b.column)===l.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(b,y){return l.maybeInsertedBrackets>0&&b.row===l.maybeInsertedRow&&y.substr(b.column)===l.maybeInsertedLineEnd&&y.substr(0,b.column)==l.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},a.inherits(m,f),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,r){for(var a=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],f=0,g=[],o=0;o<a.length;o+=2)g.push(f+=a[o]),a[o+1]&&g.push(45,f+=a[o+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,r){var a=n("../config"),f=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,o=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),s=n("../lib/lang"),l=n("../token_iterator").TokenIterator,u=n("../range").Range,c;c=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new o,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,S=!0,_=!0,C=1/0,w=d.getTabSize(),A=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var T=this.lineCommentStart.map(s.escapeRegExp).join("|"),R=this.lineCommentStart[0];else var T=s.escapeRegExp(this.lineCommentStart),R=this.lineCommentStart;T=new RegExp("^(\\s*)(?:"+T+") ?"),A=d.getUseSoftTabs();var v=function(U,B){var H=U.match(T);if(H){var K=H[1].length,V=H[0].length;!M(U,K,V)&&H[0][V-1]==" "&&V--,y.removeInLine(B,K,V)}},k=R+" ",$=function(U,B){(!S||/\S/.test(U))&&(M(U,C,C)?y.insertInLine({row:B,column:C},k):y.insertInLine({row:B,column:C},R))},x=function(U,B){return T.test(U)},M=function(U,B,H){for(var K=0;B--&&U.charAt(B)==" ";)K++;if(K%w!=0)return!1;for(var K=0;U.charAt(H++)==" ";)K++;return w>2?K%w!=w-1:K%w==0}}else{if(!this.blockComment)return!1;var R=this.blockComment.start,E=this.blockComment.end,T=new RegExp("^(\\s*)(?:"+s.escapeRegExp(R)+")"),O=new RegExp("(?:"+s.escapeRegExp(E)+")\\s*$"),$=function(N,F){x(N,F)||(!S||/\S/.test(N))&&(y.insertInLine({row:F,column:N.length},E),y.insertInLine({row:F,column:C},R))},v=function(N,F){var W;(W=N.match(O))&&y.removeInLine(F,N.length-W[0].length,N.length),(W=N.match(T))&&y.removeInLine(F,W[1].length,W[0].length)},x=function(N,F){if(T.test(N))return!0;for(var W=d.getTokens(F),U=0;U<W.length;U++)if(W[U].type==="comment")return!0}}function L(N){for(var F=m;F<=b;F++)N(y.getLine(F),F)}var I=1/0;L(function(N,F){var W=N.search(/\S/);W!==-1?(W<C&&(C=W),_&&!x(N,F)&&(_=!1)):I>N.length&&(I=N.length)}),C==1/0&&(C=I,S=!1,_=!1),A&&C%w!=0&&(C=Math.floor(C/w)*w),L(_?v:$)},this.toggleBlockComment=function(h,d,m,b){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var S=new l(d,b.row,b.column),_=S.getCurrentToken();d.selection;var C=d.selection.toOrientedRange(),w,A;if(_&&/comment/.test(_.type)){for(var R,E;_&&/comment/.test(_.type);){var T=_.value.indexOf(y.start);if(T!=-1){var O=S.getCurrentTokenRow(),$=S.getCurrentTokenColumn()+T;R=new u(O,$,O,$+y.start.length);break}_=S.stepBackward()}for(var S=new l(d,b.row,b.column),_=S.getCurrentToken();_&&/comment/.test(_.type);){var T=_.value.indexOf(y.end);if(T!=-1){var O=S.getCurrentTokenRow(),$=S.getCurrentTokenColumn()+T;E=new u(O,$,O,$+y.end.length);break}_=S.stepForward()}E&&d.remove(E),R&&(d.remove(R),w=R.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);C.start.row==w&&(C.start.column+=A),C.end.row==w&&(C.end.column+=A),d.selection.fromOrientedRange(C)}},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=a.$modes[b];y||(a.$modes[b]=y=new m),a.$modes[d]||(a.$modes[d]=y),this.$embeds.push(d),this.$modes[d]=y}for(var S=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],_=function(w){(function(A){var R=S[w],E=A[R];A[S[w]]=function(){return this.$delegator(R,arguments,E)}})(C)},C=this,d=0;d<S.length;d++)_(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],S=this.$modes[y];if(S)return S[h].apply(S,[b[1]].concat([].slice.call(d,1)))}b=b[0]||"start"}for(var _=0;_<this.$embeds.length;_++)if(this.$modes[this.$embeds[_]]){var C=b.split(this.$embeds[_]);if(!C[0]&&C[1]){d[0]=C[1];var S=this.$modes[this.$embeds[_]];return S[h].apply(S,d)}}var w=m.apply(this,d);return m?w:void 0},this.transformAction=function(h,d,m,b,y){if(this.$behaviour){var S=this.$behaviour.getBehaviours();for(var _ in S)if(S[_][d]){var C=S[_][d].apply(this,arguments);if(C)return C}}},this.getKeywords=function(h){if(!this.completionKeywords){var d=this.$tokenizer.rules,m=[];for(var b in d)for(var y=d[b],S=0,_=y.length;S<_;S++)if(typeof y[S].token=="string")/keyword|support|storage/.test(y[S].token)&&m.push(y[S].regex);else if(typeof y[S].token=="object"){for(var C=0,w=y[S].token.length;C<w;C++)if(/keyword|support|storage/.test(y[S].token[C])){var b=y[S].regex.match(/\(.+?\)/g)[C];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(S){return{name:S,value:S,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),i.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,i,r){var a=n("./lib/dom"),f=function(){function g(o){this.session=o,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(o){var p;return this.lineWidgets?p=this.lineWidgets[o]&&this.lineWidgets[o].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[o]?1+p:this.$wrapData[o].length+1+p},g.prototype.$getWidgetScreenLength=function(){var o=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(o+=p.rowCount)}),o},g.prototype.$onChangeEditor=function(o){this.attach(o.editor)},g.prototype.attach=function(o){o&&o.widgetManager&&o.widgetManager!=this&&o.widgetManager.detach(),this.editor!=o&&(this.detach(),this.editor=o,o&&(o.widgetManager=this,o.renderer.on("beforeRender",this.measureWidgets),o.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(o){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 s=this.session.lineWidgets;s&&s.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},g.prototype.updateOnFold=function(o,p){var s=p.lineWidgets;if(!(!s||!o.action)){for(var l=o.data,u=l.start.row,c=l.end.row,h=o.action=="add",d=u+1;d<c;d++)s[d]&&(s[d].hidden=h);s[c]&&(h?s[u]?s[c].hidden=h:s[u]=s[c]:(s[u]==s[c]&&(s[u]=void 0),s[c].hidden=h))}},g.prototype.updateOnChange=function(o){var p=this.session.lineWidgets;if(p){var s=o.start.row,l=o.end.row-s;if(l!==0)if(o.action=="remove"){var u=p.splice(s+1,l);!p[s]&&u[u.length-1]&&(p[s]=u.pop()),u.forEach(function(h){h&&this.removeLineWidget(h)},this),this.$updateRows()}else{var c=new Array(l);p[s]&&p[s].column!=null&&o.start.column>p[s].column&&s++,c.unshift(s,0),p.splice.apply(p,c),this.$updateRows()}}},g.prototype.$updateRows=function(){var o=this.session.lineWidgets;if(o){var p=!0;o.forEach(function(s,l){if(s)for(p=!1,s.row=l;s.$oldWidget;)s.$oldWidget.row=l,s=s.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(o){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[o.row];return p&&(o.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[o.row]=o,o},g.prototype.addLineWidget=function(o){if(this.$registerLineWidget(o),o.session=this.session,!this.editor)return o;var p=this.editor.renderer;o.html&&!o.el&&(o.el=a.createElement("div"),o.el.innerHTML=o.html),o.text&&!o.el&&(o.el=a.createElement("div"),o.el.textContent=o.text),o.el&&(a.addCssClass(o.el,"ace_lineWidgetContainer"),o.className&&a.addCssClass(o.el,o.className),o.el.style.position="absolute",o.el.style.zIndex="5",p.container.appendChild(o.el),o._inDocument=!0,o.coverGutter||(o.el.style.zIndex="3"),o.pixelHeight==null&&(o.pixelHeight=o.el.offsetHeight)),o.rowCount==null&&(o.rowCount=o.pixelHeight/p.layerConfig.lineHeight);var s=this.session.getFoldAt(o.row,0);if(o.$fold=s,s){var l=this.session.lineWidgets;o.row==s.end.row&&!l[s.start.row]?l[s.start.row]=o:o.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(o),o},g.prototype.removeLineWidget=function(o){if(o._inDocument=!1,o.session=null,o.el&&o.el.parentNode&&o.el.parentNode.removeChild(o.el),o.editor&&o.editor.destroy)try{o.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[o.row];if(p==o)this.session.lineWidgets[o.row]=o.$oldWidget,o.$oldWidget&&this.onWidgetChanged(o.$oldWidget);else for(;p;){if(p.$oldWidget==o){p.$oldWidget=o.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(o){for(var p=this.session.lineWidgets,s=p&&p[o],l=[];s;)l.push(s),s=s.$oldWidget;return l},g.prototype.onWidgetChanged=function(o){this.session._changedWidgets.push(o),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(o,p){var s=this.session._changedWidgets,l=p.layerConfig;if(!(!s||!s.length)){for(var u=1/0,c=0;c<s.length;c++){var h=s[c];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/l.characterWidth));var d=h.h/l.lineHeight;h.coverLine&&(d-=this.session.getRowLineCount(h.row),d<0&&(d=0)),h.rowCount!=d&&(h.rowCount=d,h.row<u&&(u=h.row))}}u!=1/0&&(this.session._emit("changeFold",{data:{start:{row:u}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(o,p){var s=p.layerConfig,l=this.session.lineWidgets;if(l){for(var u=Math.min(this.firstRow,s.firstRow),c=Math.max(this.lastRow,s.lastRow,l.length);u>0&&!l[u];)u--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,p.$cursorLayer.config=s;for(var h=u;h<=c;h++){var d=l[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+=s.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=m-s.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=s.width+2*s.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,r){i.applyDelta=function(a,f,g){var o=f.start.row,p=f.start.column,s=a[o]||"";switch(f.action){case"insert":var l=f.lines;if(l.length===1)a[o]=s.substring(0,p)+f.lines[0]+s.substring(p);else{var u=[o,1].concat(f.lines);a.splice.apply(a,u),a[o]=s.substring(0,p)+a[o],a[o+f.lines.length-1]+=s.substring(p)}break;case"remove":var c=f.end.column,h=f.end.row;o===h?a[o]=s.substring(0,p)+s.substring(c):a.splice(o,h-o+1,s.substring(0,p)+a[h].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,r){var a=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function s(l,u,c){this.$onChange=this.onChange.bind(this),this.attach(l),typeof u!="number"?this.setPosition(u.row,u.column):this.setPosition(u,c)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var u=p(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(u.row,u.column,!0)}},s.prototype.setPosition=function(l,u,c){var h;if(c?h={row:l,column:u}:h=this.$clipPositionToDocument(l,u),!(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})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(l,u){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):l<0?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,u))),u<0&&(c.column=0),c},s}();g.prototype.$insertRight=!1,a.implement(g.prototype,f);function o(s,l,u){var c=u?s.column<=l.column:s.column<l.column;return s.row<l.row||s.row==l.row&&c}function p(s,l,u){var c=s.action=="insert",h=(c?1:-1)*(s.end.row-s.start.row),d=(c?1:-1)*(s.end.column-s.start.column),m=s.start,b=c?m:s.end;return o(l,m,u)?{row:l.row,column:l.column}:o(b,l,!u)?{row:l.row+h,column:l.column+(l.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,r){var a=n("./lib/oop"),f=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,p=n("./anchor").Anchor,s=function(){function l(u){this.$lines=[""],u.length===0?this.$lines=[""]:Array.isArray(u)?this.insertMergedLines({row:0,column:0},u):this.insert({row:0,column:0},u)}return l.prototype.setValue=function(u){var c=this.getLength()-1;this.remove(new o(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},u||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(u,c){return new p(this,u,c)},l.prototype.$detectNewLine=function(u){var c=u.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
|
792
|
+
`,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
793
|
+
`;case"unix":return`
|
794
|
+
`;default:return this.$autoNewLine||`
|
795
|
+
`}},l.prototype.setNewLineMode=function(u){this.$newLineMode!==u&&(this.$newLineMode=u,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(u){return u==`\r
|
796
|
+
`||u=="\r"||u==`
|
797
|
+
`},l.prototype.getLine=function(u){return this.$lines[u]||""},l.prototype.getLines=function(u,c){return this.$lines.slice(u,c+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(u){return this.getLinesForRange(u).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(u){var c;if(u.start.row===u.end.row)c=[this.getLine(u.start.row).substring(u.start.column,u.end.column)];else{c=this.getLines(u.start.row,u.end.row),c[0]=(c[0]||"").substring(u.start.column);var h=c.length-1;u.end.row-u.start.row==h&&(c[h]=c[h].substring(0,u.end.column))}return c},l.prototype.insertLines=function(u,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(u,c)},l.prototype.removeLines=function(u,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(u,c)},l.prototype.insertNewLine=function(u){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(u,["",""])},l.prototype.insert=function(u,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(u,this.$split(c))},l.prototype.insertInLine=function(u,c){var h=this.clippedPos(u.row,u.column),d=this.pos(u.row,u.column+c.length);return this.applyDelta({start:h,end:d,action:"insert",lines:[c]},!0),this.clonePos(d)},l.prototype.clippedPos=function(u,c){var h=this.getLength();u===void 0?u=h:u<0?u=0:u>=h&&(u=h-1,c=void 0);var d=this.getLine(u);return c==null&&(c=d.length),c=Math.min(Math.max(c,0),d.length),{row:u,column:c}},l.prototype.clonePos=function(u){return{row:u.row,column:u.column}},l.prototype.pos=function(u,c){return{row:u,column:c}},l.prototype.$clipPosition=function(u){var c=this.getLength();return u.row>=c?(u.row=Math.max(0,c-1),u.column=this.getLine(c-1).length):(u.row=Math.max(0,u.row),u.column=Math.min(Math.max(u.column,0),this.getLine(u.row).length)),u},l.prototype.insertFullLines=function(u,c){u=Math.min(Math.max(u,0),this.getLength());var h=0;u<this.getLength()?(c=c.concat([""]),h=0):(c=[""].concat(c),u--,h=this.$lines[u].length),this.insertMergedLines({row:u,column:h},c)},l.prototype.insertMergedLines=function(u,c){var h=this.clippedPos(u.row,u.column),d={row:h.row+c.length-1,column:(c.length==1?h.column:0)+c[c.length-1].length};return this.applyDelta({start:h,end:d,action:"insert",lines:c}),this.clonePos(d)},l.prototype.remove=function(u){var c=this.clippedPos(u.start.row,u.start.column),h=this.clippedPos(u.end.row,u.end.column);return this.applyDelta({start:c,end:h,action:"remove",lines:this.getLinesForRange({start:c,end:h})}),this.clonePos(c)},l.prototype.removeInLine=function(u,c,h){var d=this.clippedPos(u,c),m=this.clippedPos(u,h);return this.applyDelta({start:d,end:m,action:"remove",lines:this.getLinesForRange({start:d,end:m})},!0),this.clonePos(d)},l.prototype.removeFullLines=function(u,c){u=Math.min(Math.max(0,u),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var h=c==this.getLength()-1&&u>0,d=c<this.getLength()-1,m=h?u-1:u,b=h?this.getLine(m).length:0,y=d?c+1:c,S=d?0:this.getLine(y).length,_=new o(m,b,y,S),C=this.$lines.slice(u,c+1);return this.applyDelta({start:_.start,end:_.end,action:"remove",lines:this.getLinesForRange(_)}),C},l.prototype.removeNewLine=function(u){u<this.getLength()-1&&u>=0&&this.applyDelta({start:this.pos(u,this.getLine(u).length),end:this.pos(u+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(u,c){if(u instanceof o||(u=o.fromPoints(u.start,u.end)),c.length===0&&u.isEmpty())return u.start;if(c==this.getTextRange(u))return u.end;this.remove(u);var h;return c?h=this.insert(u.start,c):h=u.start,h},l.prototype.applyDeltas=function(u){for(var c=0;c<u.length;c++)this.applyDelta(u[c])},l.prototype.revertDeltas=function(u){for(var c=u.length-1;c>=0;c--)this.revertDelta(u[c])},l.prototype.applyDelta=function(u,c){var h=u.action=="insert";(h?u.lines.length<=1&&!u.lines[0]:!o.comparePoints(u.start,u.end))||(h&&u.lines.length>2e4?this.$splitAndapplyLargeDelta(u,2e4):(f(this.$lines,u,c),this._signal("change",u)))},l.prototype.$safeApplyDelta=function(u){var c=this.$lines.length;(u.action=="remove"&&u.start.row<c&&u.end.row<c||u.action=="insert"&&u.start.row<=c)&&this.applyDelta(u)},l.prototype.$splitAndapplyLargeDelta=function(u,c){for(var h=u.lines,d=h.length-c+1,m=u.start.row,b=u.start.column,y=0,S=0;y<d;y=S){S+=c-1;var _=h.slice(y,S);_.push(""),this.applyDelta({start:this.pos(m+y,b),end:this.pos(m+S,b=0),action:u.action,lines:_},!0)}u.lines=h.slice(y),u.start.row=m+y,u.start.column=b,this.applyDelta(u,!0)},l.prototype.revertDelta=function(u){this.$safeApplyDelta({start:this.clonePos(u.start),end:this.clonePos(u.end),action:u.action=="insert"?"remove":"insert",lines:u.lines.slice()})},l.prototype.indexToPosition=function(u,c){for(var h=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=c||0,b=h.length;m<b;m++)if(u-=h[m].length+d,u<0)return{row:m,column:u+h[m].length+d};return{row:b-1,column:u+h[b-1].length+d}},l.prototype.positionToIndex=function(u,c){for(var h=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=0,b=Math.min(u.row,h.length),y=c||0;y<b;++y)m+=h[y].length+d;return m+u.column},l.prototype.$split=function(u){return u.split(/\r\n|\r|\n/)},l}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",a.implement(s.prototype,g),i.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,r){var a=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function o(p,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var l=this;this.$worker=function(){if(l.running){for(var u=new Date,c=l.currentLine,h=-1,d=l.doc,m=c;l.lines[c];)c++;var b=d.getLength(),y=0;for(l.running=!1;c<b;){l.$tokenizeRow(c),h=c;do c++;while(l.lines[c]);if(y++,y%5===0&&new Date-u>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=c,h==-1&&(h=c),m<=h&&l.fireUpdateEvent(m,h)}}}return o.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},o.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},o.prototype.fireUpdateEvent=function(p,s){var l={first:p,last:s};this._signal("update",{data:l})},o.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)},o.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},o.prototype.$updateOnChange=function(p){var s=p.start.row,l=p.end.row-s;if(l===0)this.lines[s]=null;else if(p.action=="remove")this.lines.splice(s,l+1,null),this.states.splice(s,l+1,null);else{var u=Array(l+1);u.unshift(s,1),this.lines.splice.apply(this.lines,u),this.states.splice.apply(this.states,u)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},o.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},o.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},o.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},o.prototype.$tokenizeRow=function(p){var s=this.doc.getLine(p),l=this.states[p-1],u=this.tokenizer.getLineTokens(s,l,p);return this.states[p]+""!=u.state+""?(this.states[p]=u.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=u.tokens},o.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},o}();a.implement(g.prototype,f),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,r){var a=n("./lib/lang"),f=n("./range").Range,g=function(){function o(p,s,l){l===void 0&&(l="text"),this.setRegexp(p),this.clazz=s,this.type=l,this.docLen=0}return o.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},o.prototype.update=function(p,s,l,u){if(this.regExp){for(var c=u.firstRow,h=u.lastRow,d={},m=l.$editor.$search,b=m.$isMultilineSearch(l.$editor.getLastSearchOptions()),y=c;y<=h;y++){var S=this.cache[y];if(S==null||l.getValue().length!=this.docLen){if(b){S=[];var _=m.$multiLineForward(l,this.regExp,y,h);if(_){var C=_.endRow<=h?_.endRow-1:h;C>y&&(y=C),S.push(new f(_.startRow,_.startCol,_.endRow,_.endCol))}S.length>this.MAX_RANGES&&(S=S.slice(0,this.MAX_RANGES))}else S=a.getMatchOffsets(l.getLine(y),this.regExp),S.length>this.MAX_RANGES&&(S=S.slice(0,this.MAX_RANGES)),S=S.map(function(E){return new f(y,E.offset,y,E.offset+E.length)});this.cache[y]=S.length?S:""}if(S.length!==0)for(var w=S.length;w--;){var A=S[w].toScreenRange(l),R=A.toString();d[R]||(d[R]=!0,s.drawSingleLineMarker(p,A,this.clazz,u))}}this.docLen=l.getValue().length}},o}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,r){var a=function(){function C(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return C.prototype.addSession=function(w){this.$session=w},C.prototype.add=function(w,A,R){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)}},C.prototype.addSelection=function(w,A){this.selections.push({value:w,rev:A||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function(w,A){A==null&&(A=this.$rev+1);for(var R=this.$undoStack,E=R.length;E--;){var T=R[E][0];if(T.id<=w)break;T.id<A&&(T.ignore=!0)}this.lastDeltas=null},C.prototype.getSelection=function(w,A){for(var R=this.selections,E=R.length;E--;){var T=R[E];if(T.rev<w)return A&&(T=R[E+1]),T}},C.prototype.getRevision=function(){return this.$rev},C.prototype.getDeltas=function(w,A){A==null&&(A=this.$rev+1);for(var R=this.$undoStack,E=null,T=0,O=R.length;O--;){var $=R[O][0];if($.id<A&&!E&&(E=O+1),$.id<=w){T=O+1;break}}return R.slice(T,E)},C.prototype.getChangedRanges=function(w,A){A==null&&(A=this.$rev+1)},C.prototype.getChangedLines=function(w,A){A==null&&(A=this.$rev+1)},C.prototype.undo=function(w,A){this.lastDeltas=null;var R=this.$undoStack;if(f(R,R.length)){w||(w=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var E=R.pop(),T=null;return E&&(T=w.undoChanges(E,A),this.$redoStack.push(E),this.$syncRev()),this.$fromUndo=!1,T}},C.prototype.redo=function(w,A){if(this.lastDeltas=null,w||(w=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);_(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(O){O[0].id=++this.$maxRev},this)}var E=this.$redoStack.pop(),T=null;return E&&(T=w.redoChanges(E,A),this.$undoStack.push(E),this.$syncRev()),this.$fromUndo=!1,T},C.prototype.$syncRev=function(){var w=this.$undoStack,A=w[w.length-1],R=A&&A[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},C.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=[]},C.prototype.canUndo=function(){return this.$undoStack.length>0},C.prototype.canRedo=function(){return this.$redoStack.length>0},C.prototype.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},C.prototype.isAtBookmark=function(){return this.$rev===this.mark},C.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},C.prototype.fromJSON=function(w){this.reset(),this.$undoStack=w.$undoStack,this.$redoStack=w.$redoStack},C.prototype.$prettyPrint=function(w){return w?l(w):l(this.$undoStack)+`
|
798
|
+
---
|
799
|
+
`+l(this.$redoStack)},C}();a.prototype.hasUndo=a.prototype.canUndo,a.prototype.hasRedo=a.prototype.canRedo,a.prototype.isClean=a.prototype.isAtBookmark,a.prototype.markClean=a.prototype.bookmark;function f(C,w){for(var A=w;A--;){var R=C[A];if(R&&!R[0].ignore){for(;A<w-1;){var E=h(C[A],C[A+1]);C[A]=E[0],C[A+1]=E[1],A++}return!0}}}var g=n("./range").Range,o=g.comparePoints;g.comparePoints;function p(C){return{row:C.row,column:C.column}}function s(C){return{start:p(C.start),end:p(C.end),action:C.action,lines:C.lines.slice()}}function l(C){if(C=C||this,Array.isArray(C))return C.map(l).join(`
|
800
|
+
`);var w="";return C.action?(w=C.action=="insert"?"+":"-",w+="["+C.lines+"]"):C.value&&(Array.isArray(C.value)?w=C.value.map(u).join(`
|
801
|
+
`):w=u(C.value)),C.start&&(w+=u(C)),(C.id||C.rev)&&(w+=" ("+(C.id||C.rev)+")"),w}function u(C){return C.start.row+":"+C.start.column+"=>"+C.end.row+":"+C.end.column}function c(C,w){var A=C.action=="insert",R=w.action=="insert";if(A&&R)if(o(w.start,C.end)>=0)m(w,C,-1);else if(o(w.start,C.start)<=0)m(C,w,1);else return null;else if(A&&!R)if(o(w.start,C.end)>=0)m(w,C,-1);else if(o(w.end,C.start)<=0)m(C,w,-1);else return null;else if(!A&&R)if(o(w.start,C.start)>=0)m(w,C,1);else if(o(w.start,C.start)<=0)m(C,w,1);else return null;else if(!A&&!R)if(o(w.start,C.start)>=0)m(w,C,1);else if(o(w.end,C.start)<=0)m(C,w,-1);else return null;return[w,C]}function h(C,w){for(var A=C.length;A--;)for(var R=0;R<w.length;R++)if(!c(C[A],w[R])){for(;A<C.length;){for(;R--;)c(w[R],C[A]);R=w.length,A++}return[C,w]}return C.selectionBefore=w.selectionBefore=C.selectionAfter=w.selectionAfter=null,[w,C]}function d(C,w){var A=C.action=="insert",R=w.action=="insert";if(A&&R)o(C.start,w.start)<0?m(w,C,1):m(C,w,1);else if(A&&!R)o(C.start,w.end)>=0?m(C,w,-1):(o(C.start,w.start)<=0||m(C,g.fromPoints(w.start,C.start),-1),m(w,C,1));else if(!A&&R)o(w.start,C.end)>=0?m(w,C,-1):(o(w.start,C.start)<=0||m(w,g.fromPoints(C.start,w.start),-1),m(C,w,1));else if(!A&&!R)if(o(w.start,C.end)>=0)m(w,C,-1);else if(o(w.end,C.start)<=0)m(C,w,-1);else{var E,T;return o(C.start,w.start)<0&&(E=C,C=y(C,w.start)),o(C.end,w.end)>0&&(T=y(C,w.end)),b(w.end,C.start,C.end,-1),T&&!E&&(C.lines=T.lines,C.start=T.start,C.end=T.end,T=C),[w,E,T].filter(Boolean)}return[w,C]}function m(C,w,A){b(C.start,w.start,w.end,A),b(C.end,w.start,w.end,A)}function b(C,w,A,R){C.row==(R==1?w:A).row&&(C.column+=R*(A.column-w.column)),C.row+=R*(A.row-w.row)}function y(C,w){var A=C.lines,R=C.end;C.end=p(w);var E=C.end.row-C.start.row,T=A.splice(E,A.length),O=E?w.column:w.column-C.start.column;A.push(T[0].substring(0,O)),T[0]=T[0].substr(O);var $={start:p(w),end:R,lines:T,action:C.action};return $}function S(C,w){w=s(w);for(var A=C.length;A--;){for(var R=C[A],E=0;E<R.length;E++){var T=R[E],O=d(T,w);w=O[0],O.length!=2&&(O[2]?(R.splice(E+1,1,O[1],O[2]),E++):O[1]||(R.splice(E,1),E--))}R.length||C.splice(A,1)}return C}function _(C,w){for(var A=0;A<w.length;A++)for(var R=w[A],E=0;E<R.length;E++)S(C,R[E])}i.UndoManager=a}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,r){var a=n("../range").Range,f=function(){function g(o,p){this.foldData=o,Array.isArray(p)?this.folds=p:p=this.folds=[p];var s=p[p.length-1];this.range=new a(p[0].start.row,p[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return g.prototype.shiftRow=function(o){this.start.row+=o,this.end.row+=o,this.folds.forEach(function(p){p.start.row+=o,p.end.row+=o})},g.prototype.addFold=function(o){if(o.sameRow){if(o.start.row<this.startRow||o.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(o),this.folds.sort(function(p,s){return-p.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(o.start.row,o.start.column)>0?(this.end.row=o.end.row,this.end.column=o.end.column):this.range.compareStart(o.end.row,o.end.column)<0&&(this.start.row=o.start.row,this.start.column=o.start.column)}else if(o.start.row==this.end.row)this.folds.push(o),this.end.row=o.end.row,this.end.column=o.end.column;else if(o.end.row==this.start.row)this.folds.unshift(o),this.start.row=o.start.row,this.start.column=o.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");o.foldLine=this},g.prototype.containsRow=function(o){return o>=this.start.row&&o<=this.end.row},g.prototype.walk=function(o,p,s){var l=0,u=this.folds,c,h,d,m=!0;p==null&&(p=this.end.row,s=this.end.column);for(var b=0;b<u.length;b++){if(c=u[b],h=c.range.compareStart(p,s),h==-1){o(null,p,s,l,m);return}if(d=o(null,c.start.row,c.start.column,l,m),d=!d&&o(c.placeholder,c.start.row,c.start.column,l),d||h===0)return;m=!c.sameRow,l=c.end.column}o(null,p,s,l,m)},g.prototype.getNextFoldTo=function(o,p){for(var s,l,u=0;u<this.folds.length;u++){if(s=this.folds[u],l=s.range.compareEnd(o,p),l==-1)return{fold:s,kind:"after"};if(l===0)return{fold:s,kind:"inside"}}return null},g.prototype.addRemoveChars=function(o,p,s){var l=this.getNextFoldTo(o,p),u,c;if(l){if(u=l.fold,l.kind=="inside"&&u.start.column!=p&&u.start.row!=o)window.console&&window.console.log(o,p,u);else if(u.start.row==o){c=this.folds;var h=c.indexOf(u);for(h===0&&(this.start.column+=s),h;h<c.length;h++){if(u=c[h],u.start.column+=s,!u.sameRow)return;u.end.column+=s}this.end.column+=s}}},g.prototype.split=function(o,p){var s=this.getNextFoldTo(o,p);if(!s||s.kind=="inside")return null;var l=s.fold,u=this.folds,c=this.foldData,h=u.indexOf(l),d=u[h-1];this.end.row=d.end.row,this.end.column=d.end.column,u=u.splice(h,u.length-h);var m=new g(c,u);return c.splice(c.indexOf(this)+1,0,m),m},g.prototype.merge=function(o){for(var p=o.folds,s=0;s<p.length;s++)this.addFold(p[s]);var l=this.foldData;l.splice(l.indexOf(o),1)},g.prototype.toString=function(){var o=[this.range.toString()+": ["];return this.folds.forEach(function(p){o.push(" "+p.toString())}),o.push("]"),o.join(`
|
802
|
+
`)},g.prototype.idxToPosition=function(o){for(var p=0,s=0;s<this.folds.length;s++){var l=this.folds[s];if(o-=l.start.column-p,o<0)return{row:l.start.row,column:l.start.column+o};if(o-=l.placeholder.length,o<0)return l.start;p=l.end.column}return{row:this.end.row,column:this.end.column+o}},g}();i.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,r){var a=n("./range").Range,f=a.comparePoints,g=function(){function o(){this.ranges=[],this.$bias=1}return o.prototype.pointIndex=function(p,s,l){for(var u=this.ranges,c=l||0;c<u.length;c++){var h=u[c],d=f(p,h.end);if(!(d>0)){var m=f(p,h.start);return d===0?s&&m!==0?-c-2:c:m>0||m===0&&!s?c:-c-1}}return-c-1},o.prototype.add=function(p){var s=!p.isEmpty(),l=this.pointIndex(p.start,s);l<0&&(l=-l-1);var u=this.pointIndex(p.end,s,l);return u<0?u=-u-1:u++,this.ranges.splice(l,u-l,p)},o.prototype.addList=function(p){for(var s=[],l=p.length;l--;)s.push.apply(s,this.add(p[l]));return s},o.prototype.substractPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges.splice(s,1)},o.prototype.merge=function(){var p=[],s=this.ranges;s=s.sort(function(d,m){return f(d.start,m.start)});for(var l=s[0],u,c=1;c<s.length;c++){u=l,l=s[c];var h=f(u.end,l.start);h<0||h==0&&!u.isEmpty()&&!l.isEmpty()||(f(u.end,l.end)<0&&(u.end.row=l.end.row,u.end.column=l.end.column),s.splice(c,1),p.push(l),l=u,c--)}return this.ranges=s,p},o.prototype.contains=function(p,s){return this.pointIndex({row:p,column:s})>=0},o.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},o.prototype.rangeAtPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges[s]},o.prototype.clipRows=function(p,s){var l=this.ranges;if(l[0].start.row>s||l[l.length-1].start.row<p)return[];var u=this.pointIndex({row:p,column:0});u<0&&(u=-u-1);var c=this.pointIndex({row:s,column:0},u);c<0&&(c=-c-1);for(var h=[],d=u;d<c;d++)h.push(l[d]);return h},o.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},o.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},o.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},o.prototype.$onChange=function(p){for(var s=p.start,l=p.end,u=s.row,c=l.row,h=this.ranges,d=0,m=h.length;d<m;d++){var b=h[d];if(b.end.row>=u)break}if(p.action=="insert")for(var y=c-u,S=-s.column+l.column;d<m;d++){var b=h[d];if(b.start.row>u)break;if(b.start.row==u&&b.start.column>=s.column&&(b.start.column==s.column&&this.$bias<=0||(b.start.column+=S,b.start.row+=y)),b.end.row==u&&b.end.column>=s.column){if(b.end.column==s.column&&this.$bias<0)continue;b.end.column==s.column&&S>0&&d<m-1&&b.end.column>b.start.column&&b.end.column==h[d+1].start.column&&(b.end.column-=S),b.end.column+=S,b.end.row+=y}}else for(var y=u-c,S=s.column-l.column;d<m;d++){var b=h[d];if(b.start.row>c)break;b.end.row<c&&(u<b.end.row||u==b.end.row&&s.column<b.end.column)?(b.end.row=u,b.end.column=s.column):b.end.row==c?b.end.column<=l.column?(y||b.end.column>s.column)&&(b.end.column=s.column,b.end.row=s.row):(b.end.column+=S,b.end.row+=y):b.end.row>c&&(b.end.row+=y),b.start.row<c&&(u<b.start.row||u==b.start.row&&s.column<b.start.column)?(b.start.row=u,b.start.column=s.column):b.start.row==c?b.start.column<=l.column?(y||b.start.column>s.column)&&(b.start.column=s.column,b.start.row=s.row):(b.start.column+=S,b.start.row+=y):b.start.row>c&&(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}},o}();g.prototype.comparePoints=f,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,r){var a=this&&this.__extends||function(){var u=function(c,h){return u=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])},u(c,h)};return function(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");u(c,h);function d(){this.constructor=c}c.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}(),f=n("../range_list").RangeList,g=function(u){a(c,u);function c(h,d){var m=u.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 c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(h){this.foldLine=h,this.subFolds.forEach(function(d){d.setFoldLine(h)})},c.prototype.clone=function(){var h=this.range.clone(),d=new c(h,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},c.prototype.addSubFold=function(h){if(!this.range.isEqual(h)){p(h,this.start);for(var S=h.start.row,_=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 S=h.range.end.row,_=h.range.end.column,C=d,m=-1;C<this.subFolds.length&&(m=this.subFolds[C].range.compare(S,_),m==1);C++);m==0&&C++;for(var w=this.subFolds.splice(d,C-d,h),A=m==0?w.length-1:w.length,R=y;R<A;R++)h.addSubFold(w[R]);return h.setFoldLine(this.foldLine),h}},c.prototype.restoreRange=function(h){return l(h,this.start)},c}(f);function o(u,c){u.row-=c.row,u.row==0&&(u.column-=c.column)}function p(u,c){o(u.start,c),o(u.end,c)}function s(u,c){u.row==0&&(u.column+=c.column),u.row+=c.row}function l(u,c){s(u.start,c),s(u.end,c)}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,r){var a=n("../range").Range,f=n("./fold_line").FoldLine,g=n("./fold").Fold,o=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(l,u,c){var h=this.getFoldLine(l);if(!h)return null;for(var d=h.folds,m=0;m<d.length;m++){var b=d[m].range;if(b.contains(l,u)){if(c==1&&b.isEnd(l,u)&&!b.isEmpty())continue;if(c==-1&&b.isStart(l,u)&&!b.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(l){var u=l.start,c=l.end,h=this.$foldData,d=[];u.column+=1,c.column-=1;for(var m=0;m<h.length;m++){var b=h[m].range.compareRange(l);if(b!=2){if(b==-2)break;for(var y=h[m].folds,S=0;S<y.length;S++){var _=y[S];if(b=_.range.compareRange(l),b==-2)break;if(b==2)continue;if(b==42)break;d.push(_)}}}return u.column-=1,c.column+=1,d},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var u=[];l.forEach(function(c){u=u.concat(this.getFoldsInRange(c))},this)}else var u=this.getFoldsInRange(l);return u},this.getAllFolds=function(){for(var l=[],u=this.$foldData,c=0;c<u.length;c++)for(var h=0;h<u[c].folds.length;h++)l.push(u[c].folds[h]);return l},this.getFoldStringAt=function(l,u,c,h){if(h=h||this.getFoldLine(l),!h)return null;for(var d={end:{column:0}},m,b,y=0;y<h.folds.length;y++){b=h.folds[y];var S=b.range.compareEnd(l,u);if(S==-1){m=this.getLine(b.start.row).substring(d.end.column,b.start.column);break}else if(S===0)return null;d=b}return m||(m=this.getLine(b.start.row).substring(d.end.column)),c==-1?m.substring(0,u-d.end.column):c==1?m.substring(u-d.end.column):m},this.getFoldLine=function(l,u){var c=this.$foldData,h=0;for(u&&(h=c.indexOf(u)),h==-1&&(h=0),h;h<c.length;h++){var d=c[h];if(d.start.row<=l&&d.end.row>=l)return d;if(d.end.row>l)return null}return null},this.getNextFoldLine=function(l,u){var c=this.$foldData,h=0;for(u&&(h=c.indexOf(u)),h==-1&&(h=0),h;h<c.length;h++){var d=c[h];if(d.end.row>=l)return d}return null},this.getFoldedRowCount=function(l,u){for(var c=this.$foldData,h=u-l+1,d=0;d<c.length;d++){var m=c[d],b=m.end.row,y=m.start.row;if(b>=u){y<u&&(y>=l?h-=u-y:h=0);break}else b>=l&&(y>=l?h-=b-y:h-=b-l+1)}return h},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(u,c){return u.start.row-c.start.row}),l},this.addFold=function(l,u){var c=this.$foldData,h=!1,d;l instanceof g?d=l:(d=new g(u,l),d.collapseChildren=u.collapseChildren),this.$clipRangeToDocument(d.range);var m=d.start.row,b=d.start.column,y=d.end.row,S=d.end.column,_=this.getFoldAt(m,b,1),C=this.getFoldAt(y,S,-1);if(_&&C==_)return _.addSubFold(d);_&&!_.range.isStart(m,b)&&this.removeFold(_),C&&!C.range.isEnd(y,S)&&this.removeFold(C);var w=this.getFoldsInRange(d.range);w.length>0&&(this.removeFolds(w),d.collapseChildren||w.forEach(function(T){d.addSubFold(T)}));for(var A=0;A<c.length;A++){var R=c[A];if(y==R.start.row){R.addFold(d),h=!0;break}else if(m==R.end.row){if(R.addFold(d),h=!0,!d.sameRow){var E=c[A+1];if(E&&E.start.row==y){R.merge(E);break}}break}else if(y<=R.start.row)break}return h||(R=this.$addFoldLine(new f(this.$foldData,d))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:d,action:"add"}),d},this.addFolds=function(l){l.forEach(function(u){this.addFold(u)},this)},this.removeFold=function(l){var u=l.foldLine,c=u.start.row,h=u.end.row,d=this.$foldData,m=u.folds;if(m.length==1)d.splice(d.indexOf(u),1);else if(u.range.isEnd(l.end.row,l.end.column))m.pop(),u.end.row=m[m.length-1].end.row,u.end.column=m[m.length-1].end.column;else if(u.range.isStart(l.start.row,l.start.column))m.shift(),u.start.row=m[0].start.row,u.start.column=m[0].start.column;else if(l.sameRow)m.splice(m.indexOf(l),1);else{var b=u.split(l.start.row,l.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(c,h):this.$updateRowLengthCache(c,h)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var u=[],c=0;c<l.length;c++)u.push(l[c]);u.forEach(function(h){this.removeFold(h)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(u){l.restoreRange(u),this.addFold(u)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(u){this.expandFold(u)},this)},this.unfold=function(l,u){var c,h;if(l==null)c=new a(0,0,this.getLength(),0),u==null&&(u=!0);else if(typeof l=="number")c=new a(l,0,l,this.getLine(l).length);else if("row"in l)c=a.fromPoints(l,l);else{if(Array.isArray(l))return h=[],l.forEach(function(m){h=h.concat(this.unfold(m))},this),h;c=l}h=this.getFoldsInRangeList(c);for(var d=h;h.length==1&&a.comparePoints(h[0].start,c.start)<0&&a.comparePoints(h[0].end,c.end)>0;)this.expandFolds(h),h=this.getFoldsInRangeList(c);if(u!=!1?this.removeFolds(h):this.expandFolds(h),d.length)return d},this.isRowFolded=function(l,u){return!!this.getFoldLine(l,u)},this.getRowFoldEnd=function(l,u){var c=this.getFoldLine(l,u);return c?c.end.row:l},this.getRowFoldStart=function(l,u){var c=this.getFoldLine(l,u);return c?c.start.row:l},this.getFoldDisplayLine=function(l,u,c,h,d){h==null&&(h=l.start.row),d==null&&(d=0),u==null&&(u=l.end.row),c==null&&(c=this.getLine(u).length);var m=this.doc,b="";return l.walk(function(y,S,_,C){if(!(S<h)){if(S==h){if(_<d)return;C=Math.max(d,C)}y!=null?b+=y:b+=m.getLine(S).substring(C,_)}},u,c),b},this.getDisplayLine=function(l,u,c,h){var d=this.getFoldLine(l);if(d)return this.getFoldDisplayLine(d,l,u,c,h);var m;return m=this.doc.getLine(l),m.substring(h||0,u||m.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(u){var c=u.folds.map(function(h){return h.clone()});return new f(l,c)}),l},this.toggleFold=function(l){var u=this.selection,c=u.getRange(),h,d;if(c.isEmpty()){var m=c.start;if(h=this.getFoldAt(m.row,m.column),h){this.expandFold(h);return}else(d=this.findMatchingBracket(m))?c.comparePoint(d)==1?c.end=d:(c.start=d,c.start.column++,c.end.column--):(d=this.findMatchingBracket({row:m.row,column:m.column+1}))?(c.comparePoint(d)==1?c.end=d:c.start=d,c.start.column++):c=this.getCommentFoldRange(m.row,m.column)||c}else{var b=this.getFoldsInRange(c);if(l&&b.length){this.expandFolds(b);return}else b.length==1&&(h=b[0])}if(h||(h=this.getFoldAt(c.start.row,c.start.column)),h&&h.range.toString()==c.toString()){this.expandFold(h);return}var y="...";if(!c.isMultiLine()){if(y=this.getTextRange(c),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,c)},this.getCommentFoldRange=function(l,u,c){var h=new o(this,l,u),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 a;if(c!=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 o(this,l,u);var S=this.getState(h.$row);if(c!=-1){var _=-1;do if(d=h.stepForward(),_==-1){var C=this.getState(h.$row);S.toString()!==C.toString()&&(_=h.$row)}else if(h.$row>_)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(l,u,c,h){c==null&&(c=1e5);var d=this.foldWidgets;if(d){u=u||this.getLength(),l=l||0;for(var m=l;m<u;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<=u&&b.start.row>=l&&(m=b.end.row,b.collapseChildren=c,this.addFold("...",b))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(u){for(var c=l.getTokens(u),h=0;h<c.length;h++){var d=c[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(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var u=this.$foldMode;this.$setFolding(null),this.$setFolding(u)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,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(l,u){var c=this.foldWidgets;if(!c||u&&c[l])return{};for(var h=l-1,d;h>=0;){var m=c[h];if(m==null&&(m=c[h]=this.getFoldWidget(h)),m=="start"){var b=this.getFoldWidgetRange(h);if(d||(d=b),b&&b.end.row>=l)break}h--}return{range:h!==-1&&b,firstRange:d}},this.onFoldWidgetClick=function(l,u){u instanceof p&&(u=u.domEvent);var c={children:u.shiftKey,all:u.ctrlKey||u.metaKey,siblings:u.altKey},h=this.$toggleFoldWidget(l,c);if(!h){var d=u.target||u.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,u){if(this.getFoldWidget){var c=this.getFoldWidget(l),h=this.getLine(l),d=c==="end"?-1:1,m=this.getFoldAt(l,d===-1?0:h.length,d);if(m)return u.children||u.all?this.removeFold(m):this.expandFold(m),m;var b=this.getFoldWidgetRange(l,!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(u.siblings){var y=this.getParentFoldRangeData(l);if(y.range)var S=y.range.start.row+1,_=y.range.end.row;this.foldAll(S,_,u.all?1e4:0)}else u.children?(_=b?b.end.row:this.getLength(),this.foldAll(l+1,_,u.all?1e4:0)):b&&(u.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(l){var u=this.selection.getCursor().row;u=this.getRowFoldStart(u);var c=this.$toggleFoldWidget(u,{});if(!c){var h=this.getParentFoldRangeData(u,!0);if(c=h.range||h.firstRange,c){u=c.start.row;var d=this.getFoldAt(u,this.getLine(u).length,1);d?this.removeFold(d):this.addFold("...",c)}}},this.updateFoldWidgets=function(l){var u=l.start.row,c=l.end.row-u;if(c===0)this.foldWidgets[u]=null;else if(l.action=="remove")this.foldWidgets.splice(u,c+1,null);else{var h=Array(c+1);h.unshift(u,1),this.foldWidgets.splice.apply(this.foldWidgets,h)}},this.tokenizerUpdateFoldWidgets=function(l){var u=l.data;u.first!=u.last&&this.foldWidgets.length>u.first&&this.foldWidgets.splice(u.first,this.foldWidgets.length)}}i.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,r){var a=n("../token_iterator").TokenIterator,f=n("../range").Range;function g(){this.findMatchingBracket=function(o,p){if(o.column==0)return null;var s=p||this.getLine(o.row).charAt(o.column-1);if(s=="")return null;var l=s.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],o):this.$findOpeningBracket(l[2],o):null},this.getBracketRange=function(o){var p=this.getLine(o.row),s=!0,l,u=p.charAt(o.column-1),c=u&&u.match(/([\(\[\{])|([\)\]\}])/);if(c||(u=p.charAt(o.column),o={row:o.row,column:o.column+1},c=u&&u.match(/([\(\[\{])|([\)\]\}])/),s=!1),!c)return null;if(c[1]){var h=this.$findClosingBracket(c[1],o);if(!h)return null;l=f.fromPoints(o,h),s||(l.end.column++,l.start.column--),l.cursor=l.end}else{var h=this.$findOpeningBracket(c[2],o);if(!h)return null;l=f.fromPoints(h,o),s||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(o,p){var s=this.getLine(o.row),l=/([\(\[\{])|([\)\]\}])/,u=!p&&s.charAt(o.column-1),c=u&&u.match(l);if(c||(u=(p===void 0||p)&&s.charAt(o.column),o={row:o.row,column:o.column+1},c=u&&u.match(l)),!c)return null;var h=new f(o.row,o.column-1,o.row,o.column),d=c[1]?this.$findClosingBracket(c[1],o):this.$findOpeningBracket(c[2],o);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(o,p,s){var l=this.$brackets[o],u=1,c=new a(this,p.row,p.column),h=c.getCurrentToken();if(h||(h=c.stepForward()),!!h){s||(s=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-c.getCurrentTokenColumn()-2,m=h.value;;){for(;d>=0;){var b=m.charAt(d);if(b==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else b==o&&(u+=1);d-=1}do h=c.stepBackward();while(h&&!s.test(h.type));if(h==null)break;m=h.value,d=m.length-1}return null}},this.$findClosingBracket=function(o,p,s){var l=this.$brackets[o],u=1,c=new a(this,p.row,p.column),h=c.getCurrentToken();if(h||(h=c.stepForward()),!!h){s||(s=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-c.getCurrentTokenColumn();;){for(var m=h.value,b=m.length;d<b;){var y=m.charAt(d);if(y==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:d+c.getCurrentTokenColumn()}}else y==o&&(u+=1);d+=1}do h=c.stepForward();while(h&&!s.test(h.type));if(h==null)break;d=0}return null}},this.getMatchingTags=function(o){var p=new a(this,o.row,o.column),s=this.$findTagName(p);if(s){var l=p.stepBackward();return l.value==="<"?this.$findClosingTag(p,s):this.$findOpeningTag(p,s)}},this.$findTagName=function(o){var p=o.getCurrentToken(),s=!1,l=!1;if(p&&p.type.indexOf("tag-name")===-1)do l?p=o.stepBackward():p=o.stepForward(),p&&(p.value==="/>"?l=!0:p.type.indexOf("tag-name")!==-1&&(s=!0));while(p&&!s);return p},this.$findClosingTag=function(o,p){var s,l=p.value,u=p.value,c=0,h=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);p=o.stepForward();var d=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length),m=!1;do{if(s=p,s.type.indexOf("tag-close")!==-1&&!m){var b=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(p=o.stepForward(),p){if(p.value===">"&&!m){var b=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(l=p.value,u===l){if(s.value==="<")c++;else if(s.value==="</"&&(c--,c<0)){o.stepBackward();var y=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2);p=o.stepForward();var S=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=o.stepForward()),p&&p.value===">")var _=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);else return}}}else if(u===l&&p.value==="/>"&&(c--,c<0))var y=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2),S=y,_=S,b=new f(d.end.row,d.end.column,d.end.row,d.end.column+1)}}while(p&&c>=0);if(h&&b&&y&&_&&d&&S)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,_.end.row,_.end.column),openTagName:d,closeTagName:S}},this.$findOpeningTag=function(o,p){var s=o.getCurrentToken(),l=p.value,u=0,c=o.getCurrentTokenRow(),h=o.getCurrentTokenColumn(),d=h+2,m=new f(c,h,c,d);o.stepForward();var b=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=o.stepForward()),!(!p||p.value!==">")){var y=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);o.stepBackward(),o.stepBackward();do if(p=s,c=o.getCurrentTokenRow(),h=o.getCurrentTokenColumn(),d=h+p.value.length,s=o.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(l===p.value)if(s.value==="<"){if(u++,u>0){var S=new f(c,h,c,d),_=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);do p=o.stepForward();while(p&&p.value!==">");var C=new f(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1)}}else s.value==="</"&&u--}else if(p.value==="/>"){for(var w=0,A=s;A;){if(A.type.indexOf("tag-name")!==-1&&A.value===l){u--;break}else if(A.value==="<")break;A=o.stepBackward(),w++}for(var R=0;R<w;R++)o.stepForward()}}while(s&&u<=0);if(_&&C&&m&&y&&S&&b)return{openTag:new f(_.start.row,_.start.column,C.end.row,C.end.column),closeTag:new f(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:S,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,r){var a=n("./lib/oop"),f=n("./lib/lang"),g=n("./bidihandler").BidiHandler,o=n("./config"),p=n("./lib/event_emitter").EventEmitter,s=n("./selection").Selection,l=n("./mode/text").Mode,u=n("./range").Range,c=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 $(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"+ ++$.$uid,this.$foldData.toString=function(){return this.join(`
|
803
|
+
`)},this.bgTokenizer=new d(new l().getTokenizer(),this);var k=this;this.bgTokenizer.on("update",function(M){k._signal("tokenizerUpdate",M)}),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 s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new g(this),o.resetOptions(this),this.setMode(x),o._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return $.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))},$.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)},$.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)}},$.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()},$.prototype.getDocument=function(){return this.doc},Object.defineProperty($.prototype,"widgetManager",{get:function(){var v=new c(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}),$.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))},$.prototype.$getRowCacheIndex=function(v,x){for(var k=0,M=v.length-1;k<=M;){var L=k+M>>1,I=v[L];if(x>I)k=L+1;else if(x<I)M=L-1;else return L}return k-1},$.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},$.prototype.onChangeFold=function(v){var x=v.data;this.$resetRowCache(x.start.row)},$.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)},$.prototype.onSelectionChange=function(){this._signal("changeSelection")},$.prototype.setValue=function(v){this.doc.setValue(v),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},$.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 $(v.value);return v.folds.forEach(function(M){k.addFold("...",u.fromPoints(M.start,M.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},$.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()}},$.prototype.toString=function(){return this.doc.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.getState=function(v){return this.bgTokenizer.getState(v)},$.prototype.getTokens=function(v){return this.bgTokenizer.getTokens(v)},$.prototype.getTokenAt=function(v,x){var k=this.bgTokenizer.getTokens(v),M,L=0;if(x==null){var I=k.length-1;L=this.getLine(v).length}else for(var I=0;I<k.length&&(L+=k[I].value.length,!(L>=x));I++);return M=k[I],M?(M.index=I,M.start=L-M.value.length,M):null},$.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(){}},$.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},$.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},$.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},$.prototype.setUseSoftTabs=function(v){this.setOption("useSoftTabs",v)},$.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},$.prototype.setTabSize=function(v){this.setOption("tabSize",v)},$.prototype.getTabSize=function(){return this.$tabSize},$.prototype.isTabStop=function(v){return this.$useSoftTabs&&v.column%this.$tabSize===0},$.prototype.setNavigateWithinSoftTabs=function(v){this.setOption("navigateWithinSoftTabs",v)},$.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},$.prototype.setOverwrite=function(v){this.setOption("overwrite",v)},$.prototype.getOverwrite=function(){return this.$overwrite},$.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},$.prototype.addGutterDecoration=function(v,x){this.$decorations[v]||(this.$decorations[v]=""),this.$decorations[v]+=" "+x,this._signal("changeBreakpoint",{})},$.prototype.removeGutterDecoration=function(v,x){this.$decorations[v]=(this.$decorations[v]||"").replace(" "+x,""),this._signal("changeBreakpoint",{})},$.prototype.getBreakpoints=function(){return this.$breakpoints},$.prototype.setBreakpoints=function(v){this.$breakpoints=[];for(var x=0;x<v.length;x++)this.$breakpoints[v[x]]="ace_breakpoint";this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},$.prototype.setBreakpoint=function(v,x){x===void 0&&(x="ace_breakpoint"),x?this.$breakpoints[v]=x:delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoint=function(v){delete this.$breakpoints[v],this._signal("changeBreakpoint",{})},$.prototype.addMarker=function(v,x,k,M){var L=this.$markerId++,I={range:v,type:k||"line",renderer:typeof k=="function"?k:null,clazz:x,inFront:!!M,id:L};return M?(this.$frontMarkers[L]=I,this._signal("changeFrontMarker")):(this.$backMarkers[L]=I,this._signal("changeBackMarker")),L},$.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}},$.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")}},$.prototype.getMarkers=function(v){return v?this.$frontMarkers:this.$backMarkers},$.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)},$.prototype.highlightLines=function(v,x,k,M){typeof x!="number"&&(k=x,x=v),k||(k="ace_step");var L=new u(v,0,x,1/0);return L.id=this.addMarker(L,k,"fullLine",M),L},$.prototype.setAnnotations=function(v){this.$annotations=v,this._signal("changeAnnotation",{})},$.prototype.getAnnotations=function(){return this.$annotations||[]},$.prototype.clearAnnotations=function(){this.setAnnotations([])},$.prototype.$detectNewLine=function(v){var x=v.match(/^.*?(\r?\n)/m);x?this.$autoNewLine=x[1]:this.$autoNewLine=`
|
804
|
+
`},$.prototype.getWordRange=function(v,x){var k=this.getLine(v),M=!1;if(x>0&&(M=!!k.charAt(x-1).match(this.tokenRe)),M||(M=!!k.charAt(x).match(this.tokenRe)),M)var L=this.tokenRe;else if(/^\s+$/.test(k.slice(x-1,x+1)))var L=/\s/;else var L=this.nonTokenRe;var I=x;if(I>0){do I--;while(I>=0&&k.charAt(I).match(L));I++}for(var N=x;N<k.length&&k.charAt(N).match(L);)N++;return new u(v,I,v,N)},$.prototype.getAWordRange=function(v,x){for(var k=this.getWordRange(v,x),M=this.getLine(k.end.row);M.charAt(k.end.column).match(/[ \t]/);)k.end.column+=1;return k},$.prototype.setNewLineMode=function(v){this.doc.setNewLineMode(v)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(v){this.setOption("useWorker",v)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(v){var x=v.data;this.bgTokenizer.start(x.first),this._signal("tokenizerUpdate",v)},$.prototype.setMode=function(v,x){if(v&&typeof v=="object"){if(v.getTokenizer)return this.$onChangeMode(v);var k=v,M=k.path}else M=v||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[M]&&!k){this.$onChangeMode(this.$modes[M]),x&&x();return}this.$modeId=M,o.loadModule(["mode",M],(function(L){if(!this.destroyed){if(this.$modeId!==M)return x&&x();this.$modes[M]&&!k?this.$onChangeMode(this.$modes[M]):L&&L.Mode&&(L=new L.Mode(k),k||(this.$modes[M]=L,L.$id=M),this.$onChangeMode(L)),x&&x()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},$.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 M=v.getTokenizer();if(M.on!==void 0){var L=this.onReloadTokenizer.bind(this);M.on("update",L)}this.bgTokenizer.setTokenizer(M),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}))}},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(v){o.warn("Could not load worker",v),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(v){this.$scrollTop===v||isNaN(v)||(this.$scrollTop=v,this._signal("changeScrollTop",v))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(v){this.$scrollLeft===v||isNaN(v)||(this.$scrollLeft=v,this._signal("changeScrollLeft",v))},$.prototype.getScrollLeft=function(){return this.$scrollLeft},$.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},$.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},$.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,M=0,L=0,I=this.$foldData[L],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[L++],N=I?I.start.row:1/0}k[W]==null&&(k[W]=this.$getStringScreenWidth(x[W])[0]),k[W]>M&&(M=k[W])}this.screenWidth=M}},$.prototype.getLine=function(v){return this.doc.getLine(v)},$.prototype.getLines=function(v,x){return this.doc.getLines(v,x)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(v){return this.doc.getTextRange(v||this.selection.getRange())},$.prototype.insert=function(v,x){return this.doc.insert(v,x)},$.prototype.remove=function(v){return this.doc.remove(v)},$.prototype.removeFullLines=function(v,x){return this.doc.removeFullLines(v,x)},$.prototype.undoChanges=function(v,x){if(v.length){this.$fromUndo=!0;for(var k=v.length-1;k!=-1;k--){var M=v[k];M.action=="insert"||M.action=="remove"?this.doc.revertDelta(M):M.folds&&this.addFolds(M.folds)}!x&&this.$undoSelect&&(v.selectionBefore?this.selection.fromJSON(v.selectionBefore):this.selection.setRange(this.$getUndoSelection(v,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(v,x){if(v.length){this.$fromUndo=!0;for(var k=0;k<v.length;k++){var M=v[k];(M.action=="insert"||M.action=="remove")&&this.doc.$safeApplyDelta(M)}!x&&this.$undoSelect&&(v.selectionAfter?this.selection.fromJSON(v.selectionAfter):this.selection.setRange(this.$getUndoSelection(v,!1))),this.$fromUndo=!1}},$.prototype.setUndoSelect=function(v){this.$undoSelect=v},$.prototype.$getUndoSelection=function(v,x){function k(F){return x?F.action!=="insert":F.action==="insert"}for(var M,L,I=0;I<v.length;I++){var N=v[I];if(N.start){if(!M){k(N)?M=u.fromPoints(N.start,N.end):M=u.fromPoints(N.start,N.start);continue}k(N)?(L=N.start,M.compare(L.row,L.column)==-1&&M.setStart(L),L=N.end,M.compare(L.row,L.column)==1&&M.setEnd(L)):(L=N.start,M.compare(L.row,L.column)==-1&&(M=u.fromPoints(N.start,N.start)))}}return M},$.prototype.replace=function(v,x){return this.doc.replace(v,x)},$.prototype.moveText=function(v,x,k){var M=this.getTextRange(v),L=this.getFoldsInRange(v),I=u.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,M),L.length){var W=v.start,U=I.start,N=U.row-W.row,F=U.column-W.column;this.addFolds(L.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},$.prototype.indentRows=function(v,x,k){k=k.replace(/\t/g,this.getTabString());for(var M=v;M<=x;M++)this.doc.insertInLine({row:M,column:0},k)},$.prototype.outdentRows=function(v){for(var x=v.collapseRows(),k=new u(0,0,0,0),M=this.getTabSize(),L=x.start.row;L<=x.end.row;++L){var I=this.getLine(L);k.start.row=L,k.end.row=L;for(var N=0;N<M&&I.charAt(N)==" ";++N);N<M&&I.charAt(N)==" "?(k.start.column=N,k.end.column=N+1):(k.start.column=0,k.end.column=N),this.remove(k)}},$.prototype.$moveLines=function(v,x,k){if(v=this.getRowFoldStart(v),x=this.getRowFoldEnd(x),k<0){var M=this.getRowFoldStart(v+k);if(M<0)return 0;var L=M-v}else if(k>0){var M=this.getRowFoldEnd(x+k);if(M>this.doc.getLength()-1)return 0;var L=M-x}else{v=this.$clipRowToDocument(v),x=this.$clipRowToDocument(x);var L=x-v+1}var I=new u(v,0,x,Number.MAX_VALUE),N=this.getFoldsInRange(I).map(function(W){return W=W.clone(),W.start.row+=L,W.end.row+=L,W}),F=k==0?this.doc.getLines(v,x):this.doc.removeFullLines(v,x);return this.doc.insertFullLines(v+L,F),N.length&&this.addFolds(N),L},$.prototype.moveLinesUp=function(v,x){return this.$moveLines(v,x,-1)},$.prototype.moveLinesDown=function(v,x){return this.$moveLines(v,x,1)},$.prototype.duplicateLines=function(v,x){return this.$moveLines(v,x,0)},$.prototype.$clipRowToDocument=function(v){return Math.max(0,Math.min(v,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(v,x){return x<0?0:Math.min(this.doc.getLine(v).length,x)},$.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}},$.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},$.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")}},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.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"))},$.prototype.adjustWrapLimit=function(v,x){var k=this.$wrapLimitRange;k.max<0&&(k={min:x,max:x});var M=this.$constrainWrapLimit(v,k.min,k.max);return M!=this.$wrapLimit&&M>1?(this.$wrapLimit=M,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},$.prototype.$constrainWrapLimit=function(v,x,k){return x&&(v=Math.max(x,v)),k&&(v=Math.min(k,v)),v},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(v){this.setWrapLimitRange(v,v)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(v){var x=this.$useWrapMode,k=v.action,M=v.start,L=v.end,I=M.row,N=L.row,F=N-I,W=null;if(this.$updating=!0,F!=0)if(k==="remove"){this[x?"$wrapData":"$rowLengthCache"].splice(I,F);var U=this.$foldData;W=this.getFoldsInRange(v),this.removeFolds(W);var B=this.getFoldLine(L.row),H=0;if(B){B.addRemoveChars(L.row,L.column,M.column-L.column),B.shiftRow(-F);var K=this.getFoldLine(I);K&&K!==B&&(K.merge(B),B=K),H=U.indexOf(B)+1}for(H;H<U.length;H++){var B=U[H];B.start.row>=L.row&&B.shiftRow(-F)}N=I}else{var V=Array(F);V.unshift(I,0);var j=x?this.$wrapData:this.$rowLengthCache;j.splice.apply(j,V);var U=this.$foldData,B=this.getFoldLine(I),H=0;if(B){var Q=B.range.compareInside(M.row,M.column);Q==0?(B=B.split(M.row,M.column),B&&(B.shiftRow(F),B.addRemoveChars(N,0,L.column-M.column))):Q==-1&&(B.addRemoveChars(I,0,L.column-M.column),B.shiftRow(F)),H=U.indexOf(B)+1}for(H;H<U.length;H++){var B=U[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,M.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},$.prototype.$updateRowLengthCache=function(v,x){this.$rowLengthCache[v]=null,this.$rowLengthCache[x]=null},$.prototype.$updateWrapData=function(v,x){var k=this.doc.getAllLines(),M=this.getTabSize(),L=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(U,B,H,K){var V;if(U!=null){V=this.$getDisplayTokens(U,N.length),V[0]=C;for(var j=1;j<V.length;j++)V[j]=w}else V=this.$getDisplayTokens(k[B].substring(K,H),N.length);N=N.concat(V)}).bind(this),F.end.row,k[F.end.row].length+1),L[F.start.row]=this.$computeWrapSplits(N,I,M),W=F.end.row+1):(N=this.$getDisplayTokens(k[W]),L[W]=this.$computeWrapSplits(N,I,M),W++)},$.prototype.$computeWrapSplits=function(v,x,k){if(v.length==0)return[];var M=[],L=v.length,I=0,N=0,F=this.$wrapAsCode,W=this.$indentedSoftWrap,U=x<=Math.max(2*k,8)||W===!1?0:Math.floor(x/2);function B(){var Q=0;if(U===0)return Q;if(W)for(var q=0;q<v.length;q++){var Z=v[q];if(Z==R)Q+=1;else if(Z==E)Q+=k;else{if(Z==T)continue;break}}return F&&W!==!1&&(Q+=k),Math.min(Q,U)}function H(Q){for(var q=Q-I,Z=I;Z<Q;Z++){var ue=v[Z];(ue===12||ue===2)&&(q-=1)}M.length||(K=B(),M.indent=K),N+=q,M.push(N),I=Q}for(var K=0;L-I>x-K;){var V=I+x-K;if(v[V-1]>=R&&v[V]>=R){H(V);continue}if(v[V]==C||v[V]==w){for(V;V!=I-1&&v[V]!=C;V--);if(V>I){H(V);continue}for(V=I+x,V;V<v.length&&v[V]==w;V++);if(V==v.length)break;H(V);continue}for(var j=Math.max(V-(x-(x>>2)),I-1);V>j&&v[V]<C;)V--;if(F){for(;V>j&&v[V]<C;)V--;for(;V>j&&v[V]==A;)V--}else for(;V>j&&v[V]<R;)V--;if(V>j){H(++V);continue}V=I+x,v[V]==_&&V--,H(V-K)}return M},$.prototype.$getDisplayTokens=function(v,x){var k=[],M;x=x||0;for(var L=0;L<v.length;L++){var I=v.charCodeAt(L);if(I==9){M=this.getScreenTabSize(k.length+x),k.push(E);for(var N=1;N<M;N++)k.push(T)}else I==32?k.push(R):I>39&&I<48||I>57&&I<64?k.push(A):I>=4352&&O(I)?k.push(S,_):k.push(S)}return k},$.prototype.$getStringScreenWidth=function(v,x,k){if(x==0)return[0,0];x==null&&(x=1/0),k=k||0;var M,L;for(L=0;L<v.length&&(M=v.charCodeAt(L),M==9?k+=this.getScreenTabSize(k):M>=4352&&O(M)?k+=2:k+=1,!(k>x));L++);return[k,L]},$.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},$.prototype.getRowLineCount=function(v){return!this.$useWrapMode||!this.$wrapData[v]?1:this.$wrapData[v].length+1},$.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},$.prototype.getScreenLastRowColumn=function(v){var x=this.screenToDocumentPosition(v,Number.MAX_VALUE);return this.documentToScreenColumn(x.row,x.column)},$.prototype.getDocumentLastRowColumn=function(v,x){var k=this.documentToScreenRow(v,x);return this.getScreenLastRowColumn(k)},$.prototype.getDocumentLastRowColumnPosition=function(v,x){var k=this.documentToScreenRow(v,x);return this.screenToDocumentPosition(k,Number.MAX_VALUE/10)},$.prototype.getRowSplitData=function(v){if(this.$useWrapMode)return this.$wrapData[v]},$.prototype.getScreenTabSize=function(v){return this.$tabSize-(v%this.$tabSize|0)},$.prototype.screenToDocumentRow=function(v,x){return this.screenToDocumentPosition(v,x).row},$.prototype.screenToDocumentColumn=function(v,x){return this.screenToDocumentPosition(v,x).column},$.prototype.screenToDocumentPosition=function(v,x,k){if(v<0)return{row:0,column:0};var M,L=0,I=0,N,F=0,W=0,U=this.$screenRowCache,B=this.$getRowCacheIndex(U,v),H=U.length;if(H&&B>=0)var F=U[B],L=this.$docRowCache[B],K=v>U[H-1];else var K=!H;for(var V=this.getLength()-1,j=this.getNextFoldLine(L),Q=j?j.start.row:1/0;F<=v&&(W=this.getRowLength(L),!(F+W>v||L>=V));)F+=W,L++,L>Q&&(L=j.end.row+1,j=this.getNextFoldLine(L,j),Q=j?j.start.row:1/0),K&&(this.$docRowCache.push(L),this.$screenRowCache.push(F));if(j&&j.start.row<=L)M=this.getFoldDisplayLine(j),L=j.start.row;else{if(F+W<=v||L>V)return{row:V,column:this.getLine(V).length};M=this.getLine(L),j=null}var q=0,Z=Math.floor(v-F);if(this.$useWrapMode){var ue=this.$wrapData[L];ue&&(N=ue[Z],Z>0&&ue.length&&(q=ue.indent,I=ue[Z-1]||ue[ue.length-1],M=M.substring(I)))}return k!==void 0&&this.$bidiHandler.isBidiRow(F+Z,L,Z)&&(x=this.$bidiHandler.offsetToCol(k)),I+=this.$getStringScreenWidth(M,x-q)[1],this.$useWrapMode&&I>=N&&(I=N-1),j?j.idxToPosition(I):{row:L,column:I}},$.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 M=0,L=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,U=this.$getRowCacheIndex(W,v),B=W.length;if(B&&U>=0)var F=W[U],M=this.$screenRowCache[U],H=v>W[B-1];else var H=!B;for(var K=this.getNextFoldLine(F),V=K?K.start.row:1/0;F<v;){if(F>=V){if(N=K.end.row+1,N>v)break;K=this.getNextFoldLine(N,K),V=K?K.start.row:1/0}else N=F+1;M+=this.getRowLength(F),F=N,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(M))}var j="";K&&F>=V?(j=this.getFoldDisplayLine(K,v,x),L=K.start.row):(j=this.getLine(v).substring(0,x),L=v);var Q=0;if(this.$useWrapMode){var q=this.$wrapData[L];if(q){for(var Z=0;j.length>=q[Z];)M++,Z++;j=j.substring(q[Z-1]||0,j.length),Q=Z>0?q.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(M+=this.lineWidgets[F].rowsAbove),{row:M,column:Q+this.$getStringScreenWidth(j)[0]}},$.prototype.documentToScreenColumn=function(v,x){return this.documentToScreenPosition(v,x).column},$.prototype.documentToScreenRow=function(v,x){return this.documentToScreenPosition(v,x).row},$.prototype.getScreenLength=function(){var v=0,x=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,I=0,M=0,x=this.$foldData[M++],N=x?x.start.row:1/0;I<L;){var F=this.$wrapData[I];v+=F?F.length+1:1,I++,I>N&&(I=x.end.row+1,x=this.$foldData[M++],N=x?x.start.row:1/0)}else{v=this.getLength();for(var k=this.$foldData,M=0;M<k.length;M++)x=k[M],v-=x.end.row-x.start.row}return this.lineWidgets&&(v+=this.$getWidgetScreenLength()),v},$.prototype.$setFontMetrics=function(v){this.$enableVarChar&&(this.$getStringScreenWidth=function(x,k,M){if(k===0)return[0,0];k||(k=1/0),M=M||0;var L,I;for(I=0;I<x.length&&(L=x.charAt(I),L===" "?M+=this.getScreenTabSize(M):M+=v.getCharacterWidth(L),!(M>k));I++);return[M,I]})},$.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]},$.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()},$}();y.$uid=0,y.prototype.$modes=o.$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,a.implement(y.prototype,p);var S=1,_=2,C=3,w=4,A=9,R=10,E=11,T=12;function O($){return $<4352?!1:$>=4352&&$<=4447||$>=4515&&$<=4519||$>=4602&&$<=4607||$>=9001&&$<=9002||$>=11904&&$<=11929||$>=11931&&$<=12019||$>=12032&&$<=12245||$>=12272&&$<=12283||$>=12288&&$<=12350||$>=12353&&$<=12438||$>=12441&&$<=12543||$>=12549&&$<=12589||$>=12593&&$<=12686||$>=12688&&$<=12730||$>=12736&&$<=12771||$>=12784&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=13054||$>=13056&&$<=19903||$>=19968&&$<=42124||$>=42128&&$<=42182||$>=43360&&$<=43388||$>=44032&&$<=55203||$>=55216&&$<=55238||$>=55243&&$<=55291||$>=63744&&$<=64255||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=65281&&$<=65376||$>=65504&&$<=65510}n("./edit_session/folding").Folding.call(y.prototype),n("./edit_session/bracket_match").BracketMatch.call(y.prototype),o.defineOptions(y.prototype,"session",{wrap:{set:function($){if(!$||$=="off"?$=!1:$=="free"?$=!0:$=="printMargin"?$=-1:typeof $=="string"&&($=parseInt($,10)||!1),this.$wrap!=$)if(this.$wrap=$,!$)this.setUseWrapMode(!1);else{var v=typeof $=="number"?$: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($){$=$=="auto"?this.$mode.type!="text":$!="text",$!=this.$wrapAsCode&&(this.$wrapAsCode=$,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($){this.$useWorker=$,this.$stopWorker(),$&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function($){$=parseInt($),$>0&&this.$tabSize!==$&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=$,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function($){this.setFoldStyle($)},handlesSet:!0},overwrite:{set:function($){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function($){this.doc.setNewLineMode($)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function($){this.setMode($)},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,r){var a=n("./lib/lang"),f=n("./lib/oop"),g=n("./range").Range,o=function(){function u(){this.$options={}}return u.prototype.set=function(c){return f.mixin(this.$options,c),this},u.prototype.getOptions=function(){return a.copyObject(this.$options)},u.prototype.setOptions=function(c){this.$options=c},u.prototype.find=function(c){var h=this.$options,d=this.$matchIterator(c,h);if(!d)return!1;var m=null;return d.forEach(function(b,y,S,_){return m=new g(b,y,S,_),y==_&&h.start&&h.start.start&&h.skipCurrent!=!1&&m.isEqual(h.start)?(m=null,!1):!0}),m},u.prototype.findAll=function(c){var h=this.$options;if(!h.needle)return[];this.$assembleRegExp(h);var d=h.range,m=d?c.getLines(d.start.row,d.end.row):c.doc.getAllLines(),b=[],y=h.re;if(h.$isMultiLine){var S=y.length,_=m.length-S,C;e:for(var w=y.offset||0;w<=_;w++){for(var A=0;A<S;A++)if(m[w+A].search(y[A])==-1)continue e;var R=m[w],E=m[w+S-1],T=R.length-R.match(y[0])[0].length,O=E.match(y[S-1])[0].length;C&&C.end.row===w&&C.end.column>T||(b.push(C=new g(w,T,w+S-1,O)),S>2&&(w=w+S-2))}}else for(var $,v=0;v<m.length;v++)if(this.$isMultilineSearch(h)){var x=m.length-1;if($=this.$multiLineForward(c,y,v,x),$){var k=$.endRow<=x?$.endRow-1:x;k>v&&(v=k),b.push(new g($.startRow,$.startCol,$.endRow,$.endCol))}}else{$=a.getMatchOffsets(m[v],y);for(var A=0;A<$.length;A++){var M=$[A];b.push(new g(v,M.offset,v,M.offset+M.length))}}if(d){for(var L=d.start.column,I=d.end.column,v=0,A=b.length-1;v<A&&b[v].start.column<L&&b[v].start.row==0;)v++;for(var N=d.end.row-d.start.row;v<A&&b[A].end.column>I&&b[A].end.row==N;)A--;for(b=b.slice(v,A+1),v=0,A=b.length;v<A;v++)b[v].start.row+=d.start.row,b[v].end.row+=d.start.row}return b},u.prototype.parseReplaceString=function(c){for(var h={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},d="",m=0,b=c.length;m<b;m++){var y=c.charCodeAt(m);if(y===h.Backslash){if(m++,m>=b){d+="\\";break}var S=c.charCodeAt(m);switch(S){case h.Backslash:d+="\\";break;case h.n:d+=`
|
805
|
+
`;break;case h.t:d+=" ";break}continue}if(y===h.DollarSign){if(m++,m>=b){d+="$";break}var _=c.charCodeAt(m);if(_===h.DollarSign){d+="$$";continue}if(_===h.Digit0||_===h.Ampersand){d+="$&";continue}if(h.Digit1<=_&&_<=h.Digit9){d+="$"+c[m];continue}}d+=c[m]}return d||c},u.prototype.replace=function(c,h){var d=this.$options,m=this.$assembleRegExp(d);if(d.$isMultiLine)return h;if(m){var b=this.$isMultilineSearch(d);b&&(c=c.replace(/\r\n|\r|\n/g,`
|
806
|
+
`));var y=m.exec(c);if(!y||!b&&y[0].length!=c.length)return null;if(h=d.regExp?this.parseReplaceString(h):h.replace(/\$/g,"$$$$"),h=c.replace(m,h),d.preserveCase){h=h.split("");for(var S=Math.min(c.length,c.length);S--;){var _=c[S];_&&_.toLowerCase()!=_?h[S]=h[S].toUpperCase():h[S]=h[S].toLowerCase()}h=h.join("")}return h}},u.prototype.$assembleRegExp=function(c,h){if(c.needle instanceof RegExp)return c.re=c.needle;var d=c.needle;if(!c.needle)return c.re=!1;c.regExp||(d=a.escapeRegExp(d));var m=c.caseSensitive?"gm":"gmi";try{new RegExp(d,"u"),c.$supportsUnicodeFlag=!0,m+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(d=p(d,c)),c.$isMultiLine=!h&&/[\n\r]/.test(d),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(d,m);try{var b=new RegExp(d,m)}catch{b=!1}return c.re=b},u.prototype.$assembleMultilineRegExp=function(c,h){for(var d=c.replace(/\r\n|\r|\n/g,`$
|
807
|
+
^`).split(`
|
808
|
+
`),m=[],b=0;b<d.length;b++)try{m.push(new RegExp(d[b],h))}catch{return!1}return m},u.prototype.$isMultilineSearch=function(c){return c.re&&/\\r\\n|\\r|\\n/.test(c.re.source)&&c.regExp&&!c.$isMultiLine},u.prototype.$multiLineForward=function(c,h,d,m){for(var b,y=l(c,d),S=d;S<=m;){for(var _=0;_<y&&!(S>m);_++){var C=c.getLine(S++);b=b==null?C:b+`
|
809
|
+
`+C}var w=h.exec(b);if(h.lastIndex=0,w){var A=b.slice(0,w.index).split(`
|
810
|
+
`),R=w[0].split(`
|
811
|
+
`),E=d+A.length-1,T=A[A.length-1].length,O=E+R.length-1,$=R.length==1?T+R[0].length:R[R.length-1].length;return{startRow:E,startCol:T,endRow:O,endCol:$}}}return null},u.prototype.$multiLineBackward=function(c,h,d,m,b){for(var y,S=l(c,m),_=c.getLine(m).length-d,C=m;C>=b;){for(var w=0;w<S&&C>=b;w++){var A=c.getLine(C--);y=y==null?A:A+`
|
812
|
+
`+y}var R=s(y,h,_);if(R){var E=y.slice(0,R.index).split(`
|
813
|
+
`),T=R[0].split(`
|
814
|
+
`),O=C+E.length,$=E[E.length-1].length,v=O+T.length-1,x=T.length==1?$+T[0].length:T[T.length-1].length;return{startRow:O,startCol:$,endRow:v,endCol:x}}}return null},u.prototype.$matchIterator=function(c,h){var d=this.$assembleRegExp(h);if(!d)return!1;var m=this.$isMultilineSearch(h),b=this.$multiLineForward,y=this.$multiLineBackward,S=h.backwards==!0,_=h.skipCurrent!=!1,C=d.unicode,w=h.range,A=h.start;A||(A=w?w[S?"end":"start"]:c.selection.getRange()),A.start&&(A=A[_!=S?"end":"start"]);var R=w?w.start.row:0,E=w?w.end.row:c.getLength()-1;if(S)var T=function(v){var x=A.row;if(!$(x,A.column,v)){for(x--;x>=R;x--)if($(x,Number.MAX_VALUE,v))return;if(h.wrap!=!1){for(x=E,R=A.row;x>=R;x--)if($(x,Number.MAX_VALUE,v))return}}};else var T=function(x){var k=A.row;if(!$(k,A.column,x)){for(k=k+1;k<=E;k++)if($(k,0,x))return;if(h.wrap!=!1){for(k=R,E=A.row;k<=E;k++)if($(k,0,x))return}}};if(h.$isMultiLine)var O=d.length,$=function(v,x,k){var M=S?v-O+1:v;if(!(M<0||M+O>c.getLength())){var L=c.getLine(M),I=L.search(d[0]);if(!(!S&&I<x||I===-1)){for(var N=1;N<O;N++)if(L=c.getLine(M+N),L.search(d[N])==-1)return;var F=L.match(d[O-1])[0].length;if(!(S&&F>x)&&k(M,I,M+O-1,F))return!0}}};else if(S)var $=function(x,k,M){if(m){var L=y(c,d,k,x,R);if(!L)return!1;if(M(L.startRow,L.startCol,L.endRow,L.endCol))return!0}else{var I=c.getLine(x),N=[],F,W=0;for(d.lastIndex=0;F=d.exec(I);){var U=F[0].length;if(W=F.index,!U){if(W>=I.length)break;d.lastIndex=W+=a.skipEmptyMatch(I,W,C)}if(F.index+U>k)break;N.push(F.index,U)}for(var B=N.length-1;B>=0;B-=2){var H=N[B-1],U=N[B];if(M(x,H,x,H+U))return!0}}};else var $=function(x,k,M){if(d.lastIndex=k,m){var L=b(c,d,x,E);if(L){var I=L.endRow<=E?L.endRow-1:E;I>x&&(x=I)}if(!L)return!1;if(M(L.startRow,L.startCol,L.endRow,L.endCol))return!0}else for(var N=c.getLine(x),F,W;W=d.exec(N);){var U=W[0].length;if(F=W.index,M(x,F,x,F+U))return!0;if(!U&&(d.lastIndex=F+=a.skipEmptyMatch(N,F,C),F>=N.length))return!1}};return{forEach:T}},u}();function p(u,c){var h=a.supportsLookbehind();function d(S,_){_===void 0&&(_=!0);var C=h&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return C.test(S)||c.regExp?h&&c.$supportsUnicodeFlag?_?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var m=Array.from(u),b=m[0],y=m[m.length-1];return d(b)+u+d(y,!1)}function s(u,c,h){for(var d=null,m=0;m<=u.length;){c.lastIndex=m;var b=c.exec(u);if(!b)break;var y=b.index+b[0].length;if(y>u.length-h)break;(!d||y>d.index+d[0].length)&&(d=b),m=b.index+1}return d}function l(u,c){var h=5e3,d={row:c,column:0},m=u.doc.positionToIndex(d),b=m+h,y=u.doc.indexToPosition(b),S=y.row;return S+1}i.Search=o}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,r){var a=this&&this.__extends||function(){var u=function(c,h){return u=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])},u(c,h)};return function(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");u(c,h);function d(){this.constructor=c}c.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}(),f=n("../lib/keys"),g=n("../lib/useragent"),o=f.KEY_MODS,p=function(){function u(c,h){this.$init(c,h,!1)}return u.prototype.$init=function(c,h,d){this.platform=h||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=d},u.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},u.prototype.removeCommand=function(c,h){var d=c&&(typeof c=="string"?c:c.name);c=this.commands[d],h||delete this.commands[d];var m=this.commandKeyBinding;for(var b in m){var y=m[b];if(y==c)delete m[b];else if(Array.isArray(y)){var S=y.indexOf(c);S!=-1&&(y.splice(S,1),y.length==1&&(m[b]=y[0]))}}},u.prototype.bindKey=function(c,h,d){if(typeof c=="object"&&c&&(d==null&&(d=c.position),c=c[this.platform]),!!c){if(typeof h=="function")return this.addCommand({exec:h,bindKey:c,name:h.name||c});c.split("|").forEach(function(m){var b="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(C){var w=this.parseKeys(C),A=o[w.hashId]+w.key;b+=(b?" ":"")+A,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var S=this.parseKeys(m),_=o[S.hashId]+S.key;this._addCommandToBinding(b+_,h,d)},this)}},u.prototype._addCommandToBinding=function(c,h,d){var m=this.commandKeyBinding,b;if(!h)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=h;else{Array.isArray(m[c])?(b=m[c].indexOf(h))!=-1&&m[c].splice(b,1):m[c]=[m[c]],typeof d!="number"&&(d=s(h));var y=m[c];for(b=0;b<y.length;b++){var S=y[b],_=s(S);if(_>d)break}y.splice(b,0,h)}},u.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(h){var d=c[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)},u.prototype.removeCommands=function(c){Object.keys(c).forEach(function(h){this.removeCommand(c[h])},this)},u.prototype.bindKeys=function(c){Object.keys(c).forEach(function(h){this.bindKey(h,c[h])},this)},u.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},u.prototype.parseKeys=function(c){var h=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),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 S=f.KEY_MODS[h[y]];if(S==null)return typeof console<"u"&&console.error("invalid modifier "+h[y]+" in "+c),!1;b|=S}return{key:d,hashId:b}},u.prototype.findKeyCommand=function(c,h){var d=o[c]+h;return this.commandKeyBinding[d]},u.prototype.handleKeyboard=function(c,h,d,m){if(!(m<0)){var b=o[h]+d,y=this.commandKeyBinding[b];return c.$keyChain&&(c.$keyChain+=" "+b,y=this.commandKeyBinding[c.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||b,{command:"null"}):(c.$keyChain&&((!h||h==4)&&d.length==1?c.$keyChain=c.$keyChain.slice(0,-b.length-1):(h==-1||m>0)&&(c.$keyChain="")),{command:y})}},u.prototype.getStatusText=function(c,h){return h.$keyChain||""},u}();function s(u){return typeof u=="object"&&u.bindKey&&u.bindKey.position||(u.isDefault?-100:0)}var l=function(u){a(c,u);function c(h,d){var m=u.call(this,h,d)||this;return m.$singleCommand=!0,m}return c}(p);l.call=function(u,c,h){p.prototype.$init.call(u,c,h,!0)},p.call=function(u,c,h){p.prototype.$init.call(u,c,h,!1)},i.HashHandler=l,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,r){var a=this&&this.__extends||function(){var s=function(l,u){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(c[d]=h[d])},s(l,u)};return function(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");s(l,u);function c(){this.constructor=l}l.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),f=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,o=n("../lib/event_emitter").EventEmitter,p=function(s){a(l,s);function l(u,c){var h=s.call(this,c,u)||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 l.prototype.exec=function(u,c,h){if(Array.isArray(u)){for(var d=u.length;d--;)if(this.exec(u[d],c,h))return!0;return!1}if(typeof u=="string"&&(u=this.commands[u]),!this.canExecute(u,c))return!1;var m={editor:c,command:u,args:h};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},l.prototype.canExecute=function(u,c){return typeof u=="string"&&(u=this.commands[u]),!(!u||c&&c.$readOnly&&!u.readOnly||this.$checkCommandState!=!1&&u.isAvailable&&!u.isAvailable(c))},l.prototype.toggleRecording=function(u){if(!this.$inReplay)return u&&u._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(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(u){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(u);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,u):this.exec(c[0],u,c[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(u){return u.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},l}(g);f.implement(p.prototype,o),i.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,r){var a=n("../lib/lang"),f=n("../config"),g=n("../range").Range;function o(s,l){return{win:s,mac:l}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:o("Ctrl-,","Command-,"),exec:function(s){f.loadModule("ace/ext/settings_menu",function(l){l.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:o("Alt-E","F4"),exec:function(s){f.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(s){f.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:o("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:o(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:o("Ctrl-L","Command-L"),exec:function(s,l){typeof l=="number"&&!isNaN(l)&&s.gotoLine(l),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:o("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:o("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:o("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:o("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:o("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:o("Ctrl-F","Command-F"),exec:function(s){f.loadModule("ace/ext/searchbox",function(l){l.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:o("Up","Up|Ctrl-P"),exec:function(s,l){s.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:o("Down","Down|Ctrl-N"),exec:function(s,l){s.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:o("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:o("Left","Left|Ctrl-B"),exec:function(s,l){s.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:o("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:o("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:o("Right","Right|Ctrl-F"),exec:function(s,l){s.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:o(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:o(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:o("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:o("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:o("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:o("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var l=s.$copyWithEmptySelection&&s.selection.isEmpty(),u=l?s.selection.getLineRange():s.selection.getRange();s._emit("cut",u),u.isEmpty()||s.session.remove(u),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,l){s.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:o("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:o("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(s){f.loadModule("ace/ext/searchbox",function(l){l.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:o("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:o("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:o("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(s){var l=s.selection.getRange();l.start.column=0,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(s){var l=s.selection.getRange();l.end.column=Number.MAX_VALUE,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:o("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,l){s.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,l){s.insert(a.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:o(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:o(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var l=s.selection.getRange();l.start.column=l.end.column=0,l.end.row++,s.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:o("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:o(null,null),exec:function(s){for(var l=s.selection.isBackwards(),u=l?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),c=l?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),h=s.session.doc.getLine(u.row).length,d=s.session.doc.getTextRange(s.selection.getRange()),m=d.replace(/\n\s*/," ").length,b=s.session.doc.getLine(u.row),y=u.row+1;y<=c.row+1;y++){var S=a.stringTrimLeft(a.stringTrimRight(s.session.doc.getLine(y)));S.length!==0&&(S=" "+S),b+=S}c.row+1<s.session.doc.getLength()-1&&(b+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new g(u.row,0,c.row+2,0),b),m>0?(s.selection.moveCursorTo(u.row,u.column),s.selection.selectTo(u.row,u.column+m)):(h=s.session.doc.getLine(u.row).length>h?h+1:h,s.selection.moveCursorTo(u.row,h))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:o(null,null),exec:function(s){var l=s.session.doc.getLength()-1,u=s.session.doc.getLine(l).length,c=s.selection.rangeList.ranges,h=[];c.length<1&&(c=[s.selection.getRange()]);for(var d=0;d<c.length;d++)d==c.length-1&&(c[d].end.row===l&&c[d].end.column===u||h.push(new g(c[d].end.row,c[d].end.column,l,u))),d===0?c[d].start.row===0&&c[d].start.column===0||h.push(new g(0,0,c[d].start.row,c[d].start.column)):h.push(new g(c[d-1].end.row,c[d-1].end.column,c[d].start.row,c[d].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var d=0;d<h.length;d++)s.selection.addRange(h[d],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
|
815
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var l=s.getCursorPosition();s.selection.moveTo(l.row-1,Number.MAX_VALUE),s.insert(`
|
816
|
+
`),l.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:o("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:o(null,null),exec:function(s){s.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(s){s.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,r){var a=n("../lib/keys"),f=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.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(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===a.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=a.enter)return;s.preventDefault();var l=this.editor.getCursorPosition().row;this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),setTimeout((function(){var u=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(u),h=this.$findNearestAnnotation(u);if(!(c===null&&h===null)){if(c===null&&h!==null){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&h===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(h-u)<Math.abs(c-u)){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new o(s,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===a.tab){s.preventDefault();return}if(s.keyCode===a.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===a.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===a.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===a.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===a.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===a.enter||s.keyCode===a.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var l=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==l&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(l),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var u=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=u.getBoundingClientRect(),h=this.annotationTooltip.getElement().style;h.left=c.right+"px",h.top=c.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(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),u=this.$getFoldWidget(s).style.display!=="none";return l&&u},p.prototype.$isAnnotationVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),u=this.$getAnnotation(s).style.display!=="none";return l&&u},p.prototype.$getFoldWidget=function(s){var l=this.lines.get(s),u=l.element;return u.childNodes[1]},p.prototype.$getAnnotation=function(s){var l=this.lines.get(s),u=l.element;return u.childNodes[2]},p.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isFoldWidgetVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+l))return s+l}return null},p.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isAnnotationVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+l))return s+l}return null},p.prototype.$focusFoldWidget=function(s){if(s!=null){var l=this.$getFoldWidget(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},p.prototype.$focusAnnotation=function(s){if(s!=null){var l=this.$getAnnotation(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},p.prototype.$blurFoldWidget=function(s){var l=this.$getFoldWidget(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},p.prototype.$blurAnnotation=function(s){var l=this.$getAnnotation(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var l=this.$findNearestAnnotation(this.activeRowIndex);if(l==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=l,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var u=this.$findNearestFoldWidget(this.activeRowIndex);if(u==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=u,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(s){var l=this.lines.get(s);return l?l.row:null},p.prototype.$rowToRowIndex=function(s){for(var l=0;l<this.lines.getLength();l++){var u=this.lines.get(l);if(u.row==s)return l}return null},p}();i.GutterKeyboardHandler=g;var o=function(){function p(s,l){this.gutterKeyboardHandler=l,this.domEvent=s}return p.prototype.getKey=function(){return a.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=o}),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,r){var a=this&&this.__values||function($){var v=typeof Symbol=="function"&&Symbol.iterator,x=v&&$[v],k=0;if(x)return x.call($);if($&&typeof $.length=="number")return{next:function(){return $&&k>=$.length&&($=void 0),{value:$&&$[k++],done:!$}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),g=n("./lib/dom"),o=n("./lib/lang"),p=n("./lib/useragent"),s=n("./keyboard/textinput").TextInput,l=n("./mouse/mouse_handler").MouseHandler,u=n("./mouse/fold_handler").FoldHandler,c=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,S=n("./commands/default_commands").commands,_=n("./config"),C=n("./token_iterator").TokenIterator,w=n("./keyboard/gutter_handler").GutterKeyboardHandler,A=n("./config").nls,R=n("./clipboard"),E=n("./lib/keys"),T=function(){function $(v,x,k){this.session,this.$toDestroy=[];var M=v.getContainerElement();this.container=M,this.renderer=v,this.id="editor"+ ++$.$uid,this.commands=new y(p.isMac?"mac":"win",S),typeof document=="object"&&(this.textInput=new s(v.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new u(this)),this.keyBinding=new c(this),this.$search=new d().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(L,I){I._$emitInputEvent.schedule(31)}),this.setSession(x||k&&k.session||new h("")),_.resetOptions(this),k&&this.setOptions(k),_._signal("editor",this)}return $.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},$.prototype.startOperation=function(v){this.session.startOperation(v)},$.prototype.endOperation=function(v){this.session.endOperation(v)},$.prototype.onStartOperation=function(v){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,v||(this.previousCommand=null)},$.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 M=this.selection.getRange(),L=this.renderer.layerConfig;(M.start.row>=L.lastRow||M.end.row<=L.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}},$.prototype.$historyTracker=function(v){if(this.$mergeUndoDeltas){var x=this.prevOp,k=this.$mergeableCommands,M=x.command&&v.command.name==x.command.name;if(v.command.name=="insertstring"){var L=v.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),M=M&&this.mergeNextCommand&&(!/\s/.test(L)||/\s/.test(x.args)),this.mergeNextCommand=!0}else M=M&&k.indexOf(v.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(M=!1),M?this.session.mergeUndoDeltas=!0:k.indexOf(v.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(v,x){if(v&&typeof v=="string"&&v!="ace"){this.$keybindingId=v;var k=this;_.loadModule(["keybinding",v],function(M){k.$keybindingId==v&&k.keyBinding.setKeyboardHandler(M&&M.handler),x&&x()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(v),x&&x()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.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()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(v,x){return this.session.doc.setValue(v),x?x==1?this.navigateFileEnd():x==-1&&this.navigateFileStart():this.selectAll(),v},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(v){this.renderer.onResize(v)},$.prototype.setTheme=function(v,x){this.renderer.setTheme(v,x)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(v){this.renderer.setStyle(v)},$.prototype.unsetStyle=function(v){this.renderer.unsetStyle(v)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(v){this.setOption("fontSize",v)},$.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(),M=v.getKeyboardHandler(),L=M&&M.$getDirectionForHighlight&&M.$getDirectionForHighlight(v),I=x.getMatchingBracketRanges(k,L);if(!I){var N=new C(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 U="ace_bracket";Array.isArray(I)?I.length==1&&(U="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,U,"text")})},v.getHighlightIndentGuides()&&v.renderer.$textLayer.$highlightIndentGuide()}},50)}},$.prototype.focus=function(){this.textInput.focus()},$.prototype.isFocused=function(){return this.textInput.isFocused()},$.prototype.blur=function(){this.textInput.blur()},$.prototype.onFocus=function(v){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",v))},$.prototype.onBlur=function(v){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",v))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.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()},$.prototype.onTokenizerUpdate=function(v){var x=v.data;this.renderer.updateLines(x.first,x.last)},$.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},$.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},$.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},$.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"))},$.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(),M=this.getSelectionStyle();x.$selectionMarker=x.addMarker(k,"ace_selection",M)}var L=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(L),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var v=this.session,x=this.getSelectionRange();if(!(x.isEmpty()||x.isMultiLine())){var k=x.start.column,M=x.end.column,L=v.getLine(x.start.row),I=L.substring(k,M);if(!(I.length>5e3||!/[\w\d]/.test(I))){var N=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:I}),F=L.substring(k-1,M+1);if(N.test(F))return N}}},$.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},$.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},$.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},$.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},$.prototype.onChangeMode=function(v){this.renderer.updateText(),this._emit("changeMode",v)},$.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},$.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},$.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},$.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},$.prototype.getCopyText=function(){var v=this.getSelectedText(),x=this.session.doc.getNewLineCharacter(),k=!1;if(!v&&this.$copyWithEmptySelection){k=!0;for(var M=this.selection.getAllRanges(),L=0;L<M.length;L++){var I=M[L];L&&M[L-1].start.row==I.start.row||(v+=this.session.getLine(I.start.row)+x)}}var N={text:v};return this._signal("copy",N),R.lineMode=k?N.text:!1,N.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(v,x){var k={text:v,event:x};this.commands.exec("paste",this,k)},$.prototype.$handlePaste=function(v){typeof v=="string"&&(v={text:v}),this._signal("paste",v);var x=v.text,k=x===R.lineMode,M=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)k?M.insert({row:this.selection.lead.row,column:0},x):this.insert(x);else if(k)this.selection.rangeList.ranges.forEach(function(U){M.insert({row:U.start.row,column:0},x)});else{var L=x.split(/\r\n|\r|\n/),I=this.selection.rangeList.ranges,N=L.length==2&&(!L[0]||!L[1]);if(L.length!=I.length||N)return this.commands.exec("insertstring",this,x);for(var F=I.length;F--;){var W=I[F];W.isEmpty()||M.remove(W),M.insert(W.start,L[F])}}},$.prototype.execCommand=function(v,x){return this.commands.exec(v,this,x)},$.prototype.insert=function(v,x){var k=this.session,M=k.getMode(),L=this.getCursorPosition();if(this.getBehavioursEnabled()&&!x){var I=M.transformAction(k.getState(L.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(`
|
817
|
+
`)==-1){var N=m.fromPoints(L,L);N.end.column+=v.length,this.session.remove(N)}}else{var N=this.getSelectionRange();L=this.session.remove(N),this.clearSelection()}if(v==`
|
818
|
+
`||v==`\r
|
819
|
+
`){var B=k.getLine(L.row);if(L.column>B.search(/\S|$/)){var F=B.substr(L.column).search(/\S|$/);k.doc.removeInLine(L.row,L.column,L.column+F)}}this.clearSelection();var W=L.column,U=k.getState(L.row),B=k.getLine(L.row),H=M.checkOutdent(U,B,v);if(k.insert(L,v),I&&I.selection&&(I.selection.length==2?this.selection.setSelectionRange(new m(L.row,W+I.selection[0],L.row,W+I.selection[1])):this.selection.setSelectionRange(new m(L.row+I.selection[0],I.selection[1],L.row+I.selection[2],I.selection[3]))),this.$enableAutoIndent){if(k.getDocument().isNewLine(v)){var K=M.getNextLineIndent(U,B.slice(0,L.column),k.getTabString());k.insert({row:L.row+1,column:0},K)}H&&M.autoOutdent(U,k,L.row)}},$.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(),M="",L="",I="",N=v.getTabString(),F=0;F<k.length;F++)for(var W=k[F].start.row,U=k[F].end.row,B=W;B<=U;B++){B>0&&(M=v.getState(B-1),L=v.getLine(B-1),I=x.getNextLineIndent(M,L,N));var H=v.getLine(B),K=x.$getIndent(H);if(I!==K){if(K.length>0){var V=new m(B,0,B,K.length);v.remove(V)}I.length>0&&v.insert({row:B,column:0},I)}x.autoOutdent(M,v,B)}},$.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()},$.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)}},$.prototype.onCommandKey=function(v,x,k){return this.keyBinding.onCommandKey(v,x,k)},$.prototype.setOverwrite=function(v){this.session.setOverwrite(v)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(v){this.setOption("scrollSpeed",v)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(v){this.setOption("dragDelay",v)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(v){this.setOption("selectionStyle",v)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(v){this.setOption("highlightActiveLine",v)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(v){this.setOption("highlightGutterLine",v)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(v){this.setOption("highlightSelectedWord",v)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(v){this.renderer.setAnimatedScroll(v)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(v){this.renderer.setShowInvisibles(v)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(v){this.renderer.setDisplayIndentGuides(v)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(v){this.renderer.setHighlightIndentGuides(v)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(v){this.renderer.setShowPrintMargin(v)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(v){this.renderer.setPrintMarginColumn(v)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(v){this.setOption("readOnly",v)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(v){this.setOption("behavioursEnabled",v)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(v){this.setOption("wrapBehavioursEnabled",v)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(v){this.setOption("showFoldWidgets",v)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(v){this.setOption("fadeFoldWidgets",v)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.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,M=k.getState(x.start.row),L=k.getMode().transformAction(M,"deletion",this,k,x);if(x.end.column===0){var I=k.getTextRange(x);if(I[I.length-1]==`
|
820
|
+
`){var N=k.getLine(x.end.row);/^\s+$/.test(N)&&(x.end.column=N.length)}}L&&(x=L)}this.session.remove(x),this.clearSelection()},$.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.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()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var v=this.getCursorPosition();this.insert(`
|
821
|
+
`),this.moveCursorToPosition(v)},$.prototype.setGhostText=function(v,x){this.renderer.setGhostText(v,x)},$.prototype.removeGhostText=function(){this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var v=this.getCursorPosition(),x=v.column;if(x!==0){var k=this.session.getLine(v.row),M,L;x<k.length?(M=k.charAt(x)+k.charAt(x-1),L=new m(v.row,x-1,v.row,x+1)):(M=k.charAt(x-1)+k.charAt(x-2),L=new m(v.row,x-2,v.row,x)),this.session.replace(L,M),this.session.selection.moveToPosition(L.end)}}},$.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)},$.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)},$.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 M=v.getTextRange(x);if(!/^\s+$/.test(M)){var k=this.$getSelectedRows();v.indentRows(k.first,k.last," ");return}}var L=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,U=o.stringRepeat(" ",W);else{for(var W=F%N;L[x.start.column-1]==" "&&W;)x.start.column--,W--;this.selection.setSelectionRange(x),U=" "}return this.insert(U)},$.prototype.blockIndent=function(){var v=this.$getSelectedRows();this.session.indentRows(v.first,v.last," ")},$.prototype.blockOutdent=function(){var v=this.session.getSelection();this.session.outdentRows(v.getRange())},$.prototype.sortLines=function(){for(var v=this.$getSelectedRows(),x=this.session,k=[],M=v.first;M<=v.last;M++)k.push(x.getLine(M));k.sort(function(N,F){return N.toLowerCase()<F.toLowerCase()?-1:N.toLowerCase()>F.toLowerCase()?1:0});for(var L=new m(0,0,0,0),M=v.first;M<=v.last;M++){var I=x.getLine(M);L.start.row=M,L.end.row=M,L.end.column=I.length,x.replace(L,k[M-v.first])}},$.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)},$.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)},$.prototype.getNumberAt=function(v,x){var k=/[\-]?[0-9]+(?:\.[0-9]+)?/g;k.lastIndex=0;for(var M=this.session.getLine(v);k.lastIndex<x;){var L=k.exec(M);if(L.index<=x&&L.index+L[0].length>=x){var I={value:L[0],start:L.index,end:L.index+L[0].length};return I}}return null},$.prototype.modifyNumber=function(v){var x=this.selection.getCursor().row,k=this.selection.getCursor().column,M=new m(x,k-1,x,k),L=this.session.getTextRange(M);if(!isNaN(parseFloat(L))&&isFinite(L)){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 U=W.toFixed(F),B=new m(x,I.start,x,I.end);this.session.replace(B,U),this.moveCursorTo(x,Math.max(I.start+1,k+U.length-I.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var v=this.selection.getCursor().row,x=this.selection.getCursor().column;this.selection.selectWord();var k=this.getSelectedText(),M=this.selection.getWordRange().start.column,L=k.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),I=x-M-1;I<0&&(I=0);var N=0,F=0,W=this;k.match(/[A-Za-z0-9_]+/)&&L.forEach(function(Z,ue){F=N+Z.length,I>=N&&I<=F&&(k=Z,W.selection.clearSelection(),W.moveCursorTo(v,N+M),W.selection.selectTo(v,F+M)),N=F});for(var U=this.$toggleWordPairs,B,H=0;H<U.length;H++)for(var K=U[H],V=0;V<=1;V++){var j=+!V,Q=k.match(new RegExp("^\\s?_?("+o.escapeRegExp(K[V])+")\\s?$","i"));if(Q){var q=k.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(Q[1])+")($|\\s)","g"));q&&(B=k.replace(new RegExp(o.escapeRegExp(K[V]),"i"),function(Z){var ue=K[j];return Z.toUpperCase()==Z?ue=ue.toUpperCase():Z.charAt(0).toUpperCase()==Z.charAt(0)&&(ue=ue.substr(0,0)+K[j].charAt(0).toUpperCase()+ue.substr(1)),ue}),this.insert(B),B="")}}},$.prototype.findLinkAt=function(v,x){var k,M,L=this.session.getLine(v),I=L.split(/((?:https?|ftp):\/\/[\S]+)/),N=x;N<0&&(N=0);var F=0,W=0,U;try{for(var B=a(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]+)/)){U=K.replace(/[\s:.,'";}\]]+$/,"");break}F=W}}catch(V){k={error:V}}finally{try{H&&!H.done&&(M=B.return)&&M.call(B)}finally{if(k)throw k.error}}return U},$.prototype.openLink=function(){var v=this.selection.getCursor(),x=this.findLinkAt(v.row,v.column);return x&&window.open(x,"_blank"),x!=null},$.prototype.removeLines=function(){var v=this.$getSelectedRows();this.session.removeFullLines(v.first,v.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var v=this.selection,x=this.session,k=v.getRange(),M=v.isBackwards();if(k.isEmpty()){var L=k.start.row;x.duplicateLines(L,L)}else{var I=M?k.start:k.end,N=x.insert(I,x.getTextRange(k));k.start=I,k.end=N,v.setSelectionRange(k,M)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(v,x,k){return this.session.moveText(v,x,k)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(v,x){var k,M,L=this.selection;if(!L.inMultiSelectMode||this.inVirtualSelectionMode){var I=L.toOrientedRange();k=this.$getSelectedRows(I),M=this.session.$moveLines(k.first,k.last,x?0:v),x&&v==-1&&(M=0),I.moveBy(M,0),L.fromOrientedRange(I)}else{var N=L.rangeList.ranges;L.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var F=0,W=0,U=N.length,B=0;B<U;B++){var H=B;N[B].moveBy(F,0),k=this.$getSelectedRows(N[B]);for(var K=k.first,V=k.last;++B<U;){W&&N[B].moveBy(W,0);var j=this.$getSelectedRows(N[B]);if(x&&j.first!=V)break;if(!x&&j.first>V+1)break;V=j.last}for(B--,F=this.session.$moveLines(K,V,x?0:v),x&&v==-1&&(H=B+1);H<=B;)N[H].moveBy(F,0),H++;x||(F=0),W+=F}L.fromOrientedRange(L.ranges[0]),L.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(v){return v=(v||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(v.start.row),last:this.session.getRowFoldEnd(v.end.row)}},$.prototype.onCompositionStart=function(v){this.renderer.showComposition(v)},$.prototype.onCompositionUpdate=function(v){this.renderer.setCompositionText(v)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(v){return v>=this.getFirstVisibleRow()&&v<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(v){return v>=this.renderer.getFirstFullyVisibleRow()&&v<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(v,x){var k=this.renderer,M=this.renderer.layerConfig,L=v*Math.floor(M.height/M.lineHeight);x===!0?this.selection.$moveSelection(function(){this.moveCursorBy(L,0)}):x===!1&&(this.selection.moveCursorBy(L,0),this.selection.clearSelection());var I=k.scrollTop;k.scrollBy(0,L*M.lineHeight),x!=null&&k.scrollCursorIntoView(null,.5),k.animateScrolling(I)},$.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},$.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},$.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},$.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},$.prototype.scrollPageDown=function(){this.$moveByPage(1)},$.prototype.scrollPageUp=function(){this.$moveByPage(-1)},$.prototype.scrollToRow=function(v){this.renderer.scrollToRow(v)},$.prototype.scrollToLine=function(v,x,k,M){this.renderer.scrollToLine(v,x,k,M)},$.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)},$.prototype.getCursorPosition=function(){return this.selection.getCursor()},$.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},$.prototype.getSelectionRange=function(){return this.selection.getRange()},$.prototype.selectAll=function(){this.selection.selectAll()},$.prototype.clearSelection=function(){this.selection.clearSelection()},$.prototype.moveCursorTo=function(v,x){this.selection.moveCursorTo(v,x)},$.prototype.moveCursorToPosition=function(v){this.selection.moveCursorToPosition(v)},$.prototype.jumpToMatching=function(v,x){var k=this.getCursorPosition(),M=new C(this.session,k.row,k.column),L=M.getCurrentToken(),I=0;L&&L.type.indexOf("tag-name")!==-1&&(L=M.stepBackward());var N=L||M.stepForward();if(N){var F,W=!1,U={},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(U[H])&&(U[H]=0),N.value[B]){case"(":case"[":case"{":U[H]++;break;case")":case"]":case"}":U[H]--,U[H]===-1&&(F="bracket",W=!0);break}}else N.type.indexOf("tag-name")!==-1&&(isNaN(U[N.value])&&(U[N.value]=0),L.value==="<"&&I>1?U[N.value]++:L.value==="</"&&U[N.value]--,U[N.value]===-1&&(F="tag",W=!0));W||(L=N,I++,N=M.stepForward(),B=0)}while(N&&!W);if(F){var V,j;if(F==="bracket")V=this.session.getBracketRange(k),V||(V=new m(M.getCurrentTokenRow(),M.getCurrentTokenColumn()+B-1,M.getCurrentTokenRow(),M.getCurrentTokenColumn()+B-1),j=V.start,(x||j.row===k.row&&Math.abs(j.column-k.column)<2)&&(V=this.session.getBracketRange(j)));else if(F==="tag"){if(!N||N.type.indexOf("tag-name")===-1)return;if(V=new m(M.getCurrentTokenRow(),M.getCurrentTokenColumn()-2,M.getCurrentTokenRow(),M.getCurrentTokenColumn()-2),V.compare(k.row,k.column)===0){var Q=this.session.getMatchingTags(k);Q&&(Q.openTag.contains(k.row,k.column)?(V=Q.closeTag,j=V.start):(V=Q.openTag,Q.closeTag.start.row===k.row&&Q.closeTag.start.column===k.column?j=V.end:j=V.start))}j=j||V.start}j=V&&V.cursor||j,j&&(v?V&&x?this.selection.setRange(V):V&&V.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(j.row,j.column):this.selection.moveTo(j.row,j.column))}}},$.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)},$.prototype.navigateTo=function(v,x){this.selection.moveTo(v,x)},$.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)},$.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)},$.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()},$.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()},$.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},$.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},$.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},$.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},$.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},$.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},$.prototype.replace=function(v,x){x&&this.$search.set(x);var k=this.$search.find(this.session),M=0;return k&&(this.$tryReplace(k,v)&&(M=1),this.selection.setSelectionRange(k),this.renderer.scrollSelectionIntoView(k.start,k.end)),M},$.prototype.replaceAll=function(v,x){x&&this.$search.set(x);var k=this.$search.findAll(this.session),M=0;if(!k.length)return M;var L=this.getSelectionRange();this.selection.moveTo(0,0);for(var I=k.length-1;I>=0;--I)this.$tryReplace(k[I],v)&&M++;return this.selection.setSelectionRange(L),M},$.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},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.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 M=this.selection.getRange();x.needle==null&&(v=this.session.getTextRange(M)||this.$search.$options.needle,v||(M=this.session.getWordRange(M.start.row,M.start.column),v=this.session.getTextRange(M)),this.$search.set({needle:v})),this.$search.set(x),x.start||this.$search.set({start:M});var L=this.$search.find(this.session);if(x.preventScroll)return L;if(L)return this.revealRange(L,k),L;x.backwards?M.start=M.end:M.end=M.start,this.selection.setRange(M)},$.prototype.findNext=function(v,x){this.find({skipCurrent:!0,backwards:!1},v,x)},$.prototype.findPrevious=function(v,x){this.find(v,{skipCurrent:!0,backwards:!0},x)},$.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)},$.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.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()},$.prototype.setAutoScrollEditorIntoView=function(v){if(v){var x,k=this,M=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var L=this.$scrollAnchor;L.style.cssText="position:absolute",this.container.insertBefore(L,this.container.firstChild);var I=this.on("changeSelection",function(){M=!0}),N=this.renderer.on("beforeRender",function(){M&&(x=k.renderer.container.getBoundingClientRect())}),F=this.renderer.on("afterRender",function(){if(M&&x&&(k.isFocused()||k.searchBox&&k.searchBox.isFocused())){var W=k.renderer,U=W.$cursorLayer.$pixelPos,B=W.layerConfig,H=U.top-B.offset;U.top>=0&&H+x.top<0?M=!0:U.top<B.height&&U.top+x.top+B.lineHeight>window.innerHeight?M=!1:M=null,M!=null&&(L.style.top=H+"px",L.style.left=U.left+"px",L.style.height=B.lineHeight+"px",L.scrollIntoView(M)),M=x=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",I),this.renderer.off("afterRender",F),this.renderer.off("beforeRender",N))}}},$.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)))},$.prototype.prompt=function(v,x,k){var M=this;_.loadModule("ace/ext/prompt",function(L){L.prompt(M,v,x,k)})},$}();T.$uid=0,T.prototype.curOp=null,T.prototype.prevOp={},T.prototype.$mergeableCommands=["backspace","del","insertstring"],T.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(T.prototype,b),_.defineOptions(T.prototype,"editor",{selectionStyle:{set:function($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){this.textInput.setReadOnly($),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){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($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?O.attach(this):O.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?O.attach(this):O.detach(this)}},placeholder:{set:function($){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($){var v={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(M){M.blur(),M.renderer.scroller.focus()},readOnly:!0},x=function(M){if(M.target==this.renderer.scroller&&M.keyCode===E.enter){M.preventDefault();var L=this.getCursorPosition().row;this.isRowVisible(L)||this.scrollToLine(L,!0,!0),this.focus()}},k;$?(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 gutter")),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($){this.$textInputAriaLabel=$},initialValue:""},enableMobileMenu:{set:function($){this.$enableMobileMenu=$},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($,v){return(Math.abs($.selection.lead.row-v)||v+1+(v<9?"·":""))+""},getWidth:function($,v,x){return Math.max(v.toString().length,(x.lastRow+1).toString().length,2)*x.characterWidth},update:function($,v){v.renderer.$loop.schedule(v.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};i.Editor=T}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,r){var a=n("../lib/dom"),f=function(){function g(o,p){this.element=o,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(o){a.translate(this.element,0,-(o.firstRowScreen*o.lineHeight%this.canvasHeight)-o.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(o,p){return Math.floor(o.firstRowScreen*o.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(o,p,s){var l=p.firstRowScreen*p.lineHeight,u=Math.floor(l/this.canvasHeight),c=s.documentToScreenRow(o,0)*p.lineHeight;return c-u*this.canvasHeight},g.prototype.computeLineHeight=function(o,p,s){return p.lineHeight*s.getRowLineCount(o)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(o){return this.cells[o]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(o){if(Array.isArray(o)){this.cells.push.apply(this.cells,o);for(var p=a.createFragment(this.element),s=0;s<o.length;s++)p.appendChild(o[s].element);this.element.appendChild(p)}else this.cells.push(o),this.element.appendChild(o.element)},g.prototype.unshift=function(o){if(Array.isArray(o)){this.cells.unshift.apply(this.cells,o);for(var p=a.createFragment(this.element),s=0;s<o.length;s++)p.appendChild(o[s].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(o),this.element.insertAdjacentElement("afterbegin",o.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(o){o&&(o.element.remove(),this.cellCache.push(o))},g.prototype.createCell=function(o,p,s,l){var u=this.cellCache.pop();if(!u){var c=a.createElement("div");l&&l(c),this.element.appendChild(c),u={element:c,text:"",row:o}}return u.row=o,u},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,r){var a=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/lang"),o=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,s=n("../config").nls,l=function(){function c(h){this.element=a.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 c.prototype.setSession=function(h){this.session&&this.session.off("change",this.$updateAnnotations),this.session=h,h&&h.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(h,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(h,d)},c.prototype.removeGutterDecoration=function(h,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(h,d)},c.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 S=m.text,_=m.text,C=m.type;S=S?g.escapeHTML(S):m.html||"",_=_||m.html||"",y.text.indexOf(S)===-1&&(y.text.push(S),y.type.push(C),y.displayText.push(_));var w=m.className;w?y.className=w:C==="error"?y.className=" ace_error":C==="security"&&!/\bace_error\b/.test(y.className)?y.className=" ace_security":C==="warning"&&!/\bace_(error|security)\b/.test(y.className)?y.className=" ace_warning":C==="info"&&!y.className?y.className=" ace_info":C==="hint"&&!y.className&&(y.className=" ace_hint")}},c.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)}}},c.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),S=y?y.start.row:1/0,_=null,C=-1,w=m;;){if(w>S&&(w=y.end.row+1,y=d.getNextFoldLine(w,y),S=y?y.start.row:1/0),w>b){for(;this.$lines.getLength()>C+1;)this.$lines.pop();break}_=this.$lines.get(++C),_?_.row=w:(_=this.$lines.createCell(w,h,this.session,u),this.$lines.push(_)),this.$renderCell(_,h,y,w),w++}this._signal("afterRender"),this.$updateGutterWidth(h)},c.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 S=m?m.getWidth(d,y,h):y.toString().length*h.characterWidth,_=this.$padding||this.$computePadding();S+=_.left+_.right,S!==this.gutterWidth&&!isNaN(S)&&(this.gutterWidth=S,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",S))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var h=this.session.selection.getCursor();this.$cursorRow!==h.row&&(this.$cursorRow=h.row)}},c.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}}}}},c.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)},c.prototype.$renderLines=function(h,d,m){for(var b=[],y=d,S=this.session.getNextFoldLine(y),_=S?S.start.row:1/0;y>_&&(y=S.end.row+1,S=this.session.getNextFoldLine(y,S),_=S?S.start.row:1/0),!(y>m);){var C=this.$lines.createCell(y,h,this.session,u);this.$renderCell(C,h,S,y),b.push(C),y++}return b},c.prototype.$renderCell=function(h,d,m,b){var y=h.element,S=this.session,_=y.childNodes[0],C=y.childNodes[1],w=y.childNodes[2],A=w.firstChild,R=S.$firstLineNumber,E=S.$breakpoints,T=S.$decorations,O=S.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&S.foldWidgets,v=m?m.start.row:Number.MAX_VALUE,x=d.lineHeight+"px",k=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",M=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",L=(O?O.getText(S,b):b+R).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]),T[b]&&(k+=T[b]),this.$annotations[b]&&b!==v&&(k+=this.$annotations[b].className),$){var I=$[b];I==null&&(I=$[b]=S.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="",U=!1,B=b+1;B<=m.end.row;B++)if(this.$annotations[B]){if(this.$annotations[B].className===" ace_error"){U=!0,W=" ace_error_fold";break}this.$annotations[B].className===" ace_security"?(U=!0,W=" ace_security_fold"):this.$annotations[B].className===" ace_warning"&&W!==" ace_security_fold"&&(U=!0,W=" ace_warning_fold")}k+=W}else N+=" ace_open";C.className!=N&&(C.className=N),a.setStyle(C.style,"height",x),a.setStyle(C.style,"display","inline-block"),C.setAttribute("role","button"),C.setAttribute("tabindex","-1");var H=S.getFoldWidgetRange(b);H?C.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[H.start.row+1,H.end.row+1])):m?C.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):C.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),F?(C.setAttribute("aria-expanded","false"),C.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(C.setAttribute("aria-expanded","true"),C.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else C&&(a.setStyle(C.style,"display","none"),C.setAttribute("tabindex","0"),C.removeAttribute("role"),C.removeAttribute("aria-label"));if(U&&this.$showFoldedAnnotations){w.className="ace_gutter_annotation",A.className=M,A.className+=W,a.setStyle(A.style,"height",x),a.setStyle(w.style,"display","block"),a.setStyle(w.style,"height",x);var K;switch(W){case" ace_error_fold":K=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[L]);break;case" ace_security_fold":K=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[L]);break;case" ace_warning_fold":K=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[L]);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=M,this.$useSvgGutterIcons?A.className+=this.$annotations[b].className:y.classList.add(this.$annotations[b].className.replace(" ","")),a.setStyle(A.style,"height",x),a.setStyle(w.style,"display","block"),a.setStyle(w.style,"height",x);var K;switch(this.$annotations[b].className){case" ace_error":K=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[L]);break;case" ace_security":K=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[L]);break;case" ace_warning":K=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[L]);break;case" ace_info":K=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[L]);break;case" ace_hint":K=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[L]);break}w.setAttribute("aria-label",K),w.setAttribute("tabindex","-1"),w.setAttribute("role","button")}else a.setStyle(w.style,"display","none"),w.removeAttribute("aria-label"),w.removeAttribute("role"),w.setAttribute("tabindex","0");return L!==_.data&&(_.data=L),y.className!=k&&(y.className=k),a.setStyle(h.element.style,"height",this.$lines.computeLineHeight(b,d,S)+"px"),a.setStyle(h.element.style,"top",this.$lines.computeLineTop(b,d,S)+"px"),h.text=L,w.style.display==="none"&&C.style.display==="none"?h.element.setAttribute("aria-hidden",!0):h.element.setAttribute("aria-hidden",!1),h},c.prototype.setHighlightGutterLine=function(h){this.$highlightGutterLine=h},c.prototype.setShowLineNumbers=function(h){this.$renderer=!h&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(h){h?a.addCssClass(this.element,"ace_folding-enabled"):a.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=h,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var h=a.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},c.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"},c}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,f.implement(l.prototype,o);function u(c){var h=document.createTextNode("");c.appendChild(h);var d=a.createElement("span");c.appendChild(d);var m=a.createElement("span");c.appendChild(m);var b=a.createElement("span");return m.appendChild(b),c}i.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,r){var a=n("../range").Range,f=n("../lib/dom"),g=function(){function p(s){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return p.prototype.setPadding=function(s){this.$padding=s},p.prototype.setSession=function(s){this.session=s},p.prototype.setMarkers=function(s){this.markers=s},p.prototype.elt=function(s,l){var u=this.i!=-1&&this.element.childNodes[this.i];u?this.i++:(u=document.createElement("div"),this.element.appendChild(u),this.i=-1),u.style.cssText=l,u.className=s},p.prototype.update=function(s){if(s){this.config=s,this.i=0;var l;for(var u in this.markers){var c=this.markers[u];if(!c.range){c.update(l,this,this.session,s);continue}var h=c.range.clipRows(s.firstRow,s.lastRow);if(!h.isEmpty())if(h=h.toScreenRange(this.session),c.renderer){var d=this.$getTop(h.start.row,s),m=this.$padding+h.start.column*s.characterWidth;c.renderer(l,h,m,d,s)}else c.type=="fullLine"?this.drawFullLineMarker(l,h,c.clazz,s):c.type=="screenLine"?this.drawScreenLineMarker(l,h,c.clazz,s):h.isMultiLine()?c.type=="text"?this.drawTextMarker(l,h,c.clazz,s):this.drawMultiLineMarker(l,h,c.clazz,s):this.drawSingleLineMarker(l,h,c.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(s,l){return(s-l.firstRowScreen)*l.lineHeight},p.prototype.drawTextMarker=function(s,l,u,c,h){for(var d=this.session,m=l.start.row,b=l.end.row,y=m,S=0,_=0,C=d.getScreenLastRowColumn(y),w=new a(y,l.start.column,y,_);y<=b;y++)w.start.row=w.end.row=y,w.start.column=y==m?l.start.column:d.getRowWrapIndent(y),w.end.column=C,S=_,_=C,C=y+1<b?d.getScreenLastRowColumn(y+1):y==b?0:l.end.column,this.drawSingleLineMarker(s,w,u+(y==m?" ace_start":"")+" ace_br"+o(y==m||y==m+1&&l.start.column,S<_,_>C,y==b),c,y==b?0:1,h)},p.prototype.drawMultiLineMarker=function(s,l,u,c,h){var d=this.$padding,m=c.lineHeight,b=this.$getTop(l.start.row,c),y=d+l.start.column*c.characterWidth;if(h=h||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var S=l.clone();S.end.row=S.start.row,S.end.column=this.session.getLine(S.start.row).length,this.drawBidiSingleLineMarker(s,S,u+" ace_br1 ace_start",c,null,h)}else this.elt(u+" ace_br1 ace_start","height:"+m+"px;right:"+d+"px;top:"+b+"px;left:"+y+"px;"+(h||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var S=l.clone();S.start.row=S.end.row,S.start.column=0,this.drawBidiSingleLineMarker(s,S,u+" ace_br12",c,null,h)}else{b=this.$getTop(l.end.row,c);var _=l.end.column*c.characterWidth;this.elt(u+" ace_br12","height:"+m+"px;width:"+_+"px;top:"+b+"px;left:"+d+"px;"+(h||""))}if(m=(l.end.row-l.start.row-1)*c.lineHeight,!(m<=0)){b=this.$getTop(l.start.row+1,c);var C=(l.start.column?1:0)|(l.end.column?0:8);this.elt(u+(C?" ace_br"+C:""),"height:"+m+"px;right:"+d+"px;top:"+b+"px;left:"+d+"px;"+(h||""))}},p.prototype.drawSingleLineMarker=function(s,l,u,c,h,d){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(s,l,u,c,h,d);var m=c.lineHeight,b=(l.end.column+(h||0)-l.start.column)*c.characterWidth,y=this.$getTop(l.start.row,c),S=this.$padding+l.start.column*c.characterWidth;this.elt(u,"height:"+m+"px;width:"+b+"px;top:"+y+"px;left:"+S+"px;"+(d||""))},p.prototype.drawBidiSingleLineMarker=function(s,l,u,c,h,d){var m=c.lineHeight,b=this.$getTop(l.start.row,c),y=this.$padding,S=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);S.forEach(function(_){this.elt(u,"height:"+m+"px;width:"+(_.width+(h||0))+"px;top:"+b+"px;left:"+(y+_.left)+"px;"+(d||""))},this)},p.prototype.drawFullLineMarker=function(s,l,u,c,h){var d=this.$getTop(l.start.row,c),m=c.lineHeight;l.start.row!=l.end.row&&(m+=this.$getTop(l.end.row,c)-d),this.elt(u,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(h||""))},p.prototype.drawScreenLineMarker=function(s,l,u,c,h){var d=this.$getTop(l.start.row,c),m=c.lineHeight;this.elt(u,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(h||""))},p}();g.prototype.$padding=0;function o(p,s,l,u){return(p?1:0)|(s?2:0)|(l?4:0)|(u?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,r){var a=new Set(["text","rparen","lparen"]);i.isTextToken=function(f){return a.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,r){var a=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),o=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,s=n("../config").nls,l=n("./text_util").isTextToken,u=function(){function c(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 o(this.element)}return c.prototype.$updateEolChar=function(){var h=this.session.doc,d=h.getNewLineCharacter()==`
|
822
|
+
`&&h.getNewLineMode()!="windows",m=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},c.prototype.setPadding=function(h){this.$padding=h,this.element.style.margin="0 "+h+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(h){this.$fontMetrics=h,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(h){this.session=h,h&&this.$computeTabString()},c.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)},c.prototype.setDisplayIndentGuides=function(h){return this.displayIndentGuides==h?!1:(this.displayIndentGuides=h,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(h){return this.$highlightIndentGuides===h?!1:(this.$highlightIndentGuides=h,h)},c.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",S=this.showSpaces?" ace_invisible ace_invisible_space":"",_=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),C=this.showTabs?" ace_invisible ace_invisible_tab":"",w=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):_,b=this.dom.createElement("span");b.className=y+S,b.textContent=_,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=y+C,b.textContent=w,this.$tabStrings[" "]=b}},c.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),S=this.element.childNodes,_=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;_++}for(var C=!1,w=b,A=this.session.getNextFoldLine(w),R=A?A.start.row:1/0;w>R&&(w=A.end.row+1,A=this.session.getNextFoldLine(w,A),R=A?A.start.row:1/0),!(w>y);){var E=S[_++];if(E){this.dom.removeChildren(E),this.$renderLine(E,w,w==R?A:!1),C&&(E.style.top=this.$lines.computeLineTop(w,h,this.session)+"px");var T=h.lineHeight*this.session.getRowLength(w)+"px";E.style.height!=T&&(C=!0,E.style.height=T)}w++}if(C)for(;_<this.$lines.cells.length;){var O=this.$lines.cells[_++];O.element.style.top=this.$lines.computeLineTop(O.row,h,this.session)+"px"}},c.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()},c.prototype.$renderLinesFragment=function(h,d,m){for(var b=[],y=d,S=this.session.getNextFoldLine(y),_=S?S.start.row:1/0;y>_&&(y=S.end.row+1,S=this.session.getNextFoldLine(y,S),_=S?S.start.row:1/0),!(y>m);){var C=this.$lines.createCell(y,h,this.session),w=C.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(C),y++}return b},c.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))},c.prototype.$renderToken=function(h,d,m,b){for(var y=this,S=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,_=this.dom.createFragment(this.element),C,w=0;C=S.exec(b);){var A=C[1],R=C[2],E=C[3],T=C[4],O=C[5];if(!(!y.showSpaces&&R)){var $=w!=C.index?b.slice(w,C.index):"";if(w=C.index+C[0].length,$&&_.appendChild(this.dom.createTextNode($,this.element)),A){var v=y.session.getScreenTabSize(d+C.index);_.appendChild(y.$tabStrings[v].cloneNode(!0)),d+=v-1}else if(R)if(y.showSpaces){var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_space",x.textContent=g.stringRepeat(y.SPACE_CHAR,R.length),_.appendChild(x)}else _.appendChild(this.dom.createTextNode(R,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),_.appendChild(x)}else if(T){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:T,_.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,_.appendChild(x)}}}if(_.appendChild(this.dom.createTextNode(w?b.slice(w):b,this.element)),l(m.type))h.appendChild(_);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",s("inline-fold.closed.title","Unfold code"))),x.className=k,x.appendChild(_),h.appendChild(x)}return d+b.length},c.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,S=0;S<y;S++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(b)}else if(d[0]==" "){for(var S=0;S<b;S++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(b)}return this.$highlightIndentGuide(),d},c.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 S=this.session.$bracketHighlight.ranges,_=0;_<S.length;_++)if(d.row!==S[_].start.row){this.$highlightIndentGuideMarker.end=S[_].start.row+1,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 _=d.row+1;_<h.length;_++){var C=h[_],w=/^\s*/.exec(C)[0].length;if(C!==""&&(this.$highlightIndentGuideMarker.end=_,w<=m))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){var h=this.element.querySelectorAll(".ace_indent-guide-active");h.forEach(function(d){d.classList.remove("ace_indent-guide-active")})},c.prototype.$setIndentGuideActive=function(h,d){var m=this.session.doc.getLine(h.row);if(m!==""){var b=h.element;if(h.element.classList&&h.element.classList.contains("ace_line_group"))if(h.element.childNodes.length>0)b=h.element.childNodes[0];else return;var y=b.childNodes;if(y){var S=y[d-1];S&&S.classList&&S.classList.contains("ace_indent-guide")&&S.classList.add("ace_indent-guide-active")}}},c.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)}}}},c.prototype.$createLineElement=function(h){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},c.prototype.$renderWrappedLine=function(h,d,m){var b=0,y=0,S=m[0],_=0,C=this.$createLineElement();h.appendChild(C);for(var w=0;w<d.length;w++){var A=d[w],R=A.value;if(w==0&&this.displayIndentGuides){if(b=R.length,R=this.renderIndentGuide(C,R,S),!R)continue;b-=R.length}if(b+R.length<S)_=this.$renderToken(C,_,A,R),b+=R.length;else{for(;b+R.length>=S;)_=this.$renderToken(C,_,A,R.substring(0,S-b)),R=R.substring(S-b),b=S,C=this.$createLineElement(),h.appendChild(C),C.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,_=0,S=m[y]||Number.MAX_VALUE;R.length!=0&&(b+=R.length,_=this.$renderToken(C,_,A,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(C,_,null,"",!0)},c.prototype.$renderSimpleLine=function(h,d){for(var m=0,b=0;b<d.length;b++){var y=d[b],S=y.value;if(!(b==0&&this.displayIndentGuides&&(S=this.renderIndentGuide(h,S),!S))){if(m+S.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(h,m,y,S);m=this.$renderToken(h,m,y,S)}}},c.prototype.$renderOverflowMessage=function(h,d,m,b,y){m&&this.$renderToken(h,d,m,b.slice(0,this.MAX_LINE_LENGTH-d));var S=this.dom.createElement("span");S.className="ace_inline_button ace_keyword ace_toggle_wrap",S.textContent=y?"<hide>":"<click to see more...>",h.appendChild(S)},c.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 S=this.session.getRowSplitData(d);if(S&&S.length){this.$renderWrappedLine(h,b,S);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 _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(_)}},c.prototype.$getFoldLineTokens=function(h,d){var m=this.session,b=[];function y(_,C,w){for(var A=0,R=0;R+_[A].value.length<C;)if(R+=_[A].value.length,A++,A==_.length)return;if(R!=C){var E=_[A].value.substring(C-R);E.length>w-C&&(E=E.substring(0,w-C)),b.push({type:_[A].type,value:E}),R=C+E.length,A+=1}for(;R<w&&A<_.length;){var E=_[A].value;E.length+R>w?b.push({type:_[A].type,value:E.substring(0,w-R)}):b.push(_[A]),R+=E.length,A+=1}}var S=m.getTokens(h);return d.walk(function(_,C,w,A,R){_!=null?b.push({type:"fold",value:_}):(R&&(S=m.getTokens(C)),S.length&&y(S,A,w))},d.end.row,this.session.getLine(d.end.row).length),b},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();u.prototype.EOF_CHAR="¶",u.prototype.EOL_CHAR_LF="¬",u.prototype.EOL_CHAR_CRLF="¤",u.prototype.EOL_CHAR=u.prototype.EOL_CHAR_LF,u.prototype.TAB_CHAR="—",u.prototype.SPACE_CHAR="·",u.prototype.$padding=0,u.prototype.MAX_LINE_LENGTH=1e4,u.prototype.showInvisibles=!1,u.prototype.showSpaces=!1,u.prototype.showTabs=!1,u.prototype.showEOL=!1,u.prototype.displayIndentGuides=!0,u.prototype.$highlightIndentGuides=!0,u.prototype.$tabStrings=[],u.prototype.destroy={},u.prototype.onChangeTabSize=u.prototype.$computeTabString,a.implement(u.prototype,p),i.Text=u}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,r){var a=n("../lib/dom"),f=function(){function g(o){this.element=a.createElement("div"),this.element.className="ace_layer ace_cursor-layer",o.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),a.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(o){for(var p=this.cursors,s=p.length;s--;)a.setStyle(p[s].style,"opacity",o?"":"0")},g.prototype.$startCssAnimation=function(){for(var o=this.cursors,p=o.length;p--;)o[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&a.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,a.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(o){this.$padding=o},g.prototype.setSession=function(o){this.session=o},g.prototype.setBlinking=function(o){o!=this.isBlinking&&(this.isBlinking=o,this.restartTimer())},g.prototype.setBlinkInterval=function(o){o!=this.blinkInterval&&(this.blinkInterval=o,this.restartTimer())},g.prototype.setSmoothBlinking=function(o){o!=this.smoothBlinking&&(this.smoothBlinking=o,a.setCssClass(this.element,"ace_smooth-blinking",o),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var o=a.createElement("div");return o.className="ace_cursor",this.element.appendChild(o),this.cursors.push(o),o},g.prototype.removeCursor=function(){if(this.cursors.length>1){var o=this.cursors.pop();return o.parentNode.removeChild(o),o}},g.prototype.hideCursor=function(){this.isVisible=!1,a.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,a.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var o=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,a.removeCssClass(this.element,"ace_smooth-blinking")),o(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&a.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),a.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){o(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){o(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(o,p){if(!this.config||!this.session)return{left:0,top:0};o||(o=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(o),l=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,o.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),u=(s.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:u}},g.prototype.isCursorInView=function(o,p){return o.top>=0&&o.top<p.maxHeight},g.prototype.update=function(o){this.config=o;var p=this.session.$selectionMarkers,s=0,l=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var s=0,u=p.length;s<u;s++){var c=this.getPixelPosition(p[s].cursor,!0);if(!((c.top>o.height+o.offset||c.top<0)&&s>1)){var h=this.cursors[l++]||this.addCursor(),d=h.style;this.drawCursor?this.drawCursor(h,c,o,p[s],this.session):this.isCursorInView(c,o)?(a.setStyle(d,"display","block"),a.translate(h,c.left,c.top),a.setStyle(d,"width",Math.round(o.characterWidth)+"px"),a.setStyle(d,"height",o.lineHeight+"px")):a.setStyle(d,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=c,this.restartTimer()},g.prototype.$setOverwrite=function(o){o!=this.overwrite&&(this.overwrite=o,o?a.addCssClass(this.element,"ace_overwrite-cursors"):a.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();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,r){var a=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 S in y)Object.prototype.hasOwnProperty.call(y,S)&&(b[S]=y[S])},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"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,s=32768,l=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,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)}return h.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},h}();f.implement(l.prototype,p);var u=function(h){a(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>s?(this.coeff=s/m,m=s):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}(l);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var c=function(h){a(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}(l);i.ScrollBar=u,i.ScrollBarV=u,i.ScrollBarH=c,i.VScrollBar=u,i.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,r){var a=this&&this.__extends||function(){var c=function(h,d){return c=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])},c(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");c(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"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
823
|
+
position: absolute;
|
824
|
+
background: rgba(128, 128, 128, 0.6);
|
825
|
+
-moz-box-sizing: border-box;
|
826
|
+
box-sizing: border-box;
|
827
|
+
border: 1px solid #bbb;
|
828
|
+
border-radius: 2px;
|
829
|
+
z-index: 8;
|
830
|
+
}
|
831
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
832
|
+
position: absolute;
|
833
|
+
z-index: 6;
|
834
|
+
background: none;
|
835
|
+
overflow: hidden!important;
|
836
|
+
}
|
837
|
+
.ace_editor>.ace_sb-v {
|
838
|
+
z-index: 6;
|
839
|
+
right: 0;
|
840
|
+
top: 0;
|
841
|
+
width: 12px;
|
842
|
+
}
|
843
|
+
.ace_editor>.ace_sb-v div {
|
844
|
+
z-index: 8;
|
845
|
+
right: 0;
|
846
|
+
width: 100%;
|
847
|
+
}
|
848
|
+
.ace_editor>.ace_sb-h {
|
849
|
+
bottom: 0;
|
850
|
+
left: 0;
|
851
|
+
height: 12px;
|
852
|
+
}
|
853
|
+
.ace_editor>.ace_sb-h div {
|
854
|
+
bottom: 0;
|
855
|
+
height: 100%;
|
856
|
+
}
|
857
|
+
.ace_editor>.ace_sb_grabbed {
|
858
|
+
z-index: 8;
|
859
|
+
background: #000;
|
860
|
+
}`,"ace_scrollbar.css",!1);var s=function(){function c(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,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},c}();f.implement(s.prototype,p);var l=function(c){a(h,c);function h(d,m){var b=c.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"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var b=this,y=m.clientY,S=function(T){y=T.clientY},_=function(){clearInterval(R)},C=m.clientY,w=this.thumbTop,A=function(){if(y!==void 0){var T=b.scrollTopFromThumbTop(w+y-C);T!==b.scrollTop&&b._emit("scroll",{data:T})}};o.capture(this.inner,S,_);var R=setInterval(A,20);return o.preventDefault(m)}var E=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),o.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}(s);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var u=function(c){a(h,c);function h(d,m){var b=c.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"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var b=this,y=m.clientX,S=function(T){y=T.clientX},_=function(){clearInterval(R)},C=m.clientX,w=this.thumbLeft,A=function(){if(y!==void 0){var T=b.scrollLeftFromThumbLeft(w+y-C);T!==b.scrollLeft&&b._emit("scroll",{data:T})}};o.capture(this.inner,S,_);var R=setInterval(A,20);return o.preventDefault(m)}var E=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),o.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}(s);u.prototype.setInnerWidth=u.prototype.setScrollWidth,i.ScrollBar=l,i.ScrollBarV=l,i.ScrollBarH=u,i.VScrollBar=l,i.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,r){var a=n("./lib/event"),f=function(){function g(o,p){this.onRender=o,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var s=this;this._flush=function(l){s.pending=!1;var u=s.changes;if(u&&(a.blockIdle(100),s.changes=0,s.onRender(u)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return g.prototype.schedule=function(o){this.changes=this.changes|o,this.changes&&!this.pending&&(a.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(o){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,r){var a=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),o=n("../lib/event"),p=n("../lib/useragent"),s=n("../lib/event_emitter").EventEmitter,l=512,u=typeof ResizeObserver=="function",c=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",l),this.$characterSize={width:0,height:0},u?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=o.onIdle(function b(){m.checkForSizeChanges(),o.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/l};return b.width===0||b.height===0?null:b},d.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,l);var b=this.$main.getBoundingClientRect();return b.width/l},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(c,0),m(0,c),m(c,c)],this.el)},d.prototype.transformCoordinates=function(m,b){if(m){var y=this.$getZoom(this.el);m=w(1/y,m)}function S(F,W,U){var B=F[1]*W[0]-F[0]*W[1];return[(-W[1]*U[0]+W[0]*U[1])/B,(+F[1]*U[0]-F[0]*U[1])/B]}function _(F,W){return[F[0]-W[0],F[1]-W[1]]}function C(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 R=A(this.els[0]),E=A(this.els[1]),T=A(this.els[2]),O=A(this.els[3]),$=S(_(O,E),_(O,T),_(C(E,T),C(O,R))),v=w(1+$[0],_(E,R)),x=w(1+$[1],_(T,R));if(b){var k=b,M=$[0]*k[0]/c+$[1]*k[1]/c+1,L=C(w(k[0],v),w(k[1],x));return C(w(1/M/c,L),R)}var I=_(m,R),N=S(_(v,w($[0],I)),_(x,w($[1],I)),I);return w(c,N)},d}();h.prototype.$characterSize={width:0,height:0},a.implement(h.prototype,s),i.FontMetrics=h}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,r){r.exports=`
|
861
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
862
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
863
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
864
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
865
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
866
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
867
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
868
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
869
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
870
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
871
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
872
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
873
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
874
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
875
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
876
|
+
|
877
|
+
|
878
|
+
.ace_editor {
|
879
|
+
position: relative;
|
880
|
+
overflow: hidden;
|
881
|
+
padding: 0;
|
882
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
883
|
+
direction: ltr;
|
884
|
+
text-align: left;
|
885
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
886
|
+
forced-color-adjust: none;
|
887
|
+
}
|
888
|
+
|
889
|
+
.ace_scroller {
|
890
|
+
position: absolute;
|
891
|
+
overflow: hidden;
|
892
|
+
top: 0;
|
893
|
+
bottom: 0;
|
894
|
+
background-color: inherit;
|
895
|
+
-ms-user-select: none;
|
896
|
+
-moz-user-select: none;
|
897
|
+
-webkit-user-select: none;
|
898
|
+
user-select: none;
|
899
|
+
cursor: text;
|
900
|
+
}
|
901
|
+
|
902
|
+
.ace_content {
|
903
|
+
position: absolute;
|
904
|
+
box-sizing: border-box;
|
905
|
+
min-width: 100%;
|
906
|
+
contain: style size layout;
|
907
|
+
font-variant-ligatures: no-common-ligatures;
|
908
|
+
}
|
909
|
+
|
910
|
+
.ace_keyboard-focus:focus {
|
911
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
912
|
+
outline: none;
|
913
|
+
}
|
914
|
+
|
915
|
+
.ace_dragging .ace_scroller:before{
|
916
|
+
position: absolute;
|
917
|
+
top: 0;
|
918
|
+
left: 0;
|
919
|
+
right: 0;
|
920
|
+
bottom: 0;
|
921
|
+
content: '';
|
922
|
+
background: rgba(250, 250, 250, 0.01);
|
923
|
+
z-index: 1000;
|
924
|
+
}
|
925
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
926
|
+
background: rgba(0, 0, 0, 0.01);
|
927
|
+
}
|
928
|
+
|
929
|
+
.ace_gutter {
|
930
|
+
position: absolute;
|
931
|
+
overflow : hidden;
|
932
|
+
width: auto;
|
933
|
+
top: 0;
|
934
|
+
bottom: 0;
|
935
|
+
left: 0;
|
936
|
+
cursor: default;
|
937
|
+
z-index: 4;
|
938
|
+
-ms-user-select: none;
|
939
|
+
-moz-user-select: none;
|
940
|
+
-webkit-user-select: none;
|
941
|
+
user-select: none;
|
942
|
+
contain: style size layout;
|
943
|
+
}
|
944
|
+
|
945
|
+
.ace_gutter-active-line {
|
946
|
+
position: absolute;
|
947
|
+
left: 0;
|
948
|
+
right: 0;
|
949
|
+
}
|
950
|
+
|
951
|
+
.ace_scroller.ace_scroll-left:after {
|
952
|
+
content: "";
|
953
|
+
position: absolute;
|
954
|
+
top: 0;
|
955
|
+
right: 0;
|
956
|
+
bottom: 0;
|
957
|
+
left: 0;
|
958
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
959
|
+
pointer-events: none;
|
960
|
+
}
|
961
|
+
|
962
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
963
|
+
position: absolute;
|
964
|
+
top: 0;
|
965
|
+
left: 0;
|
966
|
+
right: 0;
|
967
|
+
padding-left: 19px;
|
968
|
+
padding-right: 6px;
|
969
|
+
background-repeat: no-repeat;
|
970
|
+
}
|
971
|
+
|
972
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
973
|
+
margin-left: -14px;
|
974
|
+
float: left;
|
975
|
+
}
|
976
|
+
|
977
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
978
|
+
margin-left: -19px;
|
979
|
+
float: left;
|
980
|
+
}
|
981
|
+
|
982
|
+
.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 {
|
983
|
+
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==");
|
984
|
+
background-repeat: no-repeat;
|
985
|
+
background-position: 2px center;
|
986
|
+
}
|
987
|
+
|
988
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
989
|
+
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==");
|
990
|
+
background-repeat: no-repeat;
|
991
|
+
background-position: 2px center;
|
992
|
+
}
|
993
|
+
|
994
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
995
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
996
|
+
background-repeat: no-repeat;
|
997
|
+
background-position: 2px center;
|
998
|
+
}
|
999
|
+
|
1000
|
+
.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 {
|
1001
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
.ace_icon_svg.ace_error {
|
1005
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
1006
|
+
background-color: crimson;
|
1007
|
+
}
|
1008
|
+
.ace_icon_svg.ace_security {
|
1009
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
1010
|
+
background-color: crimson;
|
1011
|
+
}
|
1012
|
+
.ace_icon_svg.ace_warning {
|
1013
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
1014
|
+
background-color: darkorange;
|
1015
|
+
}
|
1016
|
+
.ace_icon_svg.ace_info {
|
1017
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
1018
|
+
background-color: royalblue;
|
1019
|
+
}
|
1020
|
+
.ace_icon_svg.ace_hint {
|
1021
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
1022
|
+
background-color: silver;
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
.ace_icon_svg.ace_error_fold {
|
1026
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1027
|
+
background-color: crimson;
|
1028
|
+
}
|
1029
|
+
.ace_icon_svg.ace_security_fold {
|
1030
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1031
|
+
background-color: crimson;
|
1032
|
+
}
|
1033
|
+
.ace_icon_svg.ace_warning_fold {
|
1034
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
1035
|
+
background-color: darkorange;
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
.ace_scrollbar {
|
1039
|
+
contain: strict;
|
1040
|
+
position: absolute;
|
1041
|
+
right: 0;
|
1042
|
+
bottom: 0;
|
1043
|
+
z-index: 6;
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
.ace_scrollbar-inner {
|
1047
|
+
position: absolute;
|
1048
|
+
cursor: text;
|
1049
|
+
left: 0;
|
1050
|
+
top: 0;
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
.ace_scrollbar-v{
|
1054
|
+
overflow-x: hidden;
|
1055
|
+
overflow-y: scroll;
|
1056
|
+
top: 0;
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
.ace_scrollbar-h {
|
1060
|
+
overflow-x: scroll;
|
1061
|
+
overflow-y: hidden;
|
1062
|
+
left: 0;
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
.ace_print-margin {
|
1066
|
+
position: absolute;
|
1067
|
+
height: 100%;
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
.ace_text-input {
|
1071
|
+
position: absolute;
|
1072
|
+
z-index: 0;
|
1073
|
+
width: 0.5em;
|
1074
|
+
height: 1em;
|
1075
|
+
opacity: 0;
|
1076
|
+
background: transparent;
|
1077
|
+
-moz-appearance: none;
|
1078
|
+
appearance: none;
|
1079
|
+
border: none;
|
1080
|
+
resize: none;
|
1081
|
+
outline: none;
|
1082
|
+
overflow: hidden;
|
1083
|
+
font: inherit;
|
1084
|
+
padding: 0 1px;
|
1085
|
+
margin: 0 -1px;
|
1086
|
+
contain: strict;
|
1087
|
+
-ms-user-select: text;
|
1088
|
+
-moz-user-select: text;
|
1089
|
+
-webkit-user-select: text;
|
1090
|
+
user-select: text;
|
1091
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
1092
|
+
white-space: pre!important;
|
1093
|
+
}
|
1094
|
+
.ace_text-input.ace_composition {
|
1095
|
+
background: transparent;
|
1096
|
+
color: inherit;
|
1097
|
+
z-index: 1000;
|
1098
|
+
opacity: 1;
|
1099
|
+
}
|
1100
|
+
.ace_composition_placeholder { color: transparent }
|
1101
|
+
.ace_composition_marker {
|
1102
|
+
border-bottom: 1px solid;
|
1103
|
+
position: absolute;
|
1104
|
+
border-radius: 0;
|
1105
|
+
margin-top: 1px;
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
[ace_nocontext=true] {
|
1109
|
+
transform: none!important;
|
1110
|
+
filter: none!important;
|
1111
|
+
clip-path: none!important;
|
1112
|
+
mask : none!important;
|
1113
|
+
contain: none!important;
|
1114
|
+
perspective: none!important;
|
1115
|
+
mix-blend-mode: initial!important;
|
1116
|
+
z-index: auto;
|
1117
|
+
}
|
1118
|
+
|
1119
|
+
.ace_layer {
|
1120
|
+
z-index: 1;
|
1121
|
+
position: absolute;
|
1122
|
+
overflow: hidden;
|
1123
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
1124
|
+
word-wrap: normal;
|
1125
|
+
white-space: pre;
|
1126
|
+
height: 100%;
|
1127
|
+
width: 100%;
|
1128
|
+
box-sizing: border-box;
|
1129
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
1130
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
1131
|
+
pointer-events: none;
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
.ace_gutter-layer {
|
1135
|
+
position: relative;
|
1136
|
+
width: auto;
|
1137
|
+
text-align: right;
|
1138
|
+
pointer-events: auto;
|
1139
|
+
height: 1000000px;
|
1140
|
+
contain: style size layout;
|
1141
|
+
}
|
1142
|
+
|
1143
|
+
.ace_text-layer {
|
1144
|
+
font: inherit !important;
|
1145
|
+
position: absolute;
|
1146
|
+
height: 1000000px;
|
1147
|
+
width: 1000000px;
|
1148
|
+
contain: style size layout;
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
1152
|
+
contain: style size layout;
|
1153
|
+
position: absolute;
|
1154
|
+
top: 0;
|
1155
|
+
left: 0;
|
1156
|
+
right: 0;
|
1157
|
+
}
|
1158
|
+
|
1159
|
+
.ace_hidpi .ace_text-layer,
|
1160
|
+
.ace_hidpi .ace_gutter-layer,
|
1161
|
+
.ace_hidpi .ace_content,
|
1162
|
+
.ace_hidpi .ace_gutter {
|
1163
|
+
contain: strict;
|
1164
|
+
}
|
1165
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
1166
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
1167
|
+
contain: strict;
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
.ace_cjk {
|
1171
|
+
display: inline-block;
|
1172
|
+
text-align: center;
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
.ace_cursor-layer {
|
1176
|
+
z-index: 4;
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
.ace_cursor {
|
1180
|
+
z-index: 4;
|
1181
|
+
position: absolute;
|
1182
|
+
box-sizing: border-box;
|
1183
|
+
border-left: 2px solid;
|
1184
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
1185
|
+
transform: translatez(0);
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
.ace_multiselect .ace_cursor {
|
1189
|
+
border-left-width: 1px;
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
.ace_slim-cursors .ace_cursor {
|
1193
|
+
border-left-width: 1px;
|
1194
|
+
}
|
1195
|
+
|
1196
|
+
.ace_overwrite-cursors .ace_cursor {
|
1197
|
+
border-left-width: 0;
|
1198
|
+
border-bottom: 1px solid;
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
.ace_hidden-cursors .ace_cursor {
|
1202
|
+
opacity: 0.2;
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
1206
|
+
opacity: 0;
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
.ace_smooth-blinking .ace_cursor {
|
1210
|
+
transition: opacity 0.18s;
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
.ace_animate-blinking .ace_cursor {
|
1214
|
+
animation-duration: 1000ms;
|
1215
|
+
animation-timing-function: step-end;
|
1216
|
+
animation-name: blink-ace-animate;
|
1217
|
+
animation-iteration-count: infinite;
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
1221
|
+
animation-duration: 1000ms;
|
1222
|
+
animation-timing-function: ease-in-out;
|
1223
|
+
animation-name: blink-ace-animate-smooth;
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
@keyframes blink-ace-animate {
|
1227
|
+
from, to { opacity: 1; }
|
1228
|
+
60% { opacity: 0; }
|
1229
|
+
}
|
1230
|
+
|
1231
|
+
@keyframes blink-ace-animate-smooth {
|
1232
|
+
from, to { opacity: 1; }
|
1233
|
+
45% { opacity: 1; }
|
1234
|
+
60% { opacity: 0; }
|
1235
|
+
85% { opacity: 0; }
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
1239
|
+
position: absolute;
|
1240
|
+
z-index: 3;
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
.ace_marker-layer .ace_selection {
|
1244
|
+
position: absolute;
|
1245
|
+
z-index: 5;
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
.ace_marker-layer .ace_bracket {
|
1249
|
+
position: absolute;
|
1250
|
+
z-index: 6;
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
.ace_marker-layer .ace_error_bracket {
|
1254
|
+
position: absolute;
|
1255
|
+
border-bottom: 1px solid #DE5555;
|
1256
|
+
border-radius: 0;
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
.ace_marker-layer .ace_active-line {
|
1260
|
+
position: absolute;
|
1261
|
+
z-index: 2;
|
1262
|
+
}
|
1263
|
+
|
1264
|
+
.ace_marker-layer .ace_selected-word {
|
1265
|
+
position: absolute;
|
1266
|
+
z-index: 4;
|
1267
|
+
box-sizing: border-box;
|
1268
|
+
}
|
1269
|
+
|
1270
|
+
.ace_line .ace_fold {
|
1271
|
+
box-sizing: border-box;
|
1272
|
+
|
1273
|
+
display: inline-block;
|
1274
|
+
height: 11px;
|
1275
|
+
margin-top: -2px;
|
1276
|
+
vertical-align: middle;
|
1277
|
+
|
1278
|
+
background-image:
|
1279
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1280
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
1281
|
+
background-repeat: no-repeat, repeat-x;
|
1282
|
+
background-position: center center, top left;
|
1283
|
+
color: transparent;
|
1284
|
+
|
1285
|
+
border: 1px solid black;
|
1286
|
+
border-radius: 2px;
|
1287
|
+
|
1288
|
+
cursor: pointer;
|
1289
|
+
pointer-events: auto;
|
1290
|
+
}
|
1291
|
+
|
1292
|
+
.ace_dark .ace_fold {
|
1293
|
+
}
|
1294
|
+
|
1295
|
+
.ace_fold:hover{
|
1296
|
+
background-image:
|
1297
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1298
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
.ace_tooltip {
|
1302
|
+
background-color: #f5f5f5;
|
1303
|
+
border: 1px solid gray;
|
1304
|
+
border-radius: 1px;
|
1305
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
1306
|
+
color: black;
|
1307
|
+
max-width: 100%;
|
1308
|
+
padding: 3px 4px;
|
1309
|
+
position: fixed;
|
1310
|
+
z-index: 999999;
|
1311
|
+
box-sizing: border-box;
|
1312
|
+
cursor: default;
|
1313
|
+
white-space: pre-wrap;
|
1314
|
+
word-wrap: break-word;
|
1315
|
+
line-height: normal;
|
1316
|
+
font-style: normal;
|
1317
|
+
font-weight: normal;
|
1318
|
+
letter-spacing: normal;
|
1319
|
+
pointer-events: none;
|
1320
|
+
overflow: auto;
|
1321
|
+
max-width: min(60em, 66vw);
|
1322
|
+
overscroll-behavior: contain;
|
1323
|
+
}
|
1324
|
+
.ace_tooltip pre {
|
1325
|
+
white-space: pre-wrap;
|
1326
|
+
}
|
1327
|
+
|
1328
|
+
.ace_tooltip.ace_dark {
|
1329
|
+
background-color: #636363;
|
1330
|
+
color: #fff;
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
.ace_tooltip:focus {
|
1334
|
+
outline: 1px solid #5E9ED6;
|
1335
|
+
}
|
1336
|
+
|
1337
|
+
.ace_icon {
|
1338
|
+
display: inline-block;
|
1339
|
+
width: 18px;
|
1340
|
+
vertical-align: top;
|
1341
|
+
}
|
1342
|
+
|
1343
|
+
.ace_icon_svg {
|
1344
|
+
display: inline-block;
|
1345
|
+
width: 12px;
|
1346
|
+
vertical-align: top;
|
1347
|
+
-webkit-mask-repeat: no-repeat;
|
1348
|
+
-webkit-mask-size: 12px;
|
1349
|
+
-webkit-mask-position: center;
|
1350
|
+
}
|
1351
|
+
|
1352
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
1353
|
+
padding-right: 13px;
|
1354
|
+
}
|
1355
|
+
|
1356
|
+
.ace_fold-widget {
|
1357
|
+
box-sizing: border-box;
|
1358
|
+
|
1359
|
+
margin: 0 -12px 0 1px;
|
1360
|
+
display: none;
|
1361
|
+
width: 11px;
|
1362
|
+
vertical-align: top;
|
1363
|
+
|
1364
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
1365
|
+
background-repeat: no-repeat;
|
1366
|
+
background-position: center;
|
1367
|
+
|
1368
|
+
border-radius: 3px;
|
1369
|
+
|
1370
|
+
border: 1px solid transparent;
|
1371
|
+
cursor: pointer;
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
.ace_folding-enabled .ace_fold-widget {
|
1375
|
+
display: inline-block;
|
1376
|
+
}
|
1377
|
+
|
1378
|
+
.ace_fold-widget.ace_end {
|
1379
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
1380
|
+
}
|
1381
|
+
|
1382
|
+
.ace_fold-widget.ace_closed {
|
1383
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
.ace_fold-widget:hover {
|
1387
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
1388
|
+
background-color: rgba(255, 255, 255, 0.2);
|
1389
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
1390
|
+
}
|
1391
|
+
|
1392
|
+
.ace_fold-widget:active {
|
1393
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
1394
|
+
background-color: rgba(0, 0, 0, 0.05);
|
1395
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
1396
|
+
}
|
1397
|
+
/**
|
1398
|
+
* Dark version for fold widgets
|
1399
|
+
*/
|
1400
|
+
.ace_dark .ace_fold-widget {
|
1401
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
1402
|
+
}
|
1403
|
+
.ace_dark .ace_fold-widget.ace_end {
|
1404
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
1405
|
+
}
|
1406
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
1407
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
1408
|
+
}
|
1409
|
+
.ace_dark .ace_fold-widget:hover {
|
1410
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1411
|
+
background-color: rgba(255, 255, 255, 0.1);
|
1412
|
+
}
|
1413
|
+
.ace_dark .ace_fold-widget:active {
|
1414
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
.ace_inline_button {
|
1418
|
+
border: 1px solid lightgray;
|
1419
|
+
display: inline-block;
|
1420
|
+
margin: -1px 8px;
|
1421
|
+
padding: 0 5px;
|
1422
|
+
pointer-events: auto;
|
1423
|
+
cursor: pointer;
|
1424
|
+
}
|
1425
|
+
.ace_inline_button:hover {
|
1426
|
+
border-color: gray;
|
1427
|
+
background: rgba(200,200,200,0.2);
|
1428
|
+
display: inline-block;
|
1429
|
+
pointer-events: auto;
|
1430
|
+
}
|
1431
|
+
|
1432
|
+
.ace_fold-widget.ace_invalid {
|
1433
|
+
background-color: #FFB4B4;
|
1434
|
+
border-color: #DE5555;
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
1438
|
+
transition: opacity 0.4s ease 0.05s;
|
1439
|
+
opacity: 0;
|
1440
|
+
}
|
1441
|
+
|
1442
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
1443
|
+
transition: opacity 0.05s ease 0.05s;
|
1444
|
+
opacity:1;
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
.ace_underline {
|
1448
|
+
text-decoration: underline;
|
1449
|
+
}
|
1450
|
+
|
1451
|
+
.ace_bold {
|
1452
|
+
font-weight: bold;
|
1453
|
+
}
|
1454
|
+
|
1455
|
+
.ace_nobold .ace_bold {
|
1456
|
+
font-weight: normal;
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
.ace_italic {
|
1460
|
+
font-style: italic;
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
|
1464
|
+
.ace_error-marker {
|
1465
|
+
background-color: rgba(255, 0, 0,0.2);
|
1466
|
+
position: absolute;
|
1467
|
+
z-index: 9;
|
1468
|
+
}
|
1469
|
+
|
1470
|
+
.ace_highlight-marker {
|
1471
|
+
background-color: rgba(255, 255, 0,0.2);
|
1472
|
+
position: absolute;
|
1473
|
+
z-index: 8;
|
1474
|
+
}
|
1475
|
+
|
1476
|
+
.ace_mobile-menu {
|
1477
|
+
position: absolute;
|
1478
|
+
line-height: 1.5;
|
1479
|
+
border-radius: 4px;
|
1480
|
+
-ms-user-select: none;
|
1481
|
+
-moz-user-select: none;
|
1482
|
+
-webkit-user-select: none;
|
1483
|
+
user-select: none;
|
1484
|
+
background: white;
|
1485
|
+
box-shadow: 1px 3px 2px grey;
|
1486
|
+
border: 1px solid #dcdcdc;
|
1487
|
+
color: black;
|
1488
|
+
}
|
1489
|
+
.ace_dark > .ace_mobile-menu {
|
1490
|
+
background: #333;
|
1491
|
+
color: #ccc;
|
1492
|
+
box-shadow: 1px 3px 2px grey;
|
1493
|
+
border: 1px solid #444;
|
1494
|
+
|
1495
|
+
}
|
1496
|
+
.ace_mobile-button {
|
1497
|
+
padding: 2px;
|
1498
|
+
cursor: pointer;
|
1499
|
+
overflow: hidden;
|
1500
|
+
}
|
1501
|
+
.ace_mobile-button:hover {
|
1502
|
+
background-color: #eee;
|
1503
|
+
opacity:1;
|
1504
|
+
}
|
1505
|
+
.ace_mobile-button:active {
|
1506
|
+
background-color: #ddd;
|
1507
|
+
}
|
1508
|
+
|
1509
|
+
.ace_placeholder {
|
1510
|
+
position: relative;
|
1511
|
+
font-family: arial;
|
1512
|
+
transform: scale(0.9);
|
1513
|
+
transform-origin: left;
|
1514
|
+
white-space: pre;
|
1515
|
+
opacity: 0.7;
|
1516
|
+
margin: 0 10px;
|
1517
|
+
z-index: 1;
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
.ace_ghost_text {
|
1521
|
+
opacity: 0.5;
|
1522
|
+
font-style: italic;
|
1523
|
+
}
|
1524
|
+
|
1525
|
+
.ace_ghost_text_container > div {
|
1526
|
+
white-space: pre;
|
1527
|
+
}
|
1528
|
+
|
1529
|
+
.ghost_text_line_wrapped::after {
|
1530
|
+
content: "↩";
|
1531
|
+
position: absolute;
|
1532
|
+
}
|
1533
|
+
|
1534
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
1535
|
+
margin: 0px 4px
|
1536
|
+
}
|
1537
|
+
|
1538
|
+
.ace_screenreader-only {
|
1539
|
+
position:absolute;
|
1540
|
+
left:-10000px;
|
1541
|
+
top:auto;
|
1542
|
+
width:1px;
|
1543
|
+
height:1px;
|
1544
|
+
overflow:hidden;
|
1545
|
+
}
|
1546
|
+
|
1547
|
+
.ace_hidden_token {
|
1548
|
+
display: none;
|
1549
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,r){var a=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,o=function(){function p(s,l){this.canvas=a.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.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)"},s.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(s){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var u=(s.lastRow+1)*this.lineHeight;u<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function h(O,$){return O.priority<$.priority?-1:O.priority>$.priority?1:0}var d=this.renderer.session.$annotations;if(c.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 S=d[y].row,_=this.compensateFoldRows(S,b),C=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),R=A-w;if(R<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)}c.fillStyle=l[d[y].type]||null,c.fillRect(0,C,this.canvasWidth,A-w)}}var T=this.renderer.session.selection.getCursor();if(T){var _=this.compensateFoldRows(T.row,b),C=Math.round((T.row-_)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,C,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(s,l){var u=0;if(l&&l.length>0)for(var c=0;c<l.length;c++)s>l[c].start.row&&s<l[c].end.row?u+=s-l[c].start.row:s>=l[c].end.row&&(u+=l[c].end.row-l[c].start.row);return u},p}();f.implement(o.prototype,g),i.Decorator=o}),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,r){var a=n("./lib/oop"),f=n("./lib/dom"),g=n("./lib/lang"),o=n("./config"),p=n("./layer/gutter").Gutter,s=n("./layer/marker").Marker,l=n("./layer/text").Text,u=n("./layer/cursor").Cursor,c=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,S=n("./lib/event_emitter").EventEmitter,_=n("./css/editor-css"),C=n("./layer/decorators").Decorator,w=n("./lib/useragent"),A=n("./layer/text_util").isTextToken;f.importCssString(_,"ace_editor.css",!1);var R=function(){function E(T,O){var $=this;this.container=T||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(O),o.get("useStrictCSP")==null&&o.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 s(this.content);var v=this.$textLayer=new l(this.content);this.canvas=v.element,this.$markerFront=new s(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(x){$.$scrollAnimation||$.session.setScrollTop(x.data-$.scrollMargin.top)}),this.scrollBarH.on("scroll",function(x){$.$scrollAnimation||$.session.setScrollLeft(x.data-$.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){$.updateCharacterSize(),$.onResize(!0,$.gutterWidth,$.$size.width,$.$size.height),$._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(),o.resetOptions(this),o._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(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},E.prototype.updateLines=function(T,O,$){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRow<O&&(this.$changedLines.lastRow=O)):this.$changedLines={firstRow:T,lastRow:O},this.$changedLines.lastRow<this.layerConfig.firstRow)if($)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(T){T?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(T,O,$,v){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?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),$||($=x.clientWidth||x.scrollWidth);var k=this.$updateCachedSize(T,O,$,v);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!$&&!v)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?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(T,O,$,v){v-=this.$extraHeight||0;var x=0,k=this.$size,M={width:k.width,height:k.height,scrollerHeight:k.scrollerHeight,scrollerWidth:k.scrollerWidth};if(v&&(T||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),$&&(T||k.width!=$)){x|=this.CHANGE_SIZE,k.width=$,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,$-O-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var L=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",L),f.setStyle(this.scroller.style,"right",L),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(k.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(x|=this.CHANGE_FULL)}return k.$dirty=!$||!v,x&&this._signal("resize",M),x},E.prototype.onGutterResize=function(T){var O=this.$showGutter?T: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 T=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(T/this.characterWidth);return this.session.adjustWrapLimit(O,this.$showPrintMargin&&this.$printMarginColumn)},E.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},E.prototype.getAnimatedScroll=function(){return this.$animatedScroll},E.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},E.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},E.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},E.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},E.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},E.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},E.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},E.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},E.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},E.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},E.prototype.getShowGutter=function(){return this.getOption("showGutter")},E.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},E.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},E.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},E.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},E.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},E.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=f.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,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 T=this.textarea.style,O=this.$composition;if(!this.$keepTextAreaAtCursor&&!O){f.translate(this.textarea,-100,0);return}var $=this.$cursorLayer.$pixelPos;if($){O&&O.markerRange&&($=this.$cursorLayer.getPixelPosition(O.markerRange.start,!0));var v=this.layerConfig,x=$.top,k=$.left;x-=v.offset;var M=O&&O.useTextareaForIME||w.isMobile?this.lineHeight:1;if(x<0||x>v.height-M){f.translate(this.textarea,0,0);return}var L=1,I=this.$size.height-M;if(!O)x+=this.lineHeight;else if(O.useTextareaForIME){var N=this.textarea.value;L=this.characterWidth*this.session.$getStringScreenWidth(N)[0]}else x+=this.lineHeight+2;k-=this.scrollLeft,k>this.$size.scrollerWidth-L&&(k=this.$size.scrollerWidth-L),k+=this.gutterWidth+this.margin.left,f.setStyle(T,"height",M+"px"),f.setStyle(T,"width",L+"px"),f.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-L),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 T=this.layerConfig,O=T.lastRow,$=this.session.documentToScreenRow(O,0)*T.lineHeight;return $-this.session.getScrollTop()>T.height-T.lineHeight?O-1:O},E.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},E.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},E.prototype.setScrollMargin=function(T,O,$,v){var x=this.scrollMargin;x.top=T|0,x.bottom=O|0,x.right=v|0,x.left=$|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(T,O,$,v){var x=this.margin;x.top=T|0,x.bottom=O|0,x.right=v|0,x.left=$|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(T){this.setOption("hScrollBarAlwaysVisible",T)},E.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},E.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},E.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(T-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>T-O&&(T=this.scrollTop+O,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(T+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(T,O){if(this.$changes&&(T|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!T&&!O){this.$changes|=T;return}if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var $=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),$.firstRow!=this.layerConfig.firstRow&&$.firstRowScreen==this.layerConfig.firstRowScreen){var v=this.scrollTop+($.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;v>0&&(this.scrollTop=v,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}$=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-$.offset);var x=$.width+2*this.$padding+"px",k=$.minHeight+"px";f.setStyle(this.content.style,"width",x),f.setStyle(this.content.style,"height",k)}if(T&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-$.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update($):this.$textLayer.scrollLines($),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update($):this.$gutterLayer.scrollLines($)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update($),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update($),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update($),this._signal("afterRender",T)},E.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,$=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&($+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&$>this.$maxPixelHeight&&($=this.$maxPixelHeight);var v=$<=2*this.lineHeight,x=!v&&T>O;if($!=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=$+"px",this.$updateCachedSize(!0,this.$gutterWidth,k,$),this.desiredHeight=$,this._signal("autosize")}},E.prototype.$computeLayerConfig=function(){var T=this.session,O=this.$size,$=O.height<=2*this.lineHeight,v=this.session.getScreenLength(),x=v*this.lineHeight,k=this.$getLongestLine(),M=!$&&(this.$hScrollBarAlwaysVisible||O.scrollerWidth-k-2*this.$padding<0),L=this.$horizScroll!==M;L&&(this.$horizScroll=M,this.scrollBarH.setVisible(M));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),$=O.height<=2*this.lineHeight);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 U=!$&&(this.$vScrollBarAlwaysVisible||O.scrollerHeight-x+F<0||this.scrollTop>W.top),B=I!==U;B&&(this.$vScroll=U,this.scrollBarV.setVisible(U));var H=this.scrollTop%this.lineHeight,K=Math.ceil(N/this.lineHeight)-1,V=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),j=V+K,Q,q,Z=this.lineHeight;V=T.screenToDocumentRow(V,0);var ue=T.getFoldLine(V);ue&&(V=ue.start.row),Q=T.documentToScreenRow(V,0),q=T.getRowLength(V)*Z,j=Math.min(T.screenToDocumentRow(j,0),T.getLength()-1),N=O.scrollerHeight+T.getRowLength(j)*Z+q,H=this.scrollTop-Q*Z;var P=0;return(this.layerConfig.width!=k||L)&&(P=this.CHANGE_H_SCROLL),(L||B)&&(P|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),B&&(k=this.$getLongestLine())),this.layerConfig={width:k,padding:this.$padding,firstRow:V,firstRowScreen:Q,lastRow:j,lineHeight:Z,characterWidth:this.characterWidth,minHeight:N,maxHeight:x,offset:H,gutterOffset:Z?Math.max(0,Math.ceil((H+O.height-O.scrollerHeight)/Z)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(k-this.$padding),P},E.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,O=this.$changedLines.lastRow;this.$changedLines=null;var $=this.layerConfig;if(!(T>$.lastRow+1)&&!(O<$.firstRow)){if(O===1/0){this.$showGutter&&this.$gutterLayer.update($),this.$textLayer.update($);return}return this.$textLayer.updateLines($,T,O),!0}}},E.prototype.$getLongestLine=function(){var T=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(T+=1),this.$textLayer&&T>this.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*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(T,O){this.$gutterLayer.addGutterDecoration(T,O)},E.prototype.removeGutterDecoration=function(T,O){this.$gutterLayer.removeGutterDecoration(T,O)},E.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),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(T,O,$){this.scrollCursorIntoView(T,$),this.scrollCursorIntoView(O,$)},E.prototype.scrollCursorIntoView=function(T,O,$){if(this.$size.scrollerHeight!==0){var v=this.$cursorLayer.getPixelPosition(T),x=v.left,k=v.top,M=$&&$.top||0,L=$&&$.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+M>k?(O&&I+M>k+this.lineHeight&&(k-=O*this.$size.scrollerHeight),k===0&&(k=-this.scrollMargin.top),this.session.setScrollTop(k)):I+this.$size.scrollerHeight-L<k+this.lineHeight&&(O&&I+this.$size.scrollerHeight-L<k-this.lineHeight&&(k+=O*this.$size.scrollerHeight),this.session.setScrollTop(k+this.lineHeight+L-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(T){this.session.setScrollTop(T*this.lineHeight)},E.prototype.alignCursor=function(T,O){typeof T=="number"&&(T={row:T,column:0});var $=this.$cursorLayer.getPixelPosition(T),v=this.$size.scrollerHeight-this.lineHeight,x=$.top-v*(O||0);return this.session.setScrollTop(x),x},E.prototype.$calcSteps=function(T,O){var $=0,v=this.STEPS,x=[],k=function(M,L,I){return I*(Math.pow(M-1,3)+1)+L};for($=0;$<v;++$)x.push(k($/this.STEPS,T,O-T));return x},E.prototype.scrollToLine=function(T,O,$,v){var x=this.$cursorLayer.getPixelPosition({row:T,column:0}),k=x.top;O&&(k-=this.$size.scrollerHeight/2);var M=this.scrollTop;this.session.setScrollTop(k),$!==!1&&this.animateScrolling(M,v)},E.prototype.animateScrolling=function(T,O){var $=this.scrollTop;if(!this.$animatedScroll)return;var v=this;if(T==$)return;if(this.$scrollAnimation){var x=this.$scrollAnimation.steps;if(x.length&&(T=x[0],T==$))return}var k=v.$calcSteps(T,$);this.$scrollAnimation={from:T,to:$,steps:k},clearInterval(this.$timer),v.session.setScrollTop(k.shift()),v.session.$scrollTop=$;function M(){v.$timer=clearInterval(v.$timer),v.$scrollAnimation=null,v.$stopAnimation=!1,O&&O()}this.$timer=setInterval(function(){if(v.$stopAnimation){M();return}if(!v.session)return clearInterval(v.$timer);k.length?(v.session.setScrollTop(k.shift()),v.session.$scrollTop=$):$!=null?(v.session.$scrollTop=-1,v.session.setScrollTop($),$=null):M()},10)},E.prototype.scrollToY=function(T){this.scrollTop!==T&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=T)},E.prototype.scrollToX=function(T){this.scrollLeft!==T&&(this.scrollLeft=T),this.$loop.schedule(this.CHANGE_H_SCROLL)},E.prototype.scrollTo=function(T,O){this.session.setScrollTop(O),this.session.setScrollLeft(T)},E.prototype.scrollBy=function(T,O){O&&this.session.setScrollTop(this.session.getScrollTop()+O),T&&this.session.setScrollLeft(this.session.getScrollLeft()+T)},E.prototype.isScrollableBy=function(T,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||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},E.prototype.pixelToScreenCoordinates=function(T,O){var $;if(this.$hasCssTransforms){$={top:0,left:0};var v=this.$fontMetrics.transformCoordinates([T,O]);T=v[1]-this.gutterWidth-this.margin.left,O=v[0]}else $=this.scroller.getBoundingClientRect();var x=T+this.scrollLeft-$.left-this.$padding,k=x/this.characterWidth,M=Math.floor((O+this.scrollTop-$.top)/this.lineHeight),L=this.$blockCursor?Math.floor(k):Math.round(k);return{row:M,column:L,side:k-L>0?1:-1,offsetX:x}},E.prototype.screenToTextCoordinates=function(T,O){var $;if(this.$hasCssTransforms){$={top:0,left:0};var v=this.$fontMetrics.transformCoordinates([T,O]);T=v[1]-this.gutterWidth-this.margin.left,O=v[0]}else $=this.scroller.getBoundingClientRect();var x=T+this.scrollLeft-$.left-this.$padding,k=x/this.characterWidth,M=this.$blockCursor?Math.floor(k):Math.round(k),L=Math.floor((O+this.scrollTop-$.top)/this.lineHeight);return this.session.screenToDocumentPosition(L,Math.max(M,0),x)},E.prototype.textToScreenCoordinates=function(T,O){var $=this.scroller.getBoundingClientRect(),v=this.session.documentToScreenPosition(T,O),x=this.$padding+(this.session.$bidiHandler.isBidiRow(v.row,T)?this.session.$bidiHandler.getPosLeft(v.column):Math.round(v.column*this.characterWidth)),k=v.row*this.lineHeight;return{pageX:$.left+x-this.scrollLeft,pageY:$.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(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},E.prototype.setCompositionText=function(T){var O=this.session.selection.cursor;this.addToken(T,"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 T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},E.prototype.setGhostText=function(T,O){var $=this.session.selection.cursor,v=O||{row:$.row,column:$.column};this.removeGhostText();var x=this.$calculateWrappedTextChunks(T,v);this.addToken(x[0].text,"ghost_text",v.row,v.column),this.$ghostText={text:T,position:{row:v.row,column:v.column}};var k=f.createElement("div");if(x.length>1){var M=this.hideTokensAfterPosition(v.row,v.column),L;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),L=H}),M.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)),L.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,U=W<F-I.top;if(U)return;W<F?this.scrollBy(0,(x.length-1)*this.lineHeight):this.scrollToRow(v.row)}},E.prototype.$calculateWrappedTextChunks=function(T,O){var $=this.$size.scrollerWidth-this.$padding*2,v=Math.floor($/this.characterWidth)-2;v=v<=0?60:v;for(var x=T.split(/\r?\n/),k=[],M=0;M<x.length;M++){var L=this.session.$getDisplayTokens(x[M],O.column),I=this.session.$computeWrapSplits(L,v,this.session.$tabSize);if(I.length>0){var N=0;I.push(x[M].length);for(var F=0;F<I.length;F++){var W=x[M].slice(N,I[F]);k.push({text:W,wrapped:!0}),N=I[F]}}else k.push({text:x[M],wrapped:!1})}return k},E.prototype.removeGhostText=function(){if(this.$ghostText){var T=this.$ghostText.position;this.removeExtraToken(T.row,T.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},E.prototype.addToken=function(T,O,$,v){var x=this.session;x.bgTokenizer.lines[$]=null;var k={type:O,value:T},M=x.getTokens($);if(v==null||!M.length)M.push(k);else for(var L=0,I=0;I<M.length;I++){var N=M[I];if(L+=N.value.length,v<=L){var F=N.value.length-(L-v),W=N.value.slice(0,F),U=N.value.slice(F);M.splice(I,1,{type:N.type,value:W},k,{type:N.type,value:U});break}}this.updateLines($,$)},E.prototype.hideTokensAfterPosition=function(T,O){for(var $=this.session.getTokens(T),v=0,x=!1,k=[],M=0;M<$.length;M++){var L=$[M];if(v+=L.value.length,L.type!=="ghost_text"){if(x){k.push({type:L.type,value:L.value}),L.type="hidden_token";continue}v===O&&(x=!0)}}return this.updateLines(T,T),k},E.prototype.removeExtraToken=function(T,O){this.session.bgTokenizer.lines[T]=null,this.updateLines(T,T)},E.prototype.setTheme=function(T,O){var $=this;if(this.$themeId=T,$._dispatchEvent("themeChange",{theme:T}),!T||typeof T=="string"){var v=T||this.$options.theme.initialValue;o.loadModule(["theme",v],x)}else x(T);function x(k){if($.$themeId!=T)return O&&O();if(!k||!k.cssClass)throw new Error("couldn't load module "+T+" or it didn't call define");k.$id&&($.$themeId=k.$id),f.importCssString(k.cssText,k.cssClass,$.container),$.theme&&f.removeCssClass($.container,$.theme.cssClass);var M="padding"in k?k.padding:"padding"in($.theme||{})?4:$.$padding;$.$padding&&M!=$.$padding&&$.setPadding(M),$.$theme=k.cssClass,$.theme=k,f.addCssClass($.container,k.cssClass),f.setCssClass($.container,"ace_dark",k.isDark),$.$size&&($.$size.width=0,$.$updateSizeAsync()),$._dispatchEvent("themeLoaded",{theme:k}),O&&O(),w.isSafari&&$.scroller&&($.scroller.style.background="red",$.scroller.style.background="")}},E.prototype.getTheme=function(){return this.$themeId},E.prototype.setStyle=function(T,O){f.setCssClass(this.container,T,O!==!1)},E.prototype.unsetStyle=function(T){f.removeCssClass(this.container,T)},E.prototype.setCursorStyle=function(T){f.setStyle(this.scroller.style,"cursor",T)},E.prototype.setMouseCursor=function(T){f.setStyle(this.scroller.style,"cursor",T)},E.prototype.attachToShadowRoot=function(){f.importCssString(_,"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(T){var O=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,T===!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($){O.$scrollAnimation||O.session.setScrollTop($.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){O.$scrollAnimation||O.session.setScrollLeft($.data-O.scrollMargin.left)}),this.$scrollDecorator=new C(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function($){O.$scrollAnimation||O.session.setScrollTop($.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){O.$scrollAnimation||O.session.setScrollLeft($.data-O.scrollMargin.left)}))},E.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var T=this;this.$resizeTimer=g.delayedCall(function(){T.destroyed||T.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(O){var $=O[0].contentRect.width,v=O[0].contentRect.height;Math.abs(T.$size.width-$)>1||Math.abs(T.$size.height-v)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},E}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,a.implement(R.prototype,S),o.defineOptions(R.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=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,r){var a=n("../lib/oop"),f=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,o=n("../config");function p(c){var h="importScripts('"+f.qualifyURL(c)+"');";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 s(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(o.get("loadWorkerFromBlob")){var h=p(c),d=window.URL||window.webkitURL,m=d.createObjectURL(h);return new Worker(m)}return new Worker(c)}var l=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){a.implement(this,g),this.$createWorkerFromOldConfig=function(c,h,d,m,b){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),o.get("packaged")||!n.toUrl)m=m||o.moduleUrl(h,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var S={};c.forEach(function(_){S[_]=y(n.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(m),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:S,module:h,classname:d}),this.$worker},this.onMessage=function(c){var h=c.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(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return f.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,h){this.$worker.postMessage({command:c,args:h})},this.call=function(c,h,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,h.push(m)}this.send(c,h)},this.emit=function(c,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:c,data:{data:h.data}})}catch(d){console.error(d.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(l.prototype);var u=function(c,h,d){var m=null,b=!1,y=Object.create(g),S=[],_=new l({messageBuffer:S,terminate:function(){},postMessage:function(w){S.push(w),m&&(b?setTimeout(C):C())}});_.setEmitSync=function(w){b=w};var C=function(){var w=S.shift();w.command?m[w.command].apply(m,w.args):w.event&&y._signal(w.event,w.data)};return y.postMessage=function(w){_.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})},o.loadModule(["worker",h],function(w){for(m=new w[d](y);S.length;)C()}),_};i.UIWorkerClient=u,i.WorkerClient=l,i.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,r){var a=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),o=function(){function p(s,l,u,c,h,d){var m=this;this.length=l,this.session=s,this.doc=s.getDocument(),this.mainClass=h,this.othersClass=d,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=u;var b=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var s=this,l=this.doc,u=this.session;this.selectionBefore=u.selection.toJSON(),u.selection.inMultiSelectMode&&u.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=u.addMarker(new a(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(h){var d=l.createAnchor(h.row,h.column);d.$insertRight=!0,d.detach(),s.others.push(d)}),u.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,l=this;this.othersActive=!0,this.others.forEach(function(u){u.markerId=s.addMarker(new a(u.row,u.column,u.row,u.column+l.length),l.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},p.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var l=s;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var u=s.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,c=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,h=l.start.column-this.pos.column;if(this.updateAnchors(s),c&&(this.length+=u),c&&!this.session.$fromUndo){if(s.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,s.lines)}else if(s.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 a(b.row,b.column,b.row,b.column-u))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var l=this.others.length;l--;)this.others[l].onChange(s);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var s=this,l=this.session,u=function(h,d){l.removeMarker(h.markerId),h.markerId=l.addMarker(new a(h.row,h.column,h.row,h.column+s.length),d,null,!1)};u(this.pos,this.mainClass);for(var c=this.others.length;c--;)u(this.others[c],this.othersClass)}},p.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},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 s=this.session.getUndoManager(),l=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,u=0;u<l;u++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(o.prototype,f),i.PlaceHolder=o}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,r){var a=n("../lib/event"),f=n("../lib/useragent");function g(p,s){return p.row==s.row&&p.column==s.column}function o(p){var s=p.domEvent,l=s.altKey,u=s.shiftKey,c=s.ctrlKey,h=p.getAccelKey(),d=p.getButton();if(c&&f.isMac&&(d=s.button),p.editor.inMultiSelectMode&&d==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!c&&!l&&!h){d===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(d===0){var m=p.editor,b=m.selection,y=m.inMultiSelectMode,S=p.getDocumentPosition(),_=b.getCursor(),C=p.inSelection()||b.isEmpty()&&g(S,_),w=p.x,A=p.y,R=function(W){w=W.clientX,A=W.clientY},E=m.session,T=m.renderer.pixelToScreenCoordinates(w,A),O=T,$;if(m.$mouseHandler.$enableJumpToDef)c&&l||h&&l?$=u?"block":"add":l&&m.$blockSelectEnabled&&($="block");else if(h&&!l){if($="add",!y&&u)return}else l&&m.$blockSelectEnabled&&($="block");if($&&f.isMac&&s.ctrlKey&&m.$mouseHandler.cancelContextMenu(),$=="add"){if(!y&&C)return;if(!y){var v=b.toOrientedRange();m.addSelectionMarker(v)}var x=b.rangeList.rangeAtPoint(S);m.inVirtualSelectionMode=!0,u&&(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):(u?b.substractPoint(v.cursor):v&&(m.removeSelectionMarker(v),b.addRange(v)),b.addRange(W)),m.inVirtualSelectionMode=!1})}else if($=="block"){p.stop(),m.inVirtualSelectionMode=!0;var k,M=[],L=function(){var W=m.renderer.pixelToScreenCoordinates(w,A),U=E.screenToDocumentPosition(W.row,W.column,W.offsetX);g(O,W)&&g(U,b.lead)||(O=W,m.selection.moveToPosition(U),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(M),M=b.rectangularRangeBlock(O,T),m.$mouseHandler.$clickSelection&&M.length==1&&M[0].isEmpty()&&(M[0]=m.$mouseHandler.$clickSelection.clone()),M.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!h?b.toSingleRange():!y&&h&&(k=b.toOrientedRange(),m.addSelectionMarker(k)),u?T=E.documentToScreenPosition(b.lead):b.moveToPosition(S),O={row:-1,column:-1};var I=function(W){L(),clearInterval(F),m.removeSelectionMarkers(M),M.length||(M=[b.toOrientedRange()]),k&&(m.removeSelectionMarker(k),b.toSingleRange(k));for(var U=0;U<M.length;U++)b.addRange(M[U]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=L;a.capture(m.container,R,I);var F=setInterval(function(){N()},20);return p.preventDefault()}}}i.onMouseDown=o}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,r){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 a=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new a(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,i,r){var a=n("./range_list").RangeList,f=n("./range").Range,g=n("./selection").Selection,o=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),s=n("./lib/lang"),l=n("./commands/multi_select_commands");i.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=n("./search").Search,c=new u;function h(_,C,w){return c.$options.wrap=!0,c.$options.needle=C,c.$options.backwards=w==-1,c.find(_)}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(_,C){if(_){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(_),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),C||this.fromOrientedRange(_);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}_.cursor||(_.cursor=_.end);var A=this.rangeList.add(_);return this.$onAddRange(_),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)),C||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var C=this.rangeList.removeAll();C.length&&this.$onRemoveRange(C),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var C=this.rangeList.substractPoint(_);if(C)return this.$onRemoveRange(C),C[0]},this.mergeOverlappingRanges=function(){var _=this.rangeList.merge();_.length&&this.$onRemoveRange(_)},this.$onAddRange=function(_){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(_),this._signal("addRange",{range:_})},this.$onRemoveRange=function(_){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var C=this.rangeList.ranges.pop();_.push(C),this.rangeCount=0}for(var w=_.length;w--;){var A=this.ranges.indexOf(_[w]);this.ranges.splice(A,1)}this._signal("removeRange",{ranges:_}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),C=C||this.ranges[0],C&&!C.isEqual(this.getRange())&&this.fromOrientedRange(C)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new a,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var _=this.ranges.length?this.ranges:[this.getRange()],C=[],w=0;w<_.length;w++){var A=_[w],R=A.start.row,E=A.end.row;if(R===E)C.push(A.clone());else{for(C.push(new f(R,A.start.column,R,this.session.getLine(R).length));++R<E;)C.push(this.getLineRange(R,!0));C.push(new f(E,0,E,A.end.column))}w==0&&!this.isBackwards()&&(C=C.reverse())}this.toSingleRange();for(var w=C.length;w--;)this.addRange(C[w])},this.joinSelections=function(){var _=this.rangeList.ranges,C=_[_.length-1],w=f.fromPoints(_[0].start,C.end);this.toSingleRange(),this.setSelectionRange(w,C.cursor==C.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var _=this.rangeList.ranges,C=_[_.length-1],w=f.fromPoints(_[0].start,C.end);this.toSingleRange(),this.setSelectionRange(w,C.cursor==C.start)}else{var A=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(A,R);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,C,w){var A=[],R=_.column<C.column;if(R)var E=_.column,T=C.column,O=_.offsetX,$=C.offsetX;else var E=C.column,T=_.column,O=C.offsetX,$=_.offsetX;var v=_.row<C.row;if(v)var x=_.row,k=C.row;else var x=C.row,k=_.row;E<0&&(E=0),x<0&&(x=0),x==k&&(w=!0);for(var M,L=x;L<=k;L++){var I=f.fromPoints(this.session.screenToDocumentPosition(L,E,O),this.session.screenToDocumentPosition(L,T,$));if(I.isEmpty()){if(M&&b(I.end,M))break;M=I.end}I.cursor=R?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(_){_.cursor||(_.cursor=_.end);var C=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",C),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var C=this.session.$selectionMarkers.indexOf(_);C!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var C=this.session.$selectionMarkers,w=_.length;w--;){var A=_[w];if(A.marker){this.session.removeMarker(A.marker);var R=C.indexOf(A);R!=-1&&C.splice(R,1)}}this.session.selectionMarkerCount=C.length},this.$onAddRange=function(_){this.addSelectionMarker(_.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(_){this.removeSelectionMarkers(_.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(_){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(_){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var C=_.command,w=_.editor;if(w.multiSelect){if(C.multiSelectAction)C.multiSelectAction=="forEach"?A=w.forEachSelection(C,_.args):C.multiSelectAction=="forEachLine"?A=w.forEachSelection(C,_.args,!0):C.multiSelectAction=="single"?(w.exitMultiSelectMode(),A=C.exec(w,_.args||{})):A=C.multiSelectAction(w,_.args||{});else{var A=C.exec(w,_.args||{});w.multiSelect.addRange(w.multiSelect.toOrientedRange()),w.multiSelect.mergeOverlappingRanges()}return A}},this.forEachSelection=function(_,C,w){if(!this.inVirtualSelectionMode){var A=w&&w.keepOrder,R=w==!0||w&&w.$byLines,E=this.session,T=this.selection,O=T.rangeList,$=(A?T:O).ranges,v;if(!$.length)return _.exec?_.exec(this,C||{}):_(this,C||{});var x=T._eventRegistry;T._eventRegistry={};var k=new g(E);this.inVirtualSelectionMode=!0;for(var M=$.length;M--;){if(R)for(;M>0&&$[M].start.row==$[M-1].end.row;)M--;k.fromOrientedRange($[M]),k.index=M,this.selection=E.selection=k;var L=_.exec?_.exec(this,C||{}):_(this,C||{});!v&&L!==void 0&&(v=L),k.toOrientedRange($[M])}k.detach(),this.selection=E.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=x,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),v}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var C=this.multiSelect.rangeList.ranges,w=[],A=0;A<C.length;A++)w.push(this.session.getTextRange(C[A]));var R=this.session.getDocument().getNewLineCharacter();_=w.join(R),_.length==(w.length-1)*R.length&&(_="")}else this.selection.isEmpty()||(_=this.session.getTextRange(this.getSelectionRange()));return _},this.$checkMultiselectChange=function(_,C){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var w=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&C==this.multiSelect.anchor)return;var A=C==this.multiSelect.anchor?w.cursor==w.start?w.end:w.start:w.cursor;A.row!=C.row||this.session.$clipPositionToDocument(A.row,A.column).column!=C.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(_,C,w){if(C=C||{},C.needle=_||C.needle,C.needle==null){var A=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();C.needle=this.session.getTextRange(A)}this.$search.set(C);var R=this.$search.findAll(this.session);if(!R.length)return 0;var E=this.multiSelect;w||E.toSingleRange(R[0]);for(var T=R.length;T--;)E.addRange(R[T],!0);return A&&E.rangeList.rangeAtPoint(A.start)&&E.addRange(A,!0),R.length},this.selectMoreLines=function(_,C){var w=this.selection.toOrientedRange(),A=w.cursor==w.end,R=this.session.documentToScreenPosition(w.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var E=this.session.screenToDocumentPosition(R.row+_,R.column);if(w.isEmpty())var O=E;else var T=this.session.documentToScreenPosition(A?w.end:w.start),O=this.session.screenToDocumentPosition(T.row+_,T.column);if(A){var $=f.fromPoints(E,O);$.cursor=$.start}else{var $=f.fromPoints(O,E);$.cursor=$.end}if($.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(w);else if(C)var v=w.cursor;this.selection.addRange($),v&&this.selection.substractPoint(v)},this.transposeSelections=function(_){for(var C=this.session,w=C.multiSelect,A=w.ranges,R=A.length;R--;){var E=A[R];if(E.isEmpty()){var T=C.getWordRange(E.start.row,E.start.column);E.start.row=T.start.row,E.start.column=T.start.column,E.end.row=T.end.row,E.end.column=T.end.column}}w.mergeOverlappingRanges();for(var O=[],R=A.length;R--;){var E=A[R];O.unshift(C.getTextRange(E))}_<0?O.unshift(O.pop()):O.push(O.shift());for(var R=A.length;R--;){var E=A[R],$=E.clone();C.replace(E,O[R]),E.start.row=$.start.row,E.start.column=$.start.column}w.fromOrientedRange(w.ranges[0])},this.selectMore=function(_,C,w){var A=this.session,R=A.multiSelect,E=R.toOrientedRange();if(!(E.isEmpty()&&(E=A.getWordRange(E.start.row,E.start.column),E.cursor=_==-1?E.start:E.end,this.multiSelect.addRange(E),w))){var T=A.getTextRange(E),O=h(A,T,_);O&&(O.cursor=_==-1?O.start:O.end,this.session.unfold(O),this.multiSelect.addRange(O),this.renderer.scrollCursorIntoView(null,.5)),C&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var _=this.session,C=_.multiSelect,w=C.ranges,A=-1,R=w.filter(function(N){if(N.cursor.row==A)return!0;A=N.cursor.row});if(!w.length||R.length==w.length-1){var E=this.selection.getRange(),T=E.start.row,O=E.end.row,$=T==O;if($){var v=this.session.getLength(),x;do x=this.session.getLine(O);while(/[=:]/.test(x)&&++O<v);do x=this.session.getLine(T);while(/[=:]/.test(x)&&--T>0);T<0&&(T=0),O>=v&&(O=v-1)}var k=this.session.removeFullLines(T,O);k=this.$reAlignText(k,$),this.session.insert({row:T,column:0},k.join(`
|
1550
|
+
`)+`
|
1551
|
+
`),$||(E.start.column=0,E.end.column=k[k.length-1].length),this.selection.setRange(E)}else{R.forEach(function(N){C.substractPoint(N.cursor)});var M=0,L=1/0,I=w.map(function(N){var F=N.cursor,W=_.getLine(F.row),U=W.substr(F.column).search(/\S/g);return U==-1&&(U=0),F.column>M&&(M=F.column),U<L&&(L=U),U});w.forEach(function(N,F){var W=N.cursor,U=M-W.column,B=I[F]-L;U>B?_.insert(W,s.stringRepeat(" ",U-B)):_.remove(new f(W.row,W.column,W.row,W.column-U+B)),N.start.column=N.end.column=M,N.start.row=N.end.row=W.row,N.cursor=N.end}),C.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,C){var w=!0,A=!0,R,E,T;return _.map(function(k){var M=k.match(/(\s*)(.*?)(\s*)([=:].*)/);return M?R==null?(R=M[1].length,E=M[2].length,T=M[3].length,M):(R+E+T!=M[1].length+M[2].length+M[3].length&&(A=!1),R!=M[1].length&&(w=!1),R>M[1].length&&(R=M[1].length),E<M[2].length&&(E=M[2].length),T>M[3].length&&(T=M[3].length),M):[k]}).map(C?$:w?A?v:$:x);function O(k){return s.stringRepeat(" ",k)}function $(k){return k[2]?O(R)+k[2]+O(E-k[2].length+T)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function v(k){return k[2]?O(R+E-k[2].length)+k[2]+O(T)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function x(k){return k[2]?O(R)+k[2]+O(T)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}}}).call(m.prototype);function b(_,C){return _.row==C.row&&_.column==C.column}i.onSessionChange=function(_){var C=_.session;C&&!C.multiSelect&&(C.$selectionMarkers=[],C.selection.$initRangeList(),C.multiSelect=C.selection),this.multiSelect=C&&C.multiSelect;var w=_.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)),C&&(C.multiSelect.on("addRange",this.$onAddRange),C.multiSelect.on("removeRange",this.$onRemoveRange),C.multiSelect.on("multiSelect",this.$onMultiSelect),C.multiSelect.on("singleSelect",this.$onSingleSelect),C.multiSelect.lead.on("change",this.$checkMultiselectChange),C.multiSelect.anchor.on("change",this.$checkMultiselectChange)),C&&this.inMultiSelectMode!=C.selection.inMultiSelectMode&&(C.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(_){_.$multiselectOnSessionChange||(_.$onAddRange=_.$onAddRange.bind(_),_.$onRemoveRange=_.$onRemoveRange.bind(_),_.$onMultiSelect=_.$onMultiSelect.bind(_),_.$onSingleSelect=_.$onSingleSelect.bind(_),_.$multiselectOnSessionChange=i.onSessionChange.bind(_),_.$checkMultiselectChange=_.$checkMultiselectChange.bind(_),_.$multiselectOnSessionChange(_),_.on("changeSession",_.$multiselectOnSessionChange),_.on("mousedown",o),_.commands.addCommands(l.defaultCommands),S(_))}function S(_){if(!_.textInput)return;var C=_.textInput.getElement(),w=!1;p.addListener(C,"keydown",function(R){var E=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);_.$blockSelectEnabled&&E?w||(_.renderer.setMouseCursor("crosshair"),w=!0):w&&A()},_),p.addListener(C,"keyup",A,_),p.addListener(C,"blur",A,_);function A(R){w&&(_.renderer.setMouseCursor(""),w=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(_){y(this),_?this.on("mousedown",o):this.off("mousedown",o)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,r){var a=n("../../range").Range,f=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,o,p){var s=g.getLine(p);return this.foldingStartMarker.test(s)?"start":o=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(g,o,p){return null},this.indentationBlock=function(g,o,p){var s=/\S/,l=g.getLine(o),u=l.search(s);if(u!=-1){for(var c=p||l.length,h=g.getLength(),d=o,m=o;++o<h;){var b=g.getLine(o).search(s);if(b!=-1){if(b<=u){var y=g.getTokenAt(o,0);if(!y||y.type!=="string")break}m=o}}if(m>d){var S=g.getLine(m).length;return new a(d,c,m,S)}}},this.openingBracketBlock=function(g,o,p,s,l){var u={row:p,column:s+1},c=g.$findClosingBracket(o,u,l);if(c){var h=g.foldWidgets[c.row];return h==null&&(h=g.getFoldWidget(c.row)),h=="start"&&c.row>u.row&&(c.row--,c.column=g.getLine(c.row).length),a.fromPoints(u,c)}},this.closingBracketBlock=function(g,o,p,s,l){var u={row:p,column:s},c=g.$findOpeningBracket(o,u);if(c)return c.column++,u.column--,a.fromPoints(c,u)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(n,i,r){var a=n("../lib/dom"),f=n("../range").Range,g=n("../config").nls;function o(s,l,u){for(var c=0,h=s.length-1;c<=h;){var d=c+h>>1,m=u(l,s[d]);if(m>0)c=d+1;else if(m<0)h=d-1;else return d}return-(c+1)}function p(s,l,u){var c=s.getAnnotations().sort(f.comparePoints);if(c.length){var h=o(c,{row:l,column:-1},f.comparePoints);h<0&&(h=-h-1),h>=c.length?h=u>0?0:c.length-1:h===0&&u<0&&(h=c.length-1);var d=c[h];if(!(!d||!u)){if(d.row===l){do d=c[h+=u];while(d&&d.row===l);if(!d)return c.slice()}var m=[];l=d.row;do m[u<0?"unshift":"push"](d),d=c[h+=u];while(d&&d.row==l);return m.length&&m}}}i.showErrorMarker=function(s,l){var u=s.session,c=s.getCursorPosition(),h=c.row,d=u.widgetManager.getWidgetsAtRow(h).filter(function(R){return R.type=="errorMarker"})[0];d?d.destroy():h-=l;var m=p(u,h,l),b;if(m){var y=m[0];c.column=(y.pos&&typeof y.column!="number"?y.pos.sc:y.column)||0,c.row=y.row,b=s.renderer.$gutterLayer.$annotations[c.row]}else{if(d)return;b={displayText:[g("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(c.row),s.selection.moveToPosition(c);var S={row:c.row,fixedWidth:!0,coverGutter:!0,el:a.createElement("div"),type:"errorMarker"},_=S.el.appendChild(a.createElement("div")),C=S.el.appendChild(a.createElement("div"));C.className="error_widget_arrow "+b.className;var w=s.renderer.$cursorLayer.getPixelPosition(c).left;C.style.left=w+s.renderer.gutterWidth-5+"px",S.el.className="error_widget_wrapper",_.className="error_widget "+b.className,b.displayText.forEach(function(R,E){_.appendChild(a.createTextNode(R)),E<b.displayText.length-1&&_.appendChild(a.createElement("br"))}),_.appendChild(a.createElement("div"));var A=function(R,E,T){if(E===0&&(T==="esc"||T==="return"))return S.destroy(),{command:"null"}};S.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(A),u.widgetManager.removeLineWidget(S),s.off("changeSelection",S.destroy),s.off("changeSession",S.destroy),s.off("mouseup",S.destroy),s.off("change",S.destroy))},s.keyBinding.addKeyboardHandler(A),s.on("changeSelection",S.destroy),s.on("changeSession",S.destroy),s.on("mouseup",S.destroy),s.on("change",S.destroy),s.session.widgetManager.addLineWidget(S),S.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:S.el.offsetHeight})},a.importCssString(`
|
1552
|
+
.error_widget_wrapper {
|
1553
|
+
background: inherit;
|
1554
|
+
color: inherit;
|
1555
|
+
border:none
|
1556
|
+
}
|
1557
|
+
.error_widget {
|
1558
|
+
border-top: solid 2px;
|
1559
|
+
border-bottom: solid 2px;
|
1560
|
+
margin: 5px 0;
|
1561
|
+
padding: 10px 40px;
|
1562
|
+
white-space: pre-wrap;
|
1563
|
+
}
|
1564
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
1565
|
+
border-color: #ff5a5a
|
1566
|
+
}
|
1567
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
1568
|
+
border-color: #F1D817
|
1569
|
+
}
|
1570
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
1571
|
+
border-color: #5a5a5a
|
1572
|
+
}
|
1573
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
1574
|
+
border-color: #5aaa5a
|
1575
|
+
}
|
1576
|
+
.error_widget_arrow {
|
1577
|
+
position: absolute;
|
1578
|
+
border: solid 5px;
|
1579
|
+
border-top-color: transparent!important;
|
1580
|
+
border-right-color: transparent!important;
|
1581
|
+
border-left-color: transparent!important;
|
1582
|
+
top: -5px;
|
1583
|
+
}
|
1584
|
+
`,"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,r){n("./loader_build")(i);var a=n("./lib/dom"),f=n("./range").Range,g=n("./editor").Editor,o=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,s=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(u,c){if(typeof u=="string"){var h=u;if(u=document.getElementById(h),!u)throw new Error("ace.edit can't find div #"+h)}if(u&&u.env&&u.env.editor instanceof g)return u.env.editor;var d="";if(u&&/input|textarea/i.test(u.tagName)){var m=u;d=m.value,u=a.createElement("pre"),m.parentNode.replaceChild(u,m)}else u&&(d=u.textContent,u.innerHTML="");var b=i.createEditSession(d),y=new g(new s(u),b,c),S={document:b,editor:y,onResize:y.resize.bind(y,null)};return m&&(S.textarea=m),y.on("destroy",function(){S.editor.container.env=null}),y.container.env=y.env=S,y},i.createEditSession=function(u,c){var h=new o(u,c);return h.setUndoManager(new p),h},i.Range=f,i.Editor=g,i.EditSession=o,i.UndoManager=p,i.VirtualRenderer=s;var l=i.config.version;i.version=l}),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 r in n)n.hasOwnProperty(r)&&(i.ace[r]=n[r]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()}(qo)),qo.exports}var x2=_2();const Ul=Fi(x2),C2="/assets/mode-yaml-ELgwiJiP.js",$2="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Ul.config.setModuleUrl("ace/mode/yaml",C2);Ul.config.setModuleUrl("ace/theme/monokai",$2);var vp=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(r,a){return r[0]===n?(i=a,!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),r=this.__entries__[i];return r&&r[1]},t.prototype.set=function(n,i){var r=e(this.__entries__,n);~r?this.__entries__[r][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,r=e(i,n);~r&&i.splice(r,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 r=0,a=this.__entries__;r<a.length;r++){var f=a[r];n.call(i,f[1],f[0])}},t}()}(),Xa=typeof window<"u"&&typeof document<"u"&&window.document===document,Ds=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")()}(),A2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ds):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),k2=2;function M2(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&g()}function f(){A2(a)}function g(){var o=Date.now();if(n){if(o-r<k2)return;i=!0}else n=!0,i=!1,setTimeout(f,t);r=o}return g}var T2=20,E2=["top","right","bottom","left","width","height","size","weight"],R2=typeof MutationObserver<"u",L2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=M2(this.refresh.bind(this),T2)}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(){!Xa||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),R2?(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(){!Xa||!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,r=E2.some(function(a){return!!~i.indexOf(a)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),yp=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Ri=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ds},bp=So(0,0,0,0);function Fs(e){return parseFloat(e)||0}function Qu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,r){var a=e["border-"+r+"-width"];return i+Fs(a)},0)}function O2(e){for(var t=["top","right","bottom","left"],n={},i=0,r=t;i<r.length;i++){var a=r[i],f=e["padding-"+a];n[a]=Fs(f)}return n}function I2(e){var t=e.getBBox();return So(0,0,t.width,t.height)}function N2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return bp;var i=Ri(e).getComputedStyle(e),r=O2(i),a=r.left+r.right,f=r.top+r.bottom,g=Fs(i.width),o=Fs(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+a)!==t&&(g-=Qu(i,"left","right")+a),Math.round(o+f)!==n&&(o-=Qu(i,"top","bottom")+f)),!F2(e)){var p=Math.round(g+a)-t,s=Math.round(o+f)-n;Math.abs(p)!==1&&(g-=p),Math.abs(s)!==1&&(o-=s)}return So(r.left,r.top,g,o)}var D2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ri(e).SVGGraphicsElement}:function(e){return e instanceof Ri(e).SVGElement&&typeof e.getBBox=="function"}}();function F2(e){return e===Ri(e).document.documentElement}function P2(e){return Xa?D2(e)?I2(e):N2(e):bp}function W2(e){var t=e.x,n=e.y,i=e.width,r=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(a.prototype);return yp(f,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),f}function So(e,t,n,i){return{x:e,y:t,width:n,height:i}}var B2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=So(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=P2(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}(),z2=function(){function e(t,n){var i=W2(n);yp(this,{target:t,contentRect:i})}return e}(),j2=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new vp,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 Ri(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new B2(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 Ri(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 z2(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}(),wp=typeof WeakMap<"u"?new WeakMap:new vp,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=L2.getInstance(),i=new j2(t,n,this);wp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Sp.prototype[e]=function(){var t;return(t=wp.get(this))[e].apply(t,arguments)}});var H2=function(){return typeof Ds.ResizeObserver<"u"?Ds.ResizeObserver:Sp}();const qu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],_p=xe({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 no("div")},mounted(){const e=this._editor=rd(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 H2(()=>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)}}}),U2={class:"block"},xp=xe({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,i=t,r=bl(n,"yaml");return Cl(()=>{i("update-yaml",r.value)}),(a,f)=>(Y(),re("div",U2,[se(ce(_p),{class:"vue-ace-editor",value:r.value,"onUpdate:value":f[0]||(f[0]=g=>r.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),V2={class:"block"},G2={class:"is-size-2 block"},Y2={class:"field is-grouped is-grouped-centered"},K2={class:"control"},Z2={class:"icon is-small"},X2={key:0,class:"block"},Q2=xe({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=Ii(),i=bl(t.rule.yaml),r=H_(),a=g=>{i.value=g},f=async()=>{const g=await r.perform({yaml:i.value});n.push({name:"Rule",params:{id:g.id}})};return(g,o)=>{var s,l;const p=Ze("font-awesome-icon");return Y(),re(Be,null,[D("div",V2,[D("h2",G2,"Edit rule: "+we(e.rule.id),1),se(xp,{yaml:i.value,"onUpdate:yaml":o[0]||(o[0]=u=>i.value=u),onUpdateYaml:a},null,8,["yaml"]),D("div",Y2,[D("p",K2,[D("a",{class:"button is-primary",onClick:f},[D("span",Z2,[se(p,{icon:"edit"})]),o[1]||(o[1]=D("span",null,"Edit",-1))])])])]),(s=ce(r).last)!=null&&s.error?(Y(),re("div",X2,[o[2]||(o[2]=D("hr",null,null,-1)),se(gt,{error:(l=ce(r).last)==null?void 0:l.error},null,8,["error"])])):me("",!0)],64)}}}),q2=xe({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=ip(),i=async()=>{await n.perform(t.id)};return ct(async()=>{await i()}),Qe(t,async()=>{await i()}),(r,a)=>{var f,g;return Y(),re(Be,null,[ce(n).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(n).isError?(Y(),_e(gt,{key:1,error:(f=ce(n).last)==null?void 0:f.error},null,8,["error"])):me("",!0),(g=ce(n).last)!=null&&g.value?(Y(),_e(Q2,{key:2,rule:ce(n).last.value},null,8,["rule"])):me("",!0)],64)}}}),J2=xe({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Edit rule:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(i,r)=>(Y(),_e(q2,{id:e.id},null,8,["id"]))}});function ek(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 r=i.reduce(function(g,o){var p=o.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(s){var l,u;return(u=(l=s.match(/[\t ]/g))===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0})):g},[]);if(r.length){var a=new RegExp(`
|
1585
|
+
[ ]{`+Math.min.apply(Math,r)+"}","g");i=i.map(function(g){return g.replace(a,`
|
1586
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var f=i[0];return t.forEach(function(g,o){var p=f.match(/(?:^|\n)( *)$/),s=p?p[1]:"",l=g;typeof g=="string"&&g.includes(`
|
1587
|
+
`)&&(l=String(g).split(`
|
1588
|
+
`).map(function(u,c){return c===0?u:""+s+u}).join(`
|
1589
|
+
`)),f+=l+i[o+1]}),f}var Zr,tk=new Uint8Array(16);function nk(){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(tk)}const ik=/^(?:[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 rk(e){return typeof e=="string"&&ik.test(e)}var ft=[];for(var Jo=0;Jo<256;++Jo)ft.push((Jo+256).toString(16).substr(1));function sk(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(!rk(n))throw TypeError("Stringified UUID is invalid");return n}function ok(e,t,n){e=e||{};var i=e.random||(e.rng||nk)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,sk(i)}function ak(){const e=ok(),t=wo();return ek`---
|
1590
|
+
id: ${e}
|
1591
|
+
title: Title goes here
|
1592
|
+
description: Description goes here
|
1593
|
+
created_on: ${t.format("YYYY-MM-DD")}
|
1594
|
+
queries: []`}const lk={class:"block"},ck={class:"field is-grouped is-grouped-centered"},uk={class:"control"},hk={class:"icon is-small"},dk={key:0,class:"block"},fk=xe({__name:"NewRule",setup(e){const t=Ii(),n=Ke(ak()),i=j_(),r=f=>{n.value=f},a=async()=>{const f=await i.perform({yaml:n.value});t.push({name:"Rule",params:{id:f.id}})};return(f,g)=>{var p,s;const o=Ze("font-awesome-icon");return Y(),re(Be,null,[D("div",lk,[g[2]||(g[2]=D("h2",{class:"is-size-2 block"},"New rule",-1)),se(xp,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=l=>n.value=l),onUpdateYaml:r},null,8,["yaml"]),D("div",ck,[D("p",uk,[D("a",{class:"button is-primary",onClick:a},[D("span",hk,[se(o,{icon:"plus"})]),g[1]||(g[1]=D("span",null,"Create",-1))])])])]),(p=ce(i).last)!=null&&p.error?(Y(),re("div",dk,[g[3]||(g[3]=D("hr",null,null,-1)),se(gt,{error:(s=ce(i).last)==null?void 0:s.error},null,8,["error"])])):me("",!0)],64)}}}),pk=xe({__name:"NewRule",setup(e){const t=()=>{Sn("New rule - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),_e(fk))}}),gk={class:"buttons is-pulled-right"},mk=["href"],vk={class:"icon is-small"},yk={class:"icon is-small"},bk={class:"icon is-small"},wk={class:"icon is-small"},Cp=xe({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,r=Ce(()=>`/api/rules/${n.rule.id}`),a=Ce(()=>`rule.id:"${n.rule.id}"`),f=B_(),g=z_(),o=vo(),p=zl(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await f.perform(n.rule.id),i("delete")}catch(c){tt.isAxiosError(c)&&i("set-error",c)}},l=async()=>{try{const u=await g.perform(n.rule.id);i("set-message",u)}catch(u){tt.isAxiosError(u)&&i("set-error",u)}};return ct(()=>{o.perform({q:a.value,page:1,limit:0}),p.perform({q:a.value,page:1,limit:0})}),(u,c)=>{const h=Ze("router-link"),d=Ze("font-awesome-icon");return Y(),re("span",gk,[se(h,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:a.value}}},{default:it(()=>{var m,b;return[c[0]||(c[0]=D("span",null,"Alerts:",-1)),D("span",null,we((b=(m=ce(o).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:a.value}}},{default:it(()=>{var m,b;return[c[1]||(c[1]=D("span",null,"Artifacts:",-1)),D("span",null,we((b=(m=ce(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:r.value,target:"_blank"},[c[2]||(c[2]=D("span",null,"JSON",-1)),D("span",vk,[se(d,{icon:"barcode"})])],8,mk),D("button",{class:"button is-primary is-light is-small",onClick:l},[c[3]||(c[3]=D("span",null,"Search",-1)),D("span",yk,[ce(g).isRunning?(Y(),_e(d,{key:0,icon:"spinner",spin:""})):(Y(),_e(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(()=>[c[4]||(c[4]=D("span",null,"Edit",-1)),D("span",bk,[se(d,{icon:"edit"})])]),_:1},8,["to"]),D("button",{class:"button is-light is-small",onClick:s},[c[5]||(c[5]=D("span",null,"Delete",-1)),D("span",wk,[se(d,{icon:"times"})])])])}}}),Sk={class:"box"},_k={class:"block"},xk={class:"table is-fullwidth is-completely-borderless"},Ck={key:0},$k={class:"help"},Ak=xe({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=Ke(),r=Ke(),a=s=>{i.value=s},f=()=>{i.value=void 0},g=s=>{r.value=s},o=()=>{r.value=void 0},p=()=>{n("delete")};return(s,l)=>{const u=Ze("router-link");return Y(),re("div",Sk,[i.value?(Y(),_e(gt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:f},null,8,["error"])):me("",!0),r.value?(Y(),_e(yo,{key:1,class:"block",message:r.value,disposable:!0,onDispose:o},null,8,["message"])):me("",!0),D("div",_k,[D("p",null,[se(Cp,{rule:e.rule,onSetError:a,onDelete:p,onSetMessage:g},null,8,["rule"])]),se(u,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:it(()=>[rt(we(e.rule.id),1)]),_:1},8,["to"])]),D("table",xk,[D("tr",null,[l[0]||(l[0]=D("th",null,"Title",-1)),D("td",null,we(e.rule.title),1)]),D("tr",null,[l[1]||(l[1]=D("th",null,"Description",-1)),D("td",null,we(e.rule.description),1)]),e.rule.tags.length>0?(Y(),re("tr",Ck,[l[2]||(l[2]=D("th",null,"Tags",-1)),D("td",null,[se(Br,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):me("",!0)]),l[3]||(l[3]=D("p",{class:"block is-clearfix"},null,-1)),D("p",$k,"Created at: "+we(e.rule.createdAt),1)])}}}),kk={key:0,class:"block"},Mk={class:"help"},Tk={key:1,class:"block"},Ek=xe({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,r=g=>{i("update-page",g)},a=()=>{i("refresh")},f=Ce(()=>n.rules.results.length>0);return(g,o)=>f.value?(Y(),re("div",kk,[(Y(!0),re(Be,null,Ft(e.rules.results,p=>(Y(),_e(Ak,{rule:p,key:p.id,onRefresh:a,onDelete:a},null,8,["rule"]))),128)),se(jl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:r},null,8,["currentPage","total","pageSize"]),D("p",Mk,"("+we(e.rules.total)+" results in total, "+we(e.rules.results.length)+" shown)",1)])):(Y(),re("div",Tk,o[0]||(o[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),Rk={class:"block"},Lk={class:"field has-addons"},Ok={class:"control is-expanded"},Ik={class:"control"},Nk={class:"icon is-small"},Dk={class:"control"},Fk={class:"icon is-small"},Pk={key:0,class:"content mt-3"},Wk={key:0,class:"block"},Bk=xe({__name:"RulesWrapper",setup(e){const t=ki("page","1"),n=ki("q",""),i=Ke(!1),r=np(),a=async()=>{const s={q:n.value,page:parseInt(t.value)};return await r.perform(s)},f=s=>{t.value=s.toString()},g=async()=>{t.value="1",await a()},o=g,p=Ir(i);return ct(async()=>{await a()}),Qe(t,async()=>{await a()}),Qe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,l)=>{var h,d;const u=Ze("font-awesome-icon"),c=Ze("router-link");return Y(),re(Be,null,[D("div",Rk,[D("div",Lk,[D("p",Ok,[Sl(D("input",{class:"input",type:"text","onUpdate:modelValue":l[0]||(l[0]=m=>lt(n)?n.value=m:null)},null,512),[[Ml,ce(n)]])]),D("p",Ik,[D("a",{class:"button is-primary",onClick:g},[D("span",Nk,[se(u,{icon:"search"})]),l[2]||(l[2]=D("span",null,"Search",-1))])]),D("p",Dk,[D("a",{class:"button is-info",onClick:l[1]||(l[1]=m=>ce(p)())},[D("span",Fk,[se(u,{icon:"question"})]),l[3]||(l[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),re("div",Pk,[l[5]||(l[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(c,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:it(()=>l[4]||(l[4]=[rt("title:foo AND created_at >= 2020-01-01")])),_:1})])])])):me("",!0)]),ce(r).performCount>0?(Y(),re("div",Wk,[ce(r).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(r).isError?(Y(),_e(gt,{key:1,error:(h=ce(r).last)==null?void 0:h.error},null,8,["error"])):me("",!0),(d=ce(r).last)!=null&&d.value?(Y(),_e(Ek,{key:2,rules:ce(r).last.value,onUpdatePage:f,onRefresh:ce(o)},null,8,["rules","onRefresh"])):me("",!0)])):me("",!0)],64)}}}),zk=xe({__name:"RulesView",setup(e){return Sn("Rules - Mihari"),(t,n)=>(Y(),_e(Bk))}}),jk={class:"block"},Hk=xe({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(Y(),re("div",jk,[se(ce(_p),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),Uk={class:"block"},Vk={class:"is-size-2 block"},Gk={class:"block is-clearfix"},Yk={class:"block"},Kk=xe({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,i=Ke(),r=Ke(),a=()=>{n("delete")},f=s=>{i.value=s},g=()=>{i.value=void 0},o=s=>{s.queued?r.value=s:n("refresh")},p=()=>{r.value=void 0};return(s,l)=>(Y(),re(Be,null,[D("div",Uk,[D("h2",Vk,we(e.rule.id),1),i.value?(Y(),_e(gt,{key:0,class:"mt-3 mb-3",error:i.value,disposable:!0,onDispose:g},null,8,["error"])):me("",!0),r.value?(Y(),_e(yo,{key:1,class:"block",message:r.value,disposable:!0,onDispose:p},null,8,["message"])):me("",!0),D("p",Gk,[se(Cp,{rule:e.rule,onSetMessage:o,onDelete:a,onSetError:f},null,8,["rule"])]),se(Hk,{yaml:e.rule.yaml},null,8,["yaml"])]),l[1]||(l[1]=D("hr",null,null,-1)),D("div",Yk,[l[0]||(l[0]=D("h2",{class:"is-size-2 block"},"Alerts",-1)),se(dp,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),Zk=xe({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=ip(),i=Ii(),r=async()=>{await n.perform(t.id)},a=async()=>{await r()},f=()=>{i.push("/")};return ct(async()=>{await r()}),Qe(t,async()=>{await r()}),(g,o)=>{var p,s;return Y(),re(Be,null,[ce(n).isRunning?(Y(),_e(_n,{key:0})):me("",!0),ce(n).isError?(Y(),_e(gt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):me("",!0),(s=ce(n).last)!=null&&s.value?(Y(),_e(Kk,{key:2,rule:ce(n).last.value,onRefresh:a,onDelete:f},null,8,["rule"])):me("",!0)],64)}}}),Xk=xe({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Sn(`Rule:${t.id} - Mihari`)};return ct(()=>{n()}),Qe(()=>t.id,()=>{n()}),(i,r)=>(Y(),_e(Zk,{id:e.id},null,8,["id"]))}}),Qk=[{path:"/",name:"Alerts",component:mC},{path:"/alerts/:id",name:"Alert",component:AC,props:!0},{path:"/config",name:"Config",component:S2},{path:"/artifacts/",name:"Artifacts",component:o$},{path:"/artifacts/:id",name:"Artifact",component:l2,props:!0},{path:"/rules",name:"Rules",component:zk},{path:"/rules/new",name:"NewRule",component:pk},{path:"/rules/:id",name:"Rule",component:Xk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:J2,props:!0}],qk=h1({history:Bb(),routes:Qk});Mm.add(Im,Xm,Ym,Lm,Zm,Dm,Em,jm,zm,Vm,Um,Om,Lh,Bm,Wm,Fm,Km,Gm,Pm);const $p=f0(lb);$p.component("font-awesome-icon",k0);$p.use(qk).mount("#app");
|