mihari 7.6.3 → 7.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1577 @@
1
+ var Op=Object.defineProperty;var Np=(e,t,n)=>t in e?Op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ne=(e,t,n)=>Np(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();const Xl=()=>{};let Ka={},Xu={},Qu=null,qu={mark:Xl,measure:Xl};try{typeof window<"u"&&(Ka=window),typeof document<"u"&&(Xu=document),typeof MutationObserver<"u"&&(Qu=MutationObserver),typeof performance<"u"&&(qu=performance)}catch{}const{userAgent:Ql=""}=Ka.navigator||{},Nn=Ka,rt=Xu,ql=Qu,Qr=qu;Nn.document;const Sn=!!rt.documentElement&&!!rt.head&&typeof rt.addEventListener=="function"&&typeof rt.createElement=="function",Ju=~Ql.indexOf("MSIE")||~Ql.indexOf("Trident/");var ot="classic",eh="duotone",Ot="sharp",Nt="sharp-duotone",Dp=[ot,eh,Ot,Nt],Fp={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Jl={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Pp=["kit"],Wp=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Bp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,zp={"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"}},jp={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},Hp={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},Up={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},Vp={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},Gp={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},th={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},Yp=["solid","regular","light","thin","duotone","brands"],nh=[1,2,3,4,5,6,7,8,9,10],Kp=nh.concat([11,12,13,14,15,16,17,18,19,20]),qi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Zp=[...Object.keys(Up),...Yp,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",qi.GROUP,qi.SWAP_OPACITY,qi.PRIMARY,qi.SECONDARY].concat(nh.map(e=>"".concat(e,"x"))).concat(Kp.map(e=>"w-".concat(e))),Xp={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Qp={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},qp={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},ec={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const bn="___FONT_AWESOME___",qo=16,ih="fa",rh="svg-inline--fa",ri="data-fa-i2svg",Jo="data-fa-pseudo-element",Jp="data-fa-pseudo-element-pending",Za="data-prefix",Xa="data-icon",tc="fontawesome-i2svg",eg="async",tg=["HTML","HEAD","STYLE","SCRIPT"],sh=(()=>{try{return!0}catch{return!1}})(),oh=[ot,Ot,Nt];function Fr(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[ot]}})}const ah={...th};ah[ot]={...th[ot],...Jl.kit,...Jl["kit-duotone"]};const Jn=Fr(ah),ea={...Gp};ea[ot]={...ea[ot],...ec.kit,...ec["kit-duotone"]};const dr=Fr(ea),ta={...Vp};ta[ot]={...ta[ot],...qp.kit};const ei=Fr(ta),na={...Hp};na[ot]={...na[ot],...Qp.kit};const ng=Fr(na),ig=Wp,lh="fa-layers-text",rg=Bp,sg={...Fp};Fr(sg);const og=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],xo=qi,Ti=new Set;Object.keys(dr[ot]).map(Ti.add.bind(Ti));Object.keys(dr[Ot]).map(Ti.add.bind(Ti));Object.keys(dr[Nt]).map(Ti.add.bind(Ti));const ag=[...Pp,...Zp],ir=Nn.FontAwesomeConfig||{};function lg(e){var t=rt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function cg(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}rt&&typeof rt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,i]=t;const o=cg(lg(n));o!=null&&(ir[i]=o)});const ch={styleDefault:"solid",familyDefault:"classic",cssPrefix:ih,replacementClass:rh,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ir.familyPrefix&&(ir.cssPrefix=ir.familyPrefix);const Li={...ch,...ir};Li.autoReplaceSvg||(Li.observeMutations=!1);const _e={};Object.keys(ch).forEach(e=>{Object.defineProperty(_e,e,{enumerable:!0,set:function(t){Li[e]=t,rr.forEach(n=>n(_e))},get:function(){return Li[e]}})});Object.defineProperty(_e,"familyPrefix",{enumerable:!0,set:function(e){Li.cssPrefix=e,rr.forEach(t=>t(_e))},get:function(){return Li.cssPrefix}});Nn.FontAwesomeConfig=_e;const rr=[];function ug(e){return rr.push(e),()=>{rr.splice(rr.indexOf(e),1)}}const An=qo,Jt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function hg(e){if(!e||!Sn)return;const t=rt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=rt.head.childNodes;let i=null;for(let o=n.length-1;o>-1;o--){const a=n[o],d=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(i=a)}return rt.head.insertBefore(t,i),e}const dg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function fr(){let e=12,t="";for(;e-- >0;)t+=dg[Math.random()*62|0];return t}function Bi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Qa(e){return e.classList?Bi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function uh(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function fg(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(uh(e[n]),'" '),"").trim()}function Bs(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function qa(e){return e.size!==Jt.size||e.x!==Jt.x||e.y!==Jt.y||e.rotate!==Jt.rotate||e.flipX||e.flipY}function pg(e){let{transform:t,containerWidth:n,iconWidth:i}=e;const o={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),d="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(a," ").concat(d," ").concat(g)},p={transform:"translate(".concat(i/2*-1," -256)")};return{outer:o,inner:l,path:p}}function gg(e){let{transform:t,width:n=qo,height:i=qo,startCentered:o=!1}=e,a="";return o&&Ju?a+="translate(".concat(t.x/An-n/2,"em, ").concat(t.y/An-i/2,"em) "):o?a+="translate(calc(-50% + ".concat(t.x/An,"em), calc(-50% + ").concat(t.y/An,"em)) "):a+="translate(".concat(t.x/An,"em, ").concat(t.y/An,"em) "),a+="scale(".concat(t.size/An*(t.flipX?-1:1),", ").concat(t.size/An*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var mg=`:root, :host {
2
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
3
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
4
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
5
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
6
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
7
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
8
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
9
+ --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
10
+ --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
11
+ --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
12
+ --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
13
+ }
14
+
15
+ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
16
+ overflow: visible;
17
+ box-sizing: content-box;
18
+ }
19
+
20
+ .svg-inline--fa {
21
+ display: var(--fa-display, inline-block);
22
+ height: 1em;
23
+ overflow: visible;
24
+ vertical-align: -0.125em;
25
+ }
26
+ .svg-inline--fa.fa-2xs {
27
+ vertical-align: 0.1em;
28
+ }
29
+ .svg-inline--fa.fa-xs {
30
+ vertical-align: 0em;
31
+ }
32
+ .svg-inline--fa.fa-sm {
33
+ vertical-align: -0.0714285705em;
34
+ }
35
+ .svg-inline--fa.fa-lg {
36
+ vertical-align: -0.2em;
37
+ }
38
+ .svg-inline--fa.fa-xl {
39
+ vertical-align: -0.25em;
40
+ }
41
+ .svg-inline--fa.fa-2xl {
42
+ vertical-align: -0.3125em;
43
+ }
44
+ .svg-inline--fa.fa-pull-left {
45
+ margin-right: var(--fa-pull-margin, 0.3em);
46
+ width: auto;
47
+ }
48
+ .svg-inline--fa.fa-pull-right {
49
+ margin-left: var(--fa-pull-margin, 0.3em);
50
+ width: auto;
51
+ }
52
+ .svg-inline--fa.fa-li {
53
+ width: var(--fa-li-width, 2em);
54
+ top: 0.25em;
55
+ }
56
+ .svg-inline--fa.fa-fw {
57
+ width: var(--fa-fw-width, 1.25em);
58
+ }
59
+
60
+ .fa-layers svg.svg-inline--fa {
61
+ bottom: 0;
62
+ left: 0;
63
+ margin: auto;
64
+ position: absolute;
65
+ right: 0;
66
+ top: 0;
67
+ }
68
+
69
+ .fa-layers-counter, .fa-layers-text {
70
+ display: inline-block;
71
+ position: absolute;
72
+ text-align: center;
73
+ }
74
+
75
+ .fa-layers {
76
+ display: inline-block;
77
+ height: 1em;
78
+ position: relative;
79
+ text-align: center;
80
+ vertical-align: -0.125em;
81
+ width: 1em;
82
+ }
83
+ .fa-layers svg.svg-inline--fa {
84
+ transform-origin: center center;
85
+ }
86
+
87
+ .fa-layers-text {
88
+ left: 50%;
89
+ top: 50%;
90
+ transform: translate(-50%, -50%);
91
+ transform-origin: center center;
92
+ }
93
+
94
+ .fa-layers-counter {
95
+ background-color: var(--fa-counter-background-color, #ff253a);
96
+ border-radius: var(--fa-counter-border-radius, 1em);
97
+ box-sizing: border-box;
98
+ color: var(--fa-inverse, #fff);
99
+ line-height: var(--fa-counter-line-height, 1);
100
+ max-width: var(--fa-counter-max-width, 5em);
101
+ min-width: var(--fa-counter-min-width, 1.5em);
102
+ overflow: hidden;
103
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
104
+ right: var(--fa-right, 0);
105
+ text-overflow: ellipsis;
106
+ top: var(--fa-top, 0);
107
+ transform: scale(var(--fa-counter-scale, 0.25));
108
+ transform-origin: top right;
109
+ }
110
+
111
+ .fa-layers-bottom-right {
112
+ bottom: var(--fa-bottom, 0);
113
+ right: var(--fa-right, 0);
114
+ top: auto;
115
+ transform: scale(var(--fa-layers-scale, 0.25));
116
+ transform-origin: bottom right;
117
+ }
118
+
119
+ .fa-layers-bottom-left {
120
+ bottom: var(--fa-bottom, 0);
121
+ left: var(--fa-left, 0);
122
+ right: auto;
123
+ top: auto;
124
+ transform: scale(var(--fa-layers-scale, 0.25));
125
+ transform-origin: bottom left;
126
+ }
127
+
128
+ .fa-layers-top-right {
129
+ top: var(--fa-top, 0);
130
+ right: var(--fa-right, 0);
131
+ transform: scale(var(--fa-layers-scale, 0.25));
132
+ transform-origin: top right;
133
+ }
134
+
135
+ .fa-layers-top-left {
136
+ left: var(--fa-left, 0);
137
+ right: auto;
138
+ top: var(--fa-top, 0);
139
+ transform: scale(var(--fa-layers-scale, 0.25));
140
+ transform-origin: top left;
141
+ }
142
+
143
+ .fa-1x {
144
+ font-size: 1em;
145
+ }
146
+
147
+ .fa-2x {
148
+ font-size: 2em;
149
+ }
150
+
151
+ .fa-3x {
152
+ font-size: 3em;
153
+ }
154
+
155
+ .fa-4x {
156
+ font-size: 4em;
157
+ }
158
+
159
+ .fa-5x {
160
+ font-size: 5em;
161
+ }
162
+
163
+ .fa-6x {
164
+ font-size: 6em;
165
+ }
166
+
167
+ .fa-7x {
168
+ font-size: 7em;
169
+ }
170
+
171
+ .fa-8x {
172
+ font-size: 8em;
173
+ }
174
+
175
+ .fa-9x {
176
+ font-size: 9em;
177
+ }
178
+
179
+ .fa-10x {
180
+ font-size: 10em;
181
+ }
182
+
183
+ .fa-2xs {
184
+ font-size: 0.625em;
185
+ line-height: 0.1em;
186
+ vertical-align: 0.225em;
187
+ }
188
+
189
+ .fa-xs {
190
+ font-size: 0.75em;
191
+ line-height: 0.0833333337em;
192
+ vertical-align: 0.125em;
193
+ }
194
+
195
+ .fa-sm {
196
+ font-size: 0.875em;
197
+ line-height: 0.0714285718em;
198
+ vertical-align: 0.0535714295em;
199
+ }
200
+
201
+ .fa-lg {
202
+ font-size: 1.25em;
203
+ line-height: 0.05em;
204
+ vertical-align: -0.075em;
205
+ }
206
+
207
+ .fa-xl {
208
+ font-size: 1.5em;
209
+ line-height: 0.0416666682em;
210
+ vertical-align: -0.125em;
211
+ }
212
+
213
+ .fa-2xl {
214
+ font-size: 2em;
215
+ line-height: 0.03125em;
216
+ vertical-align: -0.1875em;
217
+ }
218
+
219
+ .fa-fw {
220
+ text-align: center;
221
+ width: 1.25em;
222
+ }
223
+
224
+ .fa-ul {
225
+ list-style-type: none;
226
+ margin-left: var(--fa-li-margin, 2.5em);
227
+ padding-left: 0;
228
+ }
229
+ .fa-ul > li {
230
+ position: relative;
231
+ }
232
+
233
+ .fa-li {
234
+ left: calc(-1 * var(--fa-li-width, 2em));
235
+ position: absolute;
236
+ text-align: center;
237
+ width: var(--fa-li-width, 2em);
238
+ line-height: inherit;
239
+ }
240
+
241
+ .fa-border {
242
+ border-color: var(--fa-border-color, #eee);
243
+ border-radius: var(--fa-border-radius, 0.1em);
244
+ border-style: var(--fa-border-style, solid);
245
+ border-width: var(--fa-border-width, 0.08em);
246
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
247
+ }
248
+
249
+ .fa-pull-left {
250
+ float: left;
251
+ margin-right: var(--fa-pull-margin, 0.3em);
252
+ }
253
+
254
+ .fa-pull-right {
255
+ float: right;
256
+ margin-left: var(--fa-pull-margin, 0.3em);
257
+ }
258
+
259
+ .fa-beat {
260
+ animation-name: fa-beat;
261
+ animation-delay: var(--fa-animation-delay, 0s);
262
+ animation-direction: var(--fa-animation-direction, normal);
263
+ animation-duration: var(--fa-animation-duration, 1s);
264
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
265
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
266
+ }
267
+
268
+ .fa-bounce {
269
+ animation-name: fa-bounce;
270
+ animation-delay: var(--fa-animation-delay, 0s);
271
+ animation-direction: var(--fa-animation-direction, normal);
272
+ animation-duration: var(--fa-animation-duration, 1s);
273
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
274
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
275
+ }
276
+
277
+ .fa-fade {
278
+ animation-name: fa-fade;
279
+ animation-delay: var(--fa-animation-delay, 0s);
280
+ animation-direction: var(--fa-animation-direction, normal);
281
+ animation-duration: var(--fa-animation-duration, 1s);
282
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
283
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
284
+ }
285
+
286
+ .fa-beat-fade {
287
+ animation-name: fa-beat-fade;
288
+ animation-delay: var(--fa-animation-delay, 0s);
289
+ animation-direction: var(--fa-animation-direction, normal);
290
+ animation-duration: var(--fa-animation-duration, 1s);
291
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
292
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
293
+ }
294
+
295
+ .fa-flip {
296
+ animation-name: fa-flip;
297
+ animation-delay: var(--fa-animation-delay, 0s);
298
+ animation-direction: var(--fa-animation-direction, normal);
299
+ animation-duration: var(--fa-animation-duration, 1s);
300
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
301
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
302
+ }
303
+
304
+ .fa-shake {
305
+ animation-name: fa-shake;
306
+ animation-delay: var(--fa-animation-delay, 0s);
307
+ animation-direction: var(--fa-animation-direction, normal);
308
+ animation-duration: var(--fa-animation-duration, 1s);
309
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
310
+ animation-timing-function: var(--fa-animation-timing, linear);
311
+ }
312
+
313
+ .fa-spin {
314
+ animation-name: fa-spin;
315
+ animation-delay: var(--fa-animation-delay, 0s);
316
+ animation-direction: var(--fa-animation-direction, normal);
317
+ animation-duration: var(--fa-animation-duration, 2s);
318
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
319
+ animation-timing-function: var(--fa-animation-timing, linear);
320
+ }
321
+
322
+ .fa-spin-reverse {
323
+ --fa-animation-direction: reverse;
324
+ }
325
+
326
+ .fa-pulse,
327
+ .fa-spin-pulse {
328
+ animation-name: fa-spin;
329
+ animation-direction: var(--fa-animation-direction, normal);
330
+ animation-duration: var(--fa-animation-duration, 1s);
331
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
332
+ animation-timing-function: var(--fa-animation-timing, steps(8));
333
+ }
334
+
335
+ @media (prefers-reduced-motion: reduce) {
336
+ .fa-beat,
337
+ .fa-bounce,
338
+ .fa-fade,
339
+ .fa-beat-fade,
340
+ .fa-flip,
341
+ .fa-pulse,
342
+ .fa-shake,
343
+ .fa-spin,
344
+ .fa-spin-pulse {
345
+ animation-delay: -1ms;
346
+ animation-duration: 1ms;
347
+ animation-iteration-count: 1;
348
+ transition-delay: 0s;
349
+ transition-duration: 0s;
350
+ }
351
+ }
352
+ @keyframes fa-beat {
353
+ 0%, 90% {
354
+ transform: scale(1);
355
+ }
356
+ 45% {
357
+ transform: scale(var(--fa-beat-scale, 1.25));
358
+ }
359
+ }
360
+ @keyframes fa-bounce {
361
+ 0% {
362
+ transform: scale(1, 1) translateY(0);
363
+ }
364
+ 10% {
365
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
366
+ }
367
+ 30% {
368
+ 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));
369
+ }
370
+ 50% {
371
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
372
+ }
373
+ 57% {
374
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
375
+ }
376
+ 64% {
377
+ transform: scale(1, 1) translateY(0);
378
+ }
379
+ 100% {
380
+ transform: scale(1, 1) translateY(0);
381
+ }
382
+ }
383
+ @keyframes fa-fade {
384
+ 50% {
385
+ opacity: var(--fa-fade-opacity, 0.4);
386
+ }
387
+ }
388
+ @keyframes fa-beat-fade {
389
+ 0%, 100% {
390
+ opacity: var(--fa-beat-fade-opacity, 0.4);
391
+ transform: scale(1);
392
+ }
393
+ 50% {
394
+ opacity: 1;
395
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
396
+ }
397
+ }
398
+ @keyframes fa-flip {
399
+ 50% {
400
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
401
+ }
402
+ }
403
+ @keyframes fa-shake {
404
+ 0% {
405
+ transform: rotate(-15deg);
406
+ }
407
+ 4% {
408
+ transform: rotate(15deg);
409
+ }
410
+ 8%, 24% {
411
+ transform: rotate(-18deg);
412
+ }
413
+ 12%, 28% {
414
+ transform: rotate(18deg);
415
+ }
416
+ 16% {
417
+ transform: rotate(-22deg);
418
+ }
419
+ 20% {
420
+ transform: rotate(22deg);
421
+ }
422
+ 32% {
423
+ transform: rotate(-12deg);
424
+ }
425
+ 36% {
426
+ transform: rotate(12deg);
427
+ }
428
+ 40%, 100% {
429
+ transform: rotate(0deg);
430
+ }
431
+ }
432
+ @keyframes fa-spin {
433
+ 0% {
434
+ transform: rotate(0deg);
435
+ }
436
+ 100% {
437
+ transform: rotate(360deg);
438
+ }
439
+ }
440
+ .fa-rotate-90 {
441
+ transform: rotate(90deg);
442
+ }
443
+
444
+ .fa-rotate-180 {
445
+ transform: rotate(180deg);
446
+ }
447
+
448
+ .fa-rotate-270 {
449
+ transform: rotate(270deg);
450
+ }
451
+
452
+ .fa-flip-horizontal {
453
+ transform: scale(-1, 1);
454
+ }
455
+
456
+ .fa-flip-vertical {
457
+ transform: scale(1, -1);
458
+ }
459
+
460
+ .fa-flip-both,
461
+ .fa-flip-horizontal.fa-flip-vertical {
462
+ transform: scale(-1, -1);
463
+ }
464
+
465
+ .fa-rotate-by {
466
+ transform: rotate(var(--fa-rotate-angle, 0));
467
+ }
468
+
469
+ .fa-stack {
470
+ display: inline-block;
471
+ vertical-align: middle;
472
+ height: 2em;
473
+ position: relative;
474
+ width: 2.5em;
475
+ }
476
+
477
+ .fa-stack-1x,
478
+ .fa-stack-2x {
479
+ bottom: 0;
480
+ left: 0;
481
+ margin: auto;
482
+ position: absolute;
483
+ right: 0;
484
+ top: 0;
485
+ z-index: var(--fa-stack-z-index, auto);
486
+ }
487
+
488
+ .svg-inline--fa.fa-stack-1x {
489
+ height: 1em;
490
+ width: 1.25em;
491
+ }
492
+ .svg-inline--fa.fa-stack-2x {
493
+ height: 2em;
494
+ width: 2.5em;
495
+ }
496
+
497
+ .fa-inverse {
498
+ color: var(--fa-inverse, #fff);
499
+ }
500
+
501
+ .sr-only,
502
+ .fa-sr-only {
503
+ position: absolute;
504
+ width: 1px;
505
+ height: 1px;
506
+ padding: 0;
507
+ margin: -1px;
508
+ overflow: hidden;
509
+ clip: rect(0, 0, 0, 0);
510
+ white-space: nowrap;
511
+ border-width: 0;
512
+ }
513
+
514
+ .sr-only-focusable:not(:focus),
515
+ .fa-sr-only-focusable:not(:focus) {
516
+ position: absolute;
517
+ width: 1px;
518
+ height: 1px;
519
+ padding: 0;
520
+ margin: -1px;
521
+ overflow: hidden;
522
+ clip: rect(0, 0, 0, 0);
523
+ white-space: nowrap;
524
+ border-width: 0;
525
+ }
526
+
527
+ .svg-inline--fa .fa-primary {
528
+ fill: var(--fa-primary-color, currentColor);
529
+ opacity: var(--fa-primary-opacity, 1);
530
+ }
531
+
532
+ .svg-inline--fa .fa-secondary {
533
+ fill: var(--fa-secondary-color, currentColor);
534
+ opacity: var(--fa-secondary-opacity, 0.4);
535
+ }
536
+
537
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
538
+ opacity: var(--fa-secondary-opacity, 0.4);
539
+ }
540
+
541
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
542
+ opacity: var(--fa-primary-opacity, 1);
543
+ }
544
+
545
+ .svg-inline--fa mask .fa-primary,
546
+ .svg-inline--fa mask .fa-secondary {
547
+ fill: black;
548
+ }
549
+
550
+ .fad.fa-inverse,
551
+ .fa-duotone.fa-inverse {
552
+ color: var(--fa-inverse, #fff);
553
+ }`;function hh(){const e=ih,t=rh,n=_e.cssPrefix,i=_e.replacementClass;let o=mg;if(n!==e||i!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");o=o.replace(a,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(g,".".concat(i))}return o}let nc=!1;function Co(){_e.autoAddCss&&!nc&&(hg(hh()),nc=!0)}var vg={mixout(){return{dom:{css:hh,insertCss:Co}}},hooks(){return{beforeDOMElementCreation(){Co()},beforeI2svg(){Co()}}}};const wn=Nn||{};wn[bn]||(wn[bn]={});wn[bn].styles||(wn[bn].styles={});wn[bn].hooks||(wn[bn].hooks={});wn[bn].shims||(wn[bn].shims=[]);var en=wn[bn];const dh=[],fh=function(){rt.removeEventListener("DOMContentLoaded",fh),ys=1,dh.map(e=>e())};let ys=!1;Sn&&(ys=(rt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(rt.readyState),ys||rt.addEventListener("DOMContentLoaded",fh));function yg(e){Sn&&(ys?setTimeout(e,0):dh.push(e))}function Pr(e){const{tag:t,attributes:n={},children:i=[]}=e;return typeof e=="string"?uh(e):"<".concat(t," ").concat(fg(n),">").concat(i.map(Pr).join(""),"</").concat(t,">")}function ic(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var $o=function(t,n,i,o){var a=Object.keys(t),d=a.length,g=n,l,p,s;for(i===void 0?(l=1,s=t[a[0]]):(l=0,s=i);l<d;l++)p=a[l],s=g(s,t[p],p,t);return s};function bg(e){const t=[];let n=0;const i=e.length;for(;n<i;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((o&1023)<<10)+(a&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function ia(e){const t=bg(e);return t.length===1?t[0].toString(16):null}function wg(e,t){const n=e.length;let i=e.charCodeAt(t),o;return i>=55296&&i<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(i-55296)*1024+o-56320+65536:i}function rc(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 ra(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=n,o=rc(t);typeof en.hooks.addPack=="function"&&!i?en.hooks.addPack(e,rc(t)):en.styles[e]={...en.styles[e]||{},...o},e==="fas"&&ra("fa",t)}const{styles:Qn,shims:_g}=en,Sg={[ot]:Object.values(ei[ot]),[Ot]:Object.values(ei[Ot]),[Nt]:Object.values(ei[Nt])};let Ja=null,ph={},gh={},mh={},vh={},yh={};const xg={[ot]:Object.keys(Jn[ot]),[Ot]:Object.keys(Jn[Ot]),[Nt]:Object.keys(Jn[Nt])};function Cg(e){return~ag.indexOf(e)}function $g(e,t){const n=t.split("-"),i=n[0],o=n.slice(1).join("-");return i===e&&o!==""&&!Cg(o)?o:null}const bh=()=>{const e=i=>$o(Qn,(o,a,d)=>(o[d]=$o(a,i,{}),o),{});ph=e((i,o,a)=>(o[3]&&(i[o[3]]=a),o[2]&&o[2].filter(g=>typeof g=="number").forEach(g=>{i[g.toString(16)]=a}),i)),gh=e((i,o,a)=>(i[a]=a,o[2]&&o[2].filter(g=>typeof g=="string").forEach(g=>{i[g]=a}),i)),yh=e((i,o,a)=>{const d=o[2];return i[a]=a,d.forEach(g=>{i[g]=a}),i});const t="far"in Qn||_e.autoFetchSvg,n=$o(_g,(i,o)=>{const a=o[0];let d=o[1];const g=o[2];return d==="far"&&!t&&(d="fas"),typeof a=="string"&&(i.names[a]={prefix:d,iconName:g}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:d,iconName:g}),i},{names:{},unicodes:{}});mh=n.names,vh=n.unicodes,Ja=zs(_e.styleDefault,{family:_e.familyDefault})};ug(e=>{Ja=zs(e.styleDefault,{family:_e.familyDefault})});bh();function el(e,t){return(ph[e]||{})[t]}function Ag(e,t){return(gh[e]||{})[t]}function On(e,t){return(yh[e]||{})[t]}function wh(e){return mh[e]||{prefix:null,iconName:null}}function kg(e){const t=vh[e],n=el("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Dn(){return Ja}const tl=()=>({prefix:null,iconName:null,rest:[]});function zs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=ot}=t,i=Jn[n][e],o=dr[n][e]||dr[n][i],a=e in en.styles?e:null;return o||a||null}const Mg={[ot]:Object.keys(ei[ot]),[Ot]:Object.keys(ei[Ot]),[Nt]:Object.keys(ei[Nt])};function js(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,i={[ot]:"".concat(_e.cssPrefix,"-").concat(ot),[Ot]:"".concat(_e.cssPrefix,"-").concat(Ot),[Nt]:"".concat(_e.cssPrefix,"-").concat(Nt)};let o=null,a=ot;const d=Dp.filter(l=>l!==eh);d.forEach(l=>{(e.includes(i[l])||e.some(p=>Mg[l].includes(p)))&&(a=l)});const g=e.reduce((l,p)=>{const s=$g(_e.cssPrefix,p);if(Qn[p]?(p=Sg[a].includes(p)?ng[a][p]:p,o=p,l.prefix=p):xg[a].indexOf(p)>-1?(o=p,l.prefix=zs(p,{family:a})):s?l.iconName=s:p!==_e.replacementClass&&!d.some(r=>p===i[r])&&l.rest.push(p),!n&&l.prefix&&l.iconName){const r=o==="fa"?wh(l.iconName):{},c=On(l.prefix,l.iconName);r.prefix&&(o=null),l.iconName=r.iconName||c||l.iconName,l.prefix=r.prefix||l.prefix,l.prefix==="far"&&!Qn.far&&Qn.fas&&!_e.autoFetchSvg&&(l.prefix="fas")}return l},tl());return(e.includes("fa-brands")||e.includes("fab"))&&(g.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(g.prefix="fad"),!g.prefix&&a===Ot&&(Qn.fass||_e.autoFetchSvg)&&(g.prefix="fass",g.iconName=On(g.prefix,g.iconName)||g.iconName),!g.prefix&&a===Nt&&(Qn.fasds||_e.autoFetchSvg)&&(g.prefix="fasds",g.iconName=On(g.prefix,g.iconName)||g.iconName),(g.prefix==="fa"||o==="fa")&&(g.prefix=Dn()||"fas"),g}class Eg{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(a=>{this.definitions[a]={...this.definitions[a]||{},...o[a]},ra(a,o[a]);const d=ei[ot][a];d&&ra(d,o[a]),bh()})}reset(){this.definitions={}}_pullDefinitions(t,n){const i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(o=>{const{prefix:a,iconName:d,icon:g}=i[o],l=g[2];t[a]||(t[a]={}),l.length>0&&l.forEach(p=>{typeof p=="string"&&(t[a][p]=g)}),t[a][d]=g}),t}}let sc=[],wi={};const xi={},Tg=Object.keys(xi);function Lg(e,t){let{mixoutsTo:n}=t;return sc=e,wi={},Object.keys(xi).forEach(i=>{Tg.indexOf(i)===-1&&delete xi[i]}),sc.forEach(i=>{const o=i.mixout?i.mixout():{};if(Object.keys(o).forEach(a=>{typeof o[a]=="function"&&(n[a]=o[a]),typeof o[a]=="object"&&Object.keys(o[a]).forEach(d=>{n[a]||(n[a]={}),n[a][d]=o[a][d]})}),i.hooks){const a=i.hooks();Object.keys(a).forEach(d=>{wi[d]||(wi[d]=[]),wi[d].push(a[d])})}i.provides&&i.provides(xi)}),n}function sa(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return(wi[e]||[]).forEach(d=>{t=d.apply(null,[t,...i])}),t}function si(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(wi[e]||[]).forEach(a=>{a.apply(null,n)})}function Fn(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return xi[e]?xi[e].apply(null,t):void 0}function oa(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Dn();if(t)return t=On(n,t)||t,ic(_h.definitions,n,t)||ic(en.styles,n,t)}const _h=new Eg,Rg=()=>{_e.autoReplaceSvg=!1,_e.observeMutations=!1,si("noAuto")},Ig={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Sn?(si("beforeI2svg",e),Fn("pseudoElements2svg",e),Fn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;_e.autoReplaceSvg===!1&&(_e.autoReplaceSvg=!0),_e.observeMutations=!0,yg(()=>{Ng({autoReplaceSvgRoot:t}),si("watch",e)})}},Og={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:On(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=zs(e[0]);return{prefix:n,iconName:On(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(_e.cssPrefix,"-"))>-1||e.match(ig))){const t=js(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Dn(),iconName:On(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Dn();return{prefix:t,iconName:On(t,e)||e}}}},Wt={noAuto:Rg,config:_e,dom:Ig,parse:Og,library:_h,findIconDefinition:oa,toHtml:Pr},Ng=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=rt}=e;(Object.keys(en.styles).length>0||_e.autoFetchSvg)&&Sn&&_e.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function Hs(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Pr(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Sn)return;const n=rt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function Dg(e){let{children:t,main:n,mask:i,attributes:o,styles:a,transform:d}=e;if(qa(d)&&n.found&&!i.found){const{width:g,height:l}=n,p={x:g/l/2,y:.5};o.style=Bs({...a,"transform-origin":"".concat(p.x+d.x/16,"em ").concat(p.y+d.y/16,"em")})}return[{tag:"svg",attributes:o,children:t}]}function Fg(e){let{prefix:t,iconName:n,children:i,attributes:o,symbol:a}=e;const d=a===!0?"".concat(t,"-").concat(_e.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...o,id:d},children:i}]}]}function nl(e){const{icons:{main:t,mask:n},prefix:i,iconName:o,transform:a,symbol:d,title:g,maskId:l,titleId:p,extra:s,watchable:r=!1}=e,{width:c,height:u}=n.found?n:t,h=i==="fak",f=[_e.replacementClass,o?"".concat(_e.cssPrefix,"-").concat(o):""].filter(S=>s.classes.indexOf(S)===-1).filter(S=>S!==""||!!S).concat(s.classes).join(" ");let m={children:[],attributes:{...s.attributes,"data-prefix":i,"data-icon":o,class:f,role:s.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(c," ").concat(u)}};const v=h&&!~s.classes.indexOf("fa-fw")?{width:"".concat(c/u*16*.0625,"em")}:{};r&&(m.attributes[ri]=""),g&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(p||fr())},children:[g]}),delete m.attributes.title);const y={...m,prefix:i,iconName:o,main:t,mask:n,maskId:l,transform:a,symbol:d,styles:{...v,...s.styles}},{children:$,attributes:_}=n.found&&t.found?Fn("generateAbstractMask",y)||{children:[],attributes:{}}:Fn("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=$,y.attributes=_,d?Fg(y):Dg(y)}function oc(e){const{content:t,width:n,height:i,transform:o,title:a,extra:d,watchable:g=!1}=e,l={...d.attributes,...a?{title:a}:{},class:d.classes.join(" ")};g&&(l[ri]="");const p={...d.styles};qa(o)&&(p.transform=gg({transform:o,startCentered:!0,width:n,height:i}),p["-webkit-transform"]=p.transform);const s=Bs(p);s.length>0&&(l.style=s);const r=[];return r.push({tag:"span",attributes:l,children:[t]}),a&&r.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),r}function Pg(e){const{content:t,title:n,extra:i}=e,o={...i.attributes,...n?{title:n}:{},class:i.classes.join(" ")},a=Bs(i.styles);a.length>0&&(o.style=a);const d=[];return d.push({tag:"span",attributes:o,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}const{styles:Ao}=en;function aa(e){const t=e[0],n=e[1],[i]=e.slice(4);let o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(_e.cssPrefix,"-").concat(xo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(xo.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(xo.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}const Wg={found:!1,width:512,height:512};function Bg(e,t){!sh&&!_e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function la(e,t){let n=t;return t==="fa"&&_e.styleDefault!==null&&(t=Dn()),new Promise((i,o)=>{if(n==="fa"){const a=wh(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Ao[t]&&Ao[t][e]){const a=Ao[t][e];return i(aa(a))}Bg(e,t),i({...Wg,icon:_e.showMissingIcons&&e?Fn("missingIconAbstract")||{}:{}})})}const ac=()=>{},ca=_e.measurePerformance&&Qr&&Qr.mark&&Qr.measure?Qr:{mark:ac,measure:ac},Ji='FA "6.6.0"',zg=e=>(ca.mark("".concat(Ji," ").concat(e," begins")),()=>Sh(e)),Sh=e=>{ca.mark("".concat(Ji," ").concat(e," ends")),ca.measure("".concat(Ji," ").concat(e),"".concat(Ji," ").concat(e," begins"),"".concat(Ji," ").concat(e," ends"))};var il={begin:zg,end:Sh};const as=()=>{};function lc(e){return typeof(e.getAttribute?e.getAttribute(ri):null)=="string"}function jg(e){const t=e.getAttribute?e.getAttribute(Za):null,n=e.getAttribute?e.getAttribute(Xa):null;return t&&n}function Hg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(_e.replacementClass)}function Ug(){return _e.autoReplaceSvg===!0?ls.replace:ls[_e.autoReplaceSvg]||ls.replace}function Vg(e){return rt.createElementNS("http://www.w3.org/2000/svg",e)}function Gg(e){return rt.createElement(e)}function xh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?Vg:Gg}=t;if(typeof e=="string")return rt.createTextNode(e);const i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){i.appendChild(xh(a,{ceFn:n}))}),i}function Yg(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ls={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(xh(n),t)}),t.getAttribute(ri)===null&&_e.keepOriginalSource){let n=rt.createComment(Yg(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Qa(t).indexOf(_e.replacementClass))return ls.replace(e);const i=new RegExp("".concat(_e.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((d,g)=>(g===_e.replacementClass||g.match(i)?d.toSvg.push(g):d.toNode.push(g),d),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const o=n.map(a=>Pr(a)).join(`
554
+ `);t.setAttribute(ri,""),t.innerHTML=o}};function cc(e){e()}function Ch(e,t){const n=typeof t=="function"?t:as;if(e.length===0)n();else{let i=cc;_e.mutateApproach===eg&&(i=Nn.requestAnimationFrame||cc),i(()=>{const o=Ug(),a=il.begin("mutate");e.map(o),a(),n()})}}let rl=!1;function $h(){rl=!0}function ua(){rl=!1}let bs=null;function uc(e){if(!ql||!_e.observeMutations)return;const{treeCallback:t=as,nodeCallback:n=as,pseudoElementsCallback:i=as,observeMutationsRoot:o=rt}=e;bs=new ql(a=>{if(rl)return;const d=Dn();Bi(a).forEach(g=>{if(g.type==="childList"&&g.addedNodes.length>0&&!lc(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"&&lc(g.target)&&~og.indexOf(g.attributeName))if(g.attributeName==="class"&&jg(g.target)){const{prefix:l,iconName:p}=js(Qa(g.target));g.target.setAttribute(Za,l||d),p&&g.target.setAttribute(Xa,p)}else Hg(g.target)&&n(g.target)})}),Sn&&bs.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Kg(){bs&&bs.disconnect()}function Zg(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((i,o)=>{const a=o.split(":"),d=a[0],g=a.slice(1);return d&&g.length>0&&(i[d]=g.join(":").trim()),i},{})),n}function Xg(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let o=js(Qa(e));return o.prefix||(o.prefix=Dn()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&i.length>0&&(o.iconName=Ag(o.prefix,e.innerText)||el(o.prefix,ia(e.innerText))),!o.iconName&&_e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function Qg(e){const t=Bi(e.attributes).reduce((o,a)=>(o.name!=="class"&&o.name!=="style"&&(o[a.name]=a.value),o),{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return _e.autoA11y&&(n?t["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(i||fr()):(t["aria-hidden"]="true",t.focusable="false")),t}function qg(){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 hc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:i,rest:o}=Xg(e),a=Qg(e),d=sa("parseNodeAttributes",{},e);let g=t.styleParser?Zg(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Jt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:g,attributes:a},...d}}const{styles:Jg}=en;function Ah(e){const t=_e.autoReplaceSvg==="nest"?hc(e,{styleParser:!1}):hc(e);return~t.extra.classes.indexOf(lh)?Fn("generateLayersText",e,t):Fn("generateSvgReplacementMutation",e,t)}let sn=new Set;oh.map(e=>{sn.add("fa-".concat(e))});Object.keys(Jn[ot]).map(sn.add.bind(sn));Object.keys(Jn[Ot]).map(sn.add.bind(sn));Object.keys(Jn[Nt]).map(sn.add.bind(sn));sn=[...sn];function dc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Sn)return Promise.resolve();const n=rt.documentElement.classList,i=s=>n.add("".concat(tc,"-").concat(s)),o=s=>n.remove("".concat(tc,"-").concat(s)),a=_e.autoFetchSvg?sn:oh.map(s=>"fa-".concat(s)).concat(Object.keys(Jg));a.includes("fa")||a.push("fa");const d=[".".concat(lh,":not([").concat(ri,"])")].concat(a.map(s=>".".concat(s,":not([").concat(ri,"])"))).join(", ");if(d.length===0)return Promise.resolve();let g=[];try{g=Bi(e.querySelectorAll(d))}catch{}if(g.length>0)i("pending"),o("complete");else return Promise.resolve();const l=il.begin("onTree"),p=g.reduce((s,r)=>{try{const c=Ah(r);c&&s.push(c)}catch(c){sh||c.name==="MissingIcon"&&console.error(c)}return s},[]);return new Promise((s,r)=>{Promise.all(p).then(c=>{Ch(c,()=>{i("active"),i("complete"),o("pending"),typeof t=="function"&&t(),l(),s()})}).catch(c=>{l(),r(c)})})}function em(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ah(e).then(n=>{n&&Ch([n],t)})}function tm(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(t||{}).icon?t:oa(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:oa(o||{})),e(i,{...n,mask:o})}}const nm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Jt,symbol:i=!1,mask:o=null,maskId:a=null,title:d=null,titleId:g=null,classes:l=[],attributes:p={},styles:s={}}=t;if(!e)return;const{prefix:r,iconName:c,icon:u}=e;return Hs({type:"icon",...e},()=>(si("beforeDOMElementCreation",{iconDefinition:e,params:t}),_e.autoA11y&&(d?p["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(g||fr()):(p["aria-hidden"]="true",p.focusable="false")),nl({icons:{main:aa(u),mask:o?aa(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:r,iconName:c,transform:{...Jt,...n},symbol:i,title:d,maskId:a,titleId:g,extra:{attributes:p,styles:s,classes:l}})))};var im={mixout(){return{icon:tm(nm)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=dc,e.nodeCallback=em,e}}},provides(e){e.i2svg=function(t){const{node:n=rt,callback:i=()=>{}}=t;return dc(n,i)},e.generateSvgReplacementMutation=function(t,n){const{iconName:i,title:o,titleId:a,prefix:d,transform:g,symbol:l,mask:p,maskId:s,extra:r}=n;return new Promise((c,u)=>{Promise.all([la(i,d),p.iconName?la(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[f,m]=h;c([t,nl({icons:{main:f,mask:m},prefix:d,iconName:i,transform:g,symbol:l,maskId:s,title:o,titleId:a,extra:r,watchable:!0})])}).catch(u)})},e.generateAbstractIcon=function(t){let{children:n,attributes:i,main:o,transform:a,styles:d}=t;const g=Bs(d);g.length>0&&(i.style=g);let l;return qa(a)&&(l=Fn("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:i}}}},rm={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Hs({type:"layer"},()=>{si("beforeDOMElementCreation",{assembler:e,params:t});let i=[];return e(o=>{Array.isArray(o)?o.map(a=>{i=i.concat(a.abstract)}):i=i.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(_e.cssPrefix,"-layers"),...n].join(" ")},children:i}]})}}}},sm={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:i=[],attributes:o={},styles:a={}}=t;return Hs({type:"counter",content:e},()=>(si("beforeDOMElementCreation",{content:e,params:t}),Pg({content:e.toString(),title:n,extra:{attributes:o,styles:a,classes:["".concat(_e.cssPrefix,"-layers-counter"),...i]}})))}}}},om={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Jt,title:i=null,classes:o=[],attributes:a={},styles:d={}}=t;return Hs({type:"text",content:e},()=>(si("beforeDOMElementCreation",{content:e,params:t}),oc({content:e,transform:{...Jt,...n},title:i,extra:{attributes:a,styles:d,classes:["".concat(_e.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:i,transform:o,extra:a}=n;let d=null,g=null;if(Ju){const l=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();d=p.width/l,g=p.height/l}return _e.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,oc({content:t.innerHTML,width:d,height:g,transform:o,title:i,extra:a,watchable:!0})])}}};const am=new RegExp('"',"ug"),fc=[1105920,1112319],pc={FontAwesome:{normal:"fas",400:"fas"},...jp,...zp,...Xp},ha=Object.keys(pc).reduce((e,t)=>(e[t.toLowerCase()]=pc[t],e),{}),lm=Object.keys(ha).reduce((e,t)=>{const n=ha[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function cm(e){const t=e.replace(am,""),n=wg(t,0),i=n>=fc[0]&&n<=fc[1],o=t.length===2?t[0]===t[1]:!1;return{value:ia(o?t[0]:t),isSecondary:i||o}}function um(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),o=isNaN(i)?"normal":i;return(ha[n]||{})[o]||lm[n]}function gc(e,t){const n="".concat(Jp).concat(t.replace(":","-"));return new Promise((i,o)=>{if(e.getAttribute(n)!==null)return i();const d=Bi(e.children).filter(c=>c.getAttribute(Jo)===t)[0],g=Nn.getComputedStyle(e,t),l=g.getPropertyValue("font-family"),p=l.match(rg),s=g.getPropertyValue("font-weight"),r=g.getPropertyValue("content");if(d&&!p)return e.removeChild(d),i();if(p&&r!=="none"&&r!==""){const c=g.getPropertyValue("content");let u=um(l,s);const{value:h,isSecondary:f}=cm(c),m=p[0].startsWith("FontAwesome");let v=el(u,h),y=v;if(m){const $=kg(h);$.iconName&&$.prefix&&(v=$.iconName,u=$.prefix)}if(v&&!f&&(!d||d.getAttribute(Za)!==u||d.getAttribute(Xa)!==y)){e.setAttribute(n,y),d&&e.removeChild(d);const $=qg(),{extra:_}=$;_.attributes[Jo]=t,la(v,u).then(S=>{const b=nl({...$,icons:{main:S,mask:tl()},prefix:u,iconName:y,extra:_,watchable:!0}),M=rt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(M,e.firstChild):e.appendChild(M),M.outerHTML=b.map(I=>Pr(I)).join(`
555
+ `),e.removeAttribute(n),i()}).catch(o)}else i()}else i()})}function hm(e){return Promise.all([gc(e,"::before"),gc(e,"::after")])}function dm(e){return e.parentNode!==document.head&&!~tg.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Jo)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function mc(e){if(Sn)return new Promise((t,n)=>{const i=Bi(e.querySelectorAll("*")).filter(dm).map(hm),o=il.begin("searchPseudoElements");$h(),Promise.all(i).then(()=>{o(),ua(),t()}).catch(()=>{o(),ua(),n()})})}var fm={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=mc,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=rt}=t;_e.searchPseudoElements&&mc(n)}}};let vc=!1;var pm={mixout(){return{dom:{unwatch(){$h(),vc=!0}}}},hooks(){return{bootstrap(){uc(sa("mutationObserverCallbacks",{}))},noAuto(){Kg()},watch(e){const{observeMutationsRoot:t}=e;vc?ua():uc(sa("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const yc=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,i)=>{const o=i.toLowerCase().split("-"),a=o[0];let d=o.slice(1).join("-");if(a&&d==="h")return n.flipX=!0,n;if(a&&d==="v")return n.flipY=!0,n;if(d=parseFloat(d),isNaN(d))return n;switch(a){case"grow":n.size=n.size+d;break;case"shrink":n.size=n.size-d;break;case"left":n.x=n.x-d;break;case"right":n.x=n.x+d;break;case"up":n.y=n.y-d;break;case"down":n.y=n.y+d;break;case"rotate":n.rotate=n.rotate+d;break}return n},t)};var gm={mixout(){return{parse:{transform:e=>yc(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=yc(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:i,containerWidth:o,iconWidth:a}=t;const d={transform:"translate(".concat(o/2," 256)")},g="translate(".concat(i.x*32,", ").concat(i.y*32,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),s={transform:"".concat(g," ").concat(l," ").concat(p)},r={transform:"translate(".concat(a/2*-1," -256)")},c={outer:d,inner:s,path:r};return{tag:"g",attributes:{...c.outer},children:[{tag:"g",attributes:{...c.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...c.path}}]}]}}}};const ko={x:0,y:0,width:"100%",height:"100%"};function bc(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 mm(e){return e.tag==="g"?e.children:[e]}var vm={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),i=n?js(n.split(" ").map(o=>o.trim())):tl();return i.prefix||(i.prefix=Dn()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:i,main:o,mask:a,maskId:d,transform:g}=t;const{width:l,icon:p}=o,{width:s,icon:r}=a,c=pg({transform:g,containerWidth:s,iconWidth:l}),u={tag:"rect",attributes:{...ko,fill:"white"}},h=p.children?{children:p.children.map(bc)}:{},f={tag:"g",attributes:{...c.inner},children:[bc({tag:p.tag,attributes:{...p.attributes,...c.path},...h})]},m={tag:"g",attributes:{...c.outer},children:[f]},v="mask-".concat(d||fr()),y="clip-".concat(d||fr()),$={tag:"mask",attributes:{...ko,id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[u,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:mm(r)},$]};return n.push(_,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")"),...ko}}),{children:n,attributes:i}}}},ym={provides(e){let t=!1;Nn.matchMedia&&(t=Nn.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...i,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const a={...o,attributeName:"opacity"},d={tag:"circle",attributes:{...i,cx:"256",cy:"364",r:"28"},children:[]};return t||d.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...a,values:"1;0;1;1;0;1;"}}),n.push(d),n.push({tag:"path",attributes:{...i,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...a,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...i,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...a,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},bm={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),i=n===null?!1:n===""?!0:n;return e.symbol=i,e}}}},wm=[vg,im,rm,sm,om,fm,pm,gm,vm,ym,bm];Lg(wm,{mixoutsTo:Wt});Wt.noAuto;Wt.config;const _m=Wt.library;Wt.dom;const da=Wt.parse;Wt.findIconDefinition;Wt.toHtml;const Sm=Wt.icon;Wt.layer;Wt.text;Wt.counter;const xm={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"]},Cm={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"]},$m=Cm,Am={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"]},km={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"]},Mm={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"]},Em=Mm,Tm={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"]},Lm={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"]},Rm={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"]},Im={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"]},kh={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"]},Om=kh,Nm={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"]},Dm={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"]},Fm=Dm,Pm={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"]},Wm={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"]},Bm={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},zm={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},jm={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"]},Hm={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"]};/**
556
+ * @vue/shared v3.5.3
557
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
558
+ * @license MIT
559
+ **//*! #__NO_SIDE_EFFECTS__ */function sl(e,t){const n=new Set(e.split(","));return i=>n.has(i)}const Je={},Ci=[],tn=()=>{},Um=()=>!1,Us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ol=e=>e.startsWith("onUpdate:"),gt=Object.assign,al=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Vm=Object.prototype.hasOwnProperty,Ze=(e,t)=>Vm.call(e,t),Re=Array.isArray,$i=e=>Vs(e)==="[object Map]",Mh=e=>Vs(e)==="[object Set]",Ie=e=>typeof e=="function",ut=e=>typeof e=="string",Hn=e=>typeof e=="symbol",st=e=>e!==null&&typeof e=="object",Eh=e=>(st(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),Th=Object.prototype.toString,Vs=e=>Th.call(e),Gm=e=>Vs(e).slice(8,-1),Lh=e=>Vs(e)==="[object Object]",ll=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sr=sl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ym=/-(\w)/g,Gt=Gs(e=>e.replace(Ym,(t,n)=>n?n.toUpperCase():"")),Km=/\B([A-Z])/g,pi=Gs(e=>e.replace(Km,"-$1").toLowerCase()),Wr=Gs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mo=Gs(e=>e?`on${Wr(e)}`:""),Pn=(e,t)=>!Object.is(e,t),cs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Rh=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},fa=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wc;const Ih=()=>wc||(wc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cl(e){if(Re(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=ut(i)?qm(i):cl(i);if(o)for(const a in o)t[a]=o[a]}return t}else if(ut(e)||st(e))return e}const Zm=/;(?![^(]*\))/g,Xm=/:([^]+)/,Qm=/\/\*[^]*?\*\//g;function qm(e){const t={};return e.replace(Qm,"").split(Zm).forEach(n=>{if(n){const i=n.split(Xm);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Br(e){let t="";if(ut(e))t=e;else if(Re(e))for(let n=0;n<e.length;n++){const i=Br(e[n]);i&&(t+=i+" ")}else if(st(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Jm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ev=sl(Jm);function Oh(e){return!!e||e===""}const Nh=e=>!!(e&&e.__v_isRef===!0),Se=e=>ut(e)?e:e==null?"":Re(e)||st(e)&&(e.toString===Th||!Ie(e.toString))?Nh(e)?Se(e.value):JSON.stringify(e,Dh,2):String(e),Dh=(e,t)=>Nh(t)?Dh(e,t.value):$i(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],a)=>(n[Eo(i,a)+" =>"]=o,n),{})}:Mh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Eo(n))}:Hn(t)?Eo(t):st(t)&&!Re(t)&&!Lh(t)?String(t):t,Eo=(e,t="")=>{var n;return Hn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
560
+ * @vue/reactivity v3.5.3
561
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
562
+ * @license MIT
563
+ **/let Ct;class Fh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ct,!t&&Ct&&(this.index=(Ct.scopes||(Ct.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;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=Ct;try{return Ct=this,t()}finally{Ct=n}}}on(){Ct=this}off(){Ct=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function tv(e){return new Fh(e)}function Ph(){return Ct}function nv(e,t=!1){Ct&&Ct.cleanups.push(e)}let qe;const To=new WeakSet;class Wh{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,Ct&&Ct.active&&Ct.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||(this.flags|=8,this.nextEffect=or,or=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_c(this),zh(this);const t=qe,n=jt;qe=this,jt=!0;try{return this.fn()}finally{jh(this),qe=t,jt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)dl(t);this.deps=this.depsTail=void 0,_c(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?To.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){pa(this)&&this.run()}get dirty(){return pa(this)}}let Bh=0,or;function ul(){Bh++}function hl(){if(--Bh>0)return;let e;for(;or;){let t=or;for(or=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function zh(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function jh(e){let t,n=e.depsTail;for(let i=n;i;i=i.prevDep)i.version===-1?(i===n&&(n=i.prevDep),dl(i),iv(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function pa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&Hh(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function Hh(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pr))return;e.globalVersion=pr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!pa(e)){e.flags&=-3;return}const n=qe,i=jt;qe=e,jt=!0;try{zh(e);const o=e.fn(e._value);(t.version===0||Pn(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{qe=n,jt=i,jh(e),e.flags&=-3}}function dl(e){const{dep:t,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let o=t.computed.deps;o;o=o.nextDep)dl(o)}}function iv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let jt=!0;const Uh=[];function Un(){Uh.push(jt),jt=!1}function Vn(){const e=Uh.pop();jt=e===void 0?!0:e}function _c(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=qe;qe=void 0;try{t()}finally{qe=n}}}let pr=0;class Ys{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!qe||!jt||qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==qe)n=this.activeLink={dep:this,sub:qe,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},qe.deps?(n.prevDep=qe.depsTail,qe.depsTail.nextDep=n,qe.depsTail=n):qe.deps=qe.depsTail=n,qe.flags&4&&Vh(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=qe.depsTail,n.nextDep=void 0,qe.depsTail.nextDep=n,qe.depsTail=n,qe.deps===n&&(qe.deps=i)}return n}trigger(t){this.version++,pr++,this.notify(t)}notify(t){ul();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{hl()}}}function Vh(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Vh(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const ws=new WeakMap,ti=Symbol(""),ga=Symbol(""),gr=Symbol("");function bt(e,t,n){if(jt&&qe){let i=ws.get(e);i||ws.set(e,i=new Map);let o=i.get(n);o||i.set(n,o=new Ys),o.track()}}function yn(e,t,n,i,o,a){const d=ws.get(e);if(!d){pr++;return}let g=[];if(t==="clear")g=[...d.values()];else{const l=Re(e),p=l&&ll(n);if(l&&n==="length"){const s=Number(i);d.forEach((r,c)=>{(c==="length"||c===gr||!Hn(c)&&c>=s)&&g.push(r)})}else{const s=r=>r&&g.push(r);switch(n!==void 0&&s(d.get(n)),p&&s(d.get(gr)),t){case"add":l?p&&s(d.get("length")):(s(d.get(ti)),$i(e)&&s(d.get(ga)));break;case"delete":l||(s(d.get(ti)),$i(e)&&s(d.get(ga)));break;case"set":$i(e)&&s(d.get(ti));break}}}ul();for(const l of g)l.trigger();hl()}function rv(e,t){var n;return(n=ws.get(e))==null?void 0:n.get(t)}function gi(e){const t=Ge(e);return t===e?t:(bt(t,"iterate",gr),Ht(e)?t:t.map(yt))}function Ks(e){return bt(e=Ge(e),"iterate",gr),e}const sv={__proto__:null,[Symbol.iterator](){return Lo(this,Symbol.iterator,yt)},concat(...e){return gi(this).concat(...e.map(t=>Re(t)?gi(t):t))},entries(){return Lo(this,"entries",e=>(e[1]=yt(e[1]),e))},every(e,t){return hn(this,"every",e,t,void 0,arguments)},filter(e,t){return hn(this,"filter",e,t,n=>n.map(yt),arguments)},find(e,t){return hn(this,"find",e,t,yt,arguments)},findIndex(e,t){return hn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return hn(this,"findLast",e,t,yt,arguments)},findLastIndex(e,t){return hn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return hn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ro(this,"includes",e)},indexOf(...e){return Ro(this,"indexOf",e)},join(e){return gi(this).join(e)},lastIndexOf(...e){return Ro(this,"lastIndexOf",e)},map(e,t){return hn(this,"map",e,t,void 0,arguments)},pop(){return Yi(this,"pop")},push(...e){return Yi(this,"push",e)},reduce(e,...t){return Sc(this,"reduce",e,t)},reduceRight(e,...t){return Sc(this,"reduceRight",e,t)},shift(){return Yi(this,"shift")},some(e,t){return hn(this,"some",e,t,void 0,arguments)},splice(...e){return Yi(this,"splice",e)},toReversed(){return gi(this).toReversed()},toSorted(e){return gi(this).toSorted(e)},toSpliced(...e){return gi(this).toSpliced(...e)},unshift(...e){return Yi(this,"unshift",e)},values(){return Lo(this,"values",yt)}};function Lo(e,t,n){const i=Ks(e),o=i[t]();return i!==e&&!Ht(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.value&&(a.value=n(a.value)),a}),o}const ov=Array.prototype;function hn(e,t,n,i,o,a){const d=Ks(e),g=d!==e&&!Ht(e),l=d[t];if(l!==ov[t]){const r=l.apply(e,a);return g?yt(r):r}let p=n;d!==e&&(g?p=function(r,c){return n.call(this,yt(r),c,e)}:n.length>2&&(p=function(r,c){return n.call(this,r,c,e)}));const s=l.call(d,p,i);return g&&o?o(s):s}function Sc(e,t,n,i){const o=Ks(e);let a=n;return o!==e&&(Ht(e)?n.length>3&&(a=function(d,g,l){return n.call(this,d,g,l,e)}):a=function(d,g,l){return n.call(this,d,yt(g),l,e)}),o[t](a,...i)}function Ro(e,t,n){const i=Ge(e);bt(i,"iterate",gr);const o=i[t](...n);return(o===-1||o===!1)&&ml(n[0])?(n[0]=Ge(n[0]),i[t](...n)):o}function Yi(e,t,n=[]){Un(),ul();const i=Ge(e)[t].apply(e,n);return hl(),Vn(),i}const av=sl("__proto__,__v_isRef,__isVue"),Gh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Hn));function lv(e){Hn(e)||(e=String(e));const t=Ge(this);return bt(t,"has",e),t.hasOwnProperty(e)}class Yh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const o=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return a;if(n==="__v_raw")return i===(o?a?_v:Qh:a?Xh:Zh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const d=Re(t);if(!o){let l;if(d&&(l=sv[n]))return l;if(n==="hasOwnProperty")return lv}const g=Reflect.get(t,n,lt(t)?t:i);return(Hn(n)?Gh.has(n):av(n))||(o||bt(t,"get",n),a)?g:lt(g)?d&&ll(n)?g:g.value:st(g)?o?Xs(g):zi(g):g}}class Kh extends Yh{constructor(t=!1){super(!1,t)}set(t,n,i,o){let a=t[n];if(!this._isShallow){const l=oi(a);if(!Ht(i)&&!oi(i)&&(a=Ge(a),i=Ge(i)),!Re(t)&&lt(a)&&!lt(i))return l?!1:(a.value=i,!0)}const d=Re(t)&&ll(n)?Number(n)<t.length:Ze(t,n),g=Reflect.set(t,n,i,lt(t)?t:o);return t===Ge(o)&&(d?Pn(i,a)&&yn(t,"set",n,i):yn(t,"add",n,i)),g}deleteProperty(t,n){const i=Ze(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&i&&yn(t,"delete",n,void 0),o}has(t,n){const i=Reflect.has(t,n);return(!Hn(n)||!Gh.has(n))&&bt(t,"has",n),i}ownKeys(t){return bt(t,"iterate",Re(t)?"length":ti),Reflect.ownKeys(t)}}class cv extends Yh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const uv=new Kh,hv=new cv,dv=new Kh(!0);const fl=e=>e,Zs=e=>Reflect.getPrototypeOf(e);function qr(e,t,n=!1,i=!1){e=e.__v_raw;const o=Ge(e),a=Ge(t);n||(Pn(t,a)&&bt(o,"get",t),bt(o,"get",a));const{has:d}=Zs(o),g=i?fl:n?vl:yt;if(d.call(o,t))return g(e.get(t));if(d.call(o,a))return g(e.get(a));e!==o&&e.get(t)}function Jr(e,t=!1){const n=this.__v_raw,i=Ge(n),o=Ge(e);return t||(Pn(e,o)&&bt(i,"has",e),bt(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function es(e,t=!1){return e=e.__v_raw,!t&&bt(Ge(e),"iterate",ti),Reflect.get(e,"size",e)}function xc(e,t=!1){!t&&!Ht(e)&&!oi(e)&&(e=Ge(e));const n=Ge(this);return Zs(n).has.call(n,e)||(n.add(e),yn(n,"add",e,e)),this}function Cc(e,t,n=!1){!n&&!Ht(t)&&!oi(t)&&(t=Ge(t));const i=Ge(this),{has:o,get:a}=Zs(i);let d=o.call(i,e);d||(e=Ge(e),d=o.call(i,e));const g=a.call(i,e);return i.set(e,t),d?Pn(t,g)&&yn(i,"set",e,t):yn(i,"add",e,t),this}function $c(e){const t=Ge(this),{has:n,get:i}=Zs(t);let o=n.call(t,e);o||(e=Ge(e),o=n.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return o&&yn(t,"delete",e,void 0),a}function Ac(){const e=Ge(this),t=e.size!==0,n=e.clear();return t&&yn(e,"clear",void 0,void 0),n}function ts(e,t){return function(i,o){const a=this,d=a.__v_raw,g=Ge(d),l=t?fl:e?vl:yt;return!e&&bt(g,"iterate",ti),d.forEach((p,s)=>i.call(o,l(p),l(s),a))}}function ns(e,t,n){return function(...i){const o=this.__v_raw,a=Ge(o),d=$i(a),g=e==="entries"||e===Symbol.iterator&&d,l=e==="keys"&&d,p=o[e](...i),s=n?fl:t?vl:yt;return!t&&bt(a,"iterate",l?ga:ti),{next(){const{value:r,done:c}=p.next();return c?{value:r,done:c}:{value:g?[s(r[0]),s(r[1])]:s(r),done:c}},[Symbol.iterator](){return this}}}}function kn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fv(){const e={get(a){return qr(this,a)},get size(){return es(this)},has:Jr,add:xc,set:Cc,delete:$c,clear:Ac,forEach:ts(!1,!1)},t={get(a){return qr(this,a,!1,!0)},get size(){return es(this)},has:Jr,add(a){return xc.call(this,a,!0)},set(a,d){return Cc.call(this,a,d,!0)},delete:$c,clear:Ac,forEach:ts(!1,!0)},n={get(a){return qr(this,a,!0)},get size(){return es(this,!0)},has(a){return Jr.call(this,a,!0)},add:kn("add"),set:kn("set"),delete:kn("delete"),clear:kn("clear"),forEach:ts(!0,!1)},i={get(a){return qr(this,a,!0,!0)},get size(){return es(this,!0)},has(a){return Jr.call(this,a,!0)},add:kn("add"),set:kn("set"),delete:kn("delete"),clear:kn("clear"),forEach:ts(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ns(a,!1,!1),n[a]=ns(a,!0,!1),t[a]=ns(a,!1,!0),i[a]=ns(a,!0,!0)}),[e,n,t,i]}const[pv,gv,mv,vv]=fv();function pl(e,t){const n=t?e?vv:mv:e?gv:pv;return(i,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(Ze(n,o)&&o in i?n:i,o,a)}const yv={get:pl(!1,!1)},bv={get:pl(!1,!0)},wv={get:pl(!0,!1)};const Zh=new WeakMap,Xh=new WeakMap,Qh=new WeakMap,_v=new WeakMap;function Sv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xv(e){return e.__v_skip||!Object.isExtensible(e)?0:Sv(Gm(e))}function zi(e){return oi(e)?e:gl(e,!1,uv,yv,Zh)}function qh(e){return gl(e,!1,dv,bv,Xh)}function Xs(e){return gl(e,!0,hv,wv,Qh)}function gl(e,t,n,i,o){if(!st(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const d=xv(e);if(d===0)return e;const g=new Proxy(e,d===2?i:n);return o.set(e,g),g}function Ai(e){return oi(e)?Ai(e.__v_raw):!!(e&&e.__v_isReactive)}function oi(e){return!!(e&&e.__v_isReadonly)}function Ht(e){return!!(e&&e.__v_isShallow)}function ml(e){return e?!!e.__v_raw:!1}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}function Jh(e){return Object.isExtensible(e)&&Rh(e,"__v_skip",!0),e}const yt=e=>st(e)?zi(e):e,vl=e=>st(e)?Xs(e):e;function lt(e){return e?e.__v_isRef===!0:!1}function He(e){return td(e,!1)}function ed(e){return td(e,!0)}function td(e,t){return lt(e)?e:new Cv(e,t)}class Cv{constructor(t,n){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ge(t),this._value=n?t:yt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||Ht(t)||oi(t);t=i?t:Ge(t),Pn(t,n)&&(this._rawValue=t,this._value=i?t:yt(t),this.dep.trigger())}}function ce(e){return lt(e)?e.value:e}const $v={get:(e,t,n)=>t==="__v_raw"?e:ce(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return lt(o)&&!lt(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function nd(e){return Ai(e)?e:new Proxy(e,$v)}class Av{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ys,{get:i,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function id(e){return new Av(e)}class kv{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 rv(Ge(this._object),this._key)}}class Mv{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 yl(e,t,n){return lt(e)?e:Ie(e)?new Mv(e):st(e)&&arguments.length>1?Ev(e,t,n):He(e)}function Ev(e,t,n){const i=e[t];return lt(i)?i:new kv(e,t,n)}class Tv{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ys(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pr-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){qe!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return Hh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Lv(e,t,n=!1){let i,o;return Ie(e)?i=e:(i=e.get,o=e.set),new Tv(i,o,n)}const is={},_s=new WeakMap;let Kn;function Rv(e,t=!1,n=Kn){if(n){let i=_s.get(n);i||_s.set(n,i=[]),i.push(e)}}function Iv(e,t,n=Je){const{immediate:i,deep:o,once:a,scheduler:d,augmentJob:g,call:l}=n,p=_=>o?_:Ht(_)||o===!1||o===0?gn(_,1):gn(_);let s,r,c,u,h=!1,f=!1;if(lt(e)?(r=()=>e.value,h=Ht(e)):Ai(e)?(r=()=>p(e),h=!0):Re(e)?(f=!0,h=e.some(_=>Ai(_)||Ht(_)),r=()=>e.map(_=>{if(lt(_))return _.value;if(Ai(_))return p(_);if(Ie(_))return l?l(_,2):_()})):Ie(e)?t?r=l?()=>l(e,2):e:r=()=>{if(c){Un();try{c()}finally{Vn()}}const _=Kn;Kn=s;try{return l?l(e,3,[u]):e(u)}finally{Kn=_}}:r=tn,t&&o){const _=r,S=o===!0?1/0:o;r=()=>gn(_(),S)}const m=Ph(),v=()=>{s.stop(),m&&al(m.effects,s)};if(a)if(t){const _=t;t=(...S)=>{_(...S),v()}}else{const _=r;r=()=>{_(),v()}}let y=f?new Array(e.length).fill(is):is;const $=_=>{if(!(!(s.flags&1)||!s.dirty&&!_))if(t){const S=s.run();if(o||h||(f?S.some((b,M)=>Pn(b,y[M])):Pn(S,y))){c&&c();const b=Kn;Kn=s;try{const M=[S,y===is?void 0:f&&y[0]===is?[]:y,u];l?l(t,3,M):t(...M),y=S}finally{Kn=b}}}else s.run()};return g&&g($),s=new Wh(r),s.scheduler=d?()=>d($,!1):$,u=_=>Rv(_,!1,s),c=s.onStop=()=>{const _=_s.get(s);if(_){if(l)l(_,4);else for(const S of _)S();_s.delete(s)}},t?i?$(!0):y=s.run():d?d($.bind(null,!0),!0):s.run(),v.pause=s.pause.bind(s),v.resume=s.resume.bind(s),v.stop=v,v}function gn(e,t=1/0,n){if(t<=0||!st(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,lt(e))gn(e.value,t,n);else if(Re(e))for(let i=0;i<e.length;i++)gn(e[i],t,n);else if(Mh(e)||$i(e))e.forEach(i=>{gn(i,t,n)});else if(Lh(e)){for(const i in e)gn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&gn(e[i],t,n)}return e}/**
564
+ * @vue/runtime-core v3.5.3
565
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
566
+ * @license MIT
567
+ **/function zr(e,t,n,i){try{return i?e(...i):e()}catch(o){Qs(o,t,n)}}function on(e,t,n,i){if(Ie(e)){const o=zr(e,t,n,i);return o&&Eh(o)&&o.catch(a=>{Qs(a,t,n)}),o}if(Re(e)){const o=[];for(let a=0;a<e.length;a++)o.push(on(e[a],t,n,i));return o}}function Qs(e,t,n,i=!0){const o=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:d}=t&&t.appContext.config||Je;if(t){let g=t.parent;const l=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;g;){const s=g.ec;if(s){for(let r=0;r<s.length;r++)if(s[r](e,l,p)===!1)return}g=g.parent}if(a){Un(),zr(a,null,10,[e,l,p]),Vn();return}}Ov(e,n,o,i,d)}function Ov(e,t,n,i=!0,o=!1){if(o)throw e;console.error(e)}let mr=!1,ma=!1;const $t=[];let Qt=0;const ki=[];let Tn=null,mi=0;const rd=Promise.resolve();let bl=null;function jr(e){const t=bl||rd;return e?t.then(this?e.bind(this):e):t}function Nv(e){let t=mr?Qt+1:0,n=$t.length;for(;t<n;){const i=t+n>>>1,o=$t[i],a=vr(o);a<e||a===e&&o.flags&2?t=i+1:n=i}return t}function wl(e){if(!(e.flags&1)){const t=vr(e),n=$t[$t.length-1];!n||!(e.flags&2)&&t>=vr(n)?$t.push(e):$t.splice(Nv(t),0,e),e.flags|=1,sd()}}function sd(){!mr&&!ma&&(ma=!0,bl=rd.then(ad))}function Dv(e){Re(e)?ki.push(...e):Tn&&e.id===-1?Tn.splice(mi+1,0,e):e.flags&1||(ki.push(e),e.flags|=1),sd()}function kc(e,t,n=mr?Qt+1:0){for(;n<$t.length;n++){const i=$t[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;$t.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&=-2}}}function od(e){if(ki.length){const t=[...new Set(ki)].sort((n,i)=>vr(n)-vr(i));if(ki.length=0,Tn){Tn.push(...t);return}for(Tn=t,mi=0;mi<Tn.length;mi++){const n=Tn[mi];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Tn=null,mi=0}}const vr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ad(e){ma=!1,mr=!0;try{for(Qt=0;Qt<$t.length;Qt++){const t=$t[Qt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),zr(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;Qt<$t.length;Qt++){const t=$t[Qt];t&&(t.flags&=-2)}Qt=0,$t.length=0,od(),mr=!1,bl=null,($t.length||ki.length)&&ad()}}let Mt=null,ld=null;function Ss(e){const t=Mt;return Mt=e,ld=e&&e.type.__scopeId||null,t}function nt(e,t=Mt,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&Dc(-1);const a=Ss(t);let d;try{d=e(...o)}finally{Ss(a),i._d&&Dc(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function _l(e,t){if(Mt===null)return e;const n=no(Mt),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[a,d,g,l=Je]=t[o];a&&(Ie(a)&&(a={mounted:a,updated:a}),a.deep&&gn(d),i.push({dir:a,instance:n,value:d,oldValue:void 0,arg:g,modifiers:l}))}return e}function Gn(e,t,n,i){const o=e.dirs,a=t&&t.dirs;for(let d=0;d<o.length;d++){const g=o[d];a&&(g.oldValue=a[d].value);let l=g.dir[i];l&&(Un(),on(l,n,8,[e.el,g,e,t]),Vn())}}const Fv=Symbol("_vte"),Pv=e=>e.__isTeleport;function Sl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Sl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ce(e,t){return Ie(e)?gt({name:e.name},t,{setup:e}):e}function cd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function va(e,t,n,i,o=!1){if(Re(e)){e.forEach((h,f)=>va(h,t&&(Re(t)?t[f]:t),n,i,o));return}if(ar(i)&&!o)return;const a=i.shapeFlag&4?no(i.component):i.el,d=o?null:a,{i:g,r:l}=e,p=t&&t.r,s=g.refs===Je?g.refs={}:g.refs,r=g.setupState,c=Ge(r),u=r===Je?()=>!1:h=>Ze(c,h);if(p!=null&&p!==l&&(ut(p)?(s[p]=null,u(p)&&(r[p]=null)):lt(p)&&(p.value=null)),Ie(l))zr(l,g,12,[d,s]);else{const h=ut(l),f=lt(l);if(h||f){const m=()=>{if(e.f){const v=h?u(l)?r[l]:s[l]:l.value;o?Re(v)&&al(v,a):Re(v)?v.includes(a)||v.push(a):h?(s[l]=[a],u(l)&&(r[l]=s[l])):(l.value=[a],e.k&&(s[e.k]=l.value))}else h?(s[l]=d,u(l)&&(r[l]=d)):f&&(l.value=d,e.k&&(s[e.k]=d))};d?(m.id=-1,Rt(m,n)):m()}}}const ar=e=>!!e.type.__asyncLoader,ud=e=>e.type.__isKeepAlive;function Wv(e,t){hd(e,"a",t)}function Bv(e,t){hd(e,"da",t)}function hd(e,t,n=pt){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(qs(t,i,n),n){let o=n.parent;for(;o&&o.parent;)ud(o.parent.vnode)&&zv(i,t,n,o),o=o.parent}}function zv(e,t,n,i){const o=qs(t,e,i,!0);dd(()=>{al(i[t],o)},n)}function qs(e,t,n=pt,i=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...d)=>{Un();const g=Hr(n),l=on(t,n,e,d);return g(),Vn(),l});return i?o.unshift(a):o.push(a),a}}const xn=e=>(t,n=pt)=>{(!to||e==="sp")&&qs(e,(...i)=>t(...i),n)},jv=xn("bm"),ct=xn("m"),Hv=xn("bu"),Uv=xn("u"),xl=xn("bum"),dd=xn("um"),Vv=xn("sp"),Gv=xn("rtg"),Yv=xn("rtc");function Kv(e,t=pt){qs("ec",e,t)}const Zv="components";function Xe(e,t){return Qv(Zv,e,!0,t)||e}const Xv=Symbol.for("v-ndc");function Qv(e,t,n=!0,i=!1){const o=Mt||pt;if(o){const a=o.type;{const g=Fy(a,!1);if(g&&(g===t||g===Gt(t)||g===Wr(Gt(t))))return a}const d=Mc(o[e]||a[e],t)||Mc(o.appContext[e],t);return!d&&i?a:d}}function Mc(e,t){return e&&(e[t]||e[Gt(t)]||e[Wr(Gt(t))])}function Pt(e,t,n,i){let o;const a=n,d=Re(e);if(d||ut(e)){const g=d&&Ai(e);g&&(e=Ks(e)),o=new Array(e.length);for(let l=0,p=e.length;l<p;l++)o[l]=t(g?yt(e[l]):e[l],l,void 0,a)}else if(typeof e=="number"){o=new Array(e);for(let g=0;g<e;g++)o[g]=t(g+1,g,void 0,a)}else if(st(e))if(e[Symbol.iterator])o=Array.from(e,(g,l)=>t(g,l,void 0,a));else{const g=Object.keys(e);o=new Array(g.length);for(let l=0,p=g.length;l<p;l++){const s=g[l];o[l]=t(e[s],s,l,a)}}else o=[];return o}const ya=e=>e?Ld(e)?no(e):ya(e.parent):null,lr=gt(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=>ya(e.parent),$root:e=>ya(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Cl(e),$forceUpdate:e=>e.f||(e.f=()=>{wl(e.update)}),$nextTick:e=>e.n||(e.n=jr.bind(e.proxy)),$watch:e=>yy.bind(e)}),Io=(e,t)=>e!==Je&&!e.__isScriptSetup&&Ze(e,t),qv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:o,props:a,accessCache:d,type:g,appContext:l}=e;let p;if(t[0]!=="$"){const u=d[t];if(u!==void 0)switch(u){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return a[t]}else{if(Io(i,t))return d[t]=1,i[t];if(o!==Je&&Ze(o,t))return d[t]=2,o[t];if((p=e.propsOptions[0])&&Ze(p,t))return d[t]=3,a[t];if(n!==Je&&Ze(n,t))return d[t]=4,n[t];ba&&(d[t]=0)}}const s=lr[t];let r,c;if(s)return t==="$attrs"&&bt(e.attrs,"get",""),s(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==Je&&Ze(n,t))return d[t]=4,n[t];if(c=l.config.globalProperties,Ze(c,t))return c[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return Io(o,t)?(o[t]=n,!0):i!==Je&&Ze(i,t)?(i[t]=n,!0):Ze(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:o,propsOptions:a}},d){let g;return!!n[d]||e!==Je&&Ze(e,d)||Io(t,d)||(g=a[0])&&Ze(g,d)||Ze(i,d)||Ze(lr,d)||Ze(o.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ec(e){return Re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ba=!0;function Jv(e){const t=Cl(e),n=e.proxy,i=e.ctx;ba=!1,t.beforeCreate&&Tc(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:d,watch:g,provide:l,inject:p,created:s,beforeMount:r,mounted:c,beforeUpdate:u,updated:h,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:$,unmounted:_,render:S,renderTracked:b,renderTriggered:M,errorCaptured:I,serverPrefetch:L,expose:T,inheritAttrs:k,components:x,directives:C,filters:w}=t;if(p&&ey(p,i,null),d)for(const R in d){const O=d[R];Ie(O)&&(i[R]=O.bind(n))}if(o){const R=o.call(n,n);st(R)&&(e.data=zi(R))}if(ba=!0,a)for(const R in a){const O=a[R],N=Ie(O)?O.bind(n,n):Ie(O.get)?O.get.bind(n,n):tn,F=!Ie(O)&&Ie(O.set)?O.set.bind(n):tn,z=ke({get:N,set:F});Object.defineProperty(i,R,{enumerable:!0,configurable:!0,get:()=>z.value,set:U=>z.value=U})}if(g)for(const R in g)fd(g[R],i,n,R);if(l){const R=Ie(l)?l.call(n):l;Reflect.ownKeys(R).forEach(O=>{us(O,R[O])})}s&&Tc(s,e,"c");function E(R,O){Re(O)?O.forEach(N=>R(N.bind(n))):O&&R(O.bind(n))}if(E(jv,r),E(ct,c),E(Hv,u),E(Uv,h),E(Wv,f),E(Bv,m),E(Kv,I),E(Yv,b),E(Gv,M),E(xl,y),E(dd,_),E(Vv,L),Re(T))if(T.length){const R=e.exposed||(e.exposed={});T.forEach(O=>{Object.defineProperty(R,O,{get:()=>n[O],set:N=>n[O]=N})})}else e.exposed||(e.exposed={});S&&e.render===tn&&(e.render=S),k!=null&&(e.inheritAttrs=k),x&&(e.components=x),C&&(e.directives=C),L&&cd(e)}function ey(e,t,n=tn){Re(e)&&(e=wa(e));for(const i in e){const o=e[i];let a;st(o)?"default"in o?a=Ut(o.from||i,o.default,!0):a=Ut(o.from||i):a=Ut(o),lt(a)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:d=>a.value=d}):t[i]=a}}function Tc(e,t,n){on(Re(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function fd(e,t,n,i){let o=i.includes(".")?Ad(n,i):()=>n[i];if(ut(e)){const a=t[e];Ie(a)&&et(o,a)}else if(Ie(e))et(o,e.bind(n));else if(st(e))if(Re(e))e.forEach(a=>fd(a,t,n,i));else{const a=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(a)&&et(o,a,e)}}function Cl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:d}}=e.appContext,g=a.get(t);let l;return g?l=g:!o.length&&!n&&!i?l=t:(l={},o.length&&o.forEach(p=>xs(l,p,d,!0)),xs(l,t,d)),st(t)&&a.set(t,l),l}function xs(e,t,n,i=!1){const{mixins:o,extends:a}=t;a&&xs(e,a,n,!0),o&&o.forEach(d=>xs(e,d,n,!0));for(const d in t)if(!(i&&d==="expose")){const g=ty[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const ty={data:Lc,props:Rc,emits:Rc,methods:er,computed:er,beforeCreate:xt,created:xt,beforeMount:xt,mounted:xt,beforeUpdate:xt,updated:xt,beforeDestroy:xt,beforeUnmount:xt,destroyed:xt,unmounted:xt,activated:xt,deactivated:xt,errorCaptured:xt,serverPrefetch:xt,components:er,directives:er,watch:iy,provide:Lc,inject:ny};function Lc(e,t){return t?e?function(){return gt(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function ny(e,t){return er(wa(e),wa(t))}function wa(e){if(Re(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xt(e,t){return e?[...new Set([].concat(e,t))]:t}function er(e,t){return e?gt(Object.create(null),e,t):t}function Rc(e,t){return e?Re(e)&&Re(t)?[...new Set([...e,...t])]:gt(Object.create(null),Ec(e),Ec(t??{})):t}function iy(e,t){if(!e)return t;if(!t)return e;const n=gt(Object.create(null),e);for(const i in t)n[i]=xt(e[i],t[i]);return n}function pd(){return{app:null,config:{isNativeTag:Um,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 ry=0;function sy(e,t){return function(i,o=null){Ie(i)||(i=gt({},i)),o!=null&&!st(o)&&(o=null);const a=pd(),d=new WeakSet,g=[];let l=!1;const p=a.app={_uid:ry++,_component:i,_props:o,_container:null,_context:a,_instance:null,version:Wy,get config(){return a.config},set config(s){},use(s,...r){return d.has(s)||(s&&Ie(s.install)?(d.add(s),s.install(p,...r)):Ie(s)&&(d.add(s),s(p,...r))),p},mixin(s){return a.mixins.includes(s)||a.mixins.push(s),p},component(s,r){return r?(a.components[s]=r,p):a.components[s]},directive(s,r){return r?(a.directives[s]=r,p):a.directives[s]},mount(s,r,c){if(!l){const u=p._ceVNode||se(i,o);return u.appContext=a,c===!0?c="svg":c===!1&&(c=void 0),r&&t?t(u,s):e(u,s,c),l=!0,p._container=s,s.__vue_app__=p,no(u.component)}},onUnmount(s){g.push(s)},unmount(){l&&(on(g,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(s,r){return a.provides[s]=r,p},runWithContext(s){const r=Mi;Mi=p;try{return s()}finally{Mi=r}}};return p}}let Mi=null;function us(e,t){if(pt){let n=pt.provides;const i=pt.parent&&pt.parent.provides;i===n&&(n=pt.provides=Object.create(i)),n[e]=t}}function Ut(e,t,n=!1){const i=pt||Mt;if(i||Mi){const o=Mi?Mi._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ie(t)?t.call(i&&i.proxy):t}}const gd={},md=()=>Object.create(gd),vd=e=>Object.getPrototypeOf(e)===gd;function oy(e,t,n,i=!1){const o={},a=md();e.propsDefaults=Object.create(null),yd(e,t,o,a);for(const d in e.propsOptions[0])d in o||(o[d]=void 0);n?e.props=i?o:qh(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function ay(e,t,n,i){const{props:o,attrs:a,vnode:{patchFlag:d}}=e,g=Ge(o),[l]=e.propsOptions;let p=!1;if((i||d>0)&&!(d&16)){if(d&8){const s=e.vnode.dynamicProps;for(let r=0;r<s.length;r++){let c=s[r];if(Js(e.emitsOptions,c))continue;const u=t[c];if(l)if(Ze(a,c))u!==a[c]&&(a[c]=u,p=!0);else{const h=Gt(c);o[h]=_a(l,g,h,u,e,!1)}else u!==a[c]&&(a[c]=u,p=!0)}}}else{yd(e,t,o,a)&&(p=!0);let s;for(const r in g)(!t||!Ze(t,r)&&((s=pi(r))===r||!Ze(t,s)))&&(l?n&&(n[r]!==void 0||n[s]!==void 0)&&(o[r]=_a(l,g,r,void 0,e,!0)):delete o[r]);if(a!==g)for(const r in a)(!t||!Ze(t,r))&&(delete a[r],p=!0)}p&&yn(e.attrs,"set","")}function yd(e,t,n,i){const[o,a]=e.propsOptions;let d=!1,g;if(t)for(let l in t){if(sr(l))continue;const p=t[l];let s;o&&Ze(o,s=Gt(l))?!a||!a.includes(s)?n[s]=p:(g||(g={}))[s]=p:Js(e.emitsOptions,l)||(!(l in i)||p!==i[l])&&(i[l]=p,d=!0)}if(a){const l=Ge(n),p=g||Je;for(let s=0;s<a.length;s++){const r=a[s];n[r]=_a(o,l,r,p[r],e,!Ze(p,r))}}return d}function _a(e,t,n,i,o,a){const d=e[n];if(d!=null){const g=Ze(d,"default");if(g&&i===void 0){const l=d.default;if(d.type!==Function&&!d.skipFactory&&Ie(l)){const{propsDefaults:p}=o;if(n in p)i=p[n];else{const s=Hr(o);i=p[n]=l.call(null,t),s()}}else i=l;o.ce&&o.ce._setProp(n,i)}d[0]&&(a&&!g?i=!1:d[1]&&(i===""||i===pi(n))&&(i=!0))}return i}const ly=new WeakMap;function bd(e,t,n=!1){const i=n?ly:t.propsCache,o=i.get(e);if(o)return o;const a=e.props,d={},g=[];let l=!1;if(!Ie(e)){const s=r=>{l=!0;const[c,u]=bd(r,t,!0);gt(d,c),u&&g.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!a&&!l)return st(e)&&i.set(e,Ci),Ci;if(Re(a))for(let s=0;s<a.length;s++){const r=Gt(a[s]);Ic(r)&&(d[r]=Je)}else if(a)for(const s in a){const r=Gt(s);if(Ic(r)){const c=a[s],u=d[r]=Re(c)||Ie(c)?{type:c}:gt({},c),h=u.type;let f=!1,m=!0;if(Re(h))for(let v=0;v<h.length;++v){const y=h[v],$=Ie(y)&&y.name;if($==="Boolean"){f=!0;break}else $==="String"&&(m=!1)}else f=Ie(h)&&h.name==="Boolean";u[0]=f,u[1]=m,(f||Ze(u,"default"))&&g.push(r)}}const p=[d,g];return st(e)&&i.set(e,p),p}function Ic(e){return e[0]!=="$"&&!sr(e)}const wd=e=>e[0]==="_"||e==="$stable",$l=e=>Re(e)?e.map(qt):[qt(e)],cy=(e,t,n)=>{if(t._n)return t;const i=nt((...o)=>$l(t(...o)),n);return i._c=!1,i},_d=(e,t,n)=>{const i=e._ctx;for(const o in e){if(wd(o))continue;const a=e[o];if(Ie(a))t[o]=cy(o,a,i);else if(a!=null){const d=$l(a);t[o]=()=>d}}},Sd=(e,t)=>{const n=$l(t);e.slots.default=()=>n},xd=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},uy=(e,t,n)=>{const i=e.slots=md();if(e.vnode.shapeFlag&32){const o=t._;o?(xd(i,t,n),n&&Rh(i,"_",o,!0)):_d(t,i)}else t&&Sd(e,t)},hy=(e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,d=Je;if(i.shapeFlag&32){const g=t._;g?n&&g===1?a=!1:xd(o,t,n):(a=!t.$stable,_d(t,o)),d=t}else t&&(Sd(e,t),d={default:1});if(a)for(const g in o)!wd(g)&&d[g]==null&&delete o[g]},Rt=$y;function dy(e){return fy(e)}function fy(e,t){const n=Ih();n.__VUE__=!0;const{insert:i,remove:o,patchProp:a,createElement:d,createText:g,createComment:l,setText:p,setElementText:s,parentNode:r,nextSibling:c,setScopeId:u=tn,insertStaticContent:h}=e,f=(P,W,G,ne=null,ee=null,re=null,pe=void 0,de=null,he=!!W.dynamicChildren)=>{if(P===W)return;P&&!Ki(P,W)&&(ne=H(P),U(P,ee,re,!0),P=null),W.patchFlag===-2&&(he=!1,W.dynamicChildren=null);const{type:oe,ref:Me,shapeFlag:me}=W;switch(oe){case eo:m(P,W,G,ne);break;case ai:v(P,W,G,ne);break;case hs:P==null&&y(W,G,ne,pe);break;case Pe:x(P,W,G,ne,ee,re,pe,de,he);break;default:me&1?S(P,W,G,ne,ee,re,pe,de,he):me&6?C(P,W,G,ne,ee,re,pe,de,he):(me&64||me&128)&&oe.process(P,W,G,ne,ee,re,pe,de,he,q)}Me!=null&&ee&&va(Me,P&&P.ref,re,W||P,!W)},m=(P,W,G,ne)=>{if(P==null)i(W.el=g(W.children),G,ne);else{const ee=W.el=P.el;W.children!==P.children&&p(ee,W.children)}},v=(P,W,G,ne)=>{P==null?i(W.el=l(W.children||""),G,ne):W.el=P.el},y=(P,W,G,ne)=>{[P.el,P.anchor]=h(P.children,W,G,ne,P.el,P.anchor)},$=({el:P,anchor:W},G,ne)=>{let ee;for(;P&&P!==W;)ee=c(P),i(P,G,ne),P=ee;i(W,G,ne)},_=({el:P,anchor:W})=>{let G;for(;P&&P!==W;)G=c(P),o(P),P=G;o(W)},S=(P,W,G,ne,ee,re,pe,de,he)=>{W.type==="svg"?pe="svg":W.type==="math"&&(pe="mathml"),P==null?b(W,G,ne,ee,re,pe,de,he):L(P,W,ee,re,pe,de,he)},b=(P,W,G,ne,ee,re,pe,de)=>{let he,oe;const{props:Me,shapeFlag:me,transition:$e,dirs:Z}=P;if(he=P.el=d(P.type,re,Me&&Me.is,Me),me&8?s(he,P.children):me&16&&I(P.children,he,null,ne,ee,Oo(P,re),pe,de),Z&&Gn(P,null,ne,"created"),M(he,P,P.scopeId,pe,ne),Me){for(const fe in Me)fe!=="value"&&!sr(fe)&&a(he,fe,null,Me[fe],re,ne);"value"in Me&&a(he,"value",null,Me.value,re),(oe=Me.onVnodeBeforeMount)&&Xt(oe,ne,P)}Z&&Gn(P,null,ne,"beforeMount");const ae=py(ee,$e);ae&&$e.beforeEnter(he),i(he,W,G),((oe=Me&&Me.onVnodeMounted)||ae||Z)&&Rt(()=>{oe&&Xt(oe,ne,P),ae&&$e.enter(he),Z&&Gn(P,null,ne,"mounted")},ee)},M=(P,W,G,ne,ee)=>{if(G&&u(P,G),ne)for(let re=0;re<ne.length;re++)u(P,ne[re]);if(ee){let re=ee.subTree;if(W===re||Md(re.type)&&(re.ssContent===W||re.ssFallback===W)){const pe=ee.vnode;M(P,pe,pe.scopeId,pe.slotScopeIds,ee.parent)}}},I=(P,W,G,ne,ee,re,pe,de,he=0)=>{for(let oe=he;oe<P.length;oe++){const Me=P[oe]=de?Ln(P[oe]):qt(P[oe]);f(null,Me,W,G,ne,ee,re,pe,de)}},L=(P,W,G,ne,ee,re,pe)=>{const de=W.el=P.el;let{patchFlag:he,dynamicChildren:oe,dirs:Me}=W;he|=P.patchFlag&16;const me=P.props||Je,$e=W.props||Je;let Z;if(G&&Yn(G,!1),(Z=$e.onVnodeBeforeUpdate)&&Xt(Z,G,W,P),Me&&Gn(W,P,G,"beforeUpdate"),G&&Yn(G,!0),(me.innerHTML&&$e.innerHTML==null||me.textContent&&$e.textContent==null)&&s(de,""),oe?T(P.dynamicChildren,oe,de,G,ne,Oo(W,ee),re):pe||O(P,W,de,null,G,ne,Oo(W,ee),re,!1),he>0){if(he&16)k(de,me,$e,G,ee);else if(he&2&&me.class!==$e.class&&a(de,"class",null,$e.class,ee),he&4&&a(de,"style",me.style,$e.style,ee),he&8){const ae=W.dynamicProps;for(let fe=0;fe<ae.length;fe++){const be=ae[fe],Oe=me[be],Be=$e[be];(Be!==Oe||be==="value")&&a(de,be,Oe,Be,ee,G)}}he&1&&P.children!==W.children&&s(de,W.children)}else!pe&&oe==null&&k(de,me,$e,G,ee);((Z=$e.onVnodeUpdated)||Me)&&Rt(()=>{Z&&Xt(Z,G,W,P),Me&&Gn(W,P,G,"updated")},ne)},T=(P,W,G,ne,ee,re,pe)=>{for(let de=0;de<W.length;de++){const he=P[de],oe=W[de],Me=he.el&&(he.type===Pe||!Ki(he,oe)||he.shapeFlag&70)?r(he.el):G;f(he,oe,Me,null,ne,ee,re,pe,!0)}},k=(P,W,G,ne,ee)=>{if(W!==G){if(W!==Je)for(const re in W)!sr(re)&&!(re in G)&&a(P,re,W[re],null,ee,ne);for(const re in G){if(sr(re))continue;const pe=G[re],de=W[re];pe!==de&&re!=="value"&&a(P,re,de,pe,ee,ne)}"value"in G&&a(P,"value",W.value,G.value,ee)}},x=(P,W,G,ne,ee,re,pe,de,he)=>{const oe=W.el=P?P.el:g(""),Me=W.anchor=P?P.anchor:g("");let{patchFlag:me,dynamicChildren:$e,slotScopeIds:Z}=W;Z&&(de=de?de.concat(Z):Z),P==null?(i(oe,G,ne),i(Me,G,ne),I(W.children||[],G,Me,ee,re,pe,de,he)):me>0&&me&64&&$e&&P.dynamicChildren?(T(P.dynamicChildren,$e,G,ee,re,pe,de),(W.key!=null||ee&&W===ee.subTree)&&Cd(P,W,!0)):O(P,W,G,Me,ee,re,pe,de,he)},C=(P,W,G,ne,ee,re,pe,de,he)=>{W.slotScopeIds=de,P==null?W.shapeFlag&512?ee.ctx.activate(W,G,ne,pe,he):w(W,G,ne,ee,re,pe,he):A(P,W,he)},w=(P,W,G,ne,ee,re,pe)=>{const de=P.component=Ry(P,ne,ee);if(ud(P)&&(de.ctx.renderer=q),Iy(de,!1,pe),de.asyncDep){if(ee&&ee.registerDep(de,E,pe),!P.el){const he=de.subTree=se(ai);v(null,he,W,G)}}else E(de,P,W,G,ee,re,pe)},A=(P,W,G)=>{const ne=W.component=P.component;if(xy(P,W,G))if(ne.asyncDep&&!ne.asyncResolved){R(ne,W,G);return}else ne.next=W,ne.update();else W.el=P.el,ne.vnode=W},E=(P,W,G,ne,ee,re,pe)=>{const de=()=>{if(P.isMounted){let{next:me,bu:$e,u:Z,parent:ae,vnode:fe}=P;{const ze=$d(P);if(ze){me&&(me.el=fe.el,R(P,me,pe)),ze.asyncDep.then(()=>{P.isUnmounted||de()});return}}let be=me,Oe;Yn(P,!1),me?(me.el=fe.el,R(P,me,pe)):me=fe,$e&&cs($e),(Oe=me.props&&me.props.onVnodeBeforeUpdate)&&Xt(Oe,ae,me,fe),Yn(P,!0);const Be=No(P),Ue=P.subTree;P.subTree=Be,f(Ue,Be,r(Ue.el),H(Ue),P,ee,re),me.el=Be.el,be===null&&Cy(P,Be.el),Z&&Rt(Z,ee),(Oe=me.props&&me.props.onVnodeUpdated)&&Rt(()=>Xt(Oe,ae,me,fe),ee)}else{let me;const{el:$e,props:Z}=W,{bm:ae,m:fe,parent:be,root:Oe,type:Be}=P,Ue=ar(W);if(Yn(P,!1),ae&&cs(ae),!Ue&&(me=Z&&Z.onVnodeBeforeMount)&&Xt(me,be,W),Yn(P,!0),$e&&we){const ze=()=>{P.subTree=No(P),we($e,P.subTree,P,ee,null)};Ue&&Be.__asyncHydrate?Be.__asyncHydrate($e,P,ze):ze()}else{Oe.ce&&Oe.ce._injectChildStyle(Be);const ze=P.subTree=No(P);f(null,ze,G,ne,P,ee,re),W.el=ze.el}if(fe&&Rt(fe,ee),!Ue&&(me=Z&&Z.onVnodeMounted)){const ze=W;Rt(()=>Xt(me,be,ze),ee)}(W.shapeFlag&256||be&&ar(be.vnode)&&be.vnode.shapeFlag&256)&&P.a&&Rt(P.a,ee),P.isMounted=!0,W=G=ne=null}};P.scope.on();const he=P.effect=new Wh(de);P.scope.off();const oe=P.update=he.run.bind(he),Me=P.job=he.runIfDirty.bind(he);Me.i=P,Me.id=P.uid,he.scheduler=()=>wl(Me),Yn(P,!0),oe()},R=(P,W,G)=>{W.component=P;const ne=P.vnode.props;P.vnode=W,P.next=null,ay(P,W.props,ne,G),hy(P,W.children,G),Un(),kc(P),Vn()},O=(P,W,G,ne,ee,re,pe,de,he=!1)=>{const oe=P&&P.children,Me=P?P.shapeFlag:0,me=W.children,{patchFlag:$e,shapeFlag:Z}=W;if($e>0){if($e&128){F(oe,me,G,ne,ee,re,pe,de,he);return}else if($e&256){N(oe,me,G,ne,ee,re,pe,de,he);return}}Z&8?(Me&16&&Q(oe,ee,re),me!==oe&&s(G,me)):Me&16?Z&16?F(oe,me,G,ne,ee,re,pe,de,he):Q(oe,ee,re,!0):(Me&8&&s(G,""),Z&16&&I(me,G,ne,ee,re,pe,de,he))},N=(P,W,G,ne,ee,re,pe,de,he)=>{P=P||Ci,W=W||Ci;const oe=P.length,Me=W.length,me=Math.min(oe,Me);let $e;for($e=0;$e<me;$e++){const Z=W[$e]=he?Ln(W[$e]):qt(W[$e]);f(P[$e],Z,G,null,ee,re,pe,de,he)}oe>Me?Q(P,ee,re,!0,!1,me):I(W,G,ne,ee,re,pe,de,he,me)},F=(P,W,G,ne,ee,re,pe,de,he)=>{let oe=0;const Me=W.length;let me=P.length-1,$e=Me-1;for(;oe<=me&&oe<=$e;){const Z=P[oe],ae=W[oe]=he?Ln(W[oe]):qt(W[oe]);if(Ki(Z,ae))f(Z,ae,G,null,ee,re,pe,de,he);else break;oe++}for(;oe<=me&&oe<=$e;){const Z=P[me],ae=W[$e]=he?Ln(W[$e]):qt(W[$e]);if(Ki(Z,ae))f(Z,ae,G,null,ee,re,pe,de,he);else break;me--,$e--}if(oe>me){if(oe<=$e){const Z=$e+1,ae=Z<Me?W[Z].el:ne;for(;oe<=$e;)f(null,W[oe]=he?Ln(W[oe]):qt(W[oe]),G,ae,ee,re,pe,de,he),oe++}}else if(oe>$e)for(;oe<=me;)U(P[oe],ee,re,!0),oe++;else{const Z=oe,ae=oe,fe=new Map;for(oe=ae;oe<=$e;oe++){const Qe=W[oe]=he?Ln(W[oe]):qt(W[oe]);Qe.key!=null&&fe.set(Qe.key,oe)}let be,Oe=0;const Be=$e-ae+1;let Ue=!1,ze=0;const Ye=new Array(Be);for(oe=0;oe<Be;oe++)Ye[oe]=0;for(oe=Z;oe<=me;oe++){const Qe=P[oe];if(Oe>=Be){U(Qe,ee,re,!0);continue}let vt;if(Qe.key!=null)vt=fe.get(Qe.key);else for(be=ae;be<=$e;be++)if(Ye[be-ae]===0&&Ki(Qe,W[be])){vt=be;break}vt===void 0?U(Qe,ee,re,!0):(Ye[vt-ae]=oe+1,vt>=ze?ze=vt:Ue=!0,f(Qe,W[vt],G,null,ee,re,pe,de,he),Oe++)}const Ve=Ue?gy(Ye):Ci;for(be=Ve.length-1,oe=Be-1;oe>=0;oe--){const Qe=ae+oe,vt=W[Qe],Gi=Qe+1<Me?W[Qe+1].el:ne;Ye[oe]===0?f(null,vt,G,Gi,ee,re,pe,de,he):Ue&&(be<0||oe!==Ve[be]?z(vt,G,Gi,2):be--)}}},z=(P,W,G,ne,ee=null)=>{const{el:re,type:pe,transition:de,children:he,shapeFlag:oe}=P;if(oe&6){z(P.component.subTree,W,G,ne);return}if(oe&128){P.suspense.move(W,G,ne);return}if(oe&64){pe.move(P,W,G,q);return}if(pe===Pe){i(re,W,G);for(let me=0;me<he.length;me++)z(he[me],W,G,ne);i(P.anchor,W,G);return}if(pe===hs){$(P,W,G);return}if(ne!==2&&oe&1&&de)if(ne===0)de.beforeEnter(re),i(re,W,G),Rt(()=>de.enter(re),ee);else{const{leave:me,delayLeave:$e,afterLeave:Z}=de,ae=()=>i(re,W,G),fe=()=>{me(re,()=>{ae(),Z&&Z()})};$e?$e(re,ae,fe):fe()}else i(re,W,G)},U=(P,W,G,ne=!1,ee=!1)=>{const{type:re,props:pe,ref:de,children:he,dynamicChildren:oe,shapeFlag:Me,patchFlag:me,dirs:$e,cacheIndex:Z}=P;if(me===-2&&(ee=!1),de!=null&&va(de,null,G,P,!0),Z!=null&&(W.renderCache[Z]=void 0),Me&256){W.ctx.deactivate(P);return}const ae=Me&1&&$e,fe=!ar(P);let be;if(fe&&(be=pe&&pe.onVnodeBeforeUnmount)&&Xt(be,W,P),Me&6)V(P.component,G,ne);else{if(Me&128){P.suspense.unmount(G,ne);return}ae&&Gn(P,null,W,"beforeUnmount"),Me&64?P.type.remove(P,W,G,q,ne):oe&&!oe.hasOnce&&(re!==Pe||me>0&&me&64)?Q(oe,W,G,!1,!0):(re===Pe&&me&384||!ee&&Me&16)&&Q(he,W,G),ne&&j(P)}(fe&&(be=pe&&pe.onVnodeUnmounted)||ae)&&Rt(()=>{be&&Xt(be,W,P),ae&&Gn(P,null,W,"unmounted")},G)},j=P=>{const{type:W,el:G,anchor:ne,transition:ee}=P;if(W===Pe){B(G,ne);return}if(W===hs){_(P);return}const re=()=>{o(G),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(P.shapeFlag&1&&ee&&!ee.persisted){const{leave:pe,delayLeave:de}=ee,he=()=>pe(G,re);de?de(P.el,re,he):he()}else re()},B=(P,W)=>{let G;for(;P!==W;)G=c(P),o(P),P=G;o(W)},V=(P,W,G)=>{const{bum:ne,scope:ee,job:re,subTree:pe,um:de,m:he,a:oe}=P;Oc(he),Oc(oe),ne&&cs(ne),ee.stop(),re&&(re.flags|=8,U(pe,P,W,G)),de&&Rt(de,W),Rt(()=>{P.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Q=(P,W,G,ne=!1,ee=!1,re=0)=>{for(let pe=re;pe<P.length;pe++)U(P[pe],W,G,ne,ee)},H=P=>{if(P.shapeFlag&6)return H(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const W=c(P.anchor||P.el),G=W&&W[Fv];return G?c(G):W};let K=!1;const X=(P,W,G)=>{P==null?W._vnode&&U(W._vnode,null,null,!0):f(W._vnode||null,P,W,null,null,null,G),W._vnode=P,K||(K=!0,kc(),od(),K=!1)},q={p:f,um:U,m:z,r:j,mt:w,mc:I,pc:O,pbc:T,n:H,o:e};let ue,we;return{render:X,hydrate:ue,createApp:sy(X,ue)}}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 Yn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function py(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Cd(e,t,n=!1){const i=e.children,o=t.children;if(Re(i)&&Re(o))for(let a=0;a<i.length;a++){const d=i[a];let g=o[a];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=o[a]=Ln(o[a]),g.el=d.el),!n&&g.patchFlag!==-2&&Cd(d,g)),g.type===eo&&(g.el=d.el)}}function gy(e){const t=e.slice(),n=[0];let i,o,a,d,g;const l=e.length;for(i=0;i<l;i++){const p=e[i];if(p!==0){if(o=n[n.length-1],e[o]<p){t[i]=o,n.push(i);continue}for(a=0,d=n.length-1;a<d;)g=a+d>>1,e[n[g]]<p?a=g+1:d=g;p<e[n[a]]&&(a>0&&(t[i]=n[a-1]),n[a]=i)}}for(a=n.length,d=n[a-1];a-- >0;)n[a]=d,d=t[d];return n}function $d(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$d(t)}function Oc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const my=Symbol.for("v-scx"),vy=()=>Ut(my);function Al(e,t){return kl(e,null,t)}function et(e,t,n){return kl(e,t,n)}function kl(e,t,n=Je){const{immediate:i,deep:o,flush:a,once:d}=n,g=gt({},n);let l;if(to)if(a==="sync"){const c=vy();l=c.__watcherHandles||(c.__watcherHandles=[])}else if(!t||i)g.once=!0;else return{stop:tn,resume:tn,pause:tn};const p=pt;g.call=(c,u,h)=>on(c,p,u,h);let s=!1;a==="post"?g.scheduler=c=>{Rt(c,p&&p.suspense)}:a!=="sync"&&(s=!0,g.scheduler=(c,u)=>{u?c():wl(c)}),g.augmentJob=c=>{t&&(c.flags|=4),s&&(c.flags|=2,p&&(c.id=p.uid,c.i=p))};const r=Iv(e,t,g);return l&&l.push(r),r}function yy(e,t,n){const i=this.proxy,o=ut(e)?e.includes(".")?Ad(i,e):()=>i[e]:e.bind(i,i);let a;Ie(t)?a=t:(a=t.handler,n=t);const d=Hr(this),g=kl(o,a.bind(i),n);return d(),g}function Ad(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o<n.length&&i;o++)i=i[n[o]];return i}}const by=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Gt(t)}Modifiers`]||e[`${pi(t)}Modifiers`];function wy(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Je;let o=n;const a=t.startsWith("update:"),d=a&&by(i,t.slice(7));d&&(d.trim&&(o=n.map(s=>ut(s)?s.trim():s)),d.number&&(o=n.map(fa)));let g,l=i[g=Mo(t)]||i[g=Mo(Gt(t))];!l&&a&&(l=i[g=Mo(pi(t))]),l&&on(l,e,6,o);const p=i[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,on(p,e,6,o)}}function kd(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const a=e.emits;let d={},g=!1;if(!Ie(e)){const l=p=>{const s=kd(p,t,!0);s&&(g=!0,gt(d,s))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!g?(st(e)&&i.set(e,null),null):(Re(a)?a.forEach(l=>d[l]=null):gt(d,a),st(e)&&i.set(e,d),d)}function Js(e,t){return!e||!Us(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ze(e,t[0].toLowerCase()+t.slice(1))||Ze(e,pi(t))||Ze(e,t))}function No(e){const{type:t,vnode:n,proxy:i,withProxy:o,propsOptions:[a],slots:d,attrs:g,emit:l,render:p,renderCache:s,props:r,data:c,setupState:u,ctx:h,inheritAttrs:f}=e,m=Ss(e);let v,y;try{if(n.shapeFlag&4){const _=o||i,S=_;v=qt(p.call(S,_,s,r,u,c,h)),y=g}else{const _=t;v=qt(_.length>1?_(r,{attrs:g,slots:d,emit:l}):_(r,null)),y=t.props?g:_y(g)}}catch(_){cr.length=0,Qs(_,e,1),v=se(ai)}let $=v;if(y&&f!==!1){const _=Object.keys(y),{shapeFlag:S}=$;_.length&&S&7&&(a&&_.some(ol)&&(y=Sy(y,a)),$=Ri($,y,!1,!0))}return n.dirs&&($=Ri($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&Sl($,n.transition),v=$,Ss(m),v}const _y=e=>{let t;for(const n in e)(n==="class"||n==="style"||Us(n))&&((t||(t={}))[n]=e[n]);return t},Sy=(e,t)=>{const n={};for(const i in e)(!ol(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function xy(e,t,n){const{props:i,children:o,component:a}=e,{props:d,children:g,patchFlag:l}=t,p=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Nc(i,d,p):!!d;if(l&8){const s=t.dynamicProps;for(let r=0;r<s.length;r++){const c=s[r];if(d[c]!==i[c]&&!Js(p,c))return!0}}}else return(o||g)&&(!g||!g.$stable)?!0:i===d?!1:i?d?Nc(i,d,p):!0:!!d;return!1}function Nc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const a=i[o];if(t[a]!==e[a]&&!Js(n,a))return!0}return!1}function Cy({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 Md=e=>e.__isSuspense;function $y(e,t){t&&t.pendingBranch?Re(e)?t.effects.push(...e):t.effects.push(e):Dv(e)}const Pe=Symbol.for("v-fgt"),eo=Symbol.for("v-txt"),ai=Symbol.for("v-cmt"),hs=Symbol.for("v-stc"),cr=[];let It=null;function Y(e=!1){cr.push(It=e?null:[])}function Ay(){cr.pop(),It=cr[cr.length-1]||null}let yr=1;function Dc(e){yr+=e,e<0&&It&&(It.hasOnce=!0)}function Ed(e){return e.dynamicChildren=yr>0?It||Ci:null,Ay(),yr>0&&It&&It.push(e),e}function ie(e,t,n,i,o,a){return Ed(D(e,t,n,i,o,a,!0))}function xe(e,t,n,i,o){return Ed(se(e,t,n,i,o,!0))}function Sa(e){return e?e.__v_isVNode===!0:!1}function Ki(e,t){return e.type===t.type&&e.key===t.key}const Td=({key:e})=>e??null,ds=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||lt(e)||Ie(e)?{i:Mt,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,i=0,o=null,a=e===Pe?0:1,d=!1,g=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Td(t),ref:t&&ds(t),scopeId:ld,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:o,dynamicChildren:null,appContext:null,ctx:Mt};return g?(El(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=ut(n)?8:16),yr>0&&!d&&It&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&It.push(l),l}const se=ky;function ky(e,t=null,n=null,i=0,o=null,a=!1){if((!e||e===Xv)&&(e=ai),Sa(e)){const g=Ri(e,t,!0);return n&&El(g,n),yr>0&&!a&&It&&(g.shapeFlag&6?It[It.indexOf(e)]=g:It.push(g)),g.patchFlag=-2,g}if(Py(e)&&(e=e.__vccOpts),t){t=My(t);let{class:g,style:l}=t;g&&!ut(g)&&(t.class=Br(g)),st(l)&&(ml(l)&&!Re(l)&&(l=gt({},l)),t.style=cl(l))}const d=ut(e)?1:Md(e)?128:Pv(e)?64:st(e)?4:Ie(e)?2:0;return D(e,t,n,i,o,d,a,!0)}function My(e){return e?ml(e)||vd(e)?gt({},e):e:null}function Ri(e,t,n=!1,i=!1){const{props:o,ref:a,patchFlag:d,children:g,transition:l}=e,p=t?Ey(o||{},t):o,s={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Td(p),ref:t&&t.ref?n&&a?Re(a)?a.concat(ds(t)):[a,ds(t)]:ds(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ri(e.ssContent),ssFallback:e.ssFallback&&Ri(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&Sl(s,l.clone(s)),s}function it(e=" ",t=0){return se(eo,null,e,t)}function Ml(e,t){const n=se(hs,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(Y(),xe(ai,null,e)):se(ai,null,e)}function qt(e){return e==null||typeof e=="boolean"?se(ai):Re(e)?se(Pe,null,e.slice()):typeof e=="object"?Ln(e):se(eo,null,String(e))}function Ln(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ri(e)}function El(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Re(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),El(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!vd(t)?t._ctx=Mt:o===3&&Mt&&(Mt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ie(t)?(t={default:t,_ctx:Mt},n=32):(t=String(t),i&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ey(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=Br([t.class,i.class]));else if(o==="style")t.style=cl([t.style,i.style]);else if(Us(o)){const a=t[o],d=i[o];d&&a!==d&&!(Re(a)&&a.includes(d))&&(t[o]=a?[].concat(a,d):d)}else o!==""&&(t[o]=i[o])}return t}function Xt(e,t,n,i=null){on(e,t,7,[n,i])}const Ty=pd();let Ly=0;function Ry(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||Ty,a={uid:Ly++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Fh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bd(i,o),emitsOptions:kd(i,o),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=wy.bind(null,a),e.ce&&e.ce(a),a}let pt=null;const Tl=()=>pt||Mt;let Cs,xa;{const e=Ih(),t=(n,i)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),a=>{o.length>1?o.forEach(d=>d(a)):o[0](a)}};Cs=t("__VUE_INSTANCE_SETTERS__",n=>pt=n),xa=t("__VUE_SSR_SETTERS__",n=>to=n)}const Hr=e=>{const t=pt;return Cs(e),e.scope.on(),()=>{e.scope.off(),Cs(t)}},Fc=()=>{pt&&pt.scope.off(),Cs(null)};function Ld(e){return e.vnode.shapeFlag&4}let to=!1;function Iy(e,t=!1,n=!1){t&&xa(t);const{props:i,children:o}=e.vnode,a=Ld(e);oy(e,i,a,t),uy(e,o,n);const d=a?Oy(e,t):void 0;return t&&xa(!1),d}function Oy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qv);const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?Dy(e):null,a=Hr(e);Un();const d=zr(i,e,0,[e.props,o]);if(Vn(),a(),Eh(d)){if(ar(e)||cd(e),d.then(Fc,Fc),t)return d.then(g=>{Pc(e,g,t)}).catch(g=>{Qs(g,e,0)});e.asyncDep=d}else Pc(e,d,t)}else Rd(e,t)}function Pc(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:st(t)&&(e.setupState=nd(t)),Rd(e,n)}let Wc;function Rd(e,t,n){const i=e.type;if(!e.render){if(!t&&Wc&&!i.render){const o=i.template||Cl(e).template;if(o){const{isCustomElement:a,compilerOptions:d}=e.appContext.config,{delimiters:g,compilerOptions:l}=i,p=gt(gt({isCustomElement:a,delimiters:g},d),l);i.render=Wc(o,p)}}e.render=i.render||tn}{const o=Hr(e);Un();try{Jv(e)}finally{Vn(),o()}}}const Ny={get(e,t){return bt(e,"get",""),e[t]}};function Dy(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ny),slots:e.slots,emit:e.emit,expose:t}}function no(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(nd(Jh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lr)return lr[n](e)},has(t,n){return n in t||n in lr}})):e.proxy}function Fy(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Py(e){return Ie(e)&&"__vccOpts"in e}const ke=(e,t)=>Lv(e,t,to);function io(e,t,n){const i=arguments.length;return i===2?st(t)&&!Re(t)?Sa(t)?se(e,null,[t]):se(e,t):se(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Sa(n)&&(n=[n]),se(e,t,n))}const Wy="3.5.3";/**
568
+ * @vue/runtime-dom v3.5.3
569
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
570
+ * @license MIT
571
+ **/let Ca;const Bc=typeof window<"u"&&window.trustedTypes;if(Bc)try{Ca=Bc.createPolicy("vue",{createHTML:e=>e})}catch{}const Id=Ca?e=>Ca.createHTML(e):e=>e,By="http://www.w3.org/2000/svg",zy="http://www.w3.org/1998/Math/MathML",pn=typeof document<"u"?document:null,zc=pn&&pn.createElement("template"),jy={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 o=t==="svg"?pn.createElementNS(By,e):t==="mathml"?pn.createElementNS(zy,e):n?pn.createElement(e,{is:n}):pn.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>pn.createTextNode(e),createComment:e=>pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,a){const d=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{zc.innerHTML=Id(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const g=zc.content;if(i==="svg"||i==="mathml"){const l=g.firstChild;for(;l.firstChild;)g.appendChild(l.firstChild);g.removeChild(l)}t.insertBefore(g,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Hy=Symbol("_vtc");function Uy(e,t,n){const i=e[Hy];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jc=Symbol("_vod"),Vy=Symbol("_vsh"),Gy=Symbol(""),Yy=/(^|;)\s*display\s*:/;function Ky(e,t,n){const i=e.style,o=ut(n);let a=!1;if(n&&!o){if(t)if(ut(t))for(const d of t.split(";")){const g=d.slice(0,d.indexOf(":")).trim();n[g]==null&&fs(i,g,"")}else for(const d in t)n[d]==null&&fs(i,d,"");for(const d in n)d==="display"&&(a=!0),fs(i,d,n[d])}else if(o){if(t!==n){const d=i[Gy];d&&(n+=";"+d),i.cssText=n,a=Yy.test(n)}}else t&&e.removeAttribute("style");jc in e&&(e[jc]=a?i.display:"",e[Vy]&&(i.display="none"))}const Hc=/\s*!important$/;function fs(e,t,n){if(Re(n))n.forEach(i=>fs(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Zy(e,t);Hc.test(n)?e.setProperty(pi(i),n.replace(Hc,""),"important"):e[i]=n}}const Uc=["Webkit","Moz","ms"],Do={};function Zy(e,t){const n=Do[t];if(n)return n;let i=Gt(t);if(i!=="filter"&&i in e)return Do[t]=i;i=Wr(i);for(let o=0;o<Uc.length;o++){const a=Uc[o]+i;if(a in e)return Do[t]=a}return t}const Vc="http://www.w3.org/1999/xlink";function Gc(e,t,n,i,o,a=ev(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Vc,t.slice(6,t.length)):e.setAttributeNS(Vc,t,n):n==null||a&&!Oh(n)?e.removeAttribute(t):e.setAttribute(t,a?"":Hn(n)?String(n):n)}function Xy(e,t,n,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Id(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const d=o==="OPTION"?e.getAttribute("value")||"":e.value,g=n==null?e.type==="checkbox"?"on":"":String(n);(d!==g||!("_value"in e))&&(e.value=g),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=Oh(n):n==null&&d==="string"?(n="",a=!0):d==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function vi(e,t,n,i){e.addEventListener(t,n,i)}function Qy(e,t,n,i){e.removeEventListener(t,n,i)}const Yc=Symbol("_vei");function qy(e,t,n,i,o=null){const a=e[Yc]||(e[Yc]={}),d=a[t];if(i&&d)d.value=i;else{const[g,l]=Jy(t);if(i){const p=a[t]=n0(i,o);vi(e,g,p,l)}else d&&(Qy(e,g,d,l),a[t]=void 0)}}const Kc=/(?:Once|Passive|Capture)$/;function Jy(e){let t;if(Kc.test(e)){t={};let i;for(;i=e.match(Kc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):pi(e.slice(2)),t]}let Fo=0;const e0=Promise.resolve(),t0=()=>Fo||(e0.then(()=>Fo=0),Fo=Date.now());function n0(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;on(i0(i,n.value),t,5,[i])};return n.value=e,n.attached=t0(),n}function i0(e,t){if(Re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const Zc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,r0=(e,t,n,i,o,a)=>{const d=o==="svg";t==="class"?Uy(e,i,d):t==="style"?Ky(e,n,i):Us(t)?ol(t)||qy(e,t,n,i,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):s0(e,t,i,d))?(Xy(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gc(e,t,i,d,a,t!=="value")):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Gc(e,t,i,d))};function s0(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zc(t)&&Ie(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Zc(t)&&ut(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!ut(n)))}const Xc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Re(t)?n=>cs(t,n):t};function o0(e){e.target.composing=!0}function Qc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Po=Symbol("_assign"),Ll={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[Po]=Xc(o);const a=i||o.props&&o.props.type==="number";vi(e,t?"change":"input",d=>{if(d.target.composing)return;let g=e.value;n&&(g=g.trim()),a&&(g=fa(g)),e[Po](g)}),n&&vi(e,"change",()=>{e.value=e.value.trim()}),t||(vi(e,"compositionstart",o0),vi(e,"compositionend",Qc),vi(e,"change",Qc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:a}},d){if(e[Po]=Xc(d),e.composing)return;const g=(a||e.type==="number")&&!/^0\d/.test(e.value)?fa(e.value):e.value,l=t??"";g!==l&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===l)||(e.value=l))}},a0=gt({patchProp:r0},jy);let qc;function l0(){return qc||(qc=dy(a0))}const c0=(...e)=>{const t=l0().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=h0(i);if(!o)return;const a=t._component;!Ie(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const d=n(o,!1,u0(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),d},t};function u0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function h0(e){return ut(e)?document.querySelector(e):e}function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jc(Object(n),!0).forEach(function(i){kt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function d0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f0(e){var t=d0(e,"string");return typeof t=="symbol"?t:t+""}function $s(e){"@babel/helpers - typeof";return $s=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},$s(e)}function kt(e,t,n){return t=f0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p0(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 g0(e,t){if(e==null)return{};var n=p0(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var m0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Od={exports:{}};(function(e){(function(t){var n=function(v,y,$){if(!p(y)||r(y)||c(y)||u(y)||l(y))return y;var _,S=0,b=0;if(s(y))for(_=[],b=y.length;S<b;S++)_.push(n(v,y[S],$));else{_={};for(var M in y)Object.prototype.hasOwnProperty.call(y,M)&&(_[v(M,$)]=n(v,y[M],$))}return _},i=function(v,y){y=y||{};var $=y.separator||"_",_=y.split||/(?=[A-Z])/;return v.split(_).join($)},o=function(v){return h(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,$){return $?$.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},a=function(v){var y=o(v);return y.substr(0,1).toUpperCase()+y.substr(1)},d=function(v,y){return i(v,y).toLowerCase()},g=Object.prototype.toString,l=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},s=function(v){return g.call(v)=="[object Array]"},r=function(v){return g.call(v)=="[object Date]"},c=function(v){return g.call(v)=="[object RegExp]"},u=function(v){return g.call(v)=="[object Boolean]"},h=function(v){return v=v-0,v===v},f=function(v,y){var $=y&&"process"in y?y.process:y;return typeof $!="function"?v:function(_,S){return $(_,v,S)}},m={camelize:o,decamelize:d,pascalize:a,depascalize:d,camelizeKeys:function(v,y){return n(f(o,y),v)},decamelizeKeys:function(v,y){return n(f(d,y),v,y)},pascalizeKeys:function(v,y){return n(f(a,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(m0)})(Od);var v0=Od.exports,y0=["class","style"];function b0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),o=v0.camelize(n.slice(0,i)),a=n.slice(i+1).trim();return t[o]=a,t},{})}function w0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Nd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var i=(e.children||[]).map(function(l){return Nd(l)}),o=Object.keys(e.attributes||{}).reduce(function(l,p){var s=e.attributes[p];switch(p){case"class":l.class=w0(s);break;case"style":l.style=b0(s);break;default:l.attrs[p]=s}return l},{attrs:{},class:{},style:{}});n.class;var a=n.style,d=a===void 0?{}:a,g=g0(n,y0);return io(e.tag,mn(mn(mn({},t),{},{class:o.class,style:mn(mn({},o.style),d)},o.attrs),g),i)}var Dd=!1;try{Dd=!0}catch{}function _0(){if(!Dd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Wo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?kt({},e,t):{}}function S0(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},kt(kt(kt(kt(kt(kt(kt(kt(kt(kt(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),"fa-flash",e.flash),kt(kt(t,"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse));return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function eu(e){if(e&&$s(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(da.icon)return da.icon(e);if(e===null)return null;if($s(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 x0=Ce({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var i=n.attrs,o=ke(function(){return eu(t.icon)}),a=ke(function(){return Wo("classes",S0(t))}),d=ke(function(){return Wo("transform",typeof t.transform=="string"?da.transform(t.transform):t.transform)}),g=ke(function(){return Wo("mask",eu(t.mask))}),l=ke(function(){return Sm(o.value,mn(mn(mn(mn({},a.value),d.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});et(l,function(s){if(!s)return _0("Could not find one or more icon(s)",o.value,g.value)},{immediate:!0});var p=ke(function(){return l.value?Nd(l.value.abstract[0],{},i):null});return function(){return p.value}}});function ro(e){return Ph()?(nv(e),!0):!1}function an(e){return typeof e=="function"?e():ce(e)}const Fd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const C0=e=>e!=null,$0=Object.prototype.toString,A0=e=>$0.call(e)==="[object Object]",Pd=()=>{};function k0(e,t){function n(...i){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(a)})}return n}const Wd=e=>e();function M0(e=Wd){const t=He(!0);function n(){t.value=!1}function i(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:Xs(t),pause:n,resume:i,eventFilter:o}}function Bd(e){return Tl()}function zd(...e){if(e.length!==1)return yl(...e);const t=e[0];return typeof t=="function"?Xs(id(()=>({get:t,set:Pd}))):He(t)}function E0(e,t,n={}){const{eventFilter:i=Wd,...o}=n;return et(e,k0(i,t),o)}function T0(e,t,n={}){const{eventFilter:i,...o}=n,{eventFilter:a,pause:d,resume:g,isActive:l}=M0(i);return{stop:E0(e,t,{...o,eventFilter:a}),pause:d,resume:g,isActive:l}}function L0(e,t){Bd()&&xl(e,t)}function jd(e,t=!0,n){Bd()?ct(e,n):t?e():jr(e)}function Ur(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,o=lt(e),a=He(e);function d(g){if(arguments.length)return a.value=g,a.value;{const l=an(n);return a.value=a.value===l?an(i):l,a.value}}return o?d:[a,d]}function Rl(e){var t;const n=an(e);return(t=n==null?void 0:n.$el)!=null?t:n}const li=Fd?window:void 0,R0=Fd?window.document:void 0;function tu(...e){let t,n,i,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,o]=e,t=li):[t,n,i,o]=e,!t)return Pd;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],d=()=>{a.forEach(s=>s()),a.length=0},g=(s,r,c,u)=>(s.addEventListener(r,c,u),()=>s.removeEventListener(r,c,u)),l=et(()=>[Rl(t),an(o)],([s,r])=>{if(d(),!s)return;const c=A0(r)?{...r}:r;a.push(...n.flatMap(u=>i.map(h=>g(s,u,h,c))))},{immediate:!0,flush:"post"}),p=()=>{l(),d()};return ro(p),p}function I0(){const e=He(!1),t=Tl();return t&&ct(()=>{e.value=!0},t),e}function Hd(e){const t=I0();return ke(()=>(t.value,!!e()))}function O0(e,t,n={}){const{window:i=li,...o}=n;let a;const d=Hd(()=>i&&"MutationObserver"in i),g=()=>{a&&(a.disconnect(),a=void 0)},l=ke(()=>{const c=an(e),u=(Array.isArray(c)?c:[c]).map(Rl).filter(C0);return new Set(u)}),p=et(()=>l.value,c=>{g(),d.value&&c.size&&(a=new MutationObserver(t),c.forEach(u=>a.observe(u,o)))},{immediate:!0,flush:"post"}),s=()=>a==null?void 0:a.takeRecords(),r=()=>{p(),g()};return ro(r),{isSupported:d,stop:r,takeRecords:s}}function N0(e,t={}){const{window:n=li}=t,i=Hd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const a=He(!1),d=p=>{a.value=p.matches},g=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",d):o.removeListener(d))},l=Al(()=>{i.value&&(g(),o=n.matchMedia(an(e)),"addEventListener"in o?o.addEventListener("change",d):o.addListener(d),a.value=o.matches)});return ro(()=>{l(),g(),o=void 0}),a}const rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ss="__vueuse_ssr_handlers__",D0=F0();function F0(){return ss in rs||(rs[ss]=rs[ss]||{}),rs[ss]}function Ud(e,t){return D0[e]||t}function P0(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 W0={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()}},nu="vueuse-storage";function B0(e,t,n,i={}){var o;const{flush:a="pre",deep:d=!0,listenToStorageChanges:g=!0,writeDefaults:l=!0,mergeDefaults:p=!1,shallow:s,window:r=li,eventFilter:c,onError:u=T=>{console.error(T)},initOnMounted:h}=i,f=(s?ed:He)(typeof t=="function"?t():t);if(!n)try{n=Ud("getDefaultStorage",()=>{var T;return(T=li)==null?void 0:T.localStorage})()}catch(T){u(T)}if(!n)return f;const m=an(t),v=P0(m),y=(o=i.serializer)!=null?o:W0[v],{pause:$,resume:_}=T0(f,()=>b(f.value),{flush:a,deep:d,eventFilter:c});r&&g&&jd(()=>{n instanceof Storage?tu(r,"storage",I):tu(r,nu,L),h&&I()}),h||I();function S(T,k){if(r){const x={key:e,oldValue:T,newValue:k,storageArea:n};r.dispatchEvent(n instanceof Storage?new StorageEvent("storage",x):new CustomEvent(nu,{detail:x}))}}function b(T){try{const k=n.getItem(e);if(T==null)S(k,null),n.removeItem(e);else{const x=y.write(T);k!==x&&(n.setItem(e,x),S(k,x))}}catch(k){u(k)}}function M(T){const k=T?T.newValue:n.getItem(e);if(k==null)return l&&m!=null&&n.setItem(e,y.write(m)),m;if(!T&&p){const x=y.read(k);return typeof p=="function"?p(x,m):v==="object"&&!Array.isArray(x)?{...m,...x}:x}else return typeof k!="string"?k:y.read(k)}function I(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){f.value=m;return}if(!(T&&T.key!==e)){$();try{(T==null?void 0:T.newValue)!==y.write(f.value)&&(f.value=M(T))}catch(k){u(k)}finally{T?jr(_):_()}}}}function L(T){I(T.detail)}return f}function Vd(e){return N0("(prefers-color-scheme: dark)",e)}const z0="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function j0(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:o=li,storage:a,storageKey:d="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:l,emitAuto:p,disableTransition:s=!0}=e,r={auto:"",light:"light",dark:"dark",...e.modes||{}},c=Vd({window:o}),u=ke(()=>c.value?"dark":"light"),h=l||(d==null?zd(i):B0(d,i,a,{window:o,listenToStorageChanges:g})),f=ke(()=>h.value==="auto"?u.value:h.value),m=Ud("updateHTMLAttrs",(_,S,b)=>{const M=typeof _=="string"?o==null?void 0:o.document.querySelector(_):Rl(_);if(!M)return;const I=new Set,L=new Set;let T=null;if(S==="class"){const x=b.split(/\s/g);Object.values(r).flatMap(C=>(C||"").split(/\s/g)).filter(Boolean).forEach(C=>{x.includes(C)?I.add(C):L.add(C)})}else T={key:S,value:b};if(I.size===0&&L.size===0&&T===null)return;let k;s&&(k=o.document.createElement("style"),k.appendChild(document.createTextNode(z0)),o.document.head.appendChild(k));for(const x of I)M.classList.add(x);for(const x of L)M.classList.remove(x);T&&M.setAttribute(T.key,T.value),s&&(o.getComputedStyle(k).opacity,document.head.removeChild(k))});function v(_){var S;m(t,n,(S=r[_])!=null?S:_)}function y(_){e.onChanged?e.onChanged(_,v):v(_)}et(f,y,{flush:"post",immediate:!0}),jd(()=>y(f.value));const $=ke({get(){return p?h.value:f.value},set(_){h.value=_}});try{return Object.assign($,{store:h,system:u,state:f})}catch{return $}}function Gd(e={}){const{valueDark:t="dark",valueLight:n="",window:i=li}=e,o=j0({...e,onChanged:(g,l)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,g==="dark",l,g):l(g)},modes:{dark:t,light:n}}),a=ke(()=>o.system?o.system.value:Vd({window:i}).value?"dark":"light");return ke({get(){return o.value==="dark"},set(g){const l=g?"dark":"light";a.value===l?o.value="auto":o.value=l}})}function Cn(e=null,t={}){var n,i,o;const{document:a=R0,restoreOnUnmount:d=r=>r}=t,g=(n=a==null?void 0:a.title)!=null?n:"",l=zd((i=e??(a==null?void 0:a.title))!=null?i:null),p=e&&typeof e=="function";function s(r){if(!("titleTemplate"in t))return r;const c=t.titleTemplate||"%s";return typeof c=="function"?c(r):an(c).replace(/%s/g,r)}return et(l,(r,c)=>{r!==c&&a&&(a.title=s(typeof r=="string"?r:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!p&&O0((o=a.head)==null?void 0:o.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=s(a.title))},{childList:!0}),L0(()=>{if(d){const r=d(g,l.value||"");r!=null&&a&&(a.title=r)}}),l}const H0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},U0={class:"navbar-menu"},V0={class:"navbar-start"},G0={class:"navbar-end"},Y0={class:"navbar-item"},K0=Ce({__name:"NavbarItem",setup(e){const t=Gd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=Ur(t);return(i,o)=>{const a=Xe("router-link"),d=Xe("font-awesome-icon");return Y(),ie("nav",H0,[o[8]||(o[8]=D("div",{class:"navbar-brand"},[D("a",{class:"navbar-item"},[D("h1",{class:"title"},"Mihari")])],-1)),D("div",U0,[D("div",V0,[se(a,{class:"navbar-item",to:{name:"Alerts"}},{default:nt(()=>o[1]||(o[1]=[it("Alerts")])),_:1}),se(a,{class:"navbar-item",to:{name:"Artifacts"}},{default:nt(()=>o[2]||(o[2]=[it("Artifacts")])),_:1}),se(a,{class:"navbar-item",to:{name:"Rules"}},{default:nt(()=>o[3]||(o[3]=[it("Rules")])),_:1}),se(a,{class:"navbar-item",to:{name:"NewRule"}},{default:nt(()=>o[4]||(o[4]=[it("New Rule")])),_:1}),se(a,{class:"navbar-item",to:{name:"Config"}},{default:nt(()=>o[5]||(o[5]=[it("Config")])),_:1}),o[6]||(o[6]=D("a",{class:"navbar-item"},[D("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),o[7]||(o[7]=D("a",{class:"navbar-item"},[D("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1))]),D("div",G0,[D("div",Y0,[D("span",{class:"icon",onClick:o[0]||(o[0]=g=>ce(n)())},[se(d,{icon:ce(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),Vr=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Z0=Vr(K0,[["__scopeId","data-v-a9b95eb0"]]),X0={class:"section is-medium"},Q0={class:"container"},q0=Ce({__name:"App",setup(e){return(t,n)=>{const i=Xe("router-view");return Y(),ie(Pe,null,[se(Z0),D("section",X0,[D("div",Q0,[se(i)])])],64)}}});/*!
572
+ * vue-router v4.4.3
573
+ * (c) 2024 Eduardo San Martin Morote
574
+ * @license MIT
575
+ */const yi=typeof document<"u";function J0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ke=Object.assign;function Bo(e,t){const n={};for(const i in t){const o=t[i];n[i]=Yt(o)?o.map(e):e(o)}return n}const ur=()=>{},Yt=Array.isArray,Yd=/#/g,eb=/&/g,tb=/\//g,nb=/=/g,ib=/\?/g,Kd=/\+/g,rb=/%5B/g,sb=/%5D/g,Zd=/%5E/g,ob=/%60/g,Xd=/%7B/g,ab=/%7C/g,Qd=/%7D/g,lb=/%20/g;function Il(e){return encodeURI(""+e).replace(ab,"|").replace(rb,"[").replace(sb,"]")}function cb(e){return Il(e).replace(Xd,"{").replace(Qd,"}").replace(Zd,"^")}function $a(e){return Il(e).replace(Kd,"%2B").replace(lb,"+").replace(Yd,"%23").replace(eb,"%26").replace(ob,"`").replace(Xd,"{").replace(Qd,"}").replace(Zd,"^")}function ub(e){return $a(e).replace(nb,"%3D")}function hb(e){return Il(e).replace(Yd,"%23").replace(ib,"%3F")}function db(e){return e==null?"":hb(e).replace(tb,"%2F")}function br(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const fb=/\/$/,pb=e=>e.replace(fb,"");function zo(e,t,n="/"){let i,o={},a="",d="";const g=t.indexOf("#");let l=t.indexOf("?");return g<l&&g>=0&&(l=-1),l>-1&&(i=t.slice(0,l),a=t.slice(l+1,g>-1?g:t.length),o=e(a)),g>-1&&(i=i||t.slice(0,g),d=t.slice(g,t.length)),i=yb(i??t,n),{fullPath:i+(a&&"?")+a+d,path:i,query:o,hash:br(d)}}function gb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function iu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function mb(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Ii(t.matched[i],n.matched[o])&&qd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ii(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!vb(e[n],t[n]))return!1;return!0}function vb(e,t){return Yt(e)?ru(e,t):Yt(t)?ru(t,e):e===t}function ru(e,t){return Yt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function yb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let a=n.length-1,d,g;for(d=0;d<i.length;d++)if(g=i[d],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+i.slice(d).join("/")}const Mn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var wr;(function(e){e.pop="pop",e.push="push"})(wr||(wr={}));var hr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(hr||(hr={}));function bb(e){if(!e)if(yi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pb(e)}const wb=/^[^#]+#/;function _b(e,t){return e.replace(wb,"#")+t}function Sb(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 so=()=>({left:window.scrollX,top:window.scrollY});function xb(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Sb(o,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 su(e,t){return(history.state?history.state.position-t:-1)+e}const Aa=new Map;function Cb(e,t){Aa.set(e,t)}function $b(e){const t=Aa.get(e);return Aa.delete(e),t}let Ab=()=>location.protocol+"//"+location.host;function Jd(e,t){const{pathname:n,search:i,hash:o}=t,a=e.indexOf("#");if(a>-1){let g=o.includes(e.slice(a))?e.slice(a).length:1,l=o.slice(g);return l[0]!=="/"&&(l="/"+l),iu(l,"")}return iu(n,e)+i+o}function kb(e,t,n,i){let o=[],a=[],d=null;const g=({state:c})=>{const u=Jd(e,location),h=n.value,f=t.value;let m=0;if(c){if(n.value=u,t.value=c,d&&d===h){d=null;return}m=f?c.position-f.position:0}else i(u);o.forEach(v=>{v(n.value,h,{delta:m,type:wr.pop,direction:m?m>0?hr.forward:hr.back:hr.unknown})})};function l(){d=n.value}function p(c){o.push(c);const u=()=>{const h=o.indexOf(c);h>-1&&o.splice(h,1)};return a.push(u),u}function s(){const{history:c}=window;c.state&&c.replaceState(Ke({},c.state,{scroll:so()}),"")}function r(){for(const c of a)c();a=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:l,listen:p,destroy:r}}function ou(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?so():null}}function Mb(e){const{history:t,location:n}=window,i={value:Jd(e,n)},o={value:t.state};o.value||a(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,p,s){const r=e.indexOf("#"),c=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+l:Ab()+e+l;try{t[s?"replaceState":"pushState"](p,"",c),o.value=p}catch(u){console.error(u),n[s?"replace":"assign"](c)}}function d(l,p){const s=Ke({},t.state,ou(o.value.back,l,o.value.forward,!0),p,{position:o.value.position});a(l,s,!0),i.value=l}function g(l,p){const s=Ke({},o.value,t.state,{forward:l,scroll:so()});a(s.current,s,!0);const r=Ke({},ou(i.value,l,null),{position:s.position+1},p);a(l,r,!1),i.value=l}return{location:i,state:o,push:g,replace:d}}function Eb(e){e=bb(e);const t=Mb(e),n=kb(e,t.state,t.location,t.replace);function i(a,d=!0){d||n.pauseListeners(),history.go(a)}const o=Ke({location:"",base:e,go:i,createHref:_b.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Tb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Eb(e)}function Lb(e){return typeof e=="string"||e&&typeof e=="object"}function ef(e){return typeof e=="string"||typeof e=="symbol"}const tf=Symbol("");var au;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(au||(au={}));function Oi(e,t){return Ke(new Error,{type:e,[tf]:!0},t)}function dn(e,t){return e instanceof Error&&tf in e&&(t==null||!!(e.type&t))}const lu="[^/]+?",Rb={sensitive:!1,strict:!1,start:!0,end:!0},Ib=/[.+*?^${}()[\]/\\]/g;function Ob(e,t){const n=Ke({},Rb,t),i=[];let o=n.start?"^":"";const a=[];for(const p of e){const s=p.length?[]:[90];n.strict&&!p.length&&(o+="/");for(let r=0;r<p.length;r++){const c=p[r];let u=40+(n.sensitive?.25:0);if(c.type===0)r||(o+="/"),o+=c.value.replace(Ib,"\\$&"),u+=40;else if(c.type===1){const{value:h,repeatable:f,optional:m,regexp:v}=c;a.push({name:h,repeatable:f,optional:m});const y=v||lu;if(y!==lu){u+=10;try{new RegExp(`(${y})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+_.message)}}let $=f?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;r||($=m&&p.length<2?`(?:/${$})`:"/"+$),m&&($+="?"),o+=$,u+=20,m&&(u+=-8),f&&(u+=-20),y===".*"&&(u+=-50)}s.push(u)}i.push(s)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const d=new RegExp(o,n.sensitive?"":"i");function g(p){const s=p.match(d),r={};if(!s)return null;for(let c=1;c<s.length;c++){const u=s[c]||"",h=a[c-1];r[h.name]=u&&h.repeatable?u.split("/"):u}return r}function l(p){let s="",r=!1;for(const c of e){(!r||!s.endsWith("/"))&&(s+="/"),r=!1;for(const u of c)if(u.type===0)s+=u.value;else if(u.type===1){const{value:h,repeatable:f,optional:m}=u,v=h in p?p[h]:"";if(Yt(v)&&!f)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=Yt(v)?v.join("/"):v;if(!y)if(m)c.length<2&&(s.endsWith("/")?s=s.slice(0,-1):r=!0);else throw new Error(`Missing required param "${h}"`);s+=y}}return s||"/"}return{re:d,score:i,keys:a,parse:g,stringify:l}}function Nb(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 nf(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const a=Nb(i[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-i.length)===1){if(cu(i))return 1;if(cu(o))return-1}return o.length-i.length}function cu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Db={type:0,value:""},Fb=/[a-zA-Z0-9_]/;function Pb(e){if(!e)return[[]];if(e==="/")return[[Db]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${p}": ${u}`)}let n=0,i=n;const o=[];let a;function d(){a&&o.push(a),a=[]}let g=0,l,p="",s="";function r(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:s,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=l}for(;g<e.length;){if(l=e[g++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(p&&r(),d()):l===":"?(r(),n=1):c();break;case 4:c(),n=i;break;case 1:l==="("?n=2:Fb.test(l)?c():(r(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&g--);break;case 2:l===")"?s[s.length-1]=="\\"?s=s.slice(0,-1)+l:n=3:s+=l;break;case 3:r(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&g--,s="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),r(),d(),o}function Wb(e,t,n){const i=Ob(Pb(e.path),n),o=Ke(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Bb(e,t){const n=[],i=new Map;t=du({strict:!1,end:!0,sensitive:!1},t);function o(r){return i.get(r)}function a(r,c,u){const h=!u,f=zb(r);f.aliasOf=u&&u.record;const m=du(t,r),v=[f];if("alias"in r){const _=typeof r.alias=="string"?[r.alias]:r.alias;for(const S of _)v.push(Ke({},f,{components:u?u.record.components:f.components,path:S,aliasOf:u?u.record:f}))}let y,$;for(const _ of v){const{path:S}=_;if(c&&S[0]!=="/"){const b=c.record.path,M=b[b.length-1]==="/"?"":"/";_.path=c.record.path+(S&&M+S)}if(y=Wb(_,c,m),u?u.alias.push(y):($=$||y,$!==y&&$.alias.push(y),h&&r.name&&!hu(y)&&d(r.name)),rf(y)&&l(y),f.children){const b=f.children;for(let M=0;M<b.length;M++)a(b[M],y,u&&u.children[M])}u=u||y}return $?()=>{d($)}:ur}function d(r){if(ef(r)){const c=i.get(r);c&&(i.delete(r),n.splice(n.indexOf(c),1),c.children.forEach(d),c.alias.forEach(d))}else{const c=n.indexOf(r);c>-1&&(n.splice(c,1),r.record.name&&i.delete(r.record.name),r.children.forEach(d),r.alias.forEach(d))}}function g(){return n}function l(r){const c=Ub(r,n);n.splice(c,0,r),r.record.name&&!hu(r)&&i.set(r.record.name,r)}function p(r,c){let u,h={},f,m;if("name"in r&&r.name){if(u=i.get(r.name),!u)throw Oi(1,{location:r});m=u.record.name,h=Ke(uu(c.params,u.keys.filter($=>!$.optional).concat(u.parent?u.parent.keys.filter($=>$.optional):[]).map($=>$.name)),r.params&&uu(r.params,u.keys.map($=>$.name))),f=u.stringify(h)}else if(r.path!=null)f=r.path,u=n.find($=>$.re.test(f)),u&&(h=u.parse(f),m=u.record.name);else{if(u=c.name?i.get(c.name):n.find($=>$.re.test(c.path)),!u)throw Oi(1,{location:r,currentLocation:c});m=u.record.name,h=Ke({},c.params,r.params),f=u.stringify(h)}const v=[];let y=u;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:f,params:h,matched:v,meta:Hb(v)}}e.forEach(r=>a(r));function s(){n.length=0,i.clear()}return{addRoute:a,resolve:p,removeRoute:d,clearRoutes:s,getRoutes:g,getRecordMatcher:o}}function uu(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function zb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:jb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function jb(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 hu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Hb(e){return e.reduce((t,n)=>Ke(t,n.meta),{})}function du(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Ub(e,t){let n=0,i=t.length;for(;n!==i;){const a=n+i>>1;nf(e,t[a])<0?i=a:n=a+1}const o=Vb(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function Vb(e){let t=e;for(;t=t.parent;)if(rf(t)&&nf(e,t)===0)return t}function rf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Gb(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<i.length;++o){const a=i[o].replace(Kd," "),d=a.indexOf("="),g=br(d<0?a:a.slice(0,d)),l=d<0?null:br(a.slice(d+1));if(g in t){let p=t[g];Yt(p)||(p=t[g]=[p]),p.push(l)}else t[g]=l}return t}function fu(e){let t="";for(let n in e){const i=e[n];if(n=ub(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Yt(i)?i.map(a=>a&&$a(a)):[i&&$a(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function Yb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Yt(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const Kb=Symbol(""),pu=Symbol(""),oo=Symbol(""),Ol=Symbol(""),ka=Symbol("");function Zi(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Rn(e,t,n,i,o,a=d=>d()){const d=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((g,l)=>{const p=c=>{c===!1?l(Oi(4,{from:n,to:t})):c instanceof Error?l(c):Lb(c)?l(Oi(2,{from:t,to:c})):(d&&i.enterCallbacks[o]===d&&typeof c=="function"&&d.push(c),g())},s=a(()=>e.call(i&&i.instances[o],t,n,p));let r=Promise.resolve(s);e.length<3&&(r=r.then(p)),r.catch(c=>l(c))})}function jo(e,t,n,i,o=a=>a()){const a=[];for(const d of e)for(const g in d.components){let l=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(Zb(l)){const s=(l.__vccOpts||l)[t];s&&a.push(Rn(s,n,i,d,g,o))}else{let p=l();a.push(()=>p.then(s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${d.path}"`));const r=J0(s)?s.default:s;d.components[g]=r;const u=(r.__vccOpts||r)[t];return u&&Rn(u,n,i,d,g,o)()}))}}return a}function Zb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function gu(e){const t=Ut(oo),n=Ut(Ol),i=ke(()=>{const l=ce(e.to);return t.resolve(l)}),o=ke(()=>{const{matched:l}=i.value,{length:p}=l,s=l[p-1],r=n.matched;if(!s||!r.length)return-1;const c=r.findIndex(Ii.bind(null,s));if(c>-1)return c;const u=mu(l[p-2]);return p>1&&mu(s)===u&&r[r.length-1].path!==u?r.findIndex(Ii.bind(null,l[p-2])):c}),a=ke(()=>o.value>-1&&Jb(n.params,i.value.params)),d=ke(()=>o.value>-1&&o.value===n.matched.length-1&&qd(n.params,i.value.params));function g(l={}){return qb(l)?t[ce(e.replace)?"replace":"push"](ce(e.to)).catch(ur):Promise.resolve()}return{route:i,href:ke(()=>i.value.href),isActive:a,isExactActive:d,navigate:g}}const Xb=Ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:gu,setup(e,{slots:t}){const n=zi(gu(e)),{options:i}=Ut(oo),o=ke(()=>({[vu(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[vu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:io("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),Qb=Xb;function qb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Jb(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Yt(o)||o.length!==i.length||i.some((a,d)=>a!==o[d]))return!1}return!0}function mu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vu=(e,t,n)=>e??t??n,e1=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Ut(ka),o=ke(()=>e.route||i.value),a=Ut(pu,0),d=ke(()=>{let p=ce(a);const{matched:s}=o.value;let r;for(;(r=s[p])&&!r.components;)p++;return p}),g=ke(()=>o.value.matched[d.value]);us(pu,ke(()=>d.value+1)),us(Kb,g),us(ka,o);const l=He();return et(()=>[l.value,g.value,e.name],([p,s,r],[c,u,h])=>{s&&(s.instances[r]=p,u&&u!==s&&p&&p===c&&(s.leaveGuards.size||(s.leaveGuards=u.leaveGuards),s.updateGuards.size||(s.updateGuards=u.updateGuards))),p&&s&&(!u||!Ii(s,u)||!c)&&(s.enterCallbacks[r]||[]).forEach(f=>f(p))},{flush:"post"}),()=>{const p=o.value,s=e.name,r=g.value,c=r&&r.components[s];if(!c)return yu(n.default,{Component:c,route:p});const u=r.props[s],h=u?u===!0?p.params:typeof u=="function"?u(p):u:null,m=io(c,Ke({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(r.instances[s]=null)},ref:l}));return yu(n.default,{Component:m,route:p})||m}}});function yu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const t1=e1;function n1(e){const t=Bb(e.routes,e),n=e.parseQuery||Gb,i=e.stringifyQuery||fu,o=e.history,a=Zi(),d=Zi(),g=Zi(),l=ed(Mn);let p=Mn;yi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=Bo.bind(null,H=>""+H),r=Bo.bind(null,db),c=Bo.bind(null,br);function u(H,K){let X,q;return ef(H)?(X=t.getRecordMatcher(H),q=K):q=H,t.addRoute(q,X)}function h(H){const K=t.getRecordMatcher(H);K&&t.removeRoute(K)}function f(){return t.getRoutes().map(H=>H.record)}function m(H){return!!t.getRecordMatcher(H)}function v(H,K){if(K=Ke({},K||l.value),typeof H=="string"){const W=zo(n,H,K.path),G=t.resolve({path:W.path},K),ne=o.createHref(W.fullPath);return Ke(W,G,{params:c(G.params),hash:br(W.hash),redirectedFrom:void 0,href:ne})}let X;if(H.path!=null)X=Ke({},H,{path:zo(n,H.path,K.path).path});else{const W=Ke({},H.params);for(const G in W)W[G]==null&&delete W[G];X=Ke({},H,{params:r(W)}),K.params=r(K.params)}const q=t.resolve(X,K),ue=H.hash||"";q.params=s(c(q.params));const we=gb(i,Ke({},H,{hash:cb(ue),path:q.path})),P=o.createHref(we);return Ke({fullPath:we,hash:ue,query:i===fu?Yb(H.query):H.query||{}},q,{redirectedFrom:void 0,href:P})}function y(H){return typeof H=="string"?zo(n,H,l.value.path):Ke({},H)}function $(H,K){if(p!==H)return Oi(8,{from:K,to:H})}function _(H){return M(H)}function S(H){return _(Ke(y(H),{replace:!0}))}function b(H){const K=H.matched[H.matched.length-1];if(K&&K.redirect){const{redirect:X}=K;let q=typeof X=="function"?X(H):X;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),Ke({query:H.query,hash:H.hash,params:q.path!=null?{}:H.params},q)}}function M(H,K){const X=p=v(H),q=l.value,ue=H.state,we=H.force,P=H.replace===!0,W=b(X);if(W)return M(Ke(y(W),{state:typeof W=="object"?Ke({},ue,W.state):ue,force:we,replace:P}),K||X);const G=X;G.redirectedFrom=K;let ne;return!we&&mb(i,q,X)&&(ne=Oi(16,{to:G,from:q}),z(q,q,!0,!1)),(ne?Promise.resolve(ne):T(G,q)).catch(ee=>dn(ee)?dn(ee,2)?ee:F(ee):O(ee,G,q)).then(ee=>{if(ee){if(dn(ee,2))return M(Ke({replace:P},y(ee.to),{state:typeof ee.to=="object"?Ke({},ue,ee.to.state):ue,force:we}),K||G)}else ee=x(G,q,!0,P,ue);return k(G,q,ee),ee})}function I(H,K){const X=$(H,K);return X?Promise.reject(X):Promise.resolve()}function L(H){const K=B.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(H):H()}function T(H,K){let X;const[q,ue,we]=i1(H,K);X=jo(q.reverse(),"beforeRouteLeave",H,K);for(const W of q)W.leaveGuards.forEach(G=>{X.push(Rn(G,H,K))});const P=I.bind(null,H,K);return X.push(P),Q(X).then(()=>{X=[];for(const W of a.list())X.push(Rn(W,H,K));return X.push(P),Q(X)}).then(()=>{X=jo(ue,"beforeRouteUpdate",H,K);for(const W of ue)W.updateGuards.forEach(G=>{X.push(Rn(G,H,K))});return X.push(P),Q(X)}).then(()=>{X=[];for(const W of we)if(W.beforeEnter)if(Yt(W.beforeEnter))for(const G of W.beforeEnter)X.push(Rn(G,H,K));else X.push(Rn(W.beforeEnter,H,K));return X.push(P),Q(X)}).then(()=>(H.matched.forEach(W=>W.enterCallbacks={}),X=jo(we,"beforeRouteEnter",H,K,L),X.push(P),Q(X))).then(()=>{X=[];for(const W of d.list())X.push(Rn(W,H,K));return X.push(P),Q(X)}).catch(W=>dn(W,8)?W:Promise.reject(W))}function k(H,K,X){g.list().forEach(q=>L(()=>q(H,K,X)))}function x(H,K,X,q,ue){const we=$(H,K);if(we)return we;const P=K===Mn,W=yi?history.state:{};X&&(q||P?o.replace(H.fullPath,Ke({scroll:P&&W&&W.scroll},ue)):o.push(H.fullPath,ue)),l.value=H,z(H,K,X,P),F()}let C;function w(){C||(C=o.listen((H,K,X)=>{if(!V.listening)return;const q=v(H),ue=b(q);if(ue){M(Ke(ue,{replace:!0}),q).catch(ur);return}p=q;const we=l.value;yi&&Cb(su(we.fullPath,X.delta),so()),T(q,we).catch(P=>dn(P,12)?P:dn(P,2)?(M(P.to,q).then(W=>{dn(W,20)&&!X.delta&&X.type===wr.pop&&o.go(-1,!1)}).catch(ur),Promise.reject()):(X.delta&&o.go(-X.delta,!1),O(P,q,we))).then(P=>{P=P||x(q,we,!1),P&&(X.delta&&!dn(P,8)?o.go(-X.delta,!1):X.type===wr.pop&&dn(P,20)&&o.go(-1,!1)),k(q,we,P)}).catch(ur)}))}let A=Zi(),E=Zi(),R;function O(H,K,X){F(H);const q=E.list();return q.length?q.forEach(ue=>ue(H,K,X)):console.error(H),Promise.reject(H)}function N(){return R&&l.value!==Mn?Promise.resolve():new Promise((H,K)=>{A.add([H,K])})}function F(H){return R||(R=!H,w(),A.list().forEach(([K,X])=>H?X(H):K()),A.reset()),H}function z(H,K,X,q){const{scrollBehavior:ue}=e;if(!yi||!ue)return Promise.resolve();const we=!X&&$b(su(H.fullPath,0))||(q||!X)&&history.state&&history.state.scroll||null;return jr().then(()=>ue(H,K,we)).then(P=>P&&xb(P)).catch(P=>O(P,H,K))}const U=H=>o.go(H);let j;const B=new Set,V={currentRoute:l,listening:!0,addRoute:u,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:f,resolve:v,options:e,push:_,replace:S,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:a.add,beforeResolve:d.add,afterEach:g.add,onError:E.add,isReady:N,install(H){const K=this;H.component("RouterLink",Qb),H.component("RouterView",t1),H.config.globalProperties.$router=K,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>ce(l)}),yi&&!j&&l.value===Mn&&(j=!0,_(o.location).catch(ue=>{}));const X={};for(const ue in Mn)Object.defineProperty(X,ue,{get:()=>l.value[ue],enumerable:!0});H.provide(oo,K),H.provide(Ol,qh(X)),H.provide(ka,l);const q=H.unmount;B.add(H),H.unmount=function(){B.delete(H),B.size<1&&(p=Mn,C&&C(),C=null,l.value=Mn,j=!1,R=!1),q()}}};function Q(H){return H.reduce((K,X)=>K.then(()=>L(X)),Promise.resolve())}return V}function i1(e,t){const n=[],i=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const g=t.matched[d];g&&(e.matched.find(p=>Ii(p,g))?i.push(g):n.push(g));const l=e.matched[d];l&&(t.matched.find(p=>Ii(p,l))||o.push(l))}return[n,i,o]}function ji(){return Ut(oo)}function r1(e){return Ut(Ol)}const Ho=new WeakMap;function Ni(e,t,n={}){const{mode:i="replace",route:o=r1(),router:a=ji(),transform:d=r=>r}=n;Ho.has(a)||Ho.set(a,new Map);const g=Ho.get(a);let l=o.query[e];ro(()=>{l=void 0});let p;const s=id((r,c)=>(p=c,{get(){return r(),d(l!==void 0?l:an(t))},set(u){l!==u&&(l=u===t||u===null?void 0:u,g.set(e,u===t||u===null?void 0:u),c(),jr(()=>{if(g.size===0)return;const h=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=o;a[an(i)]({params:f,query:{...m,...h},hash:v})}))}}));return et(()=>o.query[e],r=>{l!==r&&(l=r,p())},{flush:"sync"}),s}/*! CAF: shared.mjs
576
+ v15.0.1 (c) 2022 Kyle Simpson
577
+ MIT License: http://getify.mit-license.org
578
+ */const vn=Symbol("Cleanup Function"),Nl=Symbol("Timeout Token"),_i=Symbol("Signal Reason"),ft=Symbol("Unset"),[ps,s1]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Fl(t.signal.reason)]}();class ci{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[_i]=ft;var i=(o,a)=>{var d=()=>{if(a&&this.signal){let g=Gr(this.signal);this._trackSignalReason(g),a(g!==ft?g:void 0)}a=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[vn]=null)),d=null}};this.signal.pr=new Promise(i),this.signal.pr[vn]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:ft;this._trackSignalReason(n),this.controller&&(ps&&n!==ft?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[vn]&&this.signal.pr[vn](),this.signal.pr=null),delete this.signal[_i],ps||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==ft&&(ps||"reason"in this.signal||(this.signal.reason=t),this.signal[_i]===ft&&(this.signal[_i]=t))}}function Gr(e){return e&&e.aborted?ps&&s1?Fl(e.reason)?ft:e.reason:_i in e?e[_i]:ft:ft}function sf(e){if(e.pr)return e.pr;var t,n=new Promise(function(o,a){t=()=>{if(a&&e){let d=Gr(e);a(d!==ft?d:void 0)}a=null},e.addEventListener("abort",t,!1)});return n[vn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[vn]=t=null)},n.catch(n[vn]),n}function Dl(e){e instanceof AbortController&&(e=new ci(e));var t=e&&e instanceof ci?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:sf(t)}}function Ma(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Zn(e){return typeof e=="function"}function o1(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Fl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function ao(e,t){Fl(t)||t===ft?e.abort():e.abort(t)}/*! CAF: caf.mjs
579
+ v15.0.1 (c) 2022 Kyle Simpson
580
+ MIT License: http://getify.mit-license.org
581
+ */const Ea=Object.assign(a1,{cancelToken:ci,delay:of,timeout:l1,signalRace:c1,signalAll:u1,tokenCycle:h1});function a1(e){return function(n,...i){var o,a;if({tokenOrSignal:n,signal:o,signalPr:a}=Dl(n),o.aborted)return a;var d=a.catch(function(r){var c=Gr(o);c=c!==ft?c:r;try{var u=g.return();throw u.value!==void 0?u.value:c!==ft?c:void 0}finally{g=l=d=p=null}}),{it:g,result:l}=d1.call(this,e,o,...i),p=Promise.race([l,d]);if(n!==o&&n[Nl]){let s=function(c){ao(n,c),Zn(n.discard)&&n.discard(),n=s=null};p.then(s,s)}else p.catch(()=>{}),n=null;return i=null,p}}function of(e,t){var n,i;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:i}=Dl(e)),n&&n.aborted?i:new Promise(function(a,d){n&&(i.catch(function(){if(d&&n&&g){let p=Gr(n);clearTimeout(g),d(p!==ft?p:`delay (${t}) interrupted`),a=d=g=n=null}}),i=null);var g=setTimeout(function(){a(`delayed: ${t}`),a=d=g=n=null},t)})}function l1(e,t="Timeout"){e=Number(e)||0;var n=new ci;return of(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,Nl,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...o){ao(n,o.length>0?o[0]:ft),n.discard(),n=null}}function af(e){return e.reduce(function(n,i){var o=sf(i);return n[0].push(o),i.pr||n[1].push(o),n},[[],[]])}function lf(e,t,n){e.then(function(o){ao(t,o),t.discard(),t=null}).then(function(){for(let o of n)o[vn]&&o[vn]();n=null})}function cf(e){return e.catch(t=>t)}function c1(e){var t=new ci,[n,i]=af(e);return lf(cf(Promise.race(n)),t,i),t.signal}function u1(e){var t=new ci,[n,i]=af(e);return lf(Promise.all(n.map(cf)),t,i),t.signal}function h1(){var e;return function(...n){return e&&(ao(e,n.length>0?n[0]:ft),e.discard()),e=new ci}}function d1(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(o){try{var a=n.next(o);o=null}catch(d){return Promise.reject(d)}return function d(g){var l=Promise.resolve(g.value);return g.done?n=null:(l=l.then(i,function(s){return Promise.resolve(n.throw(s)).then(d)})).catch(function(){n=null}),g=null,l}(a)}()}}/*! CAF: cag.mjs
582
+ v15.0.1 (c) 2022 Kyle Simpson
583
+ MIT License: http://getify.mit-license.org
584
+ */La=Ea(La);Object.assign(hf,{onEvent:df,onceEvent:La});var Ta=new WeakSet;const Uo=Symbol("unset"),uf=Symbol("returned"),bu=Symbol("canceled");function hf(e){return function(n,...i){var o,a;if({tokenOrSignal:n,signal:o,signalPr:a}=Dl(n),o.aborted){let r=Gr(o);throw r=r!==ft?r:"Aborted",r}var d=Ma(),{it:g,ait:l}=p1(e,d.pr,s,o,...i),p=l.return;return l.return=function(c){try{return d.pr.resolved=!0,d.resolve(uf),Promise.resolve(g.return(c))}finally{p.call(l),s()}},l;function s(){n&&n!==o&&n[Nl]&&n.abort(),l&&(l.return=p,n=d=g=l=p=null)}}}function df(e,t,n,i=!1){var o,a,d=!1,g=hf(function*({pwait:r}){d||l();try{for(;;){if(o.length==0){let{pr:c,resolve:u}=Ma();o.push(c),a.push(u)}yield yield r(o.shift())}}finally{Zn(t.removeEventListener)?t.removeEventListener(n,p,i):Zn(t.removeListener)?t.removeListener(n,p):Zn(t.off)&&t.off(n,p),o.length=a.length=0}})(e,t,n,i);return g.start=l,g;function l(){d||(d=!0,o=[],a=[],Zn(t.addEventListener)?t.addEventListener(n,p,i):Zn(t.addListener)?t.addListener(n,p):Zn(t.on)&&t.on(n,p))}function p(s){if(a.length>0)a.shift()(s);else{let{pr:r,resolve:c}=Ma();o.push(r),c(s)}}}function*La(e,t,n,i=!1){try{var o=df(e,t,n,i);return(yield o.next()).value}finally{o.return()}}function f1(e){var t=Promise.resolve(e);return Ta.add(t),t}function p1(e,t,n,i,...o){var a=e.call(this,{signal:i,pwait:f1},...o);e=o=null;var d=i.pr.catch(g=>{throw{[bu]:!0,reason:g}});return d.catch(()=>{}),{it:a,ait:async function*(){var l,p=Uo;try{for(;!t.resolved;)if(p!==Uo?(l=p,p=Uo,l=a.throw(l)):l=a.next(l),o1(l.value))if(Ta.has(l.value)){Ta.delete(l.value);try{if((l=await Promise.race([t,d,l.value]))===uf)return}catch(s){if(s[bu]){let r=a.return();throw r.value!==void 0?r.value:s.reason}p=s}}else l=yield l.value;else{if(l.done)return l.value;l=yield l.value}}finally{a=t=null,n()}}()}}const g1=e=>e._runningInstances.length>=e._maxConcurrency,m1=e=>{const t=e._activeInstances[0];t&&t.cancel()},v1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Xi(e,t){return t?y1(()=>e()._instances,t):ke(()=>[])}function y1(e,t,n){return ke(()=>e().filter(i=>i[t]))}function b1(e){return ke(()=>e().length)}function wu(e){return ke(()=>{const t=e();return t[t.length-1]})}function w1(e){return ke(()=>e()[0])}const ff=e=>e;function pf(e){return zi(e)}function _1(){const e={},t=new Promise((n,i)=>{e.resolve=n,e.reject=i});return e.promise=t,e}function _t(e){return C1(function*(t,...n){return e(t,...n)})}function S1(e,t,n){const i=ff({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ke(()=>o.isCanceling&&o.isFinished),isActive:ke(()=>o.isRunning&&!o.isCanceling),isSuccessful:!1,isNotDropped:ke(()=>!o.isDropped),isError:ke(()=>!!o.error),status:ke(()=>{const d=o,g=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(([l])=>l);return g&&g[1]}),error:null,value:null,cancel({force:d}={force:!1}){if(d||(o.isCanceling=!0,o.isEnqueued&&(o.isFinished=!0),o.isEnqueued=!1),o.token&&o._canAbort){o.token.abort("cancel");try{o.token.discard()}catch{}o.token=void 0,o._canAbort=!1}},canceledOn(d){return d.pr.catch(()=>{o.cancel()}),o},_run(){x1(o,e,t,n)},_handled:!0,_deferredObject:_1(),_shouldThrow:!1,_canAbort:!0,then(d,g){return o._shouldThrow=!0,o._deferredObject.promise.then(d,g)},catch(d,g=!0){return o._shouldThrow=g,o._deferredObject.promise.catch(d)},finally(d){return o._shouldThrow=!0,o._deferredObject.promise.finally(d)}}),o=pf(i),{modifiers:a}=n;return a.drop?o.isDropped=!0:a.enqueue?o.isEnqueued=!0:o._run(),o}function x1(e,t,n,i){const o=new Ea.cancelToken,a=Ea(t,o);e.token=o,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function d(){e.isRunning=!1,e.isFinished=!0}a.call(e,o,...n).then(g=>{e.value=g,e.isSuccessful=!0,d(),e._deferredObject.resolve(g),e._canAbort=!1,i.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),d(),e._shouldThrow&&e._deferredObject.reject(g),i.onFinish(e)})}function C1(e,t={cancelOnUnmount:!0}){const n=Tl(),i=tv(),o=ff({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ke(()=>a._isRestartable||a._isDropping||a._isEnqueuing||a._isKeepingLatest),isIdle:ke(()=>!a.isRunning),isRunning:ke(()=>!!a._instances.find(d=>d.isRunning)),isError:ke(()=>!!(a.last&&a.last.isError)),_instances:[],_successfulInstances:Xi(()=>a,"isSuccessful"),_runningInstances:Xi(()=>a,"isRunning"),_enqueuedInstances:Xi(()=>a,"isEnqueued"),_notDroppedInstances:Xi(()=>a,"isNotDropped"),_activeInstances:Xi(()=>a,"isActive"),performCount:b1(()=>a._instances),last:wu(()=>a._notDroppedInstances),lastSuccessful:wu(()=>a._successfulInstances),firstEnqueued:w1(()=>a._enqueuedInstances),cancelAll({force:d}={force:!1}){a._instances.forEach(g=>{try{(d||!g.isDropped&&!g.isFinished)&&g.cancel({force:d})}catch(l){if(l!=="cancel")throw l}})},perform(...d){const g={enqueue:!1,drop:!1};a._hasConcurrency&&g1(a)&&(a._isDropping&&(g.drop=!0),a._isRestartable&&m1(a),a._isKeepingLatest&&v1(a),(a._isEnqueuing||a._isKeepingLatest)&&(g.enqueue=!0));const l=()=>$1(a),p=()=>S1(e,d,{modifiers:g,onFinish:l,scope:i,id:a._instances.length+1}),s=i.active?i.run(p):p();return i.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),a._instances=[...a._instances,s],s},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){i.stop(),this.clear()},restartable(){return a._resetModifierFlags(),a._isRestartable=!0,a},drop(){return a._resetModifierFlags(),a._isDropping=!0,a},enqueue(){return a._resetModifierFlags(),a._isEnqueuing=!0,a},keepLatest(){return a._resetModifierFlags(),a._isKeepingLatest=!0,a},_resetModifierFlags(){a._isKeepingLatest=!1,a._isRestartable=!1,a._isEnqueuing=!1,a._isDropping=!1},maxConcurrency(d){return a._maxConcurrency=d,a}}),a=pf(o);return n&&t.cancelOnUnmount&&xl(()=>{a._instances&&a.destroy()}),a}function $1(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function gf(e,t){return function(){return e.apply(t,arguments)}}const{toString:A1}=Object.prototype,{getPrototypeOf:Pl}=Object,lo=(e=>t=>{const n=A1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>lo(t)===e),co=e=>t=>typeof t===e,{isArray:Hi}=Array,_r=co("undefined");function k1(e){return e!==null&&!_r(e)&&e.constructor!==null&&!_r(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mf=Zt("ArrayBuffer");function M1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mf(e.buffer),t}const E1=co("string"),Dt=co("function"),vf=co("number"),uo=e=>e!==null&&typeof e=="object",T1=e=>e===!0||e===!1,gs=e=>{if(lo(e)!=="object")return!1;const t=Pl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},L1=Zt("Date"),R1=Zt("File"),I1=Zt("Blob"),O1=Zt("FileList"),N1=e=>uo(e)&&Dt(e.pipe),D1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=lo(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},F1=Zt("URLSearchParams"),[P1,W1,B1,z1]=["ReadableStream","Request","Response","Headers"].map(Zt),j1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Hi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),d=a.length;let g;for(i=0;i<d;i++)g=a[i],t.call(null,e[g],g,e)}}function yf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bf=e=>!_r(e)&&e!==qn;function Ra(){const{caseless:e}=bf(this)&&this||{},t={},n=(i,o)=>{const a=e&&yf(t,o)||o;gs(t[a])&&gs(i)?t[a]=Ra(t[a],i):gs(i)?t[a]=Ra({},i):Hi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Yr(arguments[i],n);return t}const H1=(e,t,n,{allOwnKeys:i}={})=>(Yr(t,(o,a)=>{n&&Dt(o)?e[a]=gf(o,n):e[a]=o},{allOwnKeys:i}),e),U1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),V1=(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)},G1=(e,t,n,i)=>{let o,a,d;const g={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)d=o[a],(!i||i(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=n!==!1&&Pl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y1=(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},K1=e=>{if(!e)return null;if(Hi(e))return e;let t=e.length;if(!vf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Z1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pl(Uint8Array)),X1=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Q1=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},q1=Zt("HTMLFormElement"),J1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),_u=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ew=Zt("RegExp"),wf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Yr(n,(o,a)=>{let d;(d=t(o,a,e))!==!1&&(i[a]=d||o)}),Object.defineProperties(e,i)},tw=e=>{wf(e,(t,n)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Dt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nw=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Hi(e)?i(e):i(String(e).split(t)),n},iw=()=>{},rw=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vo="abcdefghijklmnopqrstuvwxyz",Su="0123456789",_f={DIGIT:Su,ALPHA:Vo,ALPHA_DIGIT:Vo+Vo.toUpperCase()+Su},sw=(e=16,t=_f.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function ow(e){return!!(e&&Dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const aw=e=>{const t=new Array(10),n=(i,o)=>{if(uo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Hi(i)?[]:{};return Yr(i,(d,g)=>{const l=n(d,o+1);!_r(l)&&(a[g]=l)}),t[o]=void 0,a}}return i};return n(e,0)},lw=Zt("AsyncFunction"),cw=e=>e&&(uo(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch),Sf=((e,t)=>e?setImmediate:t?((n,i)=>(qn.addEventListener("message",({source:o,data:a})=>{o===qn&&a===n&&i.length&&i.shift()()},!1),o=>{i.push(o),qn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Dt(qn.postMessage)),uw=typeof queueMicrotask<"u"?queueMicrotask.bind(qn):typeof process<"u"&&process.nextTick||Sf,J={isArray:Hi,isArrayBuffer:mf,isBuffer:k1,isFormData:D1,isArrayBufferView:M1,isString:E1,isNumber:vf,isBoolean:T1,isObject:uo,isPlainObject:gs,isReadableStream:P1,isRequest:W1,isResponse:B1,isHeaders:z1,isUndefined:_r,isDate:L1,isFile:R1,isBlob:I1,isRegExp:ew,isFunction:Dt,isStream:N1,isURLSearchParams:F1,isTypedArray:Z1,isFileList:O1,forEach:Yr,merge:Ra,extend:H1,trim:j1,stripBOM:U1,inherits:V1,toFlatObject:G1,kindOf:lo,kindOfTest:Zt,endsWith:Y1,toArray:K1,forEachEntry:X1,matchAll:Q1,isHTMLForm:q1,hasOwnProperty:_u,hasOwnProp:_u,reduceDescriptors:wf,freezeMethods:tw,toObjectSet:nw,toCamelCase:J1,noop:iw,toFiniteNumber:rw,findKey:yf,global:qn,isContextDefined:bf,ALPHABET:_f,generateString:sw,isSpecCompliantForm:ow,toJSONObject:aw,isAsyncFn:lw,isThenable:cw,setImmediate:Sf,asap:uw};function De(e,t,n,i,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}J.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const xf=De.prototype,Cf={};["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=>{Cf[e]={value:e}});Object.defineProperties(De,Cf);Object.defineProperty(xf,"isAxiosError",{value:!0});De.from=(e,t,n,i,o,a)=>{const d=Object.create(xf);return J.toFlatObject(e,d,function(l){return l!==Error.prototype},g=>g!=="isAxiosError"),De.call(d,e.message,t,n,i,o),d.cause=e,d.name=e.name,a&&Object.assign(d,a),d};const hw=null;function Ia(e){return J.isPlainObject(e)||J.isArray(e)}function $f(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function xu(e,t,n){return e?e.concat(t).map(function(o,a){return o=$f(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function dw(e){return J.isArray(e)&&!e.some(Ia)}const fw=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function ho(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!J.isUndefined(m[f])});const i=n.metaTokens,o=n.visitor||s,a=n.dots,d=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function p(h){if(h===null)return"";if(J.isDate(h))return h.toISOString();if(!l&&J.isBlob(h))throw new De("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(h)||J.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function s(h,f,m){let v=h;if(h&&!m&&typeof h=="object"){if(J.endsWith(f,"{}"))f=i?f:f.slice(0,-2),h=JSON.stringify(h);else if(J.isArray(h)&&dw(h)||(J.isFileList(h)||J.endsWith(f,"[]"))&&(v=J.toArray(h)))return f=$f(f),v.forEach(function($,_){!(J.isUndefined($)||$===null)&&t.append(d===!0?xu([f],_,a):d===null?f:f+"[]",p($))}),!1}return Ia(h)?!0:(t.append(xu(m,f,a),p(h)),!1)}const r=[],c=Object.assign(fw,{defaultVisitor:s,convertValue:p,isVisitable:Ia});function u(h,f){if(!J.isUndefined(h)){if(r.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));r.push(h),J.forEach(h,function(v,y){(!(J.isUndefined(v)||v===null)&&o.call(t,v,J.isString(y)?y.trim():y,f,c))===!0&&u(v,f?f.concat(y):[y])}),r.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return u(e),t}function Cu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Wl(e,t){this._pairs=[],e&&ho(e,this,t)}const Af=Wl.prototype;Af.append=function(t,n){this._pairs.push([t,n])};Af.toString=function(t){const n=t?function(i){return t.call(this,i,Cu)}:Cu;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function pw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kf(e,t,n){if(!t)return e;const i=n&&n.encode||pw,o=n&&n.serialize;let a;if(o?a=o(t,n):a=J.isURLSearchParams(t)?t.toString():new Wl(t,n).toString(i),a){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $u{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Mf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gw=typeof URLSearchParams<"u"?URLSearchParams:Wl,mw=typeof FormData<"u"?FormData:null,vw=typeof Blob<"u"?Blob:null,yw={isBrowser:!0,classes:{URLSearchParams:gw,FormData:mw,Blob:vw},protocols:["http","https","file","blob","url","data"]},Bl=typeof window<"u"&&typeof document<"u",Oa=typeof navigator=="object"&&navigator||void 0,bw=Bl&&(!Oa||["ReactNative","NativeScript","NS"].indexOf(Oa.product)<0),ww=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_w=Bl&&window.location.href||"http://localhost",Sw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bl,hasStandardBrowserEnv:bw,hasStandardBrowserWebWorkerEnv:ww,navigator:Oa,origin:_w},Symbol.toStringTag,{value:"Module"})),Et={...Sw,...yw};function xw(e,t){return ho(e,new Et.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return Et.isNode&&J.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Cw(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $w(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function Ef(e){function t(n,i,o,a){let d=n[a++];if(d==="__proto__")return!0;const g=Number.isFinite(+d),l=a>=n.length;return d=!d&&J.isArray(o)?o.length:d,l?(J.hasOwnProp(o,d)?o[d]=[o[d],i]:o[d]=i,!g):((!o[d]||!J.isObject(o[d]))&&(o[d]=[]),t(n,i,o[d],a)&&J.isArray(o[d])&&(o[d]=$w(o[d])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(i,o)=>{t(Cw(i),o,n,0)}),n}return null}function Aw(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Kr={transitional:Mf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=J.isObject(t);if(a&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return o?JSON.stringify(Ef(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return xw(t,this.formSerializer).toString();if((g=J.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ho(g?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Aw(t)):t}],transformResponse:[function(t){const n=this.transitional||Kr.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(i&&!this.responseType||o)){const d=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(g){if(d)throw g.name==="SyntaxError"?De.from(g,De.ERR_BAD_RESPONSE,this,null,this.response):g}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});const kw=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mw=e=>{const t={};let n,i,o;return e&&e.split(`
585
+ `).forEach(function(d){o=d.indexOf(":"),n=d.substring(0,o).trim().toLowerCase(),i=d.substring(o+1).trim(),!(!n||t[n]&&kw[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Au=Symbol("internals");function Qi(e){return e&&String(e).trim().toLowerCase()}function ms(e){return e===!1||e==null?e:J.isArray(e)?e.map(ms):String(e)}function Ew(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 Tw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Go(e,t,n,i,o){if(J.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!J.isString(t)){if(J.isString(i))return t.indexOf(i)!==-1;if(J.isRegExp(i))return i.test(t)}}function Lw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Rw(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,d){return this[i].call(this,t,o,a,d)},configurable:!0})})}let Tt=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(g,l,p){const s=Qi(l);if(!s)throw new Error("header name must be a non-empty string");const r=J.findKey(o,s);(!r||o[r]===void 0||p===!0||p===void 0&&o[r]!==!1)&&(o[r||l]=ms(g))}const d=(g,l)=>J.forEach(g,(p,s)=>a(p,s,l));if(J.isPlainObject(t)||t instanceof this.constructor)d(t,n);else if(J.isString(t)&&(t=t.trim())&&!Tw(t))d(Mw(t),n);else if(J.isHeaders(t))for(const[g,l]of t.entries())a(l,g,i);else t!=null&&a(n,t,i);return this}get(t,n){if(t=Qi(t),t){const i=J.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Ew(o);if(J.isFunction(n))return n.call(this,o,i);if(J.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Qi(t),t){const i=J.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Go(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(d){if(d=Qi(d),d){const g=J.findKey(i,d);g&&(!n||Go(i,i[g],g,n))&&(delete i[g],o=!0)}}return J.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const a=n[i];(!t||Go(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return J.forEach(this,(o,a)=>{const d=J.findKey(i,a);if(d){n[d]=ms(o),delete n[a];return}const g=t?Lw(a):String(a).trim();g!==a&&delete n[a],n[g]=ms(o),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&J.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
586
+ `)}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(o=>i.set(o)),i}static accessor(t){const i=(this[Au]=this[Au]={accessors:{}}).accessors,o=this.prototype;function a(d){const g=Qi(d);i[g]||(Rw(o,d),i[g]=!0)}return J.isArray(t)?t.forEach(a):a(t),this}};Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Tt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});J.freezeMethods(Tt);function Yo(e,t){const n=this||Kr,i=t||n,o=Tt.from(i.headers);let a=i.data;return J.forEach(e,function(g){a=g.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Tf(e){return!!(e&&e.__CANCEL__)}function Ui(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(Ui,De,{__CANCEL__:!0});function Lf(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Iw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ow(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,d;return t=t!==void 0?t:1e3,function(l){const p=Date.now(),s=i[a];d||(d=p),n[o]=l,i[o]=p;let r=a,c=0;for(;r!==o;)c+=n[r++],r=r%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),p-d<t)return;const u=s&&p-s;return u?Math.round(c*1e3/u):void 0}}function Nw(e,t){let n=0,i=1e3/t,o,a;const d=(p,s=Date.now())=>{n=s,o=null,a&&(clearTimeout(a),a=null),e.apply(null,p)};return[(...p)=>{const s=Date.now(),r=s-n;r>=i?d(p,s):(o=p,a||(a=setTimeout(()=>{a=null,d(o)},i-r)))},()=>o&&d(o)]}const As=(e,t,n=3)=>{let i=0;const o=Ow(50,250);return Nw(a=>{const d=a.loaded,g=a.lengthComputable?a.total:void 0,l=d-i,p=o(l),s=d<=g;i=d;const r={loaded:d,total:g,progress:g?d/g:void 0,bytes:l,rate:p||void 0,estimated:p&&g&&s?(g-d)/p:void 0,event:a,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(r)},n)},ku=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Mu=e=>(...t)=>J.asap(()=>e(...t)),Dw=Et.hasStandardBrowserEnv?function(){const t=Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent),n=document.createElement("a");let i;function o(a){let d=a;return t&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(d){const g=J.isString(d)?o(d):d;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}(),Fw=Et.hasStandardBrowserEnv?{write(e,t,n,i,o,a){const d=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),J.isString(i)&&d.push("path="+i),J.isString(o)&&d.push("domain="+o),a===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Pw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ww(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rf(e,t){return e&&!Pw(t)?Ww(e,t):t}const Eu=e=>e instanceof Tt?{...e}:e;function ui(e,t){t=t||{};const n={};function i(p,s,r){return J.isPlainObject(p)&&J.isPlainObject(s)?J.merge.call({caseless:r},p,s):J.isPlainObject(s)?J.merge({},s):J.isArray(s)?s.slice():s}function o(p,s,r){if(J.isUndefined(s)){if(!J.isUndefined(p))return i(void 0,p,r)}else return i(p,s,r)}function a(p,s){if(!J.isUndefined(s))return i(void 0,s)}function d(p,s){if(J.isUndefined(s)){if(!J.isUndefined(p))return i(void 0,p)}else return i(void 0,s)}function g(p,s,r){if(r in t)return i(p,s);if(r in e)return i(void 0,p)}const l={url:a,method:a,data:a,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:g,headers:(p,s)=>o(Eu(p),Eu(s),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(s){const r=l[s]||o,c=r(e[s],t[s],s);J.isUndefined(c)&&r!==g||(n[s]=c)}),n}const If=e=>{const t=ui({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:d,auth:g}=t;t.headers=d=Tt.from(d),t.url=kf(Rf(t.baseURL,t.url),e.params,e.paramsSerializer),g&&d.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let l;if(J.isFormData(n)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((l=d.getContentType())!==!1){const[p,...s]=l?l.split(";").map(r=>r.trim()).filter(Boolean):[];d.setContentType([p||"multipart/form-data",...s].join("; "))}}if(Et.hasStandardBrowserEnv&&(i&&J.isFunction(i)&&(i=i(t)),i||i!==!1&&Dw(t.url))){const p=o&&a&&Fw.read(a);p&&d.set(o,p)}return t},Bw=typeof XMLHttpRequest<"u",zw=Bw&&function(e){return new Promise(function(n,i){const o=If(e);let a=o.data;const d=Tt.from(o.headers).normalize();let{responseType:g,onUploadProgress:l,onDownloadProgress:p}=o,s,r,c,u,h;function f(){u&&u(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function v(){if(!m)return;const $=Tt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:$,config:e,request:m};Lf(function(M){n(M),f()},function(M){i(M),f()},S),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(i(new De("Request aborted",De.ECONNABORTED,e,m)),m=null)},m.onerror=function(){i(new De("Network Error",De.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Mf;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),i(new De(_,S.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,m)),m=null},a===void 0&&d.setContentType(null),"setRequestHeader"in m&&J.forEach(d.toJSON(),function(_,S){m.setRequestHeader(S,_)}),J.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),g&&g!=="json"&&(m.responseType=o.responseType),p&&([c,h]=As(p,!0),m.addEventListener("progress",c)),l&&m.upload&&([r,u]=As(l),m.upload.addEventListener("progress",r),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(s=$=>{m&&(i(!$||$.type?new Ui(null,e,m):$),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const y=Iw(o.url);if(y&&Et.protocols.indexOf(y)===-1){i(new De("Unsupported protocol "+y+":",De.ERR_BAD_REQUEST,e));return}m.send(a||null)})},jw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,o;const a=function(p){if(!o){o=!0,g();const s=p instanceof Error?p:this.reason;i.abort(s instanceof De?s:new Ui(s instanceof Error?s.message:s))}};let d=t&&setTimeout(()=>{d=null,a(new De(`timeout ${t} of ms exceeded`,De.ETIMEDOUT))},t);const g=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:l}=i;return l.unsubscribe=()=>J.asap(g),l}},Hw=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let i=0,o;for(;i<n;)o=i+t,yield e.slice(i,o),i=o},Uw=async function*(e,t){for await(const n of Vw(e))yield*Hw(n,t)},Vw=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()}},Tu=(e,t,n,i)=>{const o=Uw(e,t);let a=0,d,g=l=>{d||(d=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:p,value:s}=await o.next();if(p){g(),l.close();return}let r=s.byteLength;if(n){let c=a+=r;n(c)}l.enqueue(new Uint8Array(s))}catch(p){throw g(p),p}},cancel(l){return g(l),o.return()}},{highWaterMark:2})},fo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Of=fo&&typeof ReadableStream=="function",Gw=fo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Nf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Yw=Of&&Nf(()=>{let e=!1;const t=new Request(Et.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Lu=64*1024,Na=Of&&Nf(()=>J.isReadableStream(new Response("").body)),ks={stream:Na&&(e=>e.body)};fo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ks[t]&&(ks[t]=J.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new De(`Response type '${t}' is not supported`,De.ERR_NOT_SUPPORT,i)})})})(new Response);const Kw=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(Et.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await Gw(e)).byteLength},Zw=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n??Kw(t)},Xw=fo&&(async e=>{let{url:t,method:n,data:i,signal:o,cancelToken:a,timeout:d,onDownloadProgress:g,onUploadProgress:l,responseType:p,headers:s,withCredentials:r="same-origin",fetchOptions:c}=If(e);p=p?(p+"").toLowerCase():"text";let u=jw([o,a&&a.toAbortSignal()],d),h;const f=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let m;try{if(l&&Yw&&n!=="get"&&n!=="head"&&(m=await Zw(s,i))!==0){let S=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(J.isFormData(i)&&(b=S.headers.get("content-type"))&&s.setContentType(b),S.body){const[M,I]=ku(m,As(Mu(l)));i=Tu(S.body,Lu,M,I)}}J.isString(r)||(r=r?"include":"omit");const v="credentials"in Request.prototype;h=new Request(t,{...c,signal:u,method:n.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:v?r:void 0});let y=await fetch(h);const $=Na&&(p==="stream"||p==="response");if(Na&&(g||$&&f)){const S={};["status","statusText","headers"].forEach(L=>{S[L]=y[L]});const b=J.toFiniteNumber(y.headers.get("content-length")),[M,I]=g&&ku(b,As(Mu(g),!0))||[];y=new Response(Tu(y.body,Lu,M,()=>{I&&I(),f&&f()}),S)}p=p||"text";let _=await ks[J.findKey(ks,p)||"text"](y,e);return!$&&f&&f(),await new Promise((S,b)=>{Lf(S,b,{data:_,headers:Tt.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(v){throw f&&f(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,h),{cause:v.cause||v}):De.from(v,v&&v.code,e,h)}}),Da={http:hw,xhr:zw,fetch:Xw};J.forEach(Da,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ru=e=>`- ${e}`,Qw=e=>J.isFunction(e)||e===null||e===!1,Df={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let a=0;a<t;a++){n=e[a];let d;if(i=n,!Qw(n)&&(i=Da[(d=String(n)).toLowerCase()],i===void 0))throw new De(`Unknown adapter '${d}'`);if(i)break;o[d||"#"+a]=i}if(!i){const a=Object.entries(o).map(([g,l])=>`adapter ${g} `+(l===!1?"is not supported by the environment":"is not available in the build"));let d=t?a.length>1?`since :
587
+ `+a.map(Ru).join(`
588
+ `):" "+Ru(a[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:Da};function Ko(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ui(null,e)}function Iu(e){return Ko(e),e.headers=Tt.from(e.headers),e.data=Yo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Df.getAdapter(e.adapter||Kr.adapter)(e).then(function(i){return Ko(e),i.data=Yo.call(e,e.transformResponse,i),i.headers=Tt.from(i.headers),i},function(i){return Tf(i)||(Ko(e),i&&i.response&&(i.response.data=Yo.call(e,e.transformResponse,i.response),i.response.headers=Tt.from(i.response.headers))),Promise.reject(i)})}const Ff="1.7.7",zl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Ou={};zl.transitional=function(t,n,i){function o(a,d){return"[Axios v"+Ff+"] Transitional option '"+a+"'"+d+(i?". "+i:"")}return(a,d,g)=>{if(t===!1)throw new De(o(d," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Ou[d]&&(Ou[d]=!0,console.warn(o(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,d,g):!0}};function qw(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],d=t[a];if(d){const g=e[a],l=g===void 0||d(g,a,e);if(l!==!0)throw new De("option "+a+" must be "+l,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+a,De.ERR_BAD_OPTION)}}const Fa={assertOptions:qw,validators:zl},En=Fa.validators;let ni=class{constructor(t){this.defaults=t,this.interceptors={request:new $u,response:new $u}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
589
+ `+a):i.stack=a}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ui(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Fa.assertOptions(i,{silentJSONParsing:En.transitional(En.boolean),forcedJSONParsing:En.transitional(En.boolean),clarifyTimeoutError:En.transitional(En.boolean)},!1),o!=null&&(J.isFunction(o)?n.paramsSerializer={serialize:o}:Fa.assertOptions(o,{encode:En.function,serialize:En.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=a&&J.merge(a.common,a[n.method]);a&&J.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=Tt.concat(d,a);const g=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let s,r=0,c;if(!l){const h=[Iu.bind(this),void 0];for(h.unshift.apply(h,g),h.push.apply(h,p),c=h.length,s=Promise.resolve(n);r<c;)s=s.then(h[r++],h[r++]);return s}c=g.length;let u=n;for(r=0;r<c;){const h=g[r++],f=g[r++];try{u=h(u)}catch(m){f.call(this,m);break}}try{s=Iu.call(this,u)}catch(h){return Promise.reject(h)}for(r=0,c=p.length;r<c;)s=s.then(p[r++],p[r++]);return s}getUri(t){t=ui(this.defaults,t);const n=Rf(t.baseURL,t.url);return kf(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){ni.prototype[t]=function(n,i){return this.request(ui(i||{},{method:t,url:n,data:(i||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(i){return function(a,d,g){return this.request(ui(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:d}))}}ni.prototype[t]=n(),ni.prototype[t+"Form"]=n(!0)});let Jw=class Pf{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(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const d=new Promise(g=>{i.subscribe(g),a=g}).then(o);return d.cancel=function(){i.unsubscribe(a)},d},t(function(a,d,g){i.reason||(i.reason=new Ui(a,d,g),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pf(function(o){t=o}),cancel:t}}};function e_(e){return function(n){return e.apply(null,n)}}function t_(e){return J.isObject(e)&&e.isAxiosError===!0}const Pa={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(Pa).forEach(([e,t])=>{Pa[t]=e});function Wf(e){const t=new ni(e),n=gf(ni.prototype.request,t);return J.extend(n,ni.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Wf(ui(e,o))},n}const tt=Wf(Kr);tt.Axios=ni;tt.CanceledError=Ui;tt.CancelToken=Jw;tt.isCancel=Tf;tt.VERSION=Ff;tt.toFormData=ho;tt.AxiosError=De;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=e_;tt.isAxiosError=t_;tt.mergeConfig=ui;tt.AxiosHeaders=Tt;tt.formToJSON=e=>Ef(J.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=Df.getAdapter;tt.HttpStatusCode=Pa;tt.default=tt;const{Axios:zk,AxiosError:n_,CanceledError:jk,isCancel:Hk,CancelToken:Uk,VERSION:Vk,all:Gk,Cancel:Yk,isAxiosError:Kk,spread:Zk,toFormData:Xk,AxiosHeaders:Qk,HttpStatusCode:qk,formToJSON:Jk,getAdapter:eM,mergeConfig:tM}=tt;var je;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const a={};for(const d of o)a[d]=d;return a},e.getValidEnumValues=o=>{const a=e.objectKeys(o).filter(g=>typeof o[o[g]]!="number"),d={};for(const g of a)d[g]=o[g];return e.objectValues(d)},e.objectValues=o=>e.objectKeys(o).map(function(a){return o[a]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const a=[];for(const d in o)Object.prototype.hasOwnProperty.call(o,d)&&a.push(d);return a},e.find=(o,a)=>{for(const d of o)if(a(d))return d},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function i(o,a=" | "){return o.map(d=>typeof d=="string"?`'${d}'`:d).join(a)}e.joinValues=i,e.jsonStringifyReplacer=(o,a)=>typeof a=="bigint"?a.toString():a})(je||(je={}));var Wa;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wa||(Wa={}));const ye=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),In=e=>{switch(typeof e){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return isNaN(e)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(e)?ye.array:e===null?ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ye.promise:typeof Map<"u"&&e instanceof Map?ye.map:typeof Set<"u"&&e instanceof Set?ye.set:typeof Date<"u"&&e instanceof Date?ye.date:ye.object;default:return ye.unknown}},le=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),i_=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ft extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},i={_errors:[]},o=a=>{for(const d of a.issues)if(d.code==="invalid_union")d.unionErrors.map(o);else if(d.code==="invalid_return_type")o(d.returnTypeError);else if(d.code==="invalid_arguments")o(d.argumentsError);else if(d.path.length===0)i._errors.push(n(d));else{let g=i,l=0;for(;l<d.path.length;){const p=d.path[l];l===d.path.length-1?(g[p]=g[p]||{_errors:[]},g[p]._errors.push(n(d))):g[p]=g[p]||{_errors:[]},g=g[p],l++}}};return o(this),i}static assert(t){if(!(t instanceof Ft))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 o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}Ft.create=e=>new Ft(e);const Di=(e,t)=>{let n;switch(e.code){case le.invalid_type:e.received===ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case le.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,je.jsonStringifyReplacer)}`;break;case le.unrecognized_keys:n=`Unrecognized key(s) in object: ${je.joinValues(e.keys,", ")}`;break;case le.invalid_union:n="Invalid input";break;case le.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${je.joinValues(e.options)}`;break;case le.invalid_enum_value:n=`Invalid enum value. Expected ${je.joinValues(e.options)}, received '${e.received}'`;break;case le.invalid_arguments:n="Invalid function arguments";break;case le.invalid_return_type:n="Invalid function return type";break;case le.invalid_date:n="Invalid date";break;case le.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case le.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case le.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case le.custom:n="Invalid input";break;case le.invalid_intersection_types:n="Intersection results could not be merged";break;case le.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case le.not_finite:n="Number must be finite";break;default:n=t.defaultError,je.assertNever(e)}return{message:n}};let Bf=Di;function r_(e){Bf=e}function Ms(){return Bf}const Es=e=>{const{data:t,path:n,errorMaps:i,issueData:o}=e,a=[...n,...o.path||[]],d={...o,path:a};if(o.message!==void 0)return{...o,path:a,message:o.message};let g="";const l=i.filter(p=>!!p).slice().reverse();for(const p of l)g=p(d,{data:t,defaultError:g}).message;return{...o,path:a,message:g}},s_=[];function ve(e,t){const n=Ms(),i=Es({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Di?void 0:Di].filter(o=>!!o)});e.common.issues.push(i)}class wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const o of n){if(o.status==="aborted")return Le;o.status==="dirty"&&t.dirty(),i.push(o.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const o of n){const a=await o.key,d=await o.value;i.push({key:a,value:d})}return wt.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const o of n){const{key:a,value:d}=o;if(a.status==="aborted"||d.status==="aborted")return Le;a.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof d.value<"u"||o.alwaysSet)&&(i[a.value]=d.value)}return{status:t.value,value:i}}}const Le=Object.freeze({status:"aborted"}),Si=e=>({status:"dirty",value:e}),At=e=>({status:"valid",value:e}),Ba=e=>e.status==="aborted",za=e=>e.status==="dirty",Sr=e=>e.status==="valid",xr=e=>typeof Promise<"u"&&e instanceof Promise;function Ts(e,t,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function zf(e,t,n,i,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ae||(Ae={}));var tr,nr;class ln{constructor(t,n,i,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=o}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 Nu=(e,t)=>{if(Sr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ft(e.common.issues);return this._error=n,this._error}}};function Fe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:o}=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:o}:{errorMap:(d,g)=>{var l,p;const{message:s}=e;return d.code==="invalid_enum_value"?{message:s??g.defaultError}:typeof g.data>"u"?{message:(l=s??i)!==null&&l!==void 0?l:g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:(p=s??n)!==null&&p!==void 0?p:g.defaultError}},description:o}}class We{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return In(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:In(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new wt,ctx:{common:t.parent.common,data:t.data,parsedType:In(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(xr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){var i;const o={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:In(t)},a=this._parseSync({data:t,path:o.path,parent:o});return Nu(o,a)}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:In(t)},o=this._parse({data:t,path:i.path,parent:i}),a=await(xr(o)?o:Promise.resolve(o));return Nu(i,a)}refine(t,n){const i=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,a)=>{const d=t(o),g=()=>a.addIssue({code:le.custom,...i(o)});return typeof Promise<"u"&&d instanceof Promise?d.then(l=>l?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(t,n){return this._refinement((i,o)=>t(i)?!0:(o.addIssue(typeof n=="function"?n(i,o):n),!1))}_refinement(t){return new Kt({schema:this,typeName:Te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return nn.create(this,this._def)}nullable(){return jn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vt.create(this,this._def)}promise(){return Pi.create(this,this._def)}or(t){return kr.create([this,t],this._def)}and(t){return Mr.create(this,t,this._def)}transform(t){return new Kt({...Fe(this._def),schema:this,typeName:Te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ir({...Fe(this._def),innerType:this,defaultValue:n,typeName:Te.ZodDefault})}brand(){return new jl({typeName:Te.ZodBranded,type:this,...Fe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Or({...Fe(this._def),innerType:this,catchValue:n,typeName:Te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Zr.create(this,t)}readonly(){return Nr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const o_=/^c[^\s-]{8,}$/i,a_=/^[0-9a-z]+$/,l_=/^[0-9A-HJKMNP-TV-Z]{26}$/,c_=/^[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,u_=/^[a-z0-9_-]{21}$/i,h_=/^[-+]?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)?)??$/,d_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,f_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Zo;const p_=/^(?:(?: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])$/,g_=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,m_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,jf="((\\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])))",v_=new RegExp(`^${jf}$`);function Hf(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 y_(e){return new RegExp(`^${Hf(e)}$`)}function Uf(e){let t=`${jf}T${Hf(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 b_(e,t){return!!((t==="v4"||!t)&&p_.test(e)||(t==="v6"||!t)&&g_.test(e))}class zt extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ye.string){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.string,received:a.parsedType}),Le}const i=new wt;let o;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(o=this._getOrReturnCtx(t,o),ve(o,{code:le.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&&(o=this._getOrReturnCtx(t,o),ve(o,{code:le.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="length"){const d=t.data.length>a.value,g=t.data.length<a.value;(d||g)&&(o=this._getOrReturnCtx(t,o),d?ve(o,{code:le.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):g&&ve(o,{code:le.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if(a.kind==="email")d_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"email",code:le.invalid_string,message:a.message}),i.dirty());else if(a.kind==="emoji")Zo||(Zo=new RegExp(f_,"u")),Zo.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"emoji",code:le.invalid_string,message:a.message}),i.dirty());else if(a.kind==="uuid")c_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"uuid",code:le.invalid_string,message:a.message}),i.dirty());else if(a.kind==="nanoid")u_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"nanoid",code:le.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid")o_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"cuid",code:le.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid2")a_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"cuid2",code:le.invalid_string,message:a.message}),i.dirty());else if(a.kind==="ulid")l_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"ulid",code:le.invalid_string,message:a.message}),i.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),ve(o,{validation:"url",code:le.invalid_string,message:a.message}),i.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"regex",code:le.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)||(o=this._getOrReturnCtx(t,o),ve(o,{code:le.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)||(o=this._getOrReturnCtx(t,o),ve(o,{code:le.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(o=this._getOrReturnCtx(t,o),ve(o,{code:le.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty()):a.kind==="datetime"?Uf(a).test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{code:le.invalid_string,validation:"datetime",message:a.message}),i.dirty()):a.kind==="date"?v_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{code:le.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?y_(a).test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{code:le.invalid_string,validation:"time",message:a.message}),i.dirty()):a.kind==="duration"?h_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"duration",code:le.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?b_(t.data,a.version)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"ip",code:le.invalid_string,message:a.message}),i.dirty()):a.kind==="base64"?m_.test(t.data)||(o=this._getOrReturnCtx(t,o),ve(o,{validation:"base64",code:le.invalid_string,message:a.message}),i.dirty()):je.assertNever(a);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(o=>t.test(o),{validation:n,code:le.invalid_string,...Ae.errToObj(i)})}_addCheck(t){return new zt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ae.errToObj(t)})}datetime(t){var n,i;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(i=t==null?void 0:t.local)!==null&&i!==void 0?i:!1,...Ae.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ae.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ae.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ae.errToObj(n)})}nonempty(t){return this.min(1,Ae.errToObj(t))}trim(){return new zt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}zt.create=e=>{var t;return new zt({checks:[],typeName:Te.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Fe(e)})};function w_(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,o=n>i?n:i,a=parseInt(e.toFixed(o).replace(".","")),d=parseInt(t.toFixed(o).replace(".",""));return a%d/Math.pow(10,o)}class Wn extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ye.number){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.number,received:a.parsedType}),Le}let i;const o=new wt;for(const a of this._def.checks)a.kind==="int"?je.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:le.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?w_(t.data,a.value)!==0&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:le.not_finite,message:a.message}),o.dirty()):je.assertNever(a);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,i,o){return new Wn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Ae.toString(o)}]})}_addCheck(t){return new Wn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.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)}}Wn.create=e=>new Wn({checks:[],typeName:Te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class Bn extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ye.bigint){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.bigint,received:a.parsedType}),Le}let i;const o=new wt;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:le.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):je.assertNever(a);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,i,o){return new Bn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Ae.toString(o)}]})}_addCheck(t){return new Bn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Bn.create=e=>{var t;return new Bn({checks:[],typeName:Te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Fe(e)})};class Cr extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ye.boolean){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.boolean,received:i.parsedType}),Le}return At(t.data)}}Cr.create=e=>new Cr({typeName:Te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class hi extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ye.date){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.date,received:a.parsedType}),Le}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_date}),Le}const i=new wt;let o;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(o=this._getOrReturnCtx(t,o),ve(o,{code:le.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),i.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(o=this._getOrReturnCtx(t,o),ve(o,{code:le.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):je.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new hi({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ae.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}hi.create=e=>new hi({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Te.ZodDate,...Fe(e)});class Ls extends We{_parse(t){if(this._getType(t)!==ye.symbol){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.symbol,received:i.parsedType}),Le}return At(t.data)}}Ls.create=e=>new Ls({typeName:Te.ZodSymbol,...Fe(e)});class $r extends We{_parse(t){if(this._getType(t)!==ye.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.undefined,received:i.parsedType}),Le}return At(t.data)}}$r.create=e=>new $r({typeName:Te.ZodUndefined,...Fe(e)});class Ar extends We{_parse(t){if(this._getType(t)!==ye.null){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.null,received:i.parsedType}),Le}return At(t.data)}}Ar.create=e=>new Ar({typeName:Te.ZodNull,...Fe(e)});class Fi extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return At(t.data)}}Fi.create=e=>new Fi({typeName:Te.ZodAny,...Fe(e)});class ii extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return At(t.data)}}ii.create=e=>new ii({typeName:Te.ZodUnknown,...Fe(e)});class _n extends We{_parse(t){const n=this._getOrReturnCtx(t);return ve(n,{code:le.invalid_type,expected:ye.never,received:n.parsedType}),Le}}_n.create=e=>new _n({typeName:Te.ZodNever,...Fe(e)});class Rs extends We{_parse(t){if(this._getType(t)!==ye.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.void,received:i.parsedType}),Le}return At(t.data)}}Rs.create=e=>new Rs({typeName:Te.ZodVoid,...Fe(e)});class Vt extends We{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),o=this._def;if(n.parsedType!==ye.array)return ve(n,{code:le.invalid_type,expected:ye.array,received:n.parsedType}),Le;if(o.exactLength!==null){const d=n.data.length>o.exactLength.value,g=n.data.length<o.exactLength.value;(d||g)&&(ve(n,{code:d?le.too_big:le.too_small,minimum:g?o.exactLength.value:void 0,maximum:d?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),i.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(ve(n,{code:le.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),i.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(ve(n,{code:le.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((d,g)=>o.type._parseAsync(new ln(n,d,n.path,g)))).then(d=>wt.mergeArray(i,d));const a=[...n.data].map((d,g)=>o.type._parseSync(new ln(n,d,n.path,g)));return wt.mergeArray(i,a)}get element(){return this._def.type}min(t,n){return new Vt({...this._def,minLength:{value:t,message:Ae.toString(n)}})}max(t,n){return new Vt({...this._def,maxLength:{value:t,message:Ae.toString(n)}})}length(t,n){return new Vt({...this._def,exactLength:{value:t,message:Ae.toString(n)}})}nonempty(t){return this.min(1,t)}}Vt.create=(e,t)=>new Vt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Te.ZodArray,...Fe(t)});function bi(e){if(e instanceof at){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=nn.create(bi(i))}return new at({...e._def,shape:()=>t})}else return e instanceof Vt?new Vt({...e._def,type:bi(e.element)}):e instanceof nn?nn.create(bi(e.unwrap())):e instanceof jn?jn.create(bi(e.unwrap())):e instanceof cn?cn.create(e.items.map(t=>bi(t))):e}class at extends We{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=je.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ye.object){const p=this._getOrReturnCtx(t);return ve(p,{code:le.invalid_type,expected:ye.object,received:p.parsedType}),Le}const{status:i,ctx:o}=this._processInputParams(t),{shape:a,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof _n&&this._def.unknownKeys==="strip"))for(const p in o.data)d.includes(p)||g.push(p);const l=[];for(const p of d){const s=a[p],r=o.data[p];l.push({key:{status:"valid",value:p},value:s._parse(new ln(o,r,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof _n){const p=this._def.unknownKeys;if(p==="passthrough")for(const s of g)l.push({key:{status:"valid",value:s},value:{status:"valid",value:o.data[s]}});else if(p==="strict")g.length>0&&(ve(o,{code:le.unrecognized_keys,keys:g}),i.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const s of g){const r=o.data[s];l.push({key:{status:"valid",value:s},value:p._parse(new ln(o,r,o.path,s)),alwaysSet:s in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const s of l){const r=await s.key,c=await s.value;p.push({key:r,value:c,alwaysSet:s.alwaysSet})}return p}).then(p=>wt.mergeObjectSync(i,p)):wt.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return Ae.errToObj,new at({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var o,a,d,g;const l=(d=(a=(o=this._def).errorMap)===null||a===void 0?void 0:a.call(o,n,i).message)!==null&&d!==void 0?d:i.defaultError;return n.code==="unrecognized_keys"?{message:(g=Ae.errToObj(t).message)!==null&&g!==void 0?g:l}:{message:l}}}:{}})}strip(){return new at({...this._def,unknownKeys:"strip"})}passthrough(){return new at({...this._def,unknownKeys:"passthrough"})}extend(t){return new at({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new at({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new at({...this._def,catchall:t})}pick(t){const n={};return je.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}omit(t){const n={};return je.objectKeys(this.shape).forEach(i=>{t[i]||(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}deepPartial(){return bi(this)}partial(t){const n={};return je.objectKeys(this.shape).forEach(i=>{const o=this.shape[i];t&&!t[i]?n[i]=o:n[i]=o.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 Vf(je.objectKeys(this.shape))}}at.create=(e,t)=>new at({shape:()=>e,unknownKeys:"strip",catchall:_n.create(),typeName:Te.ZodObject,...Fe(t)});at.strictCreate=(e,t)=>new at({shape:()=>e,unknownKeys:"strict",catchall:_n.create(),typeName:Te.ZodObject,...Fe(t)});at.lazycreate=(e,t)=>new at({shape:e,unknownKeys:"strip",catchall:_n.create(),typeName:Te.ZodObject,...Fe(t)});class kr extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function o(a){for(const g of a)if(g.result.status==="valid")return g.result;for(const g of a)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;const d=a.map(g=>new Ft(g.ctx.common.issues));return ve(n,{code:le.invalid_union,unionErrors:d}),Le}if(n.common.async)return Promise.all(i.map(async a=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(o);{let a;const d=[];for(const l of i){const p={...n,common:{...n.common,issues:[]},parent:null},s=l._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&&d.push(p.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const g=d.map(l=>new Ft(l));return ve(n,{code:le.invalid_union,unionErrors:g}),Le}}get options(){return this._def.options}}kr.create=(e,t)=>new kr({options:e,typeName:Te.ZodUnion,...Fe(t)});const fn=e=>e instanceof Tr?fn(e.schema):e instanceof Kt?fn(e.innerType()):e instanceof Lr?[e.value]:e instanceof zn?e.options:e instanceof Rr?je.objectValues(e.enum):e instanceof Ir?fn(e._def.innerType):e instanceof $r?[void 0]:e instanceof Ar?[null]:e instanceof nn?[void 0,...fn(e.unwrap())]:e instanceof jn?[null,...fn(e.unwrap())]:e instanceof jl||e instanceof Nr?fn(e.unwrap()):e instanceof Or?fn(e._def.innerType):[];class po extends We{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.object)return ve(n,{code:le.invalid_type,expected:ye.object,received:n.parsedType}),Le;const i=this.discriminator,o=n.data[i],a=this.optionsMap.get(o);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(ve(n,{code:le.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Le)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){const o=new Map;for(const a of n){const d=fn(a.shape[t]);if(!d.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const g of d){if(o.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);o.set(g,a)}}return new po({typeName:Te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Fe(i)})}}function ja(e,t){const n=In(e),i=In(t);if(e===t)return{valid:!0,data:e};if(n===ye.object&&i===ye.object){const o=je.objectKeys(t),a=je.objectKeys(e).filter(g=>o.indexOf(g)!==-1),d={...e,...t};for(const g of a){const l=ja(e[g],t[g]);if(!l.valid)return{valid:!1};d[g]=l.data}return{valid:!0,data:d}}else if(n===ye.array&&i===ye.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let a=0;a<e.length;a++){const d=e[a],g=t[a],l=ja(d,g);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===ye.date&&i===ye.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Mr extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),o=(a,d)=>{if(Ba(a)||Ba(d))return Le;const g=ja(a.value,d.value);return g.valid?((za(a)||za(d))&&n.dirty(),{status:n.value,value:g.data}):(ve(i,{code:le.invalid_intersection_types}),Le)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([a,d])=>o(a,d)):o(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Mr.create=(e,t,n)=>new Mr({left:e,right:t,typeName:Te.ZodIntersection,...Fe(n)});class cn extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.array)return ve(i,{code:le.invalid_type,expected:ye.array,received:i.parsedType}),Le;if(i.data.length<this._def.items.length)return ve(i,{code:le.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Le;!this._def.rest&&i.data.length>this._def.items.length&&(ve(i,{code:le.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...i.data].map((d,g)=>{const l=this._def.items[g]||this._def.rest;return l?l._parse(new ln(i,d,i.path,g)):null}).filter(d=>!!d);return i.common.async?Promise.all(a).then(d=>wt.mergeArray(n,d)):wt.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new cn({...this._def,rest:t})}}cn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cn({items:e,typeName:Te.ZodTuple,rest:null,...Fe(t)})};class Er extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.object)return ve(i,{code:le.invalid_type,expected:ye.object,received:i.parsedType}),Le;const o=[],a=this._def.keyType,d=this._def.valueType;for(const g in i.data)o.push({key:a._parse(new ln(i,g,i.path,g)),value:d._parse(new ln(i,i.data[g],i.path,g)),alwaysSet:g in i.data});return i.common.async?wt.mergeObjectAsync(n,o):wt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof We?new Er({keyType:t,valueType:n,typeName:Te.ZodRecord,...Fe(i)}):new Er({keyType:zt.create(),valueType:t,typeName:Te.ZodRecord,...Fe(n)})}}class Is extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.map)return ve(i,{code:le.invalid_type,expected:ye.map,received:i.parsedType}),Le;const o=this._def.keyType,a=this._def.valueType,d=[...i.data.entries()].map(([g,l],p)=>({key:o._parse(new ln(i,g,i.path,[p,"key"])),value:a._parse(new ln(i,l,i.path,[p,"value"]))}));if(i.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const l of d){const p=await l.key,s=await l.value;if(p.status==="aborted"||s.status==="aborted")return Le;(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 l of d){const p=l.key,s=l.value;if(p.status==="aborted"||s.status==="aborted")return Le;(p.status==="dirty"||s.status==="dirty")&&n.dirty(),g.set(p.value,s.value)}return{status:n.value,value:g}}}}Is.create=(e,t,n)=>new Is({valueType:t,keyType:e,typeName:Te.ZodMap,...Fe(n)});class di extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.set)return ve(i,{code:le.invalid_type,expected:ye.set,received:i.parsedType}),Le;const o=this._def;o.minSize!==null&&i.data.size<o.minSize.value&&(ve(i,{code:le.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&i.data.size>o.maxSize.value&&(ve(i,{code:le.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const a=this._def.valueType;function d(l){const p=new Set;for(const s of l){if(s.status==="aborted")return Le;s.status==="dirty"&&n.dirty(),p.add(s.value)}return{status:n.value,value:p}}const g=[...i.data.values()].map((l,p)=>a._parse(new ln(i,l,i.path,p)));return i.common.async?Promise.all(g).then(l=>d(l)):d(g)}min(t,n){return new di({...this._def,minSize:{value:t,message:Ae.toString(n)}})}max(t,n){return new di({...this._def,maxSize:{value:t,message:Ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}di.create=(e,t)=>new di({valueType:e,minSize:null,maxSize:null,typeName:Te.ZodSet,...Fe(t)});class Ei extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.function)return ve(n,{code:le.invalid_type,expected:ye.function,received:n.parsedType}),Le;function i(g,l){return Es({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ms(),Di].filter(p=>!!p),issueData:{code:le.invalid_arguments,argumentsError:l}})}function o(g,l){return Es({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ms(),Di].filter(p=>!!p),issueData:{code:le.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},d=n.data;if(this._def.returns instanceof Pi){const g=this;return At(async function(...l){const p=new Ft([]),s=await g._def.args.parseAsync(l,a).catch(u=>{throw p.addIssue(i(l,u)),p}),r=await Reflect.apply(d,this,s);return await g._def.returns._def.type.parseAsync(r,a).catch(u=>{throw p.addIssue(o(r,u)),p})})}else{const g=this;return At(function(...l){const p=g._def.args.safeParse(l,a);if(!p.success)throw new Ft([i(l,p.error)]);const s=Reflect.apply(d,this,p.data),r=g._def.returns.safeParse(s,a);if(!r.success)throw new Ft([o(s,r.error)]);return r.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ei({...this._def,args:cn.create(t).rest(ii.create())})}returns(t){return new Ei({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new Ei({args:t||cn.create([]).rest(ii.create()),returns:n||ii.create(),typeName:Te.ZodFunction,...Fe(i)})}}class Tr extends We{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Tr.create=(e,t)=>new Tr({getter:e,typeName:Te.ZodLazy,...Fe(t)});class Lr extends We{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ve(n,{received:n.data,code:le.invalid_literal,expected:this._def.value}),Le}return{status:"valid",value:t.data}}get value(){return this._def.value}}Lr.create=(e,t)=>new Lr({value:e,typeName:Te.ZodLiteral,...Fe(t)});function Vf(e,t){return new zn({values:e,typeName:Te.ZodEnum,...Fe(t)})}class zn extends We{constructor(){super(...arguments),tr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ve(n,{expected:je.joinValues(i),received:n.parsedType,code:le.invalid_type}),Le}if(Ts(this,tr)||zf(this,tr,new Set(this._def.values)),!Ts(this,tr).has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ve(n,{received:n.data,code:le.invalid_enum_value,options:i}),Le}return At(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return zn.create(t,{...this._def,...n})}exclude(t,n=this._def){return zn.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}tr=new WeakMap;zn.create=Vf;class Rr extends We{constructor(){super(...arguments),nr.set(this,void 0)}_parse(t){const n=je.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==ye.string&&i.parsedType!==ye.number){const o=je.objectValues(n);return ve(i,{expected:je.joinValues(o),received:i.parsedType,code:le.invalid_type}),Le}if(Ts(this,nr)||zf(this,nr,new Set(je.getValidEnumValues(this._def.values))),!Ts(this,nr).has(t.data)){const o=je.objectValues(n);return ve(i,{received:i.data,code:le.invalid_enum_value,options:o}),Le}return At(t.data)}get enum(){return this._def.values}}nr=new WeakMap;Rr.create=(e,t)=>new Rr({values:e,typeName:Te.ZodNativeEnum,...Fe(t)});class Pi extends We{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.promise&&n.common.async===!1)return ve(n,{code:le.invalid_type,expected:ye.promise,received:n.parsedType}),Le;const i=n.parsedType===ye.promise?n.data:Promise.resolve(n.data);return At(i.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Pi.create=(e,t)=>new Pi({type:e,typeName:Te.ZodPromise,...Fe(t)});class Kt extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),o=this._def.effect||null,a={addIssue:d=>{ve(i,d),d.fatal?n.abort():n.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="preprocess"){const d=o.transform(i.data,a);if(i.common.async)return Promise.resolve(d).then(async g=>{if(n.value==="aborted")return Le;const l=await this._def.schema._parseAsync({data:g,path:i.path,parent:i});return l.status==="aborted"?Le:l.status==="dirty"||n.value==="dirty"?Si(l.value):l});{if(n.value==="aborted")return Le;const g=this._def.schema._parseSync({data:d,path:i.path,parent:i});return g.status==="aborted"?Le:g.status==="dirty"||n.value==="dirty"?Si(g.value):g}}if(o.type==="refinement"){const d=g=>{const l=o.refinement(g,a);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(i.common.async===!1){const g=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return g.status==="aborted"?Le:(g.status==="dirty"&&n.dirty(),d(g.value),{status:n.value,value:g.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(g=>g.status==="aborted"?Le:(g.status==="dirty"&&n.dirty(),d(g.value).then(()=>({status:n.value,value:g.value}))))}if(o.type==="transform")if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Sr(d))return d;const g=o.transform(d.value,a);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:g}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>Sr(d)?Promise.resolve(o.transform(d.value,a)).then(g=>({status:n.value,value:g})):d);je.assertNever(o)}}Kt.create=(e,t,n)=>new Kt({schema:e,typeName:Te.ZodEffects,effect:t,...Fe(n)});Kt.createWithPreprocess=(e,t,n)=>new Kt({schema:t,effect:{type:"preprocess",transform:e},typeName:Te.ZodEffects,...Fe(n)});class nn extends We{_parse(t){return this._getType(t)===ye.undefined?At(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nn.create=(e,t)=>new nn({innerType:e,typeName:Te.ZodOptional,...Fe(t)});class jn extends We{_parse(t){return this._getType(t)===ye.null?At(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}jn.create=(e,t)=>new jn({innerType:e,typeName:Te.ZodNullable,...Fe(t)});class Ir extends We{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===ye.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ir.create=(e,t)=>new Ir({innerType:e,typeName:Te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Fe(t)});class Or extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return xr(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ft(i.common.issues)},input:i.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ft(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Or.create=(e,t)=>new Or({innerType:e,typeName:Te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Fe(t)});class Os extends We{_parse(t){if(this._getType(t)!==ye.nan){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.nan,received:i.parsedType}),Le}return{status:"valid",value:t.data}}}Os.create=e=>new Os({typeName:Te.ZodNaN,...Fe(e)});const __=Symbol("zod_brand");class jl extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Zr extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Le:a.status==="dirty"?(n.dirty(),Si(a.value)):this._def.out._parseAsync({data:a.value,path:i.path,parent:i})})();{const o=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?Le:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:i.path,parent:i})}}static create(t,n){return new Zr({in:t,out:n,typeName:Te.ZodPipeline})}}class Nr extends We{_parse(t){const n=this._def.innerType._parse(t),i=o=>(Sr(o)&&(o.value=Object.freeze(o.value)),o);return xr(n)?n.then(o=>i(o)):i(n)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:Te.ZodReadonly,...Fe(t)});function Gf(e,t={},n){return e?Fi.create().superRefine((i,o)=>{var a,d;if(!e(i)){const g=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,l=(d=(a=g.fatal)!==null&&a!==void 0?a:n)!==null&&d!==void 0?d:!0,p=typeof g=="string"?{message:g}:g;o.addIssue({code:"custom",...p,fatal:l})}}):Fi.create()}const S_={object:at.lazycreate};var Te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Te||(Te={}));const x_=(e,t={message:`Input not instance of ${e.name}`})=>Gf(n=>n instanceof e,t),Yf=zt.create,Kf=Wn.create,C_=Os.create,$_=Bn.create,Zf=Cr.create,A_=hi.create,k_=Ls.create,M_=$r.create,E_=Ar.create,T_=Fi.create,L_=ii.create,R_=_n.create,I_=Rs.create,O_=Vt.create,N_=at.create,D_=at.strictCreate,F_=kr.create,P_=po.create,W_=Mr.create,B_=cn.create,z_=Er.create,j_=Is.create,H_=di.create,U_=Ei.create,V_=Tr.create,G_=Lr.create,Y_=zn.create,K_=Rr.create,Z_=Pi.create,Du=Kt.create,X_=nn.create,Q_=jn.create,q_=Kt.createWithPreprocess,J_=Zr.create,eS=()=>Yf().optional(),tS=()=>Kf().optional(),nS=()=>Zf().optional(),iS={string:e=>zt.create({...e,coerce:!0}),number:e=>Wn.create({...e,coerce:!0}),boolean:e=>Cr.create({...e,coerce:!0}),bigint:e=>Bn.create({...e,coerce:!0}),date:e=>hi.create({...e,coerce:!0})},rS=Le;var te=Object.freeze({__proto__:null,defaultErrorMap:Di,setErrorMap:r_,getErrorMap:Ms,makeIssue:Es,EMPTY_PATH:s_,addIssueToContext:ve,ParseStatus:wt,INVALID:Le,DIRTY:Si,OK:At,isAborted:Ba,isDirty:za,isValid:Sr,isAsync:xr,get util(){return je},get objectUtil(){return Wa},ZodParsedType:ye,getParsedType:In,ZodType:We,datetimeRegex:Uf,ZodString:zt,ZodNumber:Wn,ZodBigInt:Bn,ZodBoolean:Cr,ZodDate:hi,ZodSymbol:Ls,ZodUndefined:$r,ZodNull:Ar,ZodAny:Fi,ZodUnknown:ii,ZodNever:_n,ZodVoid:Rs,ZodArray:Vt,ZodObject:at,ZodUnion:kr,ZodDiscriminatedUnion:po,ZodIntersection:Mr,ZodTuple:cn,ZodRecord:Er,ZodMap:Is,ZodSet:di,ZodFunction:Ei,ZodLazy:Tr,ZodLiteral:Lr,ZodEnum:zn,ZodNativeEnum:Rr,ZodPromise:Pi,ZodEffects:Kt,ZodTransformer:Kt,ZodOptional:nn,ZodNullable:jn,ZodDefault:Ir,ZodCatch:Or,ZodNaN:Os,BRAND:__,ZodBranded:jl,ZodPipeline:Zr,ZodReadonly:Nr,custom:Gf,Schema:We,ZodSchema:We,late:S_,get ZodFirstPartyTypeKind(){return Te},coerce:iS,any:T_,array:O_,bigint:$_,boolean:Zf,date:A_,discriminatedUnion:P_,effect:Du,enum:Y_,function:U_,instanceof:x_,intersection:W_,lazy:V_,literal:G_,map:j_,nan:C_,nativeEnum:K_,never:R_,null:E_,nullable:Q_,number:Kf,object:N_,oboolean:nS,onumber:tS,optional:X_,ostring:eS,pipeline:J_,preprocess:q_,promise:Z_,record:z_,set:H_,strictObject:D_,string:Yf,symbol:k_,transformer:Du,tuple:B_,undefined:M_,union:F_,unknown:L_,void:I_,NEVER:rS,ZodIssueCode:le,quotelessJson:i_,ZodError:Ft});const go=te.object({total:te.number(),currentPage:te.number(),pageSize:te.number()}),sS=te.object({key:te.string(),value:te.string().nullish()}),oS=te.object({name:te.string(),configured:te.boolean(),items:te.array(sS).nullish(),type:te.string()}),aS=te.object({results:te.array(oS)}),mo=te.object({id:te.number(),name:te.string()}),lS=go.extend({results:te.array(mo)}),cS=te.object({resource:te.string(),value:te.string()}),Fu=te.object({name:te.string().nullish()}),uS=te.object({createdOn:te.string().nullish(),updatedOn:te.string().nullish(),expiresOn:te.string().nullish(),registrar:Fu.nullish(),contacts:te.array(Fu)}),hS=te.object({number:te.number()}),dS=te.object({country:te.string(),countryCode:te.string()}),fS=te.object({name:te.string()}),pS=te.object({name:te.string()}),gS=te.object({name:te.string()}),mS=te.object({number:te.number()}),Hl=te.object({id:te.number(),data:te.string(),dataType:te.string(),source:te.string(),query:te.string().nullish(),metadata:te.any().nullish(),createdAt:te.string(),autonomousSystem:hS.nullish(),whoisRecord:uS.nullish(),geolocation:dS.nullish(),dnsRecords:te.array(cS).nullish(),reverseDnsNames:te.array(fS).nullish(),cpes:te.array(pS).nullish(),ports:te.array(mS).nullish(),vulnerabilities:te.array(gS).nullish(),tags:te.array(mo)}),Xf=te.object({id:te.number(),ruleId:te.string(),createdAt:te.string(),tags:te.array(mo),artifacts:te.array(Hl)}),vS=go.extend({results:te.array(Xf)});te.object({q:te.string(),page:te.number().nullish(),limit:te.number().nullish()});te.object({countryCode:te.string(),asn:te.string().nullish(),loc:te.string().nullish()});te.object({lat:te.number(),long:te.number()});te.object({name:te.string(),code:te.string(),lat:te.number(),long:te.number()});te.union([te.literal("ip"),te.literal("domain"),te.literal("url"),te.literal("hash"),te.literal("mail")]);te.object({name:te.string(),type:te.string(),baseURL:te.string(),favicon:te.function().returns(te.string()),href:te.function().args(te.string()).returns(te.string())});const vs=te.object({id:te.string(),title:te.string(),description:te.string(),yaml:te.string(),createdAt:te.string(),updatedAt:te.string(),tags:te.array(mo)});te.object({yaml:te.string()});te.object({yaml:te.string()});te.object({analyzer:te.string(),query:te.string()});const yS=go.extend({results:te.array(vs)}),bS=go.extend({results:te.array(Hl)}),Qf=te.object({message:te.string()});Qf.extend({detail:te.any().nullish()});const Pu=Qf.extend({queued:te.boolean()});te.union([te.literal("Alerts"),te.literal("Rules"),te.literal("Artifacts")]);const ht=tt.create(),St={async getConfigs(){const e=await ht.get("/api/configs");return aS.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await ht.get("/api/alerts",{params:e});return vS.parse(t.data)},async getAlert(e){const t=await ht.get(`/api/alerts/${e}`);return Xf.parse(t.data)},async getTags(){const e=await ht.get("/api/tags");return lS.parse(e.data)},async deleteAlert(e){await ht.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await ht.get(`/api/artifacts/${e}`);return Hl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await ht.get("/api/artifacts",{params:e});return bS.parse(t.data)},async enrichArtifact(e){const t=await ht.post(`/api/artifacts/${e}/enrich`);return Pu.parse(t.data)},async deleteArtifact(e){await ht.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await ht.get("/api/rules",{params:e});return yS.parse(t.data)},async getRule(e){const t=await ht.get(`/api/rules/${e}`);return vs.parse(t.data)},async searchRule(e){const t=await ht.post(`/api/rules/${e}/search`);return Pu.parse(t.data)},async createRule(e){const t=await ht.post("/api/rules/",e);return vs.parse(t.data)},async updateRule(e){const t=await ht.put("/api/rules/",e);return vs.parse(t.data)},async deleteRule(e){await ht.delete(`/api/rules/${e}`)},async deleteTag(e){await ht.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await ht.get(`/api/ip_addresses/${e}`)).data}};function vo(){return _t(async(e,t)=>await St.getAlerts(t))}function wS(){return _t(async(e,t)=>await St.deleteAlert(t))}function _S(){return _t(async(e,t)=>await St.deleteTag(t))}function SS(){return _t(async(e,t)=>await St.getArtifact(t))}function qf(){return _t(async(e,t)=>await St.deleteArtifact(t))}function xS(){return _t(async(e,t)=>await St.enrichArtifact(t))}function CS(){return _t(async()=>await St.getConfigs())}function $S(){return _t(async(e,t)=>await St.getIpInfo(t))}function Jf(){return _t(async(e,t)=>await St.getRules(t))}function ep(){return _t(async(e,t)=>await St.getRule(t))}function AS(){return _t(async(e,t)=>await St.deleteRule(t))}function kS(){return _t(async(e,t)=>await St.searchRule(t))}function MS(){return _t(async(e,t)=>await St.createRule(t))}function ES(){return _t(async(e,t)=>await St.updateRule(t))}function Ul(){return _t(async(e,t)=>await St.getArtifacts(t))}function TS(){return _t(async(e,t)=>await St.getAlert(t))}const LS={class:"buttons is-pulled-right"},RS=["href"],IS={class:"icon is-small"},OS={class:"icon is-small"},tp=Ce({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,i=t,o=ke(()=>`/api/alerts/${n.alert.id}`),a=wS(),d=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await a.perform(n.alert.id),i("delete")}catch(l){tt.isAxiosError(l)&&i("set-error",l)}};return(g,l)=>{const p=Xe("font-awesome-icon");return Y(),ie("span",LS,[D("a",{class:"button is-link is-light is-small",href:o.value,target:"_blank"},[l[0]||(l[0]=D("span",null,"JSON",-1)),D("span",IS,[se(p,{icon:"barcode"})])],8,RS),D("button",{class:"button is-light is-small",onClick:d},[l[1]||(l[1]=D("span",null,"Delete",-1)),D("span",OS,[se(p,{icon:"times"})])])])}}});var Dr=NS;function NS(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const DS={key:0,class:"control"},FS=Ce({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,o=He(!1),a=He(!1),d=qf(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await d.perform(n.artifact.id),o.value=!0,i("delete"))},l=()=>{a.value=!0},p=()=>{a.value=!1};return(s,r)=>{const c=Xe("router-link");return o.value?ge("",!0):(Y(),ie("div",DS,[D("div",{class:"tags has-addons are-medium",onMouseover:l,onMouseleave:p},[se(c,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:nt(()=>[it(Se(ce(Dr)(e.artifact.data,32)),1)]),_:1},8,["to"]),a.value?(Y(),ie("span",{key:0,class:"tag is-delete",onClick:g})):ge("",!0)],32)]))}}}),PS={class:"field is-grouped is-grouped-multiline"},np=Ce({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,o=He(0),a=()=>{o.value+=1};return et(o,()=>{o.value>=n.artifacts.length&&i("delete")}),(d,g)=>(Y(),ie("div",PS,[(Y(!0),ie(Pe,null,Pt(e.artifacts,l=>(Y(),xe(FS,{key:l.id,artifact:l,onDelete:a},null,8,["artifact"]))),128))]))}});var Ns={d:(e,t)=>{for(var n in t)Ns.o(t,n)&&!Ns.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ip={};function Ha(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 rp(e,t){if(e){if(typeof e=="string")return Ha(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)?Ha(e,t):void 0}}function Ds(e){return function(t){if(Array.isArray(t))return Ha(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||rp(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
590
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ns.d(ip,{Z:()=>HS});const Ee=(Wu={computed:()=>ke,createTextVNode:()=>it,createVNode:()=>se,defineComponent:()=>Ce,reactive:()=>zi,ref:()=>He,watch:()=>et,watchEffect:()=>Al},Xo={},Ns.d(Xo,Wu),Xo),WS=(0,Ee.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Ee.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),BS=(0,Ee.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,Ee.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Ee.computed)({get:function(){return e.checked},set:function(i){return n("update:modelValue",i)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,Ee.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(i){return i.stopPropagation()}},[(0,Ee.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Ee.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),zS=(0,Ee.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,Ee.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Ee.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Ee.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var Wu,Xo;function Ua(e){return Ua=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},Ua(e)}function sp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xn(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,o=i||{},a=o.key,d=o.index,g=o.type,l=g===void 0?"content":g,p=o.showComma,s=p!==void 0&&p,r=o.length,c=r===void 0?1:r,u=sp(e);if(u==="array"){var h=Bu(e.map(function(v,y,$){return Xn(v,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==$.length-1,length:c,type:l})}));return[Xn("[",t,n,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(h,Xn("]",t,n,{showComma:s,length:e.length,type:"arrayEnd"})[0])}if(u==="object"){var f=Object.keys(e),m=Bu(f.map(function(v,y,$){return Xn(e[v],/^[a-zA-Z_]\w*$/.test(v)?"".concat(t,".").concat(v):"".concat(t,'["').concat(v,'"]'),n+1,{key:v,showComma:y!==$.length-1,length:c,type:l})}));return[Xn("{",t,n,{showComma:!1,key:a,index:d,length:f.length,type:"objectStart"})[0]].concat(m,Xn("}",t,n,{showComma:s,length:f.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:a,index:d,path:t,showComma:s,length:c,type:l}]}function Bu(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Ds(e),n=[];t.length;){var i=t.shift();Array.isArray(i)?t.unshift.apply(t,Ds(i)):n.push(i)}return n}function Va(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(Ua(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(a){return Va(a,t)});return t.set(e,n),n}var i={};for(var o in e)i[o]=Va(e[o],t);return t.set(e,i),i}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ju(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zu(Object(n),!0).forEach(function(i){Fs(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var op={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const jS=(0,Ee.defineComponent)({name:"TreeNode",props:ju(ju({},op),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,i=(0,Ee.computed)(function(){return sp(e.node.content)}),o=(0,Ee.computed)(function(){return"vjs-value vjs-value-".concat(i.value)}),a=(0,Ee.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),d=(0,Ee.computed)(function(){return e.selectableType==="multiple"}),g=(0,Ee.computed)(function(){return e.selectableType==="single"}),l=(0,Ee.computed)(function(){return e.nodeSelectable(e.node)&&(d.value||g.value)}),p=(0,Ee.reactive)({editing:!1}),s=function(y){var $,_,S=(_=($=y.target)===null||$===void 0?void 0:$.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",S,e.node.path)},r=(0,Ee.computed)(function(){var y,$=(y=e.node)===null||y===void 0?void 0:y.content;return $===null?$="null":$===void 0&&($="undefined"),i.value==="string"?'"'.concat($,'"'):$+""}),c=function(){var y=e.renderNodeValue;return y?y({node:e.node,defaultValue:r.value}):r.value},u=function(){n("bracketsClick",!e.collapsed,e.node)},h=function(){n("iconClick",!e.collapsed,e.node)},f=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(y){if(e.editable&&!p.editing){p.editing=!0;var $=function _(S){var b;S.target!==y.target&&((b=S.target)===null||b===void 0?void 0:b.parentElement)!==y.target&&(p.editing=!1,document.removeEventListener("click",_))};document.removeEventListener("click",$),document.addEventListener("click",$)}};return function(){var y,$=e.node;return(0,Ee.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,style:e.style},[e.showLineNumber&&(0,Ee.createVNode)("span",{class:"vjs-node-index"},[$.id+1]),e.showSelectController&&l.value&&$.type!=="objectEnd"&&$.type!=="arrayEnd"&&(0,Ee.createVNode)(BS,{isMultiple:d.value,checked:e.checked,onChange:f},null),(0,Ee.createVNode)("div",{class:"vjs-indent"},[Array.from(Array($.level)).map(function(_,S){return(0,Ee.createVNode)("div",{key:S,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,Ee.createVNode)(zS,{nodeType:$.type,onClick:h},null)]),$.key&&(0,Ee.createVNode)("span",{class:"vjs-key"},[(y=e.renderNodeKey,y?y({node:e.node,defaultKey:a.value||""}):a.value),(0,Ee.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,Ee.createVNode)("span",null,[$.type!=="content"&&$.content?(0,Ee.createVNode)(WS,{data:$.content.toString(),onClick:u},null):(0,Ee.createVNode)("span",{class:o.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:v,onDblclick:e.editable&&e.editableTrigger==="dblclick"?v:void 0},[e.editable&&p.editing?(0,Ee.createVNode)("input",{value:r.value,onChange:s,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):c()]),$.showComma&&(0,Ee.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,Ee.createVNode)("span",{class:"vjs-comment"},[(0,Ee.createTextVNode)(" // "),$.length,(0,Ee.createTextVNode)(" items ")])])])}}});function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?Hu(Object(n),!0).forEach(function(i){Fs(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}const HS=(0,Ee.defineComponent)({name:"Tree",props:Lt(Lt({},op),{},{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,o=(0,Ee.ref)(),a=(0,Ee.computed)(function(){return Xn(e.data,e.rootPath)}),d=function($,_){return a.value.reduce(function(S,b){var M,I=b.level>=$||b.length>=_,L=(M=e.pathCollapsible)===null||M===void 0?void 0:M.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!I&&!L?S:Lt(Lt({},S),{},Fs({},b.path,1))},{})},g=(0,Ee.reactive)({translateY:0,visibleData:null,hiddenPaths:d(e.deep,e.collapsedNodeLength)}),l=(0,Ee.computed)(function(){for(var $=null,_=[],S=a.value.length,b=0;b<S;b++){var M=Lt(Lt({},a.value[b]),{},{id:b}),I=g.hiddenPaths[M.path];if($&&$.path===M.path){var L=$.type==="objectStart",T=Lt(Lt(Lt({},M),$),{},{showComma:M.showComma,content:L?"{...}":"[...]",type:L?"objectCollapsed":"arrayCollapsed"});$=null,_.push(T)}else{if(I&&!$){$=M;continue}if($)continue;_.push(M)}}return _}),p=(0,Ee.computed)(function(){var $=e.selectedValue;return $&&e.selectableType==="multiple"&&Array.isArray($)?$:[$]}),s=(0,Ee.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),r=function(){var $=l.value;if(e.virtual){var _,S=e.height/e.itemHeight,b=((_=o.value)===null||_===void 0?void 0:_.scrollTop)||0,M=Math.floor(b/e.itemHeight),I=M<0?0:M+S>$.length?$.length-S:M;I<0&&(I=0);var L=I+S;g.translateY=I*e.itemHeight,g.visibleData=$.filter(function(T,k){return k>=I&&k<L})}else g.visibleData=$},c=function(){r()},u=function($){var _,S,b=$.path,M=e.selectableType;if(M==="multiple"){var I=p.value.findIndex(function(x){return x===b}),L=Ds(p.value);I!==-1?L.splice(I,1):L.push(b),n("update:selectedValue",L),n("selectedChange",L,Ds(p.value))}else if(M==="single"&&p.value[0]!==b){var T=(_=p.value,S=1,function(x){if(Array.isArray(x))return x}(_)||function(x,C){var w=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(w!=null){var A,E,R=[],O=!0,N=!1;try{for(w=w.call(x);!(O=(A=w.next()).done)&&(R.push(A.value),!C||R.length!==C);O=!0);}catch(F){N=!0,E=F}finally{try{O||w.return==null||w.return()}finally{if(N)throw E}}return R}}(_,S)||rp(_,S)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
591
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],k=b;n("update:selectedValue",k),n("selectedChange",k,T)}},h=function($){n("nodeClick",$)},f=function($,_){if($)g.hiddenPaths=Lt(Lt({},g.hiddenPaths),{},Fs({},_,1));else{var S=Lt({},g.hiddenPaths);delete S[_],g.hiddenPaths=S}},m=function($,_){e.collapsedOnClickBrackets&&f($,_.path),n("bracketsClick",$,_)},v=function($,_){f($,_.path),n("iconClick",$,_)},y=function($,_){var S=Va(e.data),b=e.rootPath;new Function("data","val","data".concat(_.slice(b.length),"=val"))(S,$),n("update:data",S)};return(0,Ee.watchEffect)(function(){s.value&&function($){throw new Error("[VueJSONPretty] ".concat($))}(s.value)}),(0,Ee.watchEffect)(function(){l.value&&r()}),(0,Ee.watch)(function(){return e.deep},function($){$&&(g.hiddenPaths=d($,e.collapsedNodeLength))}),(0,Ee.watch)(function(){return e.collapsedNodeLength},function($){$&&(g.hiddenPaths=d(e.deep,$))}),function(){var $,_,S=($=e.renderNodeKey)!==null&&$!==void 0?$:i.renderNodeKey,b=(_=e.renderNodeValue)!==null&&_!==void 0?_:i.renderNodeValue,M=g.visibleData&&g.visibleData.map(function(I){return(0,Ee.createVNode)(jS,{key:I.id,node:I,collapsed:!!g.hiddenPaths[I.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:p.value.includes(I.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:S,renderNodeValue:b,onNodeClick:h,onBracketsClick:m,onIconClick:v,onSelectedChange:u,onValueChange:y,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,Ee.createVNode)("div",{ref:o,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?c:void 0,style:e.showLineNumber?Lt({paddingLeft:"".concat(12*Number(a.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,Ee.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,Ee.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,Ee.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[M])])]):M])}}});var ap=ip.Z;const US={class:"notification is-danger is-light"},VS={key:1},GS={key:2},YS={key:0,class:"message"},KS={class:"message-body"},mt=Ce({__name:"ErrorMessage",props:{error:{type:n_,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,i=t,o=ke(()=>{var d;if(n.error.response)return(d=n.error.response)==null?void 0:d.data}),a=()=>{i("dispose")};return(d,g)=>{var l;return Y(),ie(Pe,null,[D("div",US,[e.disposable?(Y(),ie("button",{key:0,class:"delete",onClick:a})):ge("",!0),o.value?(Y(),ie("p",VS,Se(o.value.message),1)):(Y(),ie("p",GS,Se(e.error),1))]),(l=o.value)!=null&&l.detail?(Y(),ie("article",YS,[D("div",KS,[se(ce(ap),{data:o.value.detail},null,8,["data"])])])):ge("",!0)],64)}}}),ZS={key:0,class:"control"},XS=Ce({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=He(!1),i=He(!1),o=_S(),a=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await o.perform(t.tag.id),n.value=!0)},d=()=>{i.value=!0},g=()=>{i.value=!1},l=p=>`tag:"${p}"`;return(p,s)=>{const r=Xe("router-link");return n.value?ge("",!0):(Y(),ie("div",ZS,[D("div",{class:"tags has-addons are-medium",onMouseover:d,onMouseleave:g},[se(r,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:l(e.tag.name)}}},{default:nt(()=>[it(Se(e.tag.name),1)]),_:1},8,["to"]),i.value&&e.deletable?(Y(),ie("a",{key:0,class:"tag is-delete",onClick:a})):ge("",!0)],32)]))}}}),QS={class:"field is-grouped is-grouped-multiline"},Xr=Ce({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(Y(),ie("div",QS,[(Y(!0),ie(Pe,null,Pt(e.tags,i=>(Y(),xe(XS,{tag:i,key:i.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),qS={key:0,class:"box"},JS={class:"table is-fullwidth is-completely-borderless"},ex={key:0},tx={class:"help"},nx=Ce({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(!1),o=He(),a=p=>{o.value=p},d=()=>{o.value=void 0},g=()=>{n("delete")},l=()=>{i.value=!0};return(p,s)=>{const r=Xe("router-link");return i.value?ge("",!0):(Y(),ie("div",qS,[o.value?(Y(),xe(mt,{key:0,class:"block",error:o.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),D("p",null,[se(tp,{alert:e.alert,onDelete:g,onSetError:a},null,8,["alert"])]),se(r,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:nt(()=>[it(Se(e.alert.id),1)]),_:1},8,["to"]),D("table",JS,[D("tr",null,[s[0]||(s[0]=D("th",null,"Rule",-1)),D("td",null,[se(r,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:nt(()=>[it(Se(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[s[1]||(s[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(np,{artifacts:e.alert.artifacts,onDelete:l},null,8,["artifacts"])])]),e.alert.tags.length>0?(Y(),ie("tr",ex,[s[2]||(s[2]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),D("p",tx,"Created at: "+Se(e.alert.createdAt),1)]))}}}),ix={key:0,class:"message is-warning"},rx={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},sx={key:0,class:"pagination-list"},ox={key:1,class:"pagination-list"},ax={key:0},lx={key:1},cx={key:2},ux={key:3},hx={key:4},dx={key:5},Vl=Ce({__name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,{emit:t}){const n=e,i=t,o=c=>c===n.currentPage+1||c===n.currentPage-1,a=ke(()=>Math.ceil(n.total/n.pageSize)),d=ke(()=>a.value===1),g=ke(()=>n.currentPage>1),l=ke(()=>n.currentPage-1===1),p=ke(()=>n.currentPage<a.value),s=ke(()=>n.currentPage+1===a.value),r=c=>{i("update-page",c)};return(c,u)=>e.total===0?(Y(),ie("article",ix,u[6]||(u[6]=[D("div",{class:"message-body"},"There is no result to show.",-1)]))):(Y(),ie("nav",rx,[d.value?(Y(),ie("ul",sx,[D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:u[0]||(u[0]=h=>r(1))},"1")])])):(Y(),ie("ul",ox,[g.value&&!l.value?(Y(),ie("li",ax,[D("a",{class:"pagination-link mt-2",onClick:u[1]||(u[1]=h=>r(1))}," 1")])):ge("",!0),g.value&&!l.value&&!o(2)?(Y(),ie("li",lx,u[7]||(u[7]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):ge("",!0),g.value?(Y(),ie("li",cx,[D("a",{class:"pagination-link mt-2",onClick:u[2]||(u[2]=h=>r(e.currentPage-1))},Se(e.currentPage-1),1)])):ge("",!0),D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:u[3]||(u[3]=h=>r(e.currentPage))},Se(e.currentPage),1)]),p.value?(Y(),ie("li",ux,[D("a",{class:"pagination-link mt-2",onClick:u[4]||(u[4]=h=>r(e.currentPage+1))},Se(e.currentPage+1),1)])):ge("",!0),p.value&&!s.value&&!o(a.value-1)?(Y(),ie("li",hx,u[8]||(u[8]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):ge("",!0),p.value&&!s.value?(Y(),ie("li",dx,[D("a",{class:"pagination-link mt-2",onClick:u[5]||(u[5]=h=>r(a.value))},Se(a.value),1)])):ge("",!0)]))]))}}),fx={key:0},px={class:"help"},gx={key:1},lp=Ce({__name:"AlertsItem",props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,o=g=>{i("update-page",g)},a=()=>{i("refresh")},d=ke(()=>n.alerts.results.length>0);return(g,l)=>d.value?(Y(),ie("div",fx,[(Y(!0),ie(Pe,null,Pt(e.alerts.results,p=>(Y(),xe(nx,{alert:p,key:p.id,onDelete:a},null,8,["alert"]))),128)),se(Vl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:o},null,8,["total","currentPage","pageSize"]),D("p",px,"("+Se(e.alerts.total)+" results in total, "+Se(e.alerts.results.length)+" shown)",1)])):(Y(),ie("div",gx,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),mx=Ce({name:"LoadingItem"}),vx={class:"has-text-centered"},yx={class:"fa-3x"};function bx(e,t,n,i,o,a){const d=Xe("font-awesome-icon");return Y(),ie("div",vx,[D("div",yx,[se(d,{icon:"spinner",spin:""})])])}const $n=Vr(mx,[["render",bx]]),wx={class:"block"},_x={class:"field has-addons"},Sx={class:"control is-expanded"},xx={class:"control"},Cx={class:"icon is-small"},$x={class:"control"},Ax={class:"icon is-small"},kx={key:0,class:"content"},Mx={key:0,class:"block"},Ex=Ce({__name:"AlertsWrapper",setup(e){const t=Ni("page","1"),n=Ni("q",""),i=He(!1),o=vo(),a=async()=>{const s={q:n.value,page:parseInt(t.value)};return await o.perform(s)},d=s=>{t.value=s.toString()},g=async()=>{t.value="1",await a()},l=g,p=Ur(i);return ct(async()=>{await a()}),et(t,async()=>{await a()}),et(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,r)=>{var h,f;const c=Xe("font-awesome-icon"),u=Xe("router-link");return Y(),ie(Pe,null,[D("div",wx,[D("div",_x,[D("p",Sx,[_l(D("input",{class:"input",type:"text","onUpdate:modelValue":r[0]||(r[0]=m=>lt(n)?n.value=m:null)},null,512),[[Ll,ce(n)]])]),D("p",xx,[D("a",{class:"button is-primary",onClick:g},[D("span",Cx,[se(c,{icon:"search"})]),r[2]||(r[2]=D("span",null,"Search",-1))])]),D("p",$x,[D("a",{class:"button is-info",onClick:r[1]||(r[1]=m=>ce(p)())},[D("span",Ax,[se(c,{icon:"question"})]),r[3]||(r[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",kx,[r[6]||(r[6]=Ml('<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>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),D("ul",null,[D("li",null,[se(u,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:nt(()=>r[4]||(r[4]=[it("rule.id:foo AND artifact.data:example.com")])),_:1})]),D("li",null,[se(u,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:nt(()=>r[5]||(r[5]=[it("tag:foo AND created_at >= 2020-01-01")])),_:1})])])])):ge("",!0)]),ce(o).performCount>0?(Y(),ie("div",Mx,[ce(o).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(o).isError?(Y(),xe(mt,{key:1,error:(h=ce(o).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(f=ce(o).last)!=null&&f.value?(Y(),xe(lp,{key:2,alerts:ce(o).last.value,page:ce(t),onUpdatePage:d,onRefresh:ce(l)},null,8,["alerts","page","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),Tx={class:"columns"},Lx={class:"column is-one-third"},Rx={class:"card"},Ix={class:"card-content"},Ox={class:"level is-mobile"},Nx={class:"level-item"},Dx={class:"title"},Fx={class:"level-item"},Px={class:"icon"},Wx={class:"column is-one-third"},Bx={class:"card"},zx={class:"card-content"},jx={class:"level is-mobile"},Hx={class:"level-item"},Ux={class:"title"},Vx={class:"level-item"},Gx={class:"icon"},Yx={class:"column is-one-third"},Kx={class:"card"},Zx={class:"card-content"},Xx={class:"level is-mobile"},Qx={class:"level-item"},qx={class:"title"},Jx={class:"level-item"},eC={class:"icon"},tC=Ce({__name:"OverviewCards",setup(e){const t=vo(),n=Jf(),i=Ul();return ct(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),i.perform({q:"",page:1,limit:0})}),(o,a)=>{var g,l,p,s,r,c;const d=Xe("font-awesome-icon");return Y(),ie("div",Tx,[D("div",Lx,[D("div",Rx,[D("div",Ix,[D("div",Ox,[D("div",Nx,[D("div",null,[a[0]||(a[0]=D("h3",{class:"subtitle is-spaced"},"Rules",-1)),D("h1",Dx,Se(((l=(g=ce(n).last)==null?void 0:g.value)==null?void 0:l.total)??"N/A"),1)])]),D("div",Fx,[D("span",Px,[se(d,{icon:"file",size:"2x"})])])])])])]),D("div",Wx,[D("div",Bx,[D("div",zx,[D("div",jx,[D("div",Hx,[D("div",null,[a[1]||(a[1]=D("h3",{class:"subtitle is-spaced"},"Alerts",-1)),D("h1",Ux,Se(((s=(p=ce(t).last)==null?void 0:p.value)==null?void 0:s.total)??"N/A"),1)])]),D("div",Vx,[D("span",Gx,[se(d,{icon:"bell",size:"2x"})])])])])])]),D("div",Yx,[D("div",Kx,[D("div",Zx,[D("div",Xx,[D("div",Qx,[D("div",null,[a[2]||(a[2]=D("h3",{class:"subtitle is-spaced"},"Artifacts",-1)),D("h1",qx,Se(((c=(r=ce(i).last)==null?void 0:r.value)==null?void 0:c.total)??"N/A"),1)])]),D("div",Jx,[D("span",eC,[se(d,{icon:"ticket",size:"2x"})])])])])])])])}}}),nC=Ce({__name:"AlertsView",setup(e){return Cn("Alerts - Mihari"),(t,n)=>(Y(),ie(Pe,null,[se(tC),n[0]||(n[0]=D("hr",null,null,-1)),se(Ex)],64))}}),cp=Ce({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=He(1),i=ke(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),o=vo(),a=async()=>{const g={q:i.value,page:n.value};return await o.perform(g)},d=g=>{n.value=g};return ct(async()=>{await a()}),et([t,n],async()=>{await a()}),(g,l)=>{var p,s;return Y(),ie(Pe,null,[ce(o).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(o).isError?(Y(),xe(mt,{key:1,error:(p=ce(o).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(s=ce(o).last)!=null&&s.value?(Y(),xe(lp,{key:2,page:n.value.toString(),alerts:ce(o).last.value,onUpdatePage:d},null,8,["page","alerts"])):ge("",!0)],64)}}}),iC={class:"block"},rC={class:"is-size-2"},sC={class:"is-clearfix"},oC={class:"table is-fullwidth is-completely-borderless"},aC={key:0},lC={class:"help"},cC={class:"block"},uC=Ce({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(),o=l=>{i.value=l},a=()=>{i.value=void 0},d=()=>{n("delete")},g=d;return(l,p)=>{const s=Xe("router-link");return Y(),ie(Pe,null,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:a},null,8,["error"])):ge("",!0),D("div",iC,[D("h2",rC,Se(e.alert.id),1),D("p",sC,[se(tp,{alert:e.alert,onDelete:d,onSetError:o},null,8,["alert"])]),D("table",oC,[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:nt(()=>[it(Se(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[p[1]||(p[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(np,{artifacts:e.alert.artifacts,onDelete:ce(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Y(),ie("tr",aC,[p[2]||(p[2]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),D("p",lC,"Created at: "+Se(e.alert.createdAt),1)]),p[4]||(p[4]=D("hr",null,null,-1)),D("div",cC,[p[3]||(p[3]=D("h2",{class:"is-size-2 block"},"Related Alerts",-1)),se(cp,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),hC=Ce({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=ji(),i=TS(),o=()=>{n.push("/")};return ct(async()=>{await i.perform(t.id)}),(a,d)=>{var g,l;return Y(),ie(Pe,null,[ce(i).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(i).isError?(Y(),xe(mt,{key:1,error:(g=ce(i).last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(l=ce(i).last)!=null&&l.value?(Y(),xe(uC,{key:2,alert:ce(i).last.value,onDelete:o},null,8,["alert"])):ge("",!0)],64)}}}),dC=Ce({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Alert:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,o)=>(Y(),xe(hC,{id:parseInt(e.id)},null,8,["id"]))}}),fC={class:"buttons is-pulled-right"},pC=["href"],gC={class:"icon is-small"},mC={class:"icon is-small"},vC={class:"icon is-small"},yC={class:"icon is-small"},bC={key:0},wC={class:"modal is-active"},_C={class:"modal-card"},SC={class:"modal-card-head"},xC={class:"modal-card-body"},CC=Ce({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,o=ke(()=>`/api/artifacts/${n.artifact.id}`),a=He(!1),d=qf(),g=xS(),l=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await d.perform(n.artifact.id),i("delete")}catch(c){tt.isAxiosError(c)&&i("set-error",c)}},p=async()=>{try{const r=await g.perform(n.artifact.id);i("set-message",r)}catch(r){tt.isAxiosError(r)&&i("set-error",r)}},s=Ur(a);return(r,c)=>{const u=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("span",fC,[D("a",{class:"button is-link is-light is-small",href:o.value,target:"_blank"},[c[3]||(c[3]=D("span",null,"JSON",-1)),D("span",gC,[se(u,{icon:"barcode"})])],8,pC),e.artifact.metadata?(Y(),ie("button",{key:0,class:"button is-info is-light is-small",onClick:c[0]||(c[0]=h=>ce(s)())},[c[4]||(c[4]=D("span",null,"Metadata",-1)),D("span",mC,[se(u,{icon:"info-circle"})])])):ge("",!0),D("button",{class:"button is-primary is-light is-small",onClick:p},[c[5]||(c[5]=D("span",null,"Enrich",-1)),D("span",vC,[ce(g).isRunning?(Y(),xe(u,{key:0,icon:"spinner",spin:""})):(Y(),xe(u,{key:1,icon:"lightbulb"}))])]),D("button",{class:"button is-light is-small",onClick:l},[c[6]||(c[6]=D("span",null,"Delete",-1)),D("span",yC,[se(u,{icon:"times"})])])]),e.artifact.metadata&&a.value?(Y(),ie("div",bC,[D("div",wC,[D("div",{class:"modal-background",onClick:c[1]||(c[1]=h=>ce(s)())}),D("div",_C,[D("header",SC,[c[7]||(c[7]=D("p",{class:"modal-card-title"},"Metadata",-1)),D("button",{class:"delete","aria-label":"close",onClick:c[2]||(c[2]=h=>ce(s)())})]),D("section",xC,[se(ce(ap),{data:e.artifact.metadata},null,8,["data"])])])])])):ge("",!0)],64)}}}),up=Vr(CC,[["__scopeId","data-v-dac610f8"]]),$C={class:"notification is-info is-light"},yo=Ce({__name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=t,i=()=>{n("dispose")};return(o,a)=>(Y(),ie("div",$C,[e.disposable?(Y(),ie("button",{key:0,class:"delete",onClick:i})):ge("",!0),D("p",null,Se(e.message.message),1)]))}}),AC={class:"box"},kC={class:"block"},MC={class:"table is-fullwidth is-completely-borderless"},EC={key:0},TC={class:"help"},LC=Ce({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(),o=He(),a=s=>{i.value=s},d=()=>{i.value=void 0},g=()=>{n("delete")},l=s=>{s.queued&&(o.value=s)},p=()=>{o.value=void 0};return(s,r)=>{const c=Xe("router-link");return Y(),ie("div",AC,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),o.value?(Y(),xe(yo,{key:1,class:"block",message:o.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),D("div",kC,[D("p",null,[se(up,{artifact:e.artifact,onDelete:g,onSetError:a,onSetMessage:l},null,8,["artifact"])]),se(c,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:nt(()=>[it(Se(e.artifact.id),1)]),_:1},8,["to"])]),D("table",MC,[D("tr",null,[r[0]||(r[0]=D("th",null,"Data",-1)),D("td",null,Se(e.artifact.data),1)]),D("tr",null,[r[1]||(r[1]=D("th",null,"Data Type",-1)),D("td",null,Se(e.artifact.dataType),1)]),D("tr",null,[r[2]||(r[2]=D("th",null,"Source",-1)),D("td",null,Se(e.artifact.source),1)]),D("tr",null,[r[3]||(r[3]=D("th",null,"Query",-1)),D("td",null,Se(ce(Dr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),ie("tr",EC,[r[4]||(r[4]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):ge("",!0)]),r[5]||(r[5]=D("p",{class:"block is-clearfix"},null,-1)),D("p",TC,"Created at: "+Se(e.artifact.createdAt),1)])}}}),RC={key:0},IC={class:"help"},OC={key:1},NC=Ce({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,o=ke(()=>n.artifacts.results.length>0),a=g=>{i("update-page",g)},d=()=>{i("refresh")};return(g,l)=>o.value?(Y(),ie("div",RC,[(Y(!0),ie(Pe,null,Pt(e.artifacts.results,p=>(Y(),xe(LC,{artifact:p,key:p.id,onDelete:d},null,8,["artifact"]))),128)),se(Vl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:a},null,8,["total","currentPage","pageSize"]),D("p",IC," ("+Se(e.artifacts.total)+" results in total, "+Se(e.artifacts.results.length)+" shown) ",1)])):(Y(),ie("div",OC,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1)])))}}),DC={class:"block"},FC={class:"field has-addons"},PC={class:"control is-expanded"},WC={class:"control"},BC={class:"icon is-small"},zC={class:"control"},jC={class:"icon is-small"},HC={key:0,class:"content mt-3"},UC={key:0,class:"block"},VC=Ce({__name:"ArtifactsWrapper",setup(e){const t=Ni("page","1"),n=Ni("q",""),i=He(!1),o=Ul(),a=async()=>{const s={q:n.value,page:parseInt(t.value)};return await o.perform(s)},d=s=>{t.value=s.toString()},g=async()=>{t.value="1",await a()},l=g,p=Ur(i);return ct(async()=>{await a()}),et(t,async()=>{await a()}),et(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,r)=>{var u,h;const c=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("div",DC,[D("div",FC,[D("p",PC,[_l(D("input",{class:"input",type:"text","onUpdate:modelValue":r[0]||(r[0]=f=>lt(n)?n.value=f:null)},null,512),[[Ll,ce(n)]])]),D("p",WC,[D("a",{class:"button is-primary",onClick:g},[D("span",BC,[se(c,{icon:"search"})]),r[2]||(r[2]=D("span",null,"Search",-1))])]),D("p",zC,[D("a",{class:"button is-info",onClick:r[1]||(r[1]=f=>ce(p)())},[D("span",jC,[se(c,{icon:"question"})]),r[3]||(r[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",HC,r[4]||(r[4]=[Ml('<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>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</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)]))):ge("",!0)]),ce(o).performCount>0?(Y(),ie("div",UC,[ce(o).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(o).isError?(Y(),xe(mt,{key:1,error:(u=ce(o).last)==null?void 0:u.error},null,8,["error"])):ge("",!0),(h=ce(o).last)!=null&&h.value?(Y(),xe(NC,{key:2,artifacts:ce(o).last.value,onUpdatePage:d,onRefresh:ce(l)},null,8,["artifacts","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),GC=Ce({__name:"ArtifactsView",setup(e){const t=()=>{Cn("Artifacts - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),xe(VC))}}),YC={class:"tags are-medium"},KC=Ce({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,i)=>{const o=Xe("router-link");return Y(),ie("div",YC,[se(o,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:nt(()=>[it(Se(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),ZC={class:"tags are-medium"},XC=Ce({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,i)=>{const o=Xe("router-link");return Y(),ie("div",ZC,[(Y(!0),ie(Pe,null,Pt(e.cpes,a=>(Y(),xe(o,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:nt(()=>[it(Se(a.name),1)]),_:2},1032,["to"]))),128))])}}}),QC={class:"field is-grouped is-grouped-multiline"},qC={class:"tags has-addons are-medium"},JC={class:"tag is-dark"},e$=Ce({__name:"DnsRecordsItem",props:{dnsRecords:{type:Array,required:!0}},setup(e){const t=({resource:n,value:i})=>`dns_record.value:"${i}" AND dns_record.resource:"${n}"`;return(n,i)=>{const o=Xe("router-link");return Y(),ie("div",QC,[(Y(!0),ie(Pe,null,Pt(e.dnsRecords,(a,d)=>(Y(),ie("div",{class:"control",key:d},[D("div",qC,[D("span",JC,Se(a.resource),1),se(o,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:a.resource,value:a.value})}}},{default:nt(()=>[it(Se(ce(Dr)(a.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),t$={class:"tags are-medium"},n$=Ce({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,i)=>{const o=Xe("router-link");return Y(),ie("div",t$,[(Y(!0),ie(Pe,null,Pt(e.ports,a=>(Y(),xe(o,{class:"tag",key:a.number,to:{name:"Artifacts",query:{q:t(a.number)}}},{default:nt(()=>[it(Se(a.number),1)]),_:2},1032,["to"]))),128))])}}}),i$={class:"tags are-medium"},r$=Ce({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,i)=>{const o=Xe("router-link");return Y(),ie("div",i$,[(Y(!0),ie(Pe,null,Pt(e.reverseDnsNames,a=>(Y(),xe(o,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:nt(()=>[it(Se(a.name),1)]),_:2},1032,["to"]))),128))])}}}),s$={class:"tags are-medium"},o$=Ce({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,i)=>{const o=Xe("router-link");return Y(),ie("div",s$,[(Y(!0),ie(Pe,null,Pt(e.vulnerabilities,a=>(Y(),xe(o,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:nt(()=>[it(Se(a.name),1)]),_:2},1032,["to"]))),128))])}}}),a$={class:"field is-grouped is-grouped-multiline"},l$={class:"control"},c$={class:"tags has-addons are-medium"},u$={class:"tag"},h$={class:"control"},d$={class:"tags has-addons are-medium"},f$={class:"tag"},p$={class:"control"},g$={class:"tags has-addons are-medium"},m$={class:"tag"},v$={class:"control"},y$={class:"tags has-addons are-medium"},b$={class:"tag"},w$=Ce({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>{var i;return Y(),ie("div",a$,[D("div",l$,[D("div",c$,[n[0]||(n[0]=D("span",{class:"tag is-dark"},"Registrar",-1)),D("span",u$,Se(((i=e.whoisRecord.registrar)==null?void 0:i.name)||"N/A"),1)])]),D("div",h$,[D("div",d$,[n[1]||(n[1]=D("span",{class:"tag is-dark"},"Created on",-1)),D("span",f$,Se(e.whoisRecord.createdOn||"N/A"),1)])]),D("div",p$,[D("div",g$,[n[2]||(n[2]=D("span",{class:"tag is-dark"},"Updated on",-1)),D("span",m$,Se(e.whoisRecord.updatedOn||"N/A"),1)])]),D("div",v$,[D("div",y$,[n[3]||(n[3]=D("span",{class:"tag is-dark"},"Expires on",-1)),D("span",b$,Se(e.whoisRecord.expiresOn||"N/A"),1)])])])}}}),_$=["href"],S$=["src"],x$=Ce({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Gd();return(n,i)=>(Y(),ie("a",{href:e.link.href(e.data),class:Br(["tag",ce(t)?"":"is-white"]),target:"_blank"},[D("img",{src:e.link.favicon(),alt:"favicon"},null,8,S$),D("span",null,Se(e.link.name),1)],10,_$))}}),C$=Vr(x$,[["__scopeId","data-v-d0b695fc"]]);class Bt{constructor(){Ne(this,"baseURL");this.baseURL="https://example.com"}favicon(){return"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url="+this.baseURL}}class $$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class A$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class k$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class M$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class E$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class T$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class L$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class R$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class hp extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class I$ extends hp{constructor(){super();Ne(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class dp extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class O$ extends dp{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class N$ extends dp{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class D$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Gl extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class F$ extends Gl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class P$ extends Gl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class W$ extends Gl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B$(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 o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),n}var fp={exports:{}};const z$={},j$=Object.freeze(Object.defineProperty({__proto__:null,default:z$},Symbol.toStringTag,{value:"Module"})),Uu=B$(j$);/**
592
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
593
+ *
594
+ * @version 0.11.0
595
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
596
+ * @copyright Chen, Yi-Cyuan 2014-2024
597
+ * @license MIT
598
+ */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var o=!n&&typeof self=="object",a=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=fi:o&&(i=self);var d=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],s=[24,16,8,0],r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],u=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var h=function(b,M){return function(I){return new $(M,!0).update(I)[b]()}},f=function(b){var M=h("hex",b);a&&(M=m(M,b)),M.create=function(){return new $(b)},M.update=function(T){return M.create().update(T)};for(var I=0;I<c.length;++I){var L=c[I];M[L]=h(L,b)}return M},m=function(b,M){var I=Uu,L=Uu.Buffer,T=M?"sha224":"sha256",k;L.from&&!i.JS_SHA256_NO_BUFFER_FROM?k=L.from:k=function(C){return new L(C)};var x=function(C){if(typeof C=="string")return I.createHash(T).update(C,"utf8").digest("hex");if(C==null)throw new Error(t);return C.constructor===ArrayBuffer&&(C=new Uint8Array(C)),Array.isArray(C)||ArrayBuffer.isView(C)||C.constructor===L?I.createHash(T).update(k(C)).digest("hex"):b(C)};return x},v=function(b,M){return function(I,L){return new _(I,M,!0).update(L)[b]()}},y=function(b){var M=v("hex",b);M.create=function(T){return new _(T,b)},M.update=function(T,k){return M.create(T).update(k)};for(var I=0;I<c.length;++I){var L=c[I];M[L]=v(L,b)}return M};function $(b,M){M?(u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(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=b}$.prototype.update=function(b){if(!this.finalized){var M,I=typeof b;if(I!=="string"){if(I==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);M=!0}for(var L,T=0,k,x=b.length,C=this.blocks;T<x;){if(this.hashed&&(this.hashed=!1,C[0]=this.block,this.block=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),M)for(k=this.start;T<x&&k<64;++T)C[k>>>2]|=b[T]<<s[k++&3];else for(k=this.start;T<x&&k<64;++T)L=b.charCodeAt(T),L<128?C[k>>>2]|=L<<s[k++&3]:L<2048?(C[k>>>2]|=(192|L>>>6)<<s[k++&3],C[k>>>2]|=(128|L&63)<<s[k++&3]):L<55296||L>=57344?(C[k>>>2]|=(224|L>>>12)<<s[k++&3],C[k>>>2]|=(128|L>>>6&63)<<s[k++&3],C[k>>>2]|=(128|L&63)<<s[k++&3]):(L=65536+((L&1023)<<10|b.charCodeAt(++T)&1023),C[k>>>2]|=(240|L>>>18)<<s[k++&3],C[k>>>2]|=(128|L>>>12&63)<<s[k++&3],C[k>>>2]|=(128|L>>>6&63)<<s[k++&3],C[k>>>2]|=(128|L&63)<<s[k++&3]);this.lastByteIndex=k,this.bytes+=k-this.start,k>=64?(this.block=C[16],this.start=k-64,this.hash(),this.hashed=!0):this.start=k}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,M=this.lastByteIndex;b[16]=this.block,b[M>>>2]|=p[M&3],this.block=b[16],M>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},$.prototype.hash=function(){var b=this.h0,M=this.h1,I=this.h2,L=this.h3,T=this.h4,k=this.h5,x=this.h6,C=this.h7,w=this.blocks,A,E,R,O,N,F,z,U,j,B,V;for(A=16;A<64;++A)N=w[A-15],E=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[A-2],R=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[A]=w[A-16]+E+w[A-7]+R<<0;for(V=M&I,A=0;A<64;A+=4)this.first?(this.is224?(U=300032,N=w[0]-1413257819,C=N-150054599<<0,L=N+24177077<<0):(U=704751109,N=w[0]-210244248,C=N-1521486534<<0,L=N+143694565<<0),this.first=!1):(E=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),R=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),U=b&M,O=U^b&I^V,z=T&k^~T&x,N=C+R+z+r[A]+w[A],F=E+O,C=L+N<<0,L=N+F<<0),E=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),R=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),j=L&b,O=j^L&M^U,z=C&T^~C&k,N=x+R+z+r[A+1]+w[A+1],F=E+O,x=I+N<<0,I=N+F<<0,E=(I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10),R=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),B=I&L,O=B^I&b^j,z=x&C^~x&T,N=k+R+z+r[A+2]+w[A+2],F=E+O,k=M+N<<0,M=N+F<<0,E=(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10),R=(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7),V=M&I,O=V^M&L^B,z=k&x^~k&C,N=T+R+z+r[A+3]+w[A+3],F=E+O,T=b+N<<0,b=N+F<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+M<<0,this.h2=this.h2+I<<0,this.h3=this.h3+L<<0,this.h4=this.h4+T<<0,this.h5=this.h5+k<<0,this.h6=this.h6+x<<0,this.h7=this.h7+C<<0},$.prototype.hex=function(){this.finalize();var b=this.h0,M=this.h1,I=this.h2,L=this.h3,T=this.h4,k=this.h5,x=this.h6,C=this.h7,w=l[b>>>28&15]+l[b>>>24&15]+l[b>>>20&15]+l[b>>>16&15]+l[b>>>12&15]+l[b>>>8&15]+l[b>>>4&15]+l[b&15]+l[M>>>28&15]+l[M>>>24&15]+l[M>>>20&15]+l[M>>>16&15]+l[M>>>12&15]+l[M>>>8&15]+l[M>>>4&15]+l[M&15]+l[I>>>28&15]+l[I>>>24&15]+l[I>>>20&15]+l[I>>>16&15]+l[I>>>12&15]+l[I>>>8&15]+l[I>>>4&15]+l[I&15]+l[L>>>28&15]+l[L>>>24&15]+l[L>>>20&15]+l[L>>>16&15]+l[L>>>12&15]+l[L>>>8&15]+l[L>>>4&15]+l[L&15]+l[T>>>28&15]+l[T>>>24&15]+l[T>>>20&15]+l[T>>>16&15]+l[T>>>12&15]+l[T>>>8&15]+l[T>>>4&15]+l[T&15]+l[k>>>28&15]+l[k>>>24&15]+l[k>>>20&15]+l[k>>>16&15]+l[k>>>12&15]+l[k>>>8&15]+l[k>>>4&15]+l[k&15]+l[x>>>28&15]+l[x>>>24&15]+l[x>>>20&15]+l[x>>>16&15]+l[x>>>12&15]+l[x>>>8&15]+l[x>>>4&15]+l[x&15];return this.is224||(w+=l[C>>>28&15]+l[C>>>24&15]+l[C>>>20&15]+l[C>>>16&15]+l[C>>>12&15]+l[C>>>8&15]+l[C>>>4&15]+l[C&15]),w},$.prototype.toString=$.prototype.hex,$.prototype.digest=function(){this.finalize();var b=this.h0,M=this.h1,I=this.h2,L=this.h3,T=this.h4,k=this.h5,x=this.h6,C=this.h7,w=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,I>>>24&255,I>>>16&255,I>>>8&255,I&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,T>>>24&255,T>>>16&255,T>>>8&255,T&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,x>>>24&255,x>>>16&255,x>>>8&255,x&255];return this.is224||w.push(C>>>24&255,C>>>16&255,C>>>8&255,C&255),w},$.prototype.array=$.prototype.digest,$.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),M=new DataView(b);return M.setUint32(0,this.h0),M.setUint32(4,this.h1),M.setUint32(8,this.h2),M.setUint32(12,this.h3),M.setUint32(16,this.h4),M.setUint32(20,this.h5),M.setUint32(24,this.h6),this.is224||M.setUint32(28,this.h7),b};function _(b,M,I){var L,T=typeof b;if(T==="string"){var k=[],x=b.length,C=0,w;for(L=0;L<x;++L)w=b.charCodeAt(L),w<128?k[C++]=w:w<2048?(k[C++]=192|w>>>6,k[C++]=128|w&63):w<55296||w>=57344?(k[C++]=224|w>>>12,k[C++]=128|w>>>6&63,k[C++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++L)&1023),k[C++]=240|w>>>18,k[C++]=128|w>>>12&63,k[C++]=128|w>>>6&63,k[C++]=128|w&63);b=k}else if(T==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new $(M,!0).update(b).array());var A=[],E=[];for(L=0;L<64;++L){var R=b[L]||0;A[L]=92^R,E[L]=54^R}$.call(this,M,I),this.update(E),this.oKeyPad=A,this.inner=!0,this.sharedMemory=I}_.prototype=new $,_.prototype.finalize=function(){if($.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();$.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),$.prototype.finalize.call(this)}};var S=f();S.sha256=S,S.sha224=f(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),d?e.exports=S:(i.sha256=S.sha256,i.sha224=S.sha224)})()})(fp);var H$=fp.exports,U$=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},Yl={},V$=Object.prototype.hasOwnProperty,G$;function Vu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Gu(e){try{return encodeURIComponent(e)}catch{return null}}function Y$(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var o=Vu(i[1]),a=Vu(i[2]);o===null||a===null||o in n||(n[o]=a)}return n}function K$(e,t){t=t||"";var n=[],i,o;typeof t!="string"&&(t="?");for(o in e)if(V$.call(e,o)){if(i=e[o],!i&&(i===null||i===G$||isNaN(i))&&(i=""),o=Gu(o),i=Gu(i),o===null||i===null)continue;n.push(o+"="+i)}return n.length?t+n.join("&"):""}Yl.stringify=K$;Yl.parse=Y$;var pp=U$,bo=Yl,Z$=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,gp=/[\n\r\t]/g,X$=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,mp=/:\d+$/,Q$=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,q$=/^[a-zA-Z]:/;function Kl(e){return(e||"").toString().replace(Z$,"")}var Ga=[["#","hash"],["?","query"],function(t,n){return rn(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Yu={hash:1,query:1};function vp(e){var t;typeof window<"u"?t=window:typeof fi<"u"?t=fi:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},o=typeof e,a;if(e.protocol==="blob:")i=new un(unescape(e.pathname),{});else if(o==="string"){i=new un(e,{});for(a in Yu)delete i[a]}else if(o==="object"){for(a in e)a in Yu||(i[a]=e[a]);i.slashes===void 0&&(i.slashes=X$.test(e.href))}return i}function rn(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function yp(e,t){e=Kl(e),e=e.replace(gp,""),t=t||{};var n=Q$.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],d=0,g;return o?a?(g=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(g=n[2]+n[4],d=n[2].length):a?(g=n[3]+n[4],d=n[3].length):g=n[4],i==="file:"?d>=2&&(g=g.slice(2)):rn(i)?g=n[4]:i?o&&(g=g.slice(2)):d>=2&&rn(t.protocol)&&(g=n[4]),{protocol:i,slashes:o||rn(i),slashesCount:d,rest:g}}function J$(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,o=n[i-1],a=!1,d=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),d++):d&&(i===0&&(a=!0),n.splice(i,1),d--);return a&&n.unshift(""),(o==="."||o==="..")&&n.push(""),n.join("/")}function un(e,t,n){if(e=Kl(e),e=e.replace(gp,""),!(this instanceof un))return new un(e,t,n);var i,o,a,d,g,l,p=Ga.slice(),s=typeof t,r=this,c=0;for(s!=="object"&&s!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=bo.parse),t=vp(t),o=yp(e||"",t),i=!o.protocol&&!o.slashes,r.slashes=o.slashes||i&&t.slashes,r.protocol=o.protocol||t.protocol||"",e=o.rest,(o.protocol==="file:"&&(o.slashesCount!==2||q$.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!rn(r.protocol)))&&(p[3]=[/(.*)/,"pathname"]);c<p.length;c++){if(d=p[c],typeof d=="function"){e=d(e,r);continue}a=d[0],l=d[1],a!==a?r[l]=e:typeof a=="string"?(g=a==="@"?e.lastIndexOf(a):e.indexOf(a),~g&&(typeof d[2]=="number"?(r[l]=e.slice(0,g),e=e.slice(g+d[2])):(r[l]=e.slice(g),e=e.slice(0,g)))):(g=a.exec(e))&&(r[l]=g[1],e=e.slice(0,g.index)),r[l]=r[l]||i&&d[3]&&t[l]||"",d[4]&&(r[l]=r[l].toLowerCase())}n&&(r.query=n(r.query)),i&&t.slashes&&r.pathname.charAt(0)!=="/"&&(r.pathname!==""||t.pathname!=="")&&(r.pathname=J$(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&rn(r.protocol)&&(r.pathname="/"+r.pathname),pp(r.port,r.protocol)||(r.host=r.hostname,r.port=""),r.username=r.password="",r.auth&&(g=r.auth.indexOf(":"),~g?(r.username=r.auth.slice(0,g),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=r.auth.slice(g+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(r.auth)),r.auth=r.password?r.username+":"+r.password:r.username),r.origin=r.protocol!=="file:"&&rn(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString()}function eA(e,t,n){var i=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||bo.parse)(t)),i[e]=t;break;case"port":i[e]=t,pp(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,mp.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var o=e==="pathname"?"/":"#";i[e]=t.charAt(0)!==o?o+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(i.username=t.slice(0,a),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(a+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var d=0;d<Ga.length;d++){var g=Ga[d];g[4]&&(i[g[1]]=i[g[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin=i.protocol!=="file:"&&rn(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function tA(e){(!e||typeof e!="function")&&(e=bo.stringify);var t,n=this,i=n.host,o=n.protocol;o&&o.charAt(o.length-1)!==":"&&(o+=":");var a=o+(n.protocol&&n.slashes||rn(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):n.protocol!=="file:"&&rn(n.protocol)&&!i&&n.pathname!=="/"&&(a+="@"),(i[i.length-1]===":"||mp.test(n.hostname)&&!n.port)&&(i+=":"),a+=i+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(a+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(a+=n.hash),a}un.prototype={set:eA,toString:tA};un.extractProtocol=yp;un.location=vp;un.trimLeft=Kl;un.qs=bo;var nA=un;const iA=Vi(nA);class wo extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class rA extends wo{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class sA extends wo{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class oA extends wo{constructor(){super(),this.type="url"}href(t){const n=H$.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new iA(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class aA extends wo{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const lA=[new $$,new A$,new k$,new E$,new M$,new T$,new L$,new R$,new I$,new hp,new O$,new N$,new D$,new F$,new P$,new W$,new rA,new aA,new sA,new oA],cA={class:"tags are-medium"},uA=Ce({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=ke(()=>lA.filter(i=>i.type===t.type));return(i,o)=>(Y(),ie("div",cA,[(Y(!0),ie(Pe,null,Pt(n.value,a=>(Y(),xe(C$,{data:e.data,link:a,key:a.name},null,8,["data","link"]))),128))]))}});var bp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(fi,function(){var n=1e3,i=6e4,o=36e5,a="millisecond",d="second",g="minute",l="hour",p="day",s="week",r="month",c="quarter",u="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var A=["th","st","nd","rd"],E=w%100;return"["+w+(A[(E-20)%10]||A[E]||A[0])+"]"}},$=function(w,A,E){var R=String(w);return!R||R.length>=A?w:""+Array(A+1-R.length).join(E)+w},_={s:$,z:function(w){var A=-w.utcOffset(),E=Math.abs(A),R=Math.floor(E/60),O=E%60;return(A<=0?"+":"-")+$(R,2,"0")+":"+$(O,2,"0")},m:function w(A,E){if(A.date()<E.date())return-w(E,A);var R=12*(E.year()-A.year())+(E.month()-A.month()),O=A.clone().add(R,r),N=E-O<0,F=A.clone().add(R+(N?-1:1),r);return+(-(R+(E-O)/(N?O-F:F-O))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:r,y:u,w:s,d:p,D:h,h:l,m:g,s:d,ms:a,Q:c}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",b={};b[S]=y;var M="$isDayjsObject",I=function(w){return w instanceof x||!(!w||!w[M])},L=function w(A,E,R){var O;if(!A)return S;if(typeof A=="string"){var N=A.toLowerCase();b[N]&&(O=N),E&&(b[N]=E,O=N);var F=A.split("-");if(!O&&F.length>1)return w(F[0])}else{var z=A.name;b[z]=A,O=z}return!R&&O&&(S=O),O||!R&&S},T=function(w,A){if(I(w))return w.clone();var E=typeof A=="object"?A:{};return E.date=w,E.args=arguments,new x(E)},k=_;k.l=L,k.i=I,k.w=function(w,A){return T(w,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var x=function(){function w(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[M]=!0}var A=w.prototype;return A.parse=function(E){this.$d=function(R){var O=R.date,N=R.utc;if(O===null)return new Date(NaN);if(k.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var F=O.match(m);if(F){var z=F[2]-1||0,U=(F[7]||"0").substring(0,3);return N?new Date(Date.UTC(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)):new Date(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)}}return new Date(O)}(E),this.init()},A.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},A.$utils=function(){return k},A.isValid=function(){return this.$d.toString()!==f},A.isSame=function(E,R){var O=T(E);return this.startOf(R)<=O&&O<=this.endOf(R)},A.isAfter=function(E,R){return T(E)<this.startOf(R)},A.isBefore=function(E,R){return this.endOf(R)<T(E)},A.$g=function(E,R,O){return k.u(E)?this[R]:this.set(O,E)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(E,R){var O=this,N=!!k.u(R)||R,F=k.p(E),z=function(X,q){var ue=k.w(O.$u?Date.UTC(O.$y,q,X):new Date(O.$y,q,X),O);return N?ue:ue.endOf(p)},U=function(X,q){return k.w(O.toDate()[X].apply(O.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(q)),O)},j=this.$W,B=this.$M,V=this.$D,Q="set"+(this.$u?"UTC":"");switch(F){case u:return N?z(1,0):z(31,11);case r:return N?z(1,B):z(0,B+1);case s:var H=this.$locale().weekStart||0,K=(j<H?j+7:j)-H;return z(N?V-K:V+(6-K),B);case p:case h:return U(Q+"Hours",0);case l:return U(Q+"Minutes",1);case g:return U(Q+"Seconds",2);case d:return U(Q+"Milliseconds",3);default:return this.clone()}},A.endOf=function(E){return this.startOf(E,!1)},A.$set=function(E,R){var O,N=k.p(E),F="set"+(this.$u?"UTC":""),z=(O={},O[p]=F+"Date",O[h]=F+"Date",O[r]=F+"Month",O[u]=F+"FullYear",O[l]=F+"Hours",O[g]=F+"Minutes",O[d]=F+"Seconds",O[a]=F+"Milliseconds",O)[N],U=N===p?this.$D+(R-this.$W):R;if(N===r||N===u){var j=this.clone().set(h,1);j.$d[z](U),j.init(),this.$d=j.set(h,Math.min(this.$D,j.daysInMonth())).$d}else z&&this.$d[z](U);return this.init(),this},A.set=function(E,R){return this.clone().$set(E,R)},A.get=function(E){return this[k.p(E)]()},A.add=function(E,R){var O,N=this;E=Number(E);var F=k.p(R),z=function(B){var V=T(N);return k.w(V.date(V.date()+Math.round(B*E)),N)};if(F===r)return this.set(r,this.$M+E);if(F===u)return this.set(u,this.$y+E);if(F===p)return z(1);if(F===s)return z(7);var U=(O={},O[g]=i,O[l]=o,O[d]=n,O)[F]||1,j=this.$d.getTime()+E*U;return k.w(j,this)},A.subtract=function(E,R){return this.add(-1*E,R)},A.format=function(E){var R=this,O=this.$locale();if(!this.isValid())return O.invalidDate||f;var N=E||"YYYY-MM-DDTHH:mm:ssZ",F=k.z(this),z=this.$H,U=this.$m,j=this.$M,B=O.weekdays,V=O.months,Q=O.meridiem,H=function(q,ue,we,P){return q&&(q[ue]||q(R,N))||we[ue].slice(0,P)},K=function(q){return k.s(z%12||12,q,"0")},X=Q||function(q,ue,we){var P=q<12?"AM":"PM";return we?P.toLowerCase():P};return N.replace(v,function(q,ue){return ue||function(we){switch(we){case"YY":return String(R.$y).slice(-2);case"YYYY":return k.s(R.$y,4,"0");case"M":return j+1;case"MM":return k.s(j+1,2,"0");case"MMM":return H(O.monthsShort,j,V,3);case"MMMM":return H(V,j);case"D":return R.$D;case"DD":return k.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return H(O.weekdaysMin,R.$W,B,2);case"ddd":return H(O.weekdaysShort,R.$W,B,3);case"dddd":return B[R.$W];case"H":return String(z);case"HH":return k.s(z,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return X(z,U,!0);case"A":return X(z,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(R.$s);case"ss":return k.s(R.$s,2,"0");case"SSS":return k.s(R.$ms,3,"0");case"Z":return F}return null}(q)||F.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(E,R,O){var N,F=this,z=k.p(R),U=T(E),j=(U.utcOffset()-this.utcOffset())*i,B=this-U,V=function(){return k.m(F,U)};switch(z){case u:N=V()/12;break;case r:N=V();break;case c:N=V()/3;break;case s:N=(B-j)/6048e5;break;case p:N=(B-j)/864e5;break;case l:N=B/o;break;case g:N=B/i;break;case d:N=B/n;break;default:N=B}return O?N:k.a(N)},A.daysInMonth=function(){return this.endOf(r).$D},A.$locale=function(){return b[this.$L]},A.locale=function(E,R){if(!E)return this.$L;var O=this.clone(),N=L(E,R,!0);return N&&(O.$L=N),O},A.clone=function(){return k.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},w}(),C=x.prototype;return T.prototype=C,[["$ms",a],["$s",d],["$m",g],["$H",l],["$W",p],["$M",r],["$y",u],["$D",h]].forEach(function(w){C[w[1]]=function(A){return this.$g(A,w[0],w[1])}}),T.extend=function(w,A){return w.$i||(w(A,x,T),w.$i=!0),T},T.locale=L,T.isDayjs=I,T.unix=function(w){return T(1e3*w)},T.en=b[S],T.Ls=b,T.p={},T})})(bp);var hA=bp.exports;const _o=Vi(hA);var wp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(fi,function(){return function(n,i,o){n=n||{};var a=i.prototype,d={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,r,c){return a.fromToBase(p,s,r,c)}o.en.relativeTime=d,a.fromToBase=function(p,s,r,c,u){for(var h,f,m,v=r.$locale().relativeTime||d,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],$=y.length,_=0;_<$;_+=1){var S=y[_];S.d&&(h=c?o(p).diff(r,S.d,!0):r.diff(p,S.d,!0));var b=(n.rounding||Math.round)(Math.abs(h));if(m=h>0,b<=S.r||!S.r){b<=1&&_>0&&(S=y[_-1]);var M=v[S.l];u&&(b=u(""+b)),f=typeof M=="string"?M.replace("%d",b):M(b,s,S.l,m);break}}if(s)return f;var I=m?v.future:v.past;return typeof I=="function"?I(f):I.replace("%s",f)},a.to=function(p,s){return g(p,s,this,!0)},a.from=function(p,s){return g(p,s,this)};var l=function(p){return p.$u?o.utc():o()};a.toNow=function(p){return this.to(l(this),p)},a.fromNow=function(p){return this.from(l(this),p)}}})})(wp);var dA=wp.exports;const fA=Vi(dA);var _p={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(fi,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(o,a,d){var g,l=function(c,u,h){h===void 0&&(h={});var f=new Date(c),m=function(v,y){y===void 0&&(y={});var $=y.timeZoneName||"short",_=v+"|"+$,S=i[_];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),i[_]=S),S}(u,h);return m.formatToParts(f)},p=function(c,u){for(var h=l(c,u),f=[],m=0;m<h.length;m+=1){var v=h[m],y=v.type,$=v.value,_=n[y];_>=0&&(f[_]=parseInt($,10))}var S=f[3],b=S===24?0:S,M=f[0]+"-"+f[1]+"-"+f[2]+" "+b+":"+f[4]+":"+f[5]+":000",I=+c;return(d.utc(M).valueOf()-(I-=I%1e3))/6e4},s=a.prototype;s.tz=function(c,u){c===void 0&&(c=g);var h,f=this.utcOffset(),m=this.toDate(),v=m.toLocaleString("en-US",{timeZone:c}),y=Math.round((m-new Date(v))/1e3/60),$=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number($))h=this.utcOffset(0,u);else if(h=d(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset($,!0),u){var _=h.utcOffset();h=h.add(f-_,"minute")}return h.$x.$timezone=c,h},s.offsetName=function(c){var u=this.$x.$timezone||d.tz.guess(),h=l(this.valueOf(),u,{timeZoneName:c}).find(function(f){return f.type.toLowerCase()==="timezonename"});return h&&h.value};var r=s.startOf;s.startOf=function(c,u){if(!this.$x||!this.$x.$timezone)return r.call(this,c,u);var h=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(h,c,u).tz(this.$x.$timezone,!0)},d.tz=function(c,u,h){var f=h&&u,m=h||u||g,v=p(+d(),m);if(typeof c!="string")return d(c).tz(m);var y=function(b,M,I){var L=b-60*M*1e3,T=p(L,I);if(M===T)return[L,M];var k=p(L-=60*(T-M)*1e3,I);return T===k?[L,T]:[b-60*Math.min(T,k)*1e3,Math.max(T,k)]}(d.utc(c,f).valueOf(),v,m),$=y[0],_=y[1],S=d($).utcOffset(_);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(c){g=c}}})})(_p);var pA=_p.exports;const gA=Vi(pA);var Sp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(fi,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,d,g){var l=d.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},l.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},l.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=l.parse;l.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),p.call(this,f)};var s=l.init;l.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else s.call(this)};var r=l.utcOffset;l.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?r.call(this):this.$offset;if(typeof f=="string"&&(f=function(S){S===void 0&&(S="");var b=S.match(i);if(!b)return null;var M=(""+b[0]).match(o)||["-",0,0],I=M[0],L=60*+M[1]+ +M[2];return L===0?0:I==="+"?L:-L}(f),f===null))return this;var y=Math.abs(f)<=16?60*f:f,$=this;if(m)return $.$offset=y,$.$u=f===0,$;if(f!==0){var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(y+_,n)).$offset=y,$.$x.$localOffset=_}else $=this.utc();return $};var c=l.format;l.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},l.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var u=l.toDate;l.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=l.diff;l.diff=function(f,m,v){if(f&&this.$u===f.$u)return h.call(this,f,m,v);var y=this.local(),$=g(f).local();return h.call(y,$,m,v)}}})})(Sp);var mA=Sp.exports;const vA=Vi(mA),yA=[{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 bA(e){return yA.find(n=>n.code===e)}_o.extend(fA);_o.extend(gA);_o.extend(vA);function xp(e){const t=bA(e);if(t)return{lat:t.lat,long:t.long}}function wA(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 xp(e.countryCode)}const _A={class:"block"},SA={class:"is-size-2"},xA={class:"is-clearfix"},CA={class:"columns"},$A={key:0,class:"column is-half"},AA={key:0},kA={class:"is-size-4"},MA={class:"has-text-grey"},EA=["src"],TA={key:1},LA=["src"],RA={class:"column"},IA={class:"table is-fullwidth is-completely-borderless"},OA={key:0},NA={class:"help"},DA={class:"block"},FA={class:"block"},PA={key:0,class:"block"},WA={key:1,class:"block"},BA={key:2,class:"block"},zA={key:3,class:"block"},jA={key:4,class:"block"},HA={key:5,class:"block"},UA={key:6,class:"block"},VA=Ce({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,i=t,o=He(),a=He(),d=He(),g=He(),l=m=>{d.value=m},p=()=>{d.value=void 0},s=()=>{i("delete")},r=m=>{m.queued?g.value=m:i("refresh")},c=()=>{g.value=void 0},u=ke(()=>{if(n.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${n.artifact.data}`}`;if(n.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${n.artifact.data}`}),h=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},f=$S();return ct(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=xp(n.artifact.geolocation.countryCode);else{const v=await f.perform(n.artifact.data);m=wA(v),a.value=v.countryCode}o.value=h(m)}}),(m,v)=>{var y;return Y(),ie(Pe,null,[d.value?(Y(),xe(mt,{key:0,class:"block",error:d.value,disposable:!0,onDispose:p},null,8,["error"])):ge("",!0),g.value?(Y(),xe(yo,{key:1,class:"block",message:g.value,disposable:!0,onDispose:c},null,8,["message"])):ge("",!0),D("div",_A,[D("h2",SA,Se(e.artifact.id),1),D("p",xA,[se(up,{artifact:e.artifact,onDelete:s,onSetError:l,onSetMessage:r},null,8,["artifact"])])]),D("div",CA,[o.value||u.value?(Y(),ie("div",$A,[o.value?(Y(),ie("div",AA,[D("h4",kA,[v[0]||(v[0]=it(" Geolocation ")),D("span",MA,Se(a.value||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),D("iframe",{class:"mb-4",src:o.value,width:"100%",height:"240px"},null,8,EA)])):ge("",!0),u.value?(Y(),ie("div",TA,[v[1]||(v[1]=D("h4",{class:"is-size-4"},"Live screenshot",-1)),v[2]||(v[2]=D("p",{class:"help"},"Hover to expand",-1)),D("img",{src:u.value,class:"liveshot",alt:"liveshot"},null,8,LA)])):ge("",!0)])):ge("",!0),D("div",RA,[v[9]||(v[9]=D("h4",{class:"is-size-4"},"Information",-1)),D("table",IA,[D("tr",null,[v[3]||(v[3]=D("th",null,"Data",-1)),D("td",null,Se(ce(Dr)(e.artifact.data,64)),1)]),D("tr",null,[v[4]||(v[4]=D("th",null,"Data type",-1)),D("td",null,Se(e.artifact.dataType),1)]),D("tr",null,[v[5]||(v[5]=D("th",null,"Source",-1)),D("td",null,Se(e.artifact.source),1)]),D("tr",null,[v[6]||(v[6]=D("th",null,"Query",-1)),D("td",null,Se(ce(Dr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),ie("tr",OA,[v[8]||(v[8]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),v[7]||(v[7]=it("/td>"))])])):ge("",!0)]),D("p",NA,"Created at: "+Se(e.artifact.createdAt),1)])]),D("div",DA,[se(uA,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),D("div",FA,[e.artifact.autonomousSystem?(Y(),ie("div",PA,[v[10]||(v[10]=D("h4",{class:"is-size-4 mb-2"},"AS",-1)),se(KC,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):ge("",!0),e.artifact.reverseDnsNames?(Y(),ie("div",WA,[v[11]||(v[11]=D("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),se(r$,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):ge("",!0),e.artifact.dnsRecords?(Y(),ie("div",BA,[v[12]||(v[12]=D("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),se(e$,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):ge("",!0),e.artifact.cpes?(Y(),ie("div",zA,[v[13]||(v[13]=D("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),se(XC,{cpes:e.artifact.cpes},null,8,["cpes"])])):ge("",!0),e.artifact.vulnerabilities?(Y(),ie("div",jA,[v[14]||(v[14]=D("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),se(o$,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):ge("",!0),e.artifact.ports?(Y(),ie("div",HA,[v[15]||(v[15]=D("h4",{class:"is-size-4 mb-2"},"Ports",-1)),se(n$,{ports:e.artifact.ports},null,8,["ports"])])):ge("",!0),e.artifact.whoisRecord?(Y(),ie("div",UA,[v[16]||(v[16]=D("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),se(w$,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):ge("",!0)])],64)}}}),GA=Vr(VA,[["__scopeId","data-v-aadb0460"]]),YA=Ce({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=SS(),i=ji(),o=async()=>{await n.perform(t.id)},a=async()=>{await o()},d=async()=>{i.push("/")};return ct(async()=>{await o()}),et(t,async()=>{await o()}),(g,l)=>{var p,s;return Y(),ie(Pe,null,[ce(n).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(n).isError?(Y(),xe(mt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(s=ce(n).last)!=null&&s.value?(Y(),xe(GA,{key:2,artifact:ce(n).last.value,onRefresh:a,onDelete:d},null,8,["artifact"])):ge("",!0)],64)}}}),KA=Ce({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Artifact:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,o)=>(Y(),xe(YA,{id:parseInt(e.id)},null,8,["id"]))}}),ZA={class:"box"},XA={class:"table-container"},QA={class:"table is-fullwidth"},qA={key:0,class:"button is-success is-small ml-1"},JA={class:"icon is-small"},e2={key:1,class:"button is-warning is-small ml-1"},t2={class:"icon is-small"},n2={class:"field is-grouped is-grouped-multiline"},i2={class:"tags has-addons"},r2={class:"tag is-dark"},s2=Ce({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const i=Xe("font-awesome-icon");return Y(),ie("div",ZA,[D("div",XA,[D("table",QA,[n[2]||(n[2]=D("thead",null,[D("tr",null,[D("th",null,"Name"),D("th",null,"Type"),D("th",null,"Configured?"),D("th",null,"Items")])],-1)),D("tbody",null,[(Y(!0),ie(Pe,null,Pt(e.configs.results,o=>(Y(),ie("tr",{key:o.name},[D("td",null,Se(o.name),1),D("td",null,Se(o.type),1),D("td",null,[o.configured?(Y(),ie("button",qA,[D("span",JA,[se(i,{icon:"check"})]),n[0]||(n[0]=D("span",null,"Yes",-1))])):(Y(),ie("button",e2,[D("span",t2,[se(i,{icon:"exclamation"})]),n[1]||(n[1]=D("span",null,"No",-1))]))]),D("td",null,[D("div",n2,[(Y(!0),ie(Pe,null,Pt(o.items,(a,d)=>(Y(),ie("div",{class:"control",key:d},[D("div",i2,[D("span",r2,Se(a.key),1),D("span",{class:Br(["tag",{"is-success":a.value,"is-warning":!a.value}])},Se(a.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),o2=Ce({__name:"ConfigsWrapper",setup(e){const t=CS();return ct(async()=>{await t.perform()}),(n,i)=>{var o,a;return Y(),ie(Pe,null,[ce(t).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(t).isError?(Y(),xe(mt,{key:1,error:(o=ce(t).last)==null?void 0:o.error},null,8,["error"])):ge("",!0),(a=ce(t).last)!=null&&a.value?(Y(),xe(s2,{key:2,configs:ce(t).last.value},null,8,["configs"])):ge("",!0)],64)}}}),a2=Ce({__name:"ConfigView",setup(e){return Cn("Configuration - Mihari"),(t,n)=>(Y(),xe(o2))}});var Cp={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var o=function(s,r,c){if(typeof s!="string"){o.original?o.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=r),o.modules[s]||(o.payloads[s]=c,o.modules[s]=null)};o.modules={},o.payloads={};var a=function(s,r,c){if(typeof r=="string"){var u=l(s,r);if(u!=null)return c&&c(),u}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var h=[],f=0,m=r.length;f<m;++f){var v=l(s,r[f]);if(v==null&&d.original)return;h.push(v)}return c&&c.apply(null,h)||!0}},d=function(s,r){var c=a("",s,r);return c==null&&d.original?d.original.apply(this,arguments):c},g=function(s,r){if(r.indexOf("!")!==-1){var c=r.split("!");return g(s,c[0])+"!"+g(s,c[1])}if(r.charAt(0)=="."){var u=s.split("/").slice(0,-1).join("/");for(r=u+"/"+r;r.indexOf(".")!==-1&&h!=r;){var h=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},l=function(s,r){r=g(s,r);var c=o.modules[r];if(!c){if(c=o.payloads[r],typeof c=="function"){var u={},h={id:r,uri:"",exports:u,packaged:!0},f=function(v,y){return a(r,v,y)},m=c(f,u,h);u=m||h.exports,o.modules[r]=u,delete o.payloads[r]}c=o.modules[r]=u||c}return c};function p(s){var r=i;i[s]||(i[s]={}),r=i[s],(!r.define||!r.define.packaged)&&(o.original=r.define,r.define=o,r.define.packaged=!0),(!r.require||!r.require.packaged)&&(d.original=r.require,r.require=d,r.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,o){function a(d,g,l){Object.defineProperty(d,g,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||a(String.prototype,"startsWith",function(d,g){return g=g||0,this.lastIndexOf(d,g)===g}),String.prototype.endsWith||a(String.prototype,"endsWith",function(d,g){var l=this;(g===void 0||g>l.length)&&(g=l.length),g-=d.length;var p=l.indexOf(d,g);return p!==-1&&p===g}),String.prototype.repeat||a(String.prototype,"repeat",function(d){for(var g="",l=this;d>0;)d&1&&(g+=l),(d>>=1)&&(l+=l);return g}),String.prototype.includes||a(String.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(d),l=1;l<arguments.length;l++){var p=arguments[l];p!=null&&Object.keys(p).forEach(function(s){g[s]=p[s]})}return g}),Object.values||(Object.values=function(d){return Object.keys(d).map(function(g){return d[g]})}),Array.prototype.find||a(Array.prototype,"find",function(d){for(var g=this.length,l=arguments[1],p=0;p<g;p++){var s=this[p];if(d.call(l,s,p,this))return s}}),Array.prototype.findIndex||a(Array.prototype,"findIndex",function(d){for(var g=this.length,l=arguments[1],p=0;p<g;p++){var s=this[p];if(d.call(l,s,p,this))return p}}),Array.prototype.includes||a(Array.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Array.prototype.fill||a(Array.prototype,"fill",function(d){for(var g=this,l=g.length>>>0,p=arguments[1],s=p>>0,r=s<0?Math.max(l+s,0):Math.min(s,l),c=arguments[2],u=c===void 0?l:c>>0,h=u<0?Math.max(l+u,0):Math.min(u,l);r<h;)g[r]=d,r++;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,o){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,o){i.deepCopy=function a(d){if(typeof d!="object"||!d)return d;var g;if(Array.isArray(d)){g=[];for(var l=0;l<d.length;l++)g[l]=a(d[l]);return g}if(Object.prototype.toString.call(d)!=="[object Object]")return d;g={};for(var l in d)g[l]=a(d[l]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,o){i.last=function(g){return g[g.length-1]},i.stringReverse=function(g){return g.split("").reverse().join("")},i.stringRepeat=function(g,l){for(var p="";l>0;)l&1&&(p+=g),(l>>=1)&&(g+=g);return p};var a=/^\s\s*/,d=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(a,"")},i.stringTrimRight=function(g){return g.replace(d,"")},i.copyObject=function(g){var l={};for(var p in g)l[p]=g[p];return l},i.copyArray=function(g){for(var l=[],p=0,s=g.length;p<s;p++)g[p]&&typeof g[p]=="object"?l[p]=this.copyObject(g[p]):l[p]=g[p];return l},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var l={},p=0;p<g.length;p++)l[g[p]]=1;return l},i.createMap=function(g){var l=Object.create(null);for(var p in g)l[p]=g[p];return l},i.arrayRemove=function(g,l){for(var p=0;p<=g.length;p++)l===g[p]&&g.splice(p,1)},i.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(g){return(""+g).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(g,l){var p=[];return g.replace(l,function(s){p.push({offset:arguments[arguments.length-2],length:s.length})}),p},i.deferredCall=function(g){var l=null,p=function(){l=null,g()},s=function(r){return s.cancel(),l=setTimeout(p,r||0),s};return s.schedule=s,s.call=function(){return this.cancel(),g(),s},s.cancel=function(){return clearTimeout(l),l=null,s},s.isPending=function(){return l},s},i.delayedCall=function(g,l){var p=null,s=function(){p=null,g()},r=function(c){p==null&&(p=setTimeout(s,c||l))};return r.delay=function(c){p&&clearTimeout(p),p=setTimeout(s,c||l)},r.schedule=r,r.call=function(){this.cancel(),g()},r.cancel=function(){p&&clearTimeout(p),p=null},r.isPending=function(){return p},r},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(g,l,p){return p&&g.codePointAt(l)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,o){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var a=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(a.platform)||["other"])[0].toLowerCase(),g=a.userAgent||"",l=a.appName||"";i.isWin=d=="win",i.isMac=d=="mac",i.isLinux=d=="linux",i.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((g.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((g.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=g.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(g.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,i.isAIR=g.indexOf("AdobeAIR")>=0,i.isAndroid=g.indexOf("Android")>=0,i.isChromeOS=g.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,i,o){var a=n("./useragent"),d="http://www.w3.org/1999/xhtml";i.buildDom=function c(u,h,f){if(typeof u=="string"&&u){var m=document.createTextNode(u);return h&&h.appendChild(m),m}if(!Array.isArray(u))return u&&u.appendChild&&h&&h.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var v=[],y=0;y<u.length;y++){var $=c(u[y],h,f);$&&v.push($)}return v}var _=document.createElement(u[0]),S=u[1],b=1;S&&typeof S=="object"&&!Array.isArray(S)&&(b=2);for(var y=b;y<u.length;y++)c(u[y],_,f);return b==2&&Object.keys(S).forEach(function(M){var I=S[M];M==="class"?_.className=Array.isArray(I)?I.join(" "):I:typeof I=="function"||M=="value"||M[0]=="$"?_[M]=I:M==="ref"?f&&(f[I]=_):M==="style"?typeof I=="string"&&(_.style.cssText=I):I!=null&&_.setAttribute(M,I)}),h&&h.appendChild(_),_},i.getDocumentHead=function(c){return c||(c=document),c.head||c.getElementsByTagName("head")[0]||c.documentElement},i.createElement=function(c,u){return document.createElementNS?document.createElementNS(u||d,c):document.createElement(c)},i.removeChildren=function(c){c.innerHTML=""},i.createTextNode=function(c,u){var h=u?u.ownerDocument:document;return h.createTextNode(c)},i.createFragment=function(c){var u=c?c.ownerDocument:document;return u.createDocumentFragment()},i.hasCssClass=function(c,u){var h=(c.className+"").split(/\s+/g);return h.indexOf(u)!==-1},i.addCssClass=function(c,u){i.hasCssClass(c,u)||(c.className+=" "+u)},i.removeCssClass=function(c,u){for(var h=c.className.split(/\s+/g);;){var f=h.indexOf(u);if(f==-1)break;h.splice(f,1)}c.className=h.join(" ")},i.toggleCssClass=function(c,u){for(var h=c.className.split(/\s+/g),f=!0;;){var m=h.indexOf(u);if(m==-1)break;f=!1,h.splice(m,1)}return f&&h.push(u),c.className=h.join(" "),f},i.setCssClass=function(c,u,h){h?i.addCssClass(c,u):i.removeCssClass(c,u)},i.hasCssString=function(c,u){var h=0,f;if(u=u||document,f=u.querySelectorAll("style")){for(;h<f.length;)if(f[h++].id===c)return!0}},i.removeElementById=function(c,u){u=u||document,u.getElementById(c)&&u.getElementById(c).remove()};var g,l=[];i.useStrictCSP=function(c){g=c,c==!1?p():l||(l=[])};function p(){var c=l;l=null,c&&c.forEach(function(u){s(u[0],u[1])})}function s(c,u,h){if(!(typeof document>"u")){if(l){if(h)p();else if(h===!1)return l.push([c,u])}if(!g){var f=h;!h||!h.getRootNode?f=document:(f=h.getRootNode(),(!f||f==h)&&(f=document));var m=f.ownerDocument||f;if(u&&i.hasCssString(u,f))return null;u&&(c+=`
599
+ /*# sourceURL=ace/css/`+u+" */");var v=i.createElement("style");v.appendChild(m.createTextNode(c)),u&&(v.id=u),f==m&&(f=i.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(i.importCssString=s,i.importCssStylsheet=function(c,u){i.buildDom(["link",{rel:"stylesheet",href:c}],i.getDocumentHead(u))},i.scrollbarWidth=function(c){var u=i.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var h=i.createElement("ace_outer"),f=h.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",h.appendChild(u);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(h);var v=u.offsetWidth;f.overflow="scroll";var y=u.offsetWidth;return v===y&&(y=h.clientWidth),m.removeChild(h),v-y},i.computedStyle=function(c,u){return window.getComputedStyle(c,"")||{}},i.setStyle=function(c,u,h){c[u]!==h&&(c[u]=h)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=a.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,a.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var r=document.createElement("div");i.HI_DPI&&r.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!a.isEdge&&typeof r.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),r=null}i.HAS_CSS_TRANSFORMS?i.translate=function(c,u,h){c.style.transform="translate("+Math.round(u)+"px, "+Math.round(h)+"px)"}:i.translate=function(c,u,h){c.style.top=Math.round(h)+"px",c.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,o){/*
600
+ * based on code from:
601
+ *
602
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
603
+ * Available via the MIT or new BSD license.
604
+ * see: http://github.com/jrburke/requirejs for details
605
+ */var a=n("./dom");i.get=function(d,g){var l=new XMLHttpRequest;l.open("GET",d,!0),l.onreadystatechange=function(){l.readyState===4&&g(l.responseText)},l.send(null)},i.loadScript=function(d,g){var l=a.getDocumentHead(),p=document.createElement("script");p.src=d,l.appendChild(p),p.onload=p.onreadystatechange=function(s,r){(r||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,r||g())}},i.qualifyURL=function(d){var g=document.createElement("a");return g.href=d,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,o){i.inherits=function(a,d){a.super_=d,a.prototype=Object.create(d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(a,d){for(var g in d)a[g]=d[g];return a},i.implement=function(a,d){i.mixin(a,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,o){var a={},d=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};a._emit=a._dispatchEvent=function(l,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[l]||[],r=this._defaultHandlers[l];if(!(!s.length&&!r)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=l),p.stopPropagation||(p.stopPropagation=d),p.preventDefault||(p.preventDefault=g),s=s.slice();for(var c=0;c<s.length&&(s[c](p,this),!p.propagationStopped);c++);if(r&&!p.defaultPrevented)return r(p,this)}},a._signal=function(l,p){var s=(this._eventRegistry||{})[l];if(s){s=s.slice();for(var r=0;r<s.length;r++)s[r](p,this)}},a.once=function(l,p){var s=this;if(this.on(l,function r(){s.off(l,r),p.apply(null,arguments)}),!p)return new Promise(function(r){p=r})},a.setDefaultHandler=function(l,p){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[l]){var r=s[l],c=s._disabled_[l];c||(s._disabled_[l]=c=[]),c.push(r);var u=c.indexOf(p);u!=-1&&c.splice(u,1)}s[l]=p},a.removeDefaultHandler=function(l,p){var s=this._defaultHandlers;if(s){var r=s._disabled_[l];if(s[l]==p)r&&this.setDefaultHandler(l,r.pop());else if(r){var c=r.indexOf(p);c!=-1&&r.splice(c,1)}}},a.on=a.addEventListener=function(l,p,s){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[l];return r||(r=this._eventRegistry[l]=[]),r.indexOf(p)==-1&&r[s?"unshift":"push"](p),p},a.off=a.removeListener=a.removeEventListener=function(l,p){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[l];if(s){var r=s.indexOf(p);r!==-1&&s.splice(r,1)}},a.removeAllListeners=function(l){l||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[l]=void 0),this._defaultHandlers&&(this._defaultHandlers[l]=void 0)},i.EventEmitter=a}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,i,o){i.reportError=function(d,g){var l=new Error(d);l.data=g,typeof console=="object"&&console.error&&console.error(l),setTimeout(function(){throw l})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,i,o){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","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,o){"no use strict";var a=n("./oop"),d=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,l=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(h){Object.keys(h).forEach(function(f){this.setOption(f,h[f])},this)},getOptions:function(h){var f={};if(h)Array.isArray(h)||(f=h,h=Object.keys(f));else{var m=this.$options;h=Object.keys(m).filter(function(v){return!m[v].hidden})}return h.forEach(function(v){f[v]=this.getOption(v)},this),f},setOption:function(h,f){if(this["$"+h]!==f){var m=this.$options[h];if(!m)return s('misspelled option "'+h+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(h,f);m.handlesSet||(this["$"+h]=f),m&&m.set&&m.set.call(this,f)}},getOption:function(h){var f=this.$options[h];return f?f.forwardTo?this[f.forwardTo]&&this[f.forwardTo].getOption(h):f&&f.get?f.get.call(this):this["$"+h]:s('misspelled option "'+h+'"')}};function s(h){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var r,c,u=function(){function h(){this.$defaultOptions={},r=l,c="dollarSigns"}return h.prototype.defineOptions=function(f,m,v){return f.$options||(this.$defaultOptions[m]=f.$options={}),Object.keys(v).forEach(function(y){var $=v[y];typeof $=="string"&&($={forwardTo:$}),$.name||($.name=y),f.$options[$.name]=$,"initialValue"in $&&(f["$"+$.name]=$.initialValue)}),a.implement(f,p),this},h.prototype.resetOptions=function(f){Object.keys(f.$options).forEach(function(m){var v=f.$options[m];"value"in v&&f.setOption(m,v.value)})},h.prototype.setDefaultValue=function(f,m,v){if(!f){for(f in this.$defaultOptions)if(this.$defaultOptions[f][m])break;if(!this.$defaultOptions[f][m])return!1}var y=this.$defaultOptions[f]||(this.$defaultOptions[f]={});y[m]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,m,v):y[m].value=v)},h.prototype.setDefaultValues=function(f,m){Object.keys(m).forEach(function(v){this.setDefaultValue(f,v,m[v])},this)},h.prototype.setMessages=function(f,m){r=f,m&&m.placeholders&&(c=m.placeholders)},h.prototype.nls=function(f,m,v){r[f]||(s("No message found for the key '"+f+"' in the provided messages, trying to find a translation for the default string '"+m+"'."),r[m]||s("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=r[f]||r[m]||m;return v&&(c==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function($,_){return _=="$"?"$":v[_]})),c==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function($,_){return v[_]}))),y},h}();u.prototype.warn=s,u.prototype.reportError=g,a.implement(u.prototype,d),i.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,o){o.exports=`.ace-tm .ace_gutter {
606
+ background: #f0f0f0;
607
+ color: #333;
608
+ }
609
+
610
+ .ace-tm .ace_print-margin {
611
+ width: 1px;
612
+ background: #e8e8e8;
613
+ }
614
+
615
+ .ace-tm .ace_fold {
616
+ background-color: #6B72E6;
617
+ }
618
+
619
+ .ace-tm {
620
+ background-color: #FFFFFF;
621
+ color: black;
622
+ }
623
+
624
+ .ace-tm .ace_cursor {
625
+ color: black;
626
+ }
627
+
628
+ .ace-tm .ace_invisible {
629
+ color: rgb(191, 191, 191);
630
+ }
631
+
632
+ .ace-tm .ace_storage,
633
+ .ace-tm .ace_keyword {
634
+ color: blue;
635
+ }
636
+
637
+ .ace-tm .ace_constant {
638
+ color: rgb(197, 6, 11);
639
+ }
640
+
641
+ .ace-tm .ace_constant.ace_buildin {
642
+ color: rgb(88, 72, 246);
643
+ }
644
+
645
+ .ace-tm .ace_constant.ace_language {
646
+ color: rgb(88, 92, 246);
647
+ }
648
+
649
+ .ace-tm .ace_constant.ace_library {
650
+ color: rgb(6, 150, 14);
651
+ }
652
+
653
+ .ace-tm .ace_invalid {
654
+ background-color: rgba(255, 0, 0, 0.1);
655
+ color: red;
656
+ }
657
+
658
+ .ace-tm .ace_support.ace_function {
659
+ color: rgb(60, 76, 114);
660
+ }
661
+
662
+ .ace-tm .ace_support.ace_constant {
663
+ color: rgb(6, 150, 14);
664
+ }
665
+
666
+ .ace-tm .ace_support.ace_type,
667
+ .ace-tm .ace_support.ace_class {
668
+ color: rgb(109, 121, 222);
669
+ }
670
+
671
+ .ace-tm .ace_keyword.ace_operator {
672
+ color: rgb(104, 118, 135);
673
+ }
674
+
675
+ .ace-tm .ace_string {
676
+ color: rgb(3, 106, 7);
677
+ }
678
+
679
+ .ace-tm .ace_comment {
680
+ color: rgb(76, 136, 107);
681
+ }
682
+
683
+ .ace-tm .ace_comment.ace_doc {
684
+ color: rgb(0, 102, 255);
685
+ }
686
+
687
+ .ace-tm .ace_comment.ace_doc.ace_tag {
688
+ color: rgb(128, 159, 191);
689
+ }
690
+
691
+ .ace-tm .ace_constant.ace_numeric {
692
+ color: rgb(0, 0, 205);
693
+ }
694
+
695
+ .ace-tm .ace_variable {
696
+ color: rgb(49, 132, 149);
697
+ }
698
+
699
+ .ace-tm .ace_xml-pe {
700
+ color: rgb(104, 104, 91);
701
+ }
702
+
703
+ .ace-tm .ace_entity.ace_name.ace_function {
704
+ color: #0000A2;
705
+ }
706
+
707
+
708
+ .ace-tm .ace_heading {
709
+ color: rgb(12, 7, 255);
710
+ }
711
+
712
+ .ace-tm .ace_list {
713
+ color:rgb(185, 6, 144);
714
+ }
715
+
716
+ .ace-tm .ace_meta.ace_tag {
717
+ color:rgb(0, 22, 142);
718
+ }
719
+
720
+ .ace-tm .ace_string.ace_regex {
721
+ color: rgb(255, 0, 0)
722
+ }
723
+
724
+ .ace-tm .ace_marker-layer .ace_selection {
725
+ background: rgb(181, 213, 255);
726
+ }
727
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
728
+ box-shadow: 0 0 3px 0px white;
729
+ }
730
+ .ace-tm .ace_marker-layer .ace_step {
731
+ background: rgb(252, 255, 0);
732
+ }
733
+
734
+ .ace-tm .ace_marker-layer .ace_stack {
735
+ background: rgb(164, 229, 101);
736
+ }
737
+
738
+ .ace-tm .ace_marker-layer .ace_bracket {
739
+ margin: -1px 0 0 -1px;
740
+ border: 1px solid rgb(192, 192, 192);
741
+ }
742
+
743
+ .ace-tm .ace_marker-layer .ace_active-line {
744
+ background: rgba(0, 0, 0, 0.07);
745
+ }
746
+
747
+ .ace-tm .ace_gutter-active-line {
748
+ background-color : #dcdcdc;
749
+ }
750
+
751
+ .ace-tm .ace_marker-layer .ace_selected-word {
752
+ background: rgb(250, 250, 255);
753
+ border: 1px solid rgb(200, 200, 250);
754
+ }
755
+
756
+ .ace-tm .ace_indent-guide {
757
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
758
+ }
759
+
760
+ .ace-tm .ace_indent-guide-active {
761
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
762
+ }
763
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,i,o){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,o){"no use strict";var a=n("./lib/lang"),d=n("./lib/net"),g=n("./lib/dom"),l=n("./lib/app_config").AppConfig;o.exports=i=new l;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(u){if(!p.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return p[u]},i.set=function(u,h){if(p.hasOwnProperty(u))p[u]=h;else if(this.setDefaultValue("",u,h)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&g.useStrictCSP(h)},i.all=function(){return a.copyObject(p)},i.$modes={},i.moduleUrl=function(u,h){if(p.$moduleUrls[u])return p.$moduleUrls[u];var f=u.split("/");h=h||f[f.length-2]||"";var m=h=="snippets"?"/":"-",v=f[f.length-1];if(h=="worker"&&m=="-"){var y=new RegExp("^"+h+"[\\-_]|[\\-_]"+h+"$","g");v=v.replace(y,"")}(!v||v==h)&&f.length>1&&(v=f[f.length-2]);var $=p[h+"Path"];return $==null?$=p.basePath:m=="/"&&(h=m=""),$&&$.slice(-1)!="/"&&($+="/"),$+h+m+v+this.get("suffix")},i.setModuleUrl=function(u,h){return p.$moduleUrls[u]=h};var s=function(u,h){if(u==="ace/theme/textmate"||u==="./theme/textmate")return h(null,n("./theme/textmate"));if(r)return r(u,h);console.error("loader is not configured")},r;i.setLoader=function(u){r=u},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(u,h){var f;if(Array.isArray(u))var m=u[0],v=u[1];else if(typeof u=="string")var v=u;var y=function($){if($&&!i.$loading[v])return h&&h($);if(i.$loading[v]||(i.$loading[v]=[]),i.$loading[v].push(h),!(i.$loading[v].length>1)){var _=function(){s(v,function(S,b){b&&(i.$loaded[v]=b),i._emit("load.module",{name:v,module:b});var M=i.$loading[v];i.$loading[v]=null,M.forEach(function(I){I&&I(b)})})};if(!i.get("packaged"))return _();d.loadScript(i.moduleUrl(v,m),_),c()}};if(i.dynamicModules[v])i.dynamicModules[v]().then(function($){$.default?y($.default):y($)});else{try{f=this.$require(v)}catch{}y(f||i.$loaded[v])}},i.$require=function(u){if(typeof o.require=="function"){var h="require";return o[h](u)}},i.setModuleLoader=function(u,h){i.dynamicModules[u]=h};var c=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};i.version="1.36.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,o){n("./lib/fixoldbrowsers");var a=n("./config");a.setLoader(function(p,s){n([p],function(r){s(null,r)})});var d=function(){return this||typeof window<"u"&&window}();o.exports=function(p){a.init=g,a.$require=n,p.require=n},g(!0);function g(p){if(!(!d||!d.document)){a.set("packaged",p||n.packaged||o.packaged||d.define&&(void 0).packaged);var s={},r="",c=document.currentScript||document._currentScript,u=c&&c.ownerDocument||document;c&&c.src&&(r=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var h=u.getElementsByTagName("script"),f=0;f<h.length;f++){var m=h[f],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,$=0,_=y.length;$<_;$++){var S=y[$];S.name.indexOf("data-ace-")===0&&(s[l(S.name.replace(/^data-ace-/,""))]=S.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(r=b[1])}}r&&(s.base=s.base||r,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 M in s)typeof s[M]<"u"&&a.set(M,s[M])}}function l(p){return p.replace(/-(.)/g,function(s,r){return r.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,o){var a=function(){function d(g,l,p,s){this.start={row:g,column:l},this.end={row:p,column:s}}return d.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},d.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},d.prototype.contains=function(g,l){return this.compare(g,l)==0},d.prototype.compareRange=function(g){var l,p=g.end,s=g.start;return l=this.compare(p.row,p.column),l==1?(l=this.compare(s.row,s.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(s.row,s.column),l==-1?-1:l==1?42:0)},d.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},d.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},d.prototype.intersects=function(g){var l=this.compareRange(g);return l==-1||l==0||l==1},d.prototype.isEnd=function(g,l){return this.end.row==g&&this.end.column==l},d.prototype.isStart=function(g,l){return this.start.row==g&&this.start.column==l},d.prototype.setStart=function(g,l){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=l)},d.prototype.setEnd=function(g,l){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=l)},d.prototype.inside=function(g,l){return this.compare(g,l)==0?!(this.isEnd(g,l)||this.isStart(g,l)):!1},d.prototype.insideStart=function(g,l){return this.compare(g,l)==0?!this.isEnd(g,l):!1},d.prototype.insideEnd=function(g,l){return this.compare(g,l)==0?!this.isStart(g,l):!1},d.prototype.compare=function(g,l){return!this.isMultiLine()&&g===this.start.row?l<this.start.column?-1:l>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?l>=this.start.column?0:-1:this.end.row===g?l<=this.end.column?0:1:0},d.prototype.compareStart=function(g,l){return this.start.row==g&&this.start.column==l?-1:this.compare(g,l)},d.prototype.compareEnd=function(g,l){return this.end.row==g&&this.end.column==l?1:this.compare(g,l)},d.prototype.compareInside=function(g,l){return this.end.row==g&&this.end.column==l?1:this.start.row==g&&this.start.column==l?-1:this.compare(g,l)},d.prototype.clipRows=function(g,l){if(this.end.row>l)var p={row:l+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>l)var s={row:l+1,column:0};else if(this.start.row<g)var s={row:g,column:0};return d.fromPoints(s||this.start,p||this.end)},d.prototype.extend=function(g,l){var p=this.compare(g,l);if(p==0)return this;if(p==-1)var s={row:g,column:l};else var r={row:g,column:l};return d.fromPoints(s||this.start,r||this.end)},d.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},d.prototype.isMultiLine=function(){return this.start.row!==this.end.row},d.prototype.clone=function(){return d.fromPoints(this.start,this.end)},d.prototype.collapseRows=function(){return this.end.column==0?new d(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new d(this.start.row,0,this.end.row,0)},d.prototype.toScreenRange=function(g){var l=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new d(l.row,l.column,p.row,p.column)},d.prototype.moveBy=function(g,l){this.start.row+=g,this.start.column+=l,this.end.row+=g,this.end.column+=l},d}();a.fromPoints=function(d,g){return new a(d.row,d.column,g.row,g.column)},a.comparePoints=function(d,g){return d.row-g.row||d.column-g.column},i.Range=a}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,o){for(var a=n("./oop"),d={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},g={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},l=0;l<10;l++)g["Digit"+l]=48+l,g["Numpad"+l]=96+l,d.PRINTABLE_KEYS[48+l]=""+l,d.FUNCTION_KEYS[96+l]="Numpad"+l;for(var l=65;l<91;l++){var p=String.fromCharCode(l+32);g["Key"+p.toUpperCase()]=l,d.PRINTABLE_KEYS[l]=p}for(var l=1;l<13;l++)g["F"+l]=111+l,d.FUNCTION_KEYS[111+l]="F"+l;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var r in s)g[r]=g[r+"Left"]=g[r+"Right"]=s[r];i.$codeToKeyCode=g,d.PRINTABLE_KEYS[173]="-";for(var c in d.FUNCTION_KEYS){var u=d.FUNCTION_KEYS[c].toLowerCase();d[u]=parseInt(c,10)}for(var c in d.PRINTABLE_KEYS){var u=d.PRINTABLE_KEYS[c].toLowerCase();d[u]=parseInt(c,10)}a.mixin(d,d.MODIFIER_KEYS),a.mixin(d,d.PRINTABLE_KEYS),a.mixin(d,d.FUNCTION_KEYS),d.enter=d.return,d.escape=d.esc,d.del=d.delete,function(){for(var h=["cmd","ctrl","alt","shift"],f=Math.pow(2,h.length);f--;)d.KEY_MODS[f]=h.filter(function(m){return f&d.KEY_MODS[m]}).join("-")+"-"}(),d.KEY_MODS[0]="",d.KEY_MODS[-1]="input-",a.mixin(i,d),i.default=i,i.keyCodeToString=function(h){var f=d[h];return typeof f!="string"&&(f=String.fromCharCode(h)),f.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,o){var a=n("./keys"),d=n("./useragent"),g=null,l=0,p;function s(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function r(){return p==null&&s(),p}function c($,_,S){this.elem=$,this.type=_,this.callback=S}c.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=i.addListener=function($,_,S,b){$.addEventListener(_,S,r()),b&&b.$toDestroy.push(new c($,_,S))},h=i.removeListener=function($,_,S){$.removeEventListener(_,S,r())};i.stopEvent=function($){return i.stopPropagation($),i.preventDefault($),!1},i.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},i.preventDefault=function($){$.preventDefault&&$.preventDefault()},i.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||d.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},i.capture=function($,_,S){var b=$&&$.ownerDocument||document;function M(I){_&&_(I),S&&S(I),h(b,"mousemove",_),h(b,"mouseup",M),h(b,"dragstart",M)}return u(b,"mousemove",_),u(b,"mouseup",M),u(b,"dragstart",M),M},i.addMouseWheelListener=function($,_,S){u($,"wheel",function(b){var M=.15,I=b.deltaX||0,L=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=I*M,b.wheelY=L*M;break;case b.DOM_DELTA_LINE:var T=15;b.wheelX=I*T,b.wheelY=L*T;break;case b.DOM_DELTA_PAGE:var k=150;b.wheelX=I*k,b.wheelY=L*k;break}_(b)},S)},i.addMultiMouseDownListener=function($,_,S,b,M){var I=0,L,T,k,x={2:"dblclick",3:"tripleclick",4:"quadclick"};function C(w){if(i.getButton(w)!==0?I=0:w.detail>1?(I++,I>4&&(I=1)):I=1,d.isIE){var A=Math.abs(w.clientX-L)>5||Math.abs(w.clientY-T)>5;(!k||A)&&(I=1),k&&clearTimeout(k),k=setTimeout(function(){k=null},_[I-1]||600),I==1&&(L=w.clientX,T=w.clientY)}if(w._clicks=I,S[b]("mousedown",w),I>4)I=0;else if(I>1)return S[b](x[I],w)}Array.isArray($)||($=[$]),$.forEach(function(w){u(w,"mousedown",C,M)})};function f($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)}i.getModifierString=function($){return a.KEY_MODS[f($)]};function m($,_,S){var b=f(_);if(!S&&_.code&&(S=a.$codeToKeyCode[_.code]||S),!d.isMac&&g){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=3)g.altGr=0;else return;if(S===18||S===17){var M=_.location;if(S===17&&M===1)g[S]==1&&(l=_.timeStamp);else if(S===18&&b===3&&M===2){var I=_.timeStamp-l;I<50&&(g.altGr=!0)}}}if(S in a.MODIFIER_KEYS&&(S=-1),!(!b&&S===13&&_.location===3&&($(_,b,-S),_.defaultPrevented))){if(d.isChromeOS&&b&8){if($(_,b,S),_.defaultPrevented)return;b&=-9}return!b&&!(S in a.FUNCTION_KEYS)&&!(S in a.PRINTABLE_KEYS)?!1:$(_,b,S)}}i.addCommandKeyListener=function($,_,S){var b=null;u($,"keydown",function(M){g[M.keyCode]=(g[M.keyCode]||0)+1;var I=m(_,M,M.keyCode);return b=M.defaultPrevented,I},S),u($,"keypress",function(M){b&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(i.stopEvent(M),b=null)},S),u($,"keyup",function(M){g[M.keyCode]=null},S),g||(v(),u(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var y=1;i.nextTick=function($,_){_=_||window;var S="zero-timeout-message-"+y++,b=function(M){M.data==S&&(i.stopPropagation(M),h(_,"message",b),$())};u(_,"message",b),_.postMessage(S,"*")}}i.$idleBlocked=!1,i.onIdle=function($,_){return setTimeout(function S(){i.$idleBlocked?setTimeout(S,100):$()},_)},i.$idleBlockId=null,i.blockIdle=function($){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},$||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,o){var a;o.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,o){var a=n("../lib/event"),d=n("../config").nls,g=n("../lib/useragent"),l=n("../lib/dom"),p=n("../lib/lang"),s=n("../clipboard"),r=g.isChrome<18,c=g.isIE,u=g.isChrome>63,h=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,$=g.isMobile,_;_=function(S,b){var M=l.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck","false"),M.style.opacity="0",S.insertBefore(M,S.firstChild);var I=!1,L=!1,T=!1,k=!1,x="";$||(M.style.fontSize="1px");var C=!1,w=!1,A="",E=0,R=0,O=0,N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,z=0;try{var U=document.activeElement===M}catch{}this.setNumberOfExtraLines=function(Z){if(N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,Z<0){z=0;return}z=Z},this.setAriaOptions=function(Z){if(Z.activeDescendant?(M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-autocomplete",Z.inline?"both":"list"),M.setAttribute("aria-activedescendant",Z.activeDescendant)):(M.setAttribute("aria-haspopup","false"),M.setAttribute("aria-autocomplete","both"),M.removeAttribute("aria-activedescendant")),Z.role&&M.setAttribute("role",Z.role),Z.setLabel){M.setAttribute("aria-roledescription",d("text-input.aria-roledescription","editor"));var ae="";if(b.$textInputAriaLabel&&(ae+="".concat(b.$textInputAriaLabel,", ")),b.session){var fe=b.session.selection.cursor.row;ae+=d("text-input.aria-label","Cursor at row $0",[fe+1])}M.setAttribute("aria-label",ae)}},this.setAriaOptions({role:"textbox"}),a.addListener(M,"blur",function(Z){w||(b.onBlur(Z),U=!1)},b),a.addListener(M,"focus",function(Z){if(!w){if(U=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(Z),g.isEdge?setTimeout(B):B()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),x||u||this.$focusScroll=="browser")return M.focus({preventScroll:!0});var Z=M.style.top;M.style.position="fixed",M.style.top="0px";try{var ae=M.getBoundingClientRect().top!=0}catch{return}var fe=[];if(ae)for(var be=M.parentElement;be&&be.nodeType==1;)fe.push(be),be.setAttribute("ace_nocontext","true"),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;M.focus({preventScroll:!0}),ae&&fe.forEach(function(Oe){Oe.removeAttribute("ace_nocontext")}),setTimeout(function(){M.style.position="",M.style.top=="0px"&&(M.style.top=Z)},0)},this.blur=function(){M.blur()},this.isFocused=function(){return U},b.on("beforeEndOperation",function(){var Z=b.curOp,ae=Z&&Z.command&&Z.command.name;if(ae!="insertstring"){var fe=ae&&(Z.docChanged||Z.selectionChanged);T&&fe&&(A=M.value="",re()),B()}});var j=function(Z,ae){for(var fe=ae,be=1;be<=Z-N&&be<2*z+1;be++)fe+=b.session.getLine(Z-be).length+1;return fe},B=v?function(Z){if(!(!U||I&&!Z||k)){Z||(Z="");var ae=`
764
+ ab`+Z+`cde fg
765
+ `;ae!=M.value&&(M.value=A=ae);var fe=4,be=4+(Z.length||(b.selection.isEmpty()?0:1));(E!=fe||R!=be)&&M.setSelectionRange(fe,be),E=fe,R=be}}:function(){if(!(T||k)&&!(!U&&!K)){T=!0;var Z=0,ae=0,fe="";if(b.session){var be=b.selection,Oe=be.getRange(),Be=be.cursor.row;Be===F+1?(N=F+1,F=N+2*z):Be===N-1?(F=N-1,N=F-2*z):(Be<N-1||Be>F+1)&&(N=Be>z?Be-z:0,F=Be>z?Be+z:2*z);for(var Ue=[],ze=N;ze<=F;ze++)Ue.push(b.session.getLine(ze));if(fe=Ue.join(`
766
+ `),Z=j(Oe.start.row,Oe.start.column),ae=j(Oe.end.row,Oe.end.column),Oe.start.row<N){var Ye=b.session.getLine(N-1);Z=Oe.start.row<N-1?0:Z,ae+=Ye.length+1,fe=Ye+`
767
+ `+fe}else if(Oe.end.row>F){var Ve=b.session.getLine(F+1);ae=Oe.end.row>F+1?Ve.length:Oe.end.column,ae+=fe.length+1,fe=fe+`
768
+ `+Ve}else $&&Be>0&&(fe=`
769
+ `+fe,ae+=1,Z+=1);fe.length>h&&(Z<h&&ae<h?fe=fe.slice(0,h):(fe=`
770
+ `,Z==ae?Z=ae=0:(Z=0,ae=1)));var Qe=fe+`
771
+
772
+ `;Qe!=A&&(M.value=A=Qe,E=R=Qe.length)}if(K&&(E=M.selectionStart,R=M.selectionEnd),R!=ae||E!=Z||M.selectionEnd!=R)try{M.setSelectionRange(Z,ae),E=Z,R=ae}catch{}T=!1}};this.resetSelection=B,U&&b.onFocus();var V=function(Z){return Z.selectionStart===0&&Z.selectionEnd>=A.length&&Z.value===A&&A&&Z.selectionEnd!==R},Q=function(Z){T||(I?I=!1:V(M)?(b.selectAll(),B()):$&&M.selectionStart!=E&&B())},H=null;this.setInputHandler=function(Z){H=Z},this.getInputHandler=function(){return H};var K=!1,X=function(Z,ae){if(K&&(K=!1),L)return B(),Z&&b.onPaste(Z),L=!1,"";for(var fe=M.selectionStart,be=M.selectionEnd,Oe=E,Be=A.length-R,Ue=Z,ze=Z.length-fe,Ye=Z.length-be,Ve=0;Oe>0&&A[Ve]==Z[Ve];)Ve++,Oe--;for(Ue=Ue.slice(Ve),Ve=1;Be>0&&A.length-Ve>E-1&&A[A.length-Ve]==Z[Z.length-Ve];)Ve++,Be--;ze-=Ve-1,Ye-=Ve-1;var Qe=Ue.length-Ve+1;if(Qe<0&&(Oe=-Qe,Qe=0),Ue=Ue.slice(0,Qe),!ae&&!Ue&&!ze&&!Oe&&!Be&&!Ye)return"";k=!0;var vt=!1;return g.isAndroid&&Ue==". "&&(Ue=" ",vt=!0),Ue&&!Oe&&!Be&&!ze&&!Ye||C?b.onTextInput(Ue):b.onTextInput(Ue,{extendLeft:Oe,extendRight:Be,restoreStart:ze,restoreEnd:Ye}),k=!1,A=Z,E=fe,R=be,O=Ye,vt?`
773
+ `:Ue},q=function(Z){if(T)return ee();if(Z&&Z.inputType){if(Z.inputType=="historyUndo")return b.execCommand("undo");if(Z.inputType=="historyRedo")return b.execCommand("redo")}var ae=M.value,fe=X(ae,!0);(ae.length>h+100||y.test(fe)||$&&E<1&&E==R)&&B()},ue=function(Z,ae,fe){var be=Z.clipboardData||window.clipboardData;if(!(!be||r)){var Oe=c||fe?"Text":"text/plain";try{return ae?be.setData(Oe,ae)!==!1:be.getData(Oe)}catch(Be){if(!fe)return ue(Be,ae,!0)}}},we=function(Z,ae){var fe=b.getCopyText();if(!fe)return a.preventDefault(Z);ue(Z,fe)?(v&&(B(fe),I=fe,setTimeout(function(){I=!1},10)),ae?b.onCut():b.onCopy(),a.preventDefault(Z)):(I=!0,M.value=fe,M.select(),setTimeout(function(){I=!1,B(),ae?b.onCut():b.onCopy()}))},P=function(Z){we(Z,!0)},W=function(Z){we(Z,!1)},G=function(Z){var ae=ue(Z);s.pasteCancelled()||(typeof ae=="string"?(ae&&b.onPaste(ae,Z),g.isIE&&setTimeout(B),a.preventDefault(Z)):(M.value="",L=!0))};a.addCommandKeyListener(M,function(Z,ae,fe){if(!T)return b.onCommandKey(Z,ae,fe)},b),a.addListener(M,"select",Q,b),a.addListener(M,"input",q,b),a.addListener(M,"cut",P,b),a.addListener(M,"copy",W,b),a.addListener(M,"paste",G,b),(!("oncut"in M)||!("oncopy"in M)||!("onpaste"in M))&&a.addListener(S,"keydown",function(Z){if(!(g.isMac&&!Z.metaKey||!Z.ctrlKey))switch(Z.keyCode){case 67:W(Z);break;case 86:G(Z);break;case 88:P(Z);break}},b);var ne=function(Z){if(!(T||!b.onCompositionStart||b.$readOnly)&&(T={},!C)){Z.data&&(T.useTextareaForIME=!1),setTimeout(ee,0),b._signal("compositionStart"),b.on("mousedown",pe);var ae=b.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,T.markerRange=ae,T.selectionStart=E,b.onCompositionStart(T),T.useTextareaForIME?(A=M.value="",E=0,R=0):(M.msGetInputContext&&(T.context=M.msGetInputContext()),M.getInputContext&&(T.context=M.getInputContext()))}},ee=function(){if(!(!T||!b.onCompositionUpdate||b.$readOnly)){if(C)return pe();if(T.useTextareaForIME)b.onCompositionUpdate(M.value);else{var Z=M.value;X(Z),T.markerRange&&(T.context&&(T.markerRange.start.column=T.selectionStart=T.context.compositionStartOffset),T.markerRange.end.column=T.markerRange.start.column+R-T.selectionStart+O)}}},re=function(Z){!b.onCompositionEnd||b.$readOnly||(T=!1,b.onCompositionEnd(),b.off("mousedown",pe),Z&&q())};function pe(){w=!0,M.blur(),M.focus(),w=!1}var de=p.delayedCall(ee,50).schedule.bind(null,null);function he(Z){Z.keyCode==27&&M.value.length<M.selectionStart&&(T||(A=M.value),E=R=-1,B()),de()}a.addListener(M,"compositionstart",ne,b),a.addListener(M,"compositionupdate",ee,b),a.addListener(M,"keyup",he,b),a.addListener(M,"keydown",de,b),a.addListener(M,"compositionend",re,b),this.getElement=function(){return M},this.setCommandMode=function(Z){C=Z,M.readOnly=!1},this.setReadOnly=function(Z){C||(M.readOnly=Z)},this.setCopyWithEmptySelection=function(Z){},this.onContextMenu=function(Z){K=!0,B(),b._emit("nativecontextmenu",{target:b,domEvent:Z}),this.moveToMouse(Z,!0)},this.moveToMouse=function(Z,ae){x||(x=M.style.cssText),M.style.cssText=(ae?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(E+R)*b.renderer.characterWidth*.5+"px;";var fe=b.container.getBoundingClientRect(),be=l.computedStyle(b.container),Oe=fe.top+(parseInt(be.borderTopWidth)||0),Be=fe.left+(parseInt(fe.borderLeftWidth)||0),Ue=fe.bottom-Oe-M.clientHeight-2,ze=function(Ye){l.translate(M,Ye.clientX-Be-2,Math.min(Ye.clientY-Oe-2,Ue))};ze(Z),Z.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(oe),g.isWin&&a.capture(b.container,ze,Me))},this.onContextMenuClose=Me;var oe;function Me(){clearTimeout(oe),oe=setTimeout(function(){x&&(M.style.cssText=x,x=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var me=function(Z){b.textInput.onContextMenu(Z),Me()};a.addListener(M,"mouseup",me,b),a.addListener(M,"mousedown",function(Z){Z.preventDefault(),Me()},b),a.addListener(b.renderer.scroller,"contextmenu",me,b),a.addListener(M,"contextmenu",me,b),v&&$e(S,b,M);function $e(Z,ae,fe){var be=null,Oe=!1;fe.addEventListener("keydown",function(Ue){be&&clearTimeout(be),Oe=!0},!0),fe.addEventListener("keyup",function(Ue){be=setTimeout(function(){Oe=!1},100)},!0);var Be=function(Ue){if(document.activeElement===fe&&!(Oe||T||ae.$mouseHandler.isMousePressed)&&!I){var ze=fe.selectionStart,Ye=fe.selectionEnd,Ve=null,Qe=0;if(ze==0?Ve=f.up:ze==1?Ve=f.home:Ye>R&&A[Ye]==`
774
+ `?Ve=f.end:ze<E&&A[ze-1]==" "?(Ve=f.left,Qe=m.option):ze<E||ze==E&&R!=E&&ze==Ye?Ve=f.left:Ye>R&&A.slice(0,Ye).split(`
775
+ `).length>2?Ve=f.down:Ye>R&&A[Ye-1]==" "?(Ve=f.right,Qe=m.option):(Ye>R||Ye==R&&R!=E&&ze==Ye)&&(Ve=f.right),ze!==Ye&&(Qe|=m.shift),Ve){var vt=ae.onCommandKey({},Qe,Ve);if(!vt&&ae.commands){Ve=f.keyCodeToString(Ve);var Gi=ae.commands.findKeyCommand(Qe,Ve);Gi&&ae.execCommand(Gi)}E=ze,R=Ye,B("")}}};document.addEventListener("selectionchange",Be),ae.on("destroy",function(){document.removeEventListener("selectionchange",Be)})}this.destroy=function(){M.parentElement&&M.parentElement.removeChild(M)}},i.TextInput=_,i.$setUserAgentForTests=function(S,b){$=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,o){var a=n("../lib/useragent"),d=0,g=550,l=function(){function r(c){c.$clickSelection=null;var u=c.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var h=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];h.forEach(function(f){c[f]=this[f]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return r.prototype.onMouseDown=function(c){var u=c.inSelection(),h=c.getDocumentPosition();this.mousedownEvent=c;var f=this.editor,m=c.getButton();if(m!==0){var v=f.getSelectionRange(),y=v.isEmpty();(y||m==1)&&f.selection.moveToPosition(h),m==2&&(f.textInput.onContextMenu(c.domEvent),a.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(h,c.domEvent._clicks>1),c.preventDefault()},r.prototype.startSelect=function(c,u){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var h=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?h.selection.selectToPosition(c):u||h.selection.moveToPosition(c),u||this.select(),h.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var c,u=this.editor,h=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(h);if(f==-1)c=this.$clickSelection.end;else if(f==1)c=this.$clickSelection.start;else{var m=s(this.$clickSelection,h);h=m.cursor,c=m.anchor}u.selection.setSelectionAnchor(c.row,c.column)}u.selection.selectToPosition(h),u.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(c){var u,h=this.editor,f=h.renderer.screenToTextCoordinates(this.x,this.y),m=h.selection[c](f.row,f.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)u=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)u=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&y==1)f=m.end,u=m.start;else{var $=s(this.$clickSelection,f);f=$.cursor,u=$.anchor}h.selection.setSelectionAnchor(u.row,u.column)}h.selection.selectToPosition(f),h.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(c>d||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(c){var u=c.getDocumentPosition(),h=this.editor,f=h.session,m=f.getBracketRange(u);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=h.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(c){var u=c.getDocumentPosition(),h=this.editor;this.setState("selectByLines");var f=h.getSelectionRange();f.isMultiLine()&&f.contains(u.row,u.column)?(this.$clickSelection=h.selection.getLineRange(f.start.row),this.$clickSelection.end=h.selection.getLineRange(f.end.row).end):this.$clickSelection=h.selection.getLineRange(u.row),this.select()},r.prototype.onQuadClick=function(c){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var h=this.$lastScroll,f=c.domEvent.timeStamp,m=f-h.t,v=m?c.wheelX/m:h.vx,y=m?c.wheelY/m:h.vy;m<g&&(v=(v+h.vx)/2,y=(y+h.vy)/2);var $=Math.abs(v/y),_=!1;if($>=1&&u.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(_=!0),$<=1&&u.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(_=!0),_)h.allowed=f;else if(f-h.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(h.vx)&&Math.abs(y)<=1.5*Math.abs(h.vy);S?(_=!0,h.allowed=f):h.allowed=0}if(h.t=f,h.vx=v,h.vy=y,_)return u.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},r}();l.prototype.selectEnd=l.prototype.selectByLinesEnd,l.prototype.selectAllEnd=l.prototype.selectByLinesEnd,l.prototype.selectByWordsEnd=l.prototype.selectByLinesEnd,i.DefaultHandlers=l;function p(r,c,u,h){return Math.sqrt(Math.pow(u-r,2)+Math.pow(h-c,2))}function s(r,c){if(r.start.row==r.end.row)var u=2*c.column-r.start.column-r.end.column;else if(r.start.row==r.end.row-1&&!r.start.column&&!r.end.column)var u=c.column-4;else var u=2*c.row-r.start.row-r.end.row;return u<0?{cursor:r.start,anchor:r.end}:{cursor:r.end,anchor:r.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,i,o){i.preventParentScroll=function(d){d.stopPropagation();var g=d.currentTarget,l=g.scrollHeight>g.clientHeight;l||d.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,i,o){var a=this&&this.__extends||function(){var f=function(m,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,$){y.__proto__=$}||function(y,$){for(var _ in $)Object.prototype.hasOwnProperty.call($,_)&&(y[_]=$[_])},f(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");f(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),d=this&&this.__values||function(f){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&f[m],y=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&y>=f.length&&(f=void 0),{value:f&&f[y++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var l=n("./range").Range,p=n("./lib/scroll").preventParentScroll,s="ace_tooltip",r=function(){function f(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return f.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(m){this.getElement().textContent=m},f.prototype.setHtml=function(m){this.getElement().innerHTML=m},f.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},f.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},f.prototype.setTheme=function(m){this.$element.className=s+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},f.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},f.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},f.prototype.getHeight=function(){return this.getElement().offsetHeight},f.prototype.getWidth=function(){return this.getElement().offsetWidth},f.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},f}(),c=function(){function f(){this.popups=[]}return f.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},f.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},f.prototype.updatePopups=function(){var m,v,y,$;this.popups.sort(function(x,C){return C.priority-x.priority});var _=[];try{for(var S=d(this.popups),b=S.next();!b.done;b=S.next()){var M=b.value,I=!0;try{for(var L=(y=void 0,d(_)),T=L.next();!T.done;T=L.next()){var k=T.value;if(this.doPopupsOverlap(k,M)){I=!1;break}}}catch(x){y={error:x}}finally{try{T&&!T.done&&($=L.return)&&$.call(L)}finally{if(y)throw y.error}}I?_.push(M):M.hide()}}catch(x){m={error:x}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}},f.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),$=v.getElement().getBoundingClientRect();return y.left<$.right&&y.right>$.left&&y.top<$.bottom&&y.bottom>$.top},f}(),u=new c;i.popupManager=u,i.Tooltip=r;var h=function(f){a(m,f);function m(v){v===void 0&&(v=document.body);var y=f.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var $=y.getElement();return $.style.whiteSpace="pre-wrap",$.style.pointerEvents="auto",$.addEventListener("mouseout",y.onMouseOut),$.tabIndex=-1,$.addEventListener("blur",(function(){$.contains(document.activeElement)||this.hide()}).bind(y)),$.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var $=y.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||$||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||$||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,$=v.getDocumentPosition(),_=y.session.getLine($.row);if($.column==_.length){var S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition($.row,$.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,$,_){var S=10;if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=l.fromPoints(y.start,y.end);var M=b.textToScreenCoordinates(y.start.row,y.start.column),I=b.scroller.getBoundingClientRect();M.pageX<I.left&&(M.pageX=I.left);var L=this.getElement();L.innerHTML="",L.appendChild($),L.style.maxHeight="",L.style.display="block";var T=L.clientHeight,k=L.clientWidth,x=window.innerHeight-M.pageY-b.lineHeight,C=!0;M.pageY-T<0&&M.pageY<x&&(C=!1),L.style.maxHeight=(C?M.pageY:x)-S+"px",L.style.top=C?"":M.pageY+b.lineHeight+"px",L.style.bottom=C?window.innerHeight-M.pageY+"px":"",L.style.left=Math.min(M.pageX,window.innerWidth-k-S)+"px"}},m.prototype.addMarker=function(v,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(v,"ace_highlight-marker","text")},m.prototype.hide=function(v){!v&&document.activeElement==this.getElement()||v&&v.target&&(v.type!="keydown"||v.ctrlKey||v.metaKey)&&this.$element.contains(v.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},m}(r);i.HoverTooltip=h}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(n,i,o){var a=this&&this.__extends||function(){var u=function(h,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},u(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=this&&this.__values||function(u){var h=typeof Symbol=="function"&&Symbol.iterator,f=h&&u[h],m=0;if(f)return f.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),l=n("../lib/event"),p=n("../tooltip").Tooltip,s=n("../config").nls;n("../lib/lang");function r(u){var h=u.editor,f=h.renderer.$gutterLayer,m=new c(h);u.editor.setDefaultHandler("guttermousedown",function(b){if(!(!h.isFocused()||b.getButton()!=0)){var M=f.getRegion(b);if(M!="foldWidgets"){var I=b.getDocumentPosition().row,L=h.session.selection;if(b.getShiftKey())L.selectTo(I,0);else{if(b.domEvent.detail==2)return h.selectAll(),b.preventDefault();u.$clickSelection=h.selection.getLineRange(I)}return u.setState("selectByLines"),u.captureMouse(b),b.preventDefault()}}});var v,y;function $(){var b=y.getDocumentPosition().row,M=h.session.getLength();if(b==M){var I=h.renderer.pixelToScreenCoordinates(0,y.y).row,L=y.$pos;if(I>h.session.documentToScreenRow(L.row,L.column))return _()}if(m.showTooltip(b),!!m.isOpen)if(h.on("mousewheel",_),u.$tooltipFollowsMouse)S(y);else{var T=y.getGutterRow(),k=f.$lines.get(T);if(k){var x=k.element.querySelector(".ace_gutter_annotation"),C=x.getBoundingClientRect(),w=m.getElement().style;w.left=C.right+"px",w.top=C.bottom+"px"}else S(y)}}function _(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),h.off("mousewheel",_))}function S(b){m.setPosition(b.x,b.y)}u.editor.setDefaultHandler("guttermousemove",function(b){var M=b.domEvent.target||b.domEvent.srcElement;if(g.hasCssClass(M,"ace_fold-widget"))return _();m.isOpen&&u.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!u.isMousePressed?$():_()},50))}),l.addListener(h.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,_()},50))},h),h.on("changeSession",_),h.on("input",_)}i.GutterHandler=r;var c=function(u){a(h,u);function h(f){var m=u.call(this,f.container)||this;return m.editor=f,m}return h.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,$=this.getWidth(),_=this.getHeight();f+=15,m+=15,f+$>v&&(f-=f+$-v),m+_>y&&(m-=20+_),p.prototype.setPosition.call(this,f,m)},Object.defineProperty(h,"annotationLabels",{get:function(){return{error:{singular: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}),h.prototype.showTooltip=function(f){var m,v=this.editor.renderer.$gutterLayer,y=v.$annotations[f],$;y?$={displayText:Array.from(y.displayText),type:Array.from(y.type)}:$={displayText:[],type:[]};var _=v.session.getFoldLine(f);if(_&&v.$showFoldedAnnotations){for(var S={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},M,I=f+1;I<=_.end.row;I++)if(v.$annotations[I])for(var L=0;L<v.$annotations[I].text.length;L++){var T=v.$annotations[I].type[L];S[T].push(v.$annotations[I].text[L]),(!M||b[T]<b[M])&&(M=T)}if(["error","security","warning"].includes(M)){var k="".concat(h.annotationsToSummaryString(S)," in folded code.");$.displayText.push(k),$.type.push(M+"_fold")}}if($.displayText.length===0)return this.hide();for(var x={error:[],security:[],warning:[],info:[],hint:[]},C=v.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=0;I<$.displayText.length;I++){var w=g.createElement("span"),A=g.createElement("span");(m=A.classList).add.apply(m,["ace_".concat($.type[I]),C]),A.setAttribute("aria-label","".concat(h.annotationLabels[$.type[I].replace("_fold","")].singular)),A.setAttribute("role","img"),A.appendChild(g.createTextNode(" ")),w.appendChild(A),w.appendChild(g.createTextNode($.displayText[I])),w.appendChild(g.createElement("br")),x[$.type[I].replace("_fold","")].push(w)}var E=this.getElement();g.removeChildren(E),x.error.forEach(function(R){return E.appendChild(R)}),x.security.forEach(function(R){return E.appendChild(R)}),x.warning.forEach(function(R){return E.appendChild(R)}),x.info.forEach(function(R){return E.appendChild(R)}),x.hint.forEach(function(R){return E.appendChild(R)}),E.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},h.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},h.annotationsToSummaryString=function(f){var m,v,y=[],$=["error","security","warning","info","hint"];try{for(var _=d($),S=_.next();!S.done;S=_.next()){var b=S.value;if(f[b].length){var M=f[b].length===1?h.annotationLabels[b].singular:h.annotationLabels[b].plural;y.push("".concat(f[b].length," ").concat(M))}}}catch(I){m={error:I}}finally{try{S&&!S.done&&(v=_.return)&&v.call(_)}finally{if(m)throw m.error}}return y.join(", ")},h}(p);i.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,o){var a=n("../lib/event"),d=n("../lib/useragent"),g=function(){function l(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 l.prototype.stopPropagation=function(){a.stopPropagation(this.domEvent),this.propagationStopped=!0},l.prototype.preventDefault=function(){a.preventDefault(this.domEvent),this.defaultPrevented=!0},l.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},l.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},l.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(p,0),r=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-r},l.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 r=this.getDocumentPosition();this.$inSelection=s.contains(r.row,r.column)}return this.$inSelection},l.prototype.getButton=function(){return a.getButton(this.domEvent)},l.prototype.getShiftKey=function(){return this.domEvent.shiftKey},l.prototype.getAccelKey=function(){return d.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},l}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,o){var a=n("../lib/dom"),d=n("../lib/event"),g=n("../lib/useragent"),l=200,p=200,s=5;function r(u){var h=u.editor,f=a.createElement("div");f.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",f.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(j){u[j]=this[j]},this),h.on("mousedown",this.onMouseDown.bind(u));var v=h.container,y,$,_,S,b,M,I=0,L,T,k,x,C;this.onDragStart=function(j){if(this.cancelDrag||!v.draggable){var B=this;return setTimeout(function(){B.startSelect(),B.captureMouse(j)},0),j.preventDefault()}b=h.getSelectionRange();var V=j.dataTransfer;V.effectAllowed=h.getReadOnly()?"copy":"copyMove",h.container.appendChild(f),V.setDragImage&&V.setDragImage(f,0,0),setTimeout(function(){h.container.removeChild(f)}),V.clearData(),V.setData("Text",h.session.getTextRange()),T=!0,this.setState("drag")},this.onDragEnd=function(j){if(v.draggable=!1,T=!1,this.setState(null),!h.getReadOnly()){var B=j.dataTransfer.dropEffect;!L&&B=="move"&&h.session.remove(h.getSelectionRange()),h.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(j){if(!(h.getReadOnly()||!z(j.dataTransfer)))return $=j.clientX,_=j.clientY,y||R(),I++,j.dataTransfer.dropEffect=L=U(j),d.preventDefault(j)},this.onDragOver=function(j){if(!(h.getReadOnly()||!z(j.dataTransfer)))return $=j.clientX,_=j.clientY,y||(R(),I++),N!==null&&(N=null),j.dataTransfer.dropEffect=L=U(j),d.preventDefault(j)},this.onDragLeave=function(j){if(I--,I<=0&&y)return O(),L=null,d.preventDefault(j)},this.onDrop=function(j){if(M){var B=j.dataTransfer;if(T)switch(L){case"move":b.contains(M.row,M.column)?b={start:M,end:M}:b=h.moveText(b,M);break;case"copy":b=h.moveText(b,M,!0);break}else{var V=B.getData("Text");b={start:M,end:h.session.insert(M,V)},h.focus(),L=null}return O(),d.preventDefault(j)}},d.addListener(v,"dragstart",this.onDragStart.bind(u),h),d.addListener(v,"dragend",this.onDragEnd.bind(u),h),d.addListener(v,"dragenter",this.onDragEnter.bind(u),h),d.addListener(v,"dragover",this.onDragOver.bind(u),h),d.addListener(v,"dragleave",this.onDragLeave.bind(u),h),d.addListener(v,"drop",this.onDrop.bind(u),h);function w(j,B){var V=Date.now(),Q=!B||j.row!=B.row,H=!B||j.column!=B.column;if(!x||Q||H)h.moveCursorToPosition(j),x=V,C={x:$,y:_};else{var K=c(C.x,C.y,$,_);K>s?x=null:V-x>=p&&(h.renderer.scrollCursorIntoView(),x=null)}}function A(j,B){var V=Date.now(),Q=h.renderer.layerConfig.lineHeight,H=h.renderer.layerConfig.characterWidth,K=h.renderer.scroller.getBoundingClientRect(),X={x:{left:$-K.left,right:K.right-$},y:{top:_-K.top,bottom:K.bottom-_}},q=Math.min(X.x.left,X.x.right),ue=Math.min(X.y.top,X.y.bottom),we={row:j.row,column:j.column};q/H<=2&&(we.column+=X.x.left<X.x.right?-3:2),ue/Q<=1&&(we.row+=X.y.top<X.y.bottom?-1:1);var P=j.row!=we.row,W=j.column!=we.column,G=!B||j.row!=B.row;P||W&&!G?k?V-k>=l&&h.renderer.scrollCursorIntoView(we):k=V:k=null}function E(){var j=M;M=h.renderer.screenToTextCoordinates($,_),w(M,j),A(M,j)}function R(){b=h.selection.toOrientedRange(),y=h.session.addMarker(b,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),E(),S=setInterval(E,20),I=0,d.addListener(document,"mousemove",F)}function O(){clearInterval(S),h.session.removeMarker(y),y=null,h.selection.fromOrientedRange(b),h.isFocused()&&!T&&h.$resetCursorStyle(),b=null,M=null,I=0,k=null,x=null,d.removeListener(document,"mousemove",F)}var N=null;function F(){N==null&&(N=setTimeout(function(){N!=null&&y&&O()},20))}function z(j){var B=j.types;return!B||Array.prototype.some.call(B,function(V){return V=="text/plain"||V=="Text"})}function U(j){var B=["copy","copymove","all","uninitialized"],V=["move","copymove","linkmove","all","uninitialized"],Q=g.isMac?j.altKey:j.ctrlKey,H="uninitialized";try{H=j.dataTransfer.effectAllowed.toLowerCase()}catch{}var K="none";return Q&&B.indexOf(H)>=0?K="copy":V.indexOf(H)>=0?K="move":B.indexOf(H)>=0&&(K="copy"),K}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,h=u.container;h.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var f=g.isWin?"default":"move";u.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(u){var h=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&h.dragDrop()}if(this.state==="dragWait"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var h=this.editor,f=u.inSelection(),m=u.getButton(),v=u.domEvent.detail||1;if(v===1&&m===0&&f){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),h.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var $=h.container;$.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(r.prototype);function c(u,h,f,m){return Math.sqrt(Math.pow(f-u,2)+Math.pow(m-h,2))}i.DragdropHandler=r}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,o){var a=n("./mouse_event").MouseEvent,d=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(l,p){var s="scroll",r,c,u,h,f,m,v=0,y,$=0,_=0,S=0,b,M;function I(){var w=window.navigator&&window.navigator.clipboard,A=!1,E=function(){var N=p.getCopyText(),F=p.session.getUndoManager().hasUndo();M.replaceChild(g.buildDom(A?["span",!N&&R("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&R("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&R("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&R("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&R("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],R("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],R("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),M.firstChild)},R=function(N){return p.commands.canExecute(N,p)},O=function(N){var F=N.target.getAttribute("action");if(F=="more"||!A)return A=!A,E();F=="paste"?w.readText().then(function(z){p.execCommand(F,z)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(F)),M.firstChild.style.display="none",A=!1,F!="openCommandPalette"&&p.focus()};M=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){s="menu",N.stopPropagation(),N.preventDefault(),p.textInput.focus()},ontouchend:function(N){N.stopPropagation(),N.preventDefault(),O(N)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function L(){if(!p.getOption("enableMobileMenu")){M&&T();return}M||I();var w=p.selection.cursor,A=p.renderer.textToScreenCoordinates(w.row,w.column),E=p.renderer.textToScreenCoordinates(0,0).pageX,R=p.renderer.scrollLeft,O=p.container.getBoundingClientRect();M.style.top=A.pageY-O.top-3+"px",A.pageX-O.left<O.width-70?(M.style.left="",M.style.right="10px"):(M.style.right="",M.style.left=E+R-O.left+"px"),M.style.display="",M.firstChild.style.display="none",p.on("input",T)}function T(w){M&&(M.style.display="none"),p.off("input",T)}function k(){f=null,clearTimeout(f);var w=p.selection.getRange(),A=w.contains(y.row,y.column);(w.isEmpty()||!A)&&(p.selection.moveToPosition(y),p.selection.selectWord()),s="wait",L()}function x(){f=null,clearTimeout(f),p.selection.moveToPosition(y);var w=$>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),s="wait"}d.addListener(l,"contextmenu",function(w){if(b){var A=p.textInput.getElement();A.focus()}},p),d.addListener(l,"touchstart",function(w){var A=w.touches;if(f||A.length>1){clearTimeout(f),f=null,u=-1,s="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var E=p.renderer.layerConfig.lineHeight,R=p.renderer.layerConfig.lineHeight,O=w.timeStamp;h=O;var N=A[0],F=N.clientX,z=N.clientY;Math.abs(r-F)+Math.abs(c-z)>E&&(u=-1),r=w.clientX=F,c=w.clientY=z,_=S=0;var U=new a(w,p);if(y=U.getDocumentPosition(),O-u<500&&A.length==1&&!v)$++,w.preventDefault(),w.button=0,x();else{$=0;var j=p.selection.cursor,B=p.selection.isEmpty()?j:p.selection.anchor,V=p.renderer.$cursorLayer.getPixelPosition(j,!0),Q=p.renderer.$cursorLayer.getPixelPosition(B,!0),H=p.renderer.scroller.getBoundingClientRect(),K=p.renderer.layerConfig.offset,X=p.renderer.scrollLeft,q=function(P,W){return P=P/R,W=W/E-.75,P*P+W*W};if(w.clientX<H.left){s="zoom";return}var ue=q(w.clientX-H.left-V.left+X,w.clientY-H.top-V.top+K),we=q(w.clientX-H.left-Q.left+X,w.clientY-H.top-Q.top+K);ue<3.5&&we<3.5&&(s=ue>we?"cursor":"anchor"),we<3.5?s="anchor":ue<3.5?s="cursor":s="scroll",f=setTimeout(k,450)}u=O},p),d.addListener(l,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",v=0):f?(p.selection.moveToPosition(y),v=0,L()):s=="scroll"?(C(),T()):L(),clearTimeout(f),f=null},p),d.addListener(l,"touchmove",function(w){f&&(clearTimeout(f),f=null);var A=w.touches;if(!(A.length>1||s=="zoom")){var E=A[0],R=r-E.clientX,O=c-E.clientY;if(s=="wait")if(R*R+O*O>4)s="cursor";else return w.preventDefault();r=E.clientX,c=E.clientY,w.clientX=E.clientX,w.clientY=E.clientY;var N=w.timeStamp,F=N-h;if(h=N,s=="scroll"){var z=new a(w,p);z.speed=1,z.wheelX=R,z.wheelY=O,10*Math.abs(R)<Math.abs(O)&&(R=0),10*Math.abs(O)<Math.abs(R)&&(O=0),F!=0&&(_=R/F,S=O/F),p._emit("mousewheel",z),z.propagationStopped||(_=S=0)}else{var U=new a(w,p),j=U.getDocumentPosition();s=="cursor"?p.selection.moveCursorToPosition(j):s=="anchor"&&p.selection.setSelectionAnchor(j.row,j.column),p.renderer.scrollCursorIntoView(j),w.preventDefault()}}},p);function C(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(_)<.01&&(_=0),Math.abs(S)<.01&&(S=0),v<20&&(_=.9*_),v<20&&(S=.9*S);var w=p.session.getScrollTop();p.renderer.scrollBy(10*_,10*S),w==p.session.getScrollTop()&&(v=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,o){var a=n("../lib/event"),d=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,l=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,s=n("./dragdrop_handler").DragdropHandler,r=n("./touch_handler").addTouchListeners,c=n("../config"),u=function(){function h(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=f,new g(this),new l(this),new s(this);var v=function(_){var S=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());S&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},y=f.renderer.getMouseEventTarget();a.addListener(y,"click",this.onMouseEvent.bind(this,"click"),f),a.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),a.addMultiMouseDownListener([y,f.renderer.scrollBarV&&f.renderer.scrollBarV.inner,f.renderer.scrollBarH&&f.renderer.scrollBarH.inner,f.textInput&&f.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",f),a.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),r(f.container,f);var $=f.renderer.$gutter;a.addListener($,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),a.addListener($,"click",this.onMouseEvent.bind(this,"gutterclick"),f),a.addListener($,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),a.addListener($,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),a.addListener(y,"mousedown",v,f),a.addListener($,"mousedown",v,f),d.isIE&&f.renderer.scrollBarV&&(a.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),a.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function(_){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var S=f.renderer.screenToTextCoordinates(_.x,_.y),b=f.session.selection.getRange(),M=f.renderer;!b.isEmpty()&&b.insideStart(S.row,S.column)?M.setCursorStyle("default"):M.setCursorStyle("")}},f)}return h.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new p(m,this.editor))},h.prototype.onMouseMove=function(f,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(f,new p(m,this.editor))},h.prototype.onMouseWheel=function(f,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(f,v)},h.prototype.setState=function(f){this.state=f},h.prototype.captureMouse=function(f,m){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var $=this,_=function(L){if(L){if(d.isWebKit&&!L.which&&$.releaseMouse)return $.releaseMouse();$.x=L.clientX,$.y=L.clientY,m&&m(L),$.mouseEvent=new p(L,$.editor),$.$mouseMoved=!0}},S=function(L){v.off("beforeEndOperation",M),clearInterval(I),v.session&&b(),$[$.state+"End"]&&$[$.state+"End"](L),$.state="",$.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),$.$onCaptureMouseMove=$.releaseMouse=null,L&&$.onMouseEvent("mouseup",L),v.endOperation()},b=function(){$[$.state]&&$[$.state](),$.$mouseMoved=!1};if(d.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){S(f)});var M=function(L){$.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&($[$.state+"End"]&&$[$.state+"End"](),$.state="",$.releaseMouse())};v.on("beforeEndOperation",M),v.startOperation({command:{name:"mouse"}}),$.$onCaptureMouseMove=_,$.releaseMouse=a.capture(this.editor.container,_,S);var I=setInterval(b,20)},h.prototype.cancelContextMenu=function(){var f=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),m&&m.domEvent&&a.stopEvent(m.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},h.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},h}();u.prototype.releaseMouse=null,c.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,i,o){var a=n("../lib/dom"),d=function(){function g(l){l.on("click",function(p){var s=p.getDocumentPosition(),r=l.session,c=r.getFoldAt(s.row,s.column,1);c&&(p.getAccelKey()?r.removeFold(c):r.expandFold(c),p.stop());var u=p.domEvent&&p.domEvent.target;u&&a.hasCssClass(u,"ace_inline_button")&&a.hasCssClass(u,"ace_toggle_wrap")&&(r.setOption("wrap",!r.getUseWrapMode()),l.renderer.scrollCursorIntoView())}),l.on("gutterclick",function(p){var s=l.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var r=p.getDocumentPosition().row,c=l.session;c.foldWidgets&&c.foldWidgets[r]&&l.session.onFoldWidgetClick(r,p),l.isFocused()||l.focus(),p.stop()}}),l.on("gutterdblclick",function(p){var s=l.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var r=p.getDocumentPosition().row,c=l.session,u=c.getParentFoldRangeData(r,!0),h=u.range||u.firstRange;if(h){r=h.start.row;var f=c.getFoldAt(r,c.getLine(r).length,1);f?c.removeFold(f):(c.addFold("...",h),l.renderer.scrollCursorIntoView({row:h.start.row,column:0}))}p.stop()}})}return g}();i.FoldHandler=d}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,o){var a=n("../lib/keys"),d=n("../lib/event"),g=function(){function l(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return l.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},l.prototype.setKeyboardHandler=function(p){var 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)}},l.prototype.addKeyboardHandler=function(p,s){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var r=this.$handlers.indexOf(p);r!=-1&&this.$handlers.splice(r,1),s==null?this.$handlers.push(p):this.$handlers.splice(s,0,p),r==-1&&p.attach&&p.attach(this.$editor)}},l.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)},l.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},l.prototype.getStatusText=function(){var p=this.$data,s=p.editor;return this.$handlers.map(function(r){return r.getStatusText&&r.getStatusText(s,p)||""}).filter(Boolean).join(" ")},l.prototype.$callKeyboardHandlers=function(p,s,r,c){for(var u,h=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(u=this.$handlers[m].handleKeyboard(this.$data,p,s,r,c),!(!(!u||!u.command)&&(u.command=="null"?h=!0:h=f.exec(u.command,this.$editor,u.args,c),h&&c&&p!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&d.stopEvent(c),h))););return!h&&p==-1&&(u={command:"insertstring"},h=f.exec("insertstring",this.$editor,s)),h&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),h},l.prototype.onCommandKey=function(p,s,r){var c=a.keyCodeToString(r);return this.$callKeyboardHandlers(s,c,r,p)},l.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},l}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,o){var a=0,d=0,g=!1,l=!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]],r=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,u=1,h=0,f=1,m=2,v=3,y=4,$=5,_=6,S=7,b=8,M=9,I=10,L=11,T=12,k=13,x=14,C=15,w=16,A=17,E=18,R=[E,E,E,E,E,E,E,E,E,_,$,_,b,$,E,E,E,E,E,E,E,E,E,E,E,E,E,E,$,$,$,_,b,y,y,L,L,L,y,y,y,y,y,I,M,I,M,M,m,m,m,m,m,m,m,m,m,m,M,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,E,E,E,E,E,E,$,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,M,y,L,L,L,L,y,y,y,y,h,y,y,E,y,y,L,L,m,m,y,h,y,y,y,m,h,y,y,y,y,y],O=[b,b,b,b,b,b,b,b,b,b,b,E,E,E,h,f,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,$,k,x,C,w,A,M,L,L,L,L,L,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,M,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,b];function N(j,B,V,Q){var H=a?r:s,K=null,X=null,q=null,ue=0,we=null,P=null,W=-1,G=null,ne=null,ee=[];if(!Q)for(G=0,Q=[];G<V;G++)Q[G]=U(j[G]);for(d=a,g=!1,l=!1,p=!1,ne=0;ne<V;ne++){if(K=ue,ee[ne]=X=z(j,Q,ee,ne),ue=H[K][X],we=ue&240,ue&=15,B[ne]=q=H[ue][5],we>0)if(we==16){for(G=W;G<ne;G++)B[G]=1;W=-1}else W=-1;if(P=H[ue][6],P)W==-1&&(W=ne);else if(W>-1){for(G=W;G<ne;G++)B[G]=q;W=-1}Q[ne]==$&&(B[ne]=0),d|=q}if(p){for(G=0;G<V;G++)if(Q[G]==_){B[G]=a;for(var re=G-1;re>=0&&Q[re]==b;re--)B[re]=a}}}function F(j,B,V){if(!(d<j)){if(j==1&&a==u&&!l){V.reverse();return}for(var Q=V.length,H=0,K,X,q,ue;H<Q;){if(B[H]>=j){for(K=H+1;K<Q&&B[K]>=j;)K++;for(X=H,q=K-1;X<q;X++,q--)ue=V[X],V[X]=V[q],V[q]=ue;H=K}H++}}}function z(j,B,V,Q){var H=B[Q],K,X,q,ue;switch(H){case h:case f:g=!1;case y:case v:return H;case m:return g?v:m;case S:return g=!0,f;case b:return y;case M:return Q<1||Q+1>=B.length||(K=V[Q-1])!=m&&K!=v||(X=B[Q+1])!=m&&X!=v?y:(g&&(X=v),X==K?X:y);case I:return K=Q>0?V[Q-1]:$,K==m&&Q+1<B.length&&B[Q+1]==m?m:y;case L:if(Q>0&&V[Q-1]==m)return m;if(g)return y;for(ue=Q+1,q=B.length;ue<q&&B[ue]==L;)ue++;return ue<q&&B[ue]==m?m:y;case T:for(q=B.length,ue=Q+1;ue<q&&B[ue]==T;)ue++;if(ue<q){var we=j[Q],P=we>=1425&&we<=2303||we==64286;if(K=B[ue],P&&(K==f||K==S))return f}return Q<1||(K=B[Q-1])==$?y:V[Q-1];case $:return g=!1,l=!0,a;case _:return p=!0,y;case k:case x:case w:case A:case C:g=!1;case E:return y}}function U(j){var B=j.charCodeAt(0),V=B>>8;return V==0?B>191?h:R[B]:V==5?/[\u0591-\u05f4]/.test(j)?f:h:V==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(j)?T:/[\u0660-\u0669\u066b-\u066c]/.test(j)?v:B==1642?L:/[\u06f0-\u06f9]/.test(j)?m:S:V==32&&B<=8287?O[B&255]:V==254&&B>=65136?S:y}i.L=h,i.R=f,i.EN=m,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(j,B,V){if(j.length<2)return{};var Q=j.split(""),H=new Array(Q.length),K=new Array(Q.length),X=[];a=V?u:c,N(Q,X,Q.length,B);for(var q=0;q<H.length;H[q]=q,q++);F(2,X,H),F(1,X,H);for(var q=0;q<H.length-1;q++)B[q]===v?X[q]=i.AN:X[q]===f&&(B[q]>S&&B[q]<k||B[q]===y||B[q]===E)?X[q]=i.ON_R:q>0&&Q[q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Q[q])&&(X[q-1]=X[q]=i.R_H,q++);Q[Q.length-1]===i.DOT&&(X[Q.length-1]=i.B),Q[0]==="‫"&&(X[0]=i.RLE);for(var q=0;q<H.length;q++)K[q]=X[H[q]];return{logicalFromVisual:H,bidiLevels:K}},i.hasBidiCharacters=function(j,B){for(var V=!1,Q=0;Q<j.length;Q++)B[Q]=U(j.charAt(Q)),!V&&(B[Q]==f||B[Q]==S||B[Q]==v)&&(V=!0);return V},i.getVisualFromLogicalIdx=function(j,B){for(var V=0;V<B.logicalFromVisual.length;V++)if(B.logicalFromVisual[V]==j)return V;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,o){var a=n("./lib/bidiutil"),d=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,l=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,r,c){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(r,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&g.test(s.lines.join(`
776
+ `))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var s=0,r=this.session.$screenRowCache;if(r.length){var c=this.session.$getRowCacheIndex(r,this.currentRow);c>=0&&(s=this.session.$docRowCache[c])}return s},p.prototype.getSplitIndex=function(){var s=0,r=this.session.$screenRowCache;if(r.length)for(var c,u=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-s>0&&(c=this.session.$getRowCacheIndex(r,this.currentRow-s-1),c===u);)u=c,s++;else s=this.currentRow;return s},p.prototype.updateRowLine=function(s,r){s===void 0&&(s=this.getDocumentRow());var c=s===this.session.getLength()-1,u=c?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&&(r===void 0&&(r=this.getSplitIndex()),r>0&&h.length?(this.wrapIndent=h.indent,this.wrapOffset=this.wrapIndent*this.charWidths[a.L],this.line=r<h.length?this.line.substring(h[r-1],h[r]):this.line.substring(h[h.length-1])):this.line=this.line.substring(0,h[r]),r==h.length&&(this.line+=this.showInvisibles?u:a.DOT))}else this.line+=this.showInvisibles?u:a.DOT;var f=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,$){return y===" "||f.isFullWidth(y.charCodeAt(0))?(v=y===" "?f.getScreenTabSize($+m):2,m+=v-1,d.stringRepeat(a.DOT,v)):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 r=this.characterWidth=s.$characterSize.width,c=s.$measureCharWidth("ה");this.charWidths[a.L]=this.charWidths[a.EN]=this.charWidths[a.ON_R]=r,this.charWidths[a.R]=this.charWidths[a.AN]=c,this.charWidths[a.R_H]=c*.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,r){for(var c=s.getCursorPosition(),u=s.selection.getSelectionAnchor().row;u<=c.row;u++)!r&&s.session.getLine(u).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(u,0,1):r&&s.session.getLine(u).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:u},s.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(s){s-=this.wrapIndent;var r=this.line.charAt(0)===this.RLE?1:0,c=s>r?this.session.getOverwrite()?s:s-1:r,u=a.getVisualFromLogicalIdx(c,this.bidiMap),h=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&s<=r&&h[u]%2!==0&&u++;for(var m=0;m<u;m++)f+=this.charWidths[h[m]];return!this.session.getOverwrite()&&s>r&&h[u]%2===0&&(f+=this.charWidths[h[u]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},p.prototype.getSelections=function(s,r){var c=this.bidiMap,u=c.bidiLevels,h,f=[],m=0,v=Math.min(s,r)-this.wrapIndent,y=Math.max(s,r)-this.wrapIndent,$=!1,_=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,M=0;M<u.length;M++)b=c.logicalFromVisual[M],h=u[M],$=b>=v&&b<y,$&&!_?S=m:!$&&_&&f.push({left:S,width:m-S}),m+=this.charWidths[h],_=$;if($&&M===u.length&&f.push({left:S,width:m-S}),this.isRtlDir)for(var I=0;I<f.length;I++)f[I].left+=this.rtlLineOffset;return f},p.prototype.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var r=0,c=Math.max(c,0),u=0,h=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[h]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>u+m/2;){if(u+=m,h===f.length-1){m=0;break}m=this.charWidths[f[++h]]}return h>0&&f[h-1]%2!==0&&f[h]%2===0?(c<u&&h--,r=this.bidiMap.logicalFromVisual[h]):h>0&&f[h-1]%2===0&&f[h]%2!==0?r=1+(c>u?this.bidiMap.logicalFromVisual[h]:this.bidiMap.logicalFromVisual[h-1]):this.isRtlDir&&h===f.length-1&&m===0&&f[h-1]%2===0||!this.isRtlDir&&h===0&&f[h]%2!==0?r=1+this.bidiMap.logicalFromVisual[h]:(h>0&&f[h-1]%2!==0&&m!==0&&h--,r=this.bidiMap.logicalFromVisual[h]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},p}();i.BidiHandler=l}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,o){var a=n("./lib/oop"),d=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,p=function(){function s(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(u){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return 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(r,c){this.$isEmpty=!1,this.anchor.setPosition(r,c)},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 r=this.anchor,c=this.lead;return r.row>c.row||r.row==c.row&&r.column>c.column},s.prototype.getRange=function(){var r=this.anchor,c=this.lead;return this.$isEmpty?l.fromPoints(c,c):this.isBackwards()?l.fromPoints(c,r):l.fromPoints(r,c)},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(r,c){var u=c?r.end:r.start,h=c?r.start:r.end;this.$setSelection(u.row,u.column,h.row,h.column)},s.prototype.$setSelection=function(r,c,u,h){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,c),this.cursor.setPosition(u,h),this.$isEmpty=!l.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(r){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),r.call(this)},s.prototype.selectTo=function(r,c){this.$moveSelection(function(){this.moveCursorTo(r,c)})},s.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},s.prototype.moveTo=function(r,c){this.clearSelection(),this.moveCursorTo(r,c)},s.prototype.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},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(r,c){if(typeof c>"u"){var u=r||this.lead;r=u.row,c=u.column}return this.session.getWordRange(r,c)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var r=this.getCursor(),c=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(c)},s.prototype.getLineRange=function(r,c){var u=typeof r=="number"?r:this.lead.row,h,f=this.session.getFoldLine(u);return f?(u=f.start.row,h=f.end.row):h=u,c===!0?new l(u,0,h,this.session.getLine(h).length):new l(u,0,h+1,0)},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(r,c,u){var h=r.column,f=r.column+c;return u<0&&(h=r.column-c,f=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(h,f).split(" ").length-1==c},s.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),c;if(c=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(r.column===0)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var r=this.lead.getPosition(),c;if(c=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var u=this.session.getTabSize(),r=this.lead;this.wouldMoveIntoSoftTab(r,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var r=this.lead.row,c=this.lead.column,u=this.session.documentToScreenRow(r,c),h=this.session.screenToDocumentPosition(u,0),f=this.session.getDisplayLine(r,null,h.row,h.column),m=f.match(/^\s*/);m[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(h.column+=m[0].length),this.moveCursorToPosition(h)},s.prototype.moveCursorLineEnd=function(){var r=this.lead,c=this.session.getDocumentLastRowColumnPosition(r.row,r.column);if(this.lead.column==c.column){var u=this.session.getLine(c.row);if(c.column==u.length){var h=u.search(/\s+$/);h>0&&(c.column=h)}}this.moveCursorTo(c.row,c.column)},s.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,c=this.doc.getLine(r).length;this.moveCursorTo(r,c)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,c=this.lead.column,u=this.doc.getLine(r),h=u.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(r,c,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(h)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,h=u.substring(c)),c>=u.length){this.moveCursorTo(r,u.length),this.moveCursorRight(),r<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(h)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,c)},s.prototype.moveCursorLongWordLeft=function(){var r=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(r,c,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var h=this.session.getFoldStringAt(r,c,-1);h==null&&(h=this.doc.getLine(r).substring(0,c));var f=d.stringReverse(h);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(c-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(r,0),this.moveCursorLeft(),r>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,c)},s.prototype.$shortWordEndIndex=function(r){var c=0,u,h=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(r))c=this.session.tokenRe.lastIndex;else{for(;(u=r[c])&&h.test(u);)c++;if(c<1){for(f.lastIndex=0;(u=r[c])&&!f.test(u);)if(f.lastIndex=0,c++,h.test(u))if(c>2){c--;break}else{for(;(u=r[c])&&h.test(u);)c++;if(c>2)break}}}return f.lastIndex=0,c},s.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,c=this.lead.column,u=this.doc.getLine(r),h=u.substring(c),f=this.session.getFoldAt(r,c,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(c==u.length){var m=this.doc.getLength();do r++,h=this.doc.getLine(r);while(r<m&&/^\s*$/.test(h));/^\s+/.test(h)||(h=""),c=0}var v=this.$shortWordEndIndex(h);this.moveCursorTo(r,c+v)},s.prototype.moveCursorShortWordLeft=function(){var r=this.lead.row,c=this.lead.column,u;if(u=this.session.getFoldAt(r,c,-1))return this.moveCursorTo(u.start.row,u.start.column);var h=this.session.getLine(r).substring(0,c);if(c===0){do r--,h=this.doc.getLine(r);while(r>0&&/^\s*$/.test(h));c=h.length,/\s+$/.test(h)||(h="")}var f=d.stringReverse(h),m=this.$shortWordEndIndex(f);return this.moveCursorTo(r,c-m)},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(r,c){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),h;if(c===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(h=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(h/this.session.$bidiHandler.charWidths[0])):h=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),r!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];r<0?r-=f.rowsAbove||0:r>0&&(r+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(u.row+r,u.column,h);r!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},s.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},s.prototype.moveCursorTo=function(r,c,u){var h=this.session.getFoldAt(r,c,1);h&&(r=h.start.row,c=h.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(f.charAt(c))&&f.charAt(c-1)&&(this.lead.row==r&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(r,c),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(r,c,u){var h=this.session.screenToDocumentPosition(r,c);this.moveCursorTo(h.row,h.column,u)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(r){var c=this.getRange();return r?(r.start.column=c.start.column,r.start.row=c.start.row,r.end.column=c.end.column,r.end.row=c.end.row):r=c,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},s.prototype.getRangeOfMovements=function(r){var c=this.getCursor();try{r(this);var u=this.getCursor();return l.fromPoints(c,u)}catch{return l.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},s.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(c){var u=c.clone();return u.isBackwards=c.cursor==c.start,u});else{var r=this.getRange();r.isBackwards=this.isBackwards()}return r},s.prototype.fromJSON=function(r){if(r.start==null)if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var c=r.length;c--;){var u=l.fromPoints(r[c].start,r[c].end);r[c].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else r=r[0];this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},s.prototype.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(r[c]))return!1;return!0},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,o){var a=n("./lib/report_error").reportError,d=2e3,g=function(){function l(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var s in this.states){for(var r=this.states[s],c=[],u=0,h=this.matchMappings[s]={defaultToken:"text"},f="g",m=[],v=0;v<r.length;v++){var y=r[v];if(y.defaultToken&&(h.defaultToken=y.defaultToken),y.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),y.unicode&&f.indexOf("u")===-1&&(f+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var $=y.regex,_=new RegExp("(?:("+$+")|(.))").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)?$=y.regex.replace(/\\([0-9]+)/g,function(S,b){return"\\"+(parseInt(b,10)+u+1)}):(_=1,$=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),h[u]=v,u+=_,c.push($),y.onMatch||(y.onMatch=null)}}c.length||(h[0]=0,c.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,f)},this),this.regExps[s]=new RegExp("("+c.join(")|(")+")|($)",f)}}return l.prototype.$setMaxTokenCount=function(p){d=p|0},l.prototype.$applyToken=function(p){var s=this.splitRegex.exec(p).slice(1),r=this.token.apply(this,s);if(typeof r=="string")return[{type:r,value:p}];for(var c=[],u=0,h=r.length;u<h;u++)s[u]&&(c[c.length]={type:r[u],value:s[u]});return c},l.prototype.$arrayTokens=function(p){if(!p)return[];var s=this.splitRegex.exec(p);if(!s)return"text";for(var r=[],c=this.tokenArray,u=0,h=c.length;u<h;u++)s[u+1]&&(r[r.length]={type:c[u],value:s[u+1]});return r},l.prototype.removeCapturingGroups=function(p){var s=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(r,c){return c?"(?:":r});return s},l.prototype.createSplitterRegexp=function(p,s){if(p.indexOf("(?=")!=-1){var r=0,c=!1,u={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(h,f,m,v,y,$){return c?c=y!="]":y?c=!0:v?(r==u.stack&&(u.end=$+1,u.stack=-1),r--):m&&(r++,m.length!=1&&(u.stack=r,u.start=$)),h}),u.end!=null&&/^\)*$/.test(p.substr(u.end))&&(p=p.substring(0,u.start)+p.substr(u.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(s||"").replace("g",""))},l.prototype.getLineTokens=function(p,s){if(s&&typeof s!="string"){var r=s.slice(0);s=r[0],s==="#tmp"&&(r.shift(),s=r.shift())}else var r=[];var c=s||"start",u=this.states[c];u||(c="start",u=this.states[c]);var h=this.matchMappings[c],f=this.regExps[c];f.lastIndex=0;for(var m,v=[],y=0,$=0,_={type:null,value:""};m=f.exec(p);){var S=h.defaultToken,b=null,M=m[0],I=f.lastIndex;if(I-M.length>y){var L=p.substring(y,I-M.length);_.type==S?_.value+=L:(_.type&&v.push(_),_={type:S,value:L})}for(var T=0;T<m.length-2;T++)if(m[T+1]!==void 0){b=u[h[T]],b.onMatch?S=b.onMatch(M,c,r,p):S=b.token,b.next&&(typeof b.next=="string"?c=b.next:c=b.next(c,r),u=this.states[c],u||(this.reportError("state doesn't exist",c),c="start",u=this.states[c]),h=this.matchMappings[c],y=I,f=this.regExps[c],f.lastIndex=I),b.consumeLineEnd&&(y=I);break}if(M){if(typeof S=="string")(!b||b.merge!==!1)&&_.type===S?_.value+=M:(_.type&&v.push(_),_={type:S,value:M});else if(S){_.type&&v.push(_),_={type:null,value:""};for(var T=0;T<S.length;T++)v.push(S[T])}}if(y==p.length)break;if(y=I,$++>d){for($>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:p});y<p.length;)_.type&&v.push(_),_={value:p.substring(y,y+=500),type:"overflow"};c="start",r=[];break}}return _.type&&v.push(_),r.length>1&&r[0]!==c&&r.unshift("#tmp",c),{tokens:v,state:r.length?r:c}},l}();g.prototype.reportError=a,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,o){var a=n("../lib/deep_copy").deepCopy,d;d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,s){if(!s){for(var r in p)this.$rules[r]=p[r];return}for(var r in p){for(var c=p[r],u=0;u<c.length;u++){var h=c[u];(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+r]=c}},this.getRules=function(){return this.$rules},this.embedRules=function(p,s,r,c,u){var h=typeof p=="function"?new p().getRules():p;if(c)for(var f=0;f<c.length;f++)c[f]=s+c[f];else{c=[];for(var m in h)c.push(s+m)}if(this.addRules(h,s),r)for(var v=Array.prototype[u?"push":"unshift"],f=0;f<c.length;f++)v.apply(this.$rules[c[f]],a(r));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},l=function(p,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var p=0,s=this.$rules;function r(c){var u=s[c];u.processed=!0;for(var h=0;h<u.length;h++){var f=u[h],m=null;Array.isArray(f)&&(m=f,f={}),!f.regex&&f.start&&(f.regex=f.start,f.next||(f.next=[]),f.next.push({defaultToken:f.token},{token:f.token+".end",regex:f.end||f.start,next:"pop"}),f.token=f.token+".start",f.push=!0);var v=f.next||f.push;if(v&&Array.isArray(v)){var y=f.stateName;y||(y=f.token,typeof y!="string"&&(y=y[0]||""),s[y]&&(y+=p++)),s[y]=v,f.next=y,r(y)}else v=="pop"&&(f.next=l);if(f.push&&(f.nextState=f.next||f.push,f.next=g,delete f.push),f.rules)for(var $ in f.rules)s[$]?s[$].push&&s[$].push.apply(s[$],f.rules[$]):s[$]=f.rules[$];var _=typeof f=="string"?f:f.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?m=_.map(function(b){return s[b]}):m=s[_]),m){var S=[h,1].concat(m);f.noEscape&&(S=S.filter(function(b){return!b.next})),u.splice.apply(u,S),h--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(s).forEach(r,this)},this.createKeywordMapper=function(p,s,r,c){var u=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(h){for(var f=p[h],m=f.split(c||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),r&&(y=y.toLowerCase()),u[y]=h}},this),p=null,r?function(h){return u[h.toLowerCase()]||s}:function(h){return u[h]||s}},this.getKeywords=function(){return this.$keywords}}).call(d.prototype),i.TextHighlightRules=d}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,o){var a;a=function(){this.$behaviours={}},(function(){this.add=function(d,g,l){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[d]:this.$behaviours[d]={}}this.$behaviours[d][g]=l},this.addBehaviours=function(d){for(var g in d)for(var l in d[g])this.add(g,l,d[g][l])},this.remove=function(d){this.$behaviours&&this.$behaviours[d]&&delete this.$behaviours[d]},this.inherit=function(d,g){if(typeof d=="function")var l=new d().getBehaviours(g);else var l=d.getBehaviours(g);this.addBehaviours(l)},this.getBehaviours=function(d){if(d){for(var g={},l=0;l<d.length;l++)this.$behaviours[d[l]]&&(g[d[l]]=this.$behaviours[d[l]]);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,o){var a=n("./range").Range,d=function(){function g(l,p,s){this.$session=l,this.$row=p,this.$rowTokens=l.getTokens(p);var r=l.getTokenAt(p,s);this.$tokenIndex=r?r.index:-1}return g.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},g.prototype.stepForward=function(){this.$tokenIndex+=1;for(var l;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,l||(l=this.$session.getLength()),this.$row>=l)return this.$row=l-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var l=this.$rowTokens,p=this.$tokenIndex,s=l[p].start;if(s!==void 0)return s;for(s=0;p>0;)p-=1,s+=l[p].value.length;return s},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var l=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new a(this.$row,p,this.$row,p+l.value.length)},g}();i.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,i,o){var a=n("../../lib/oop"),d=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,l=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,c={},u={'"':'"',"'":"'"},h=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return r=c[y];r=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,$,_){var S=v.end.row-v.start.row;return{text:$+y+_,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,$,_,S,b){var M=_.getCursorPosition(),I=S.doc.getLine(M.row);if(b=="{"){h(_);var L=_.getSelectionRange(),T=S.doc.getTextRange(L),k=S.getTokenAt(M.row,M.column);if(T!==""&&T!=="{"&&_.getWrapBehavioursEnabled())return f(L,T,"{","}");if(k&&/(?:string)\.quasi|\.xml/.test(k.type)){var x=[/tag\-(?:open|name)/,/attribute\-name/];return x.some(function(N){return N.test(k.type)})||/(string)\.quasi/.test(k.type)&&k.value[M.column-k.start-1]!=="$"?void 0:(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(_,S))return/[\]\}\)]/.test(I[M.column])||_.inMultiSelectMode||v.braces?(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(_,S,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){h(_);var C=I.substring(M.column,M.column+1);if(C=="}"){var w=S.$findOpeningBracket("}",{column:M.column+1,row:M.row});if(w!==null&&m.isAutoInsertedClosing(M,I,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
777
+ `||b==`\r
778
+ `){h(_);var A="";m.isMaybeInsertedClosing(M,I)&&(A=l.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var C=I.substring(M.column,M.column+1);if(C==="}"){var E=S.findMatchingBracket({row:M.row,column:M.column+1},"}");if(!E)return null;var R=this.$getIndent(S.getLine(E.row))}else if(A)var R=this.$getIndent(I);else{m.clearMaybeInsertedClosing();return}var O=R+S.getTabString();return{text:`
779
+ `+O+`
780
+ `+R+A,selection:[1,O.length,1,O.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,$,_,S,b){var M=S.doc.getTextRange(b);if(!b.isMultiLine()&&M=="{"){h(_);var I=S.doc.getLine(b.start.row),L=I.substring(b.end.column,b.end.column+1);if(L=="}")return b.end.column++,b;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,$,_,S,b){if(b=="("){h(_);var M=_.getSelectionRange(),I=S.doc.getTextRange(M);if(I!==""&&_.getWrapBehavioursEnabled())return f(M,I,"(",")");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,")"),{text:"()",selection:[1,1]}}else if(b==")"){h(_);var L=_.getCursorPosition(),T=S.doc.getLine(L.row),k=T.substring(L.column,L.column+1);if(k==")"){var x=S.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(x!==null&&m.isAutoInsertedClosing(L,T,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,$,_,S,b){var M=S.doc.getTextRange(b);if(!b.isMultiLine()&&M=="("){h(_);var I=S.doc.getLine(b.start.row),L=I.substring(b.start.column+1,b.start.column+2);if(L==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,$,_,S,b){if(b=="["){h(_);var M=_.getSelectionRange(),I=S.doc.getTextRange(M);if(I!==""&&_.getWrapBehavioursEnabled())return f(M,I,"[","]");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){h(_);var L=_.getCursorPosition(),T=S.doc.getLine(L.row),k=T.substring(L.column,L.column+1);if(k=="]"){var x=S.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(x!==null&&m.isAutoInsertedClosing(L,T,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,$,_,S,b){var M=S.doc.getTextRange(b);if(!b.isMultiLine()&&M=="["){h(_);var I=S.doc.getLine(b.start.row),L=I.substring(b.start.column+1,b.start.column+2);if(L=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,$,_,S,b){var M=S.$mode.$quotes||u;if(b.length==1&&M[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;h(_);var I=b,L=_.getSelectionRange(),T=S.doc.getTextRange(L);if(T!==""&&(T.length!=1||!M[T])&&_.getWrapBehavioursEnabled())return f(L,T,I,I);if(!T){var k=_.getCursorPosition(),x=S.doc.getLine(k.row),C=x.substring(k.column-1,k.column),w=x.substring(k.column,k.column+1),A=S.getTokenAt(k.row,k.column),E=S.getTokenAt(k.row,k.column+1);if(C=="\\"&&A&&/escape/.test(A.type))return null;var R=A&&/string|escape/.test(A.type),O=!E||/string|escape/.test(E.type),N;if(w==I)N=R!==O,N&&/string\.end/.test(E.type)&&(N=!1);else{if(R&&!O||R&&O)return null;var F=S.$mode.tokenRe;F.lastIndex=0;var z=F.test(C);F.lastIndex=0;var U=F.test(w),j=S.$mode.$pairQuotesAfter,B=j&&j[I]&&j[I].test(C);if(!B&&z||U||w&&!/[\s;,.})\]\\]/.test(w))return null;var V=x[k.column-2];if(C==I&&(V==I||F.test(V)))return null;N=!0}return{text:N?I+I:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,$,_,S,b){var M=S.$mode.$quotes||u,I=S.doc.getTextRange(b);if(!b.isMultiLine()&&M.hasOwnProperty(I)){h(_);var L=S.doc.getLine(b.start.row),T=L.substring(b.start.column+1,b.start.column+2);if(T==I)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,$,_,S,b){if(y==="doc-start"&&(b===`
781
+ `||b===`\r
782
+ `)&&_.selection.isEmpty()){var M=_.getCursorPosition();if(M.column===0)return;for(var I=S.doc.getLine(M.row),L=S.doc.getLine(M.row+1),T=S.getTokens(M.row),k=0,x=0;x<T.length;x++){k+=T[x].value.length;var C=T[x];if(k>=M.column){if(k===M.column){if(!/\.doc/.test(C.type))return;if(/\*\//.test(C.value)){var w=T[x+1];if(!w||!/\.doc/.test(w.type))return}}var A=M.column-(k-C.value.length),E=C.value.indexOf("*/"),R=C.value.indexOf("/**",E>-1?E+2:0);if(R!==-1&&A>R&&A<R+3||E!==-1&&R!==-1&&A>=E&&A<=R||!/\.doc/.test(C.type))return;break}}var O=this.$getIndent(I);if(/\s*\*/.test(L))return/^\s*\*/.test(I)?{text:b+O+"* ",selection:[1,2+O.length,1,2+O.length]}:{text:b+O+" * ",selection:[1,3+O.length,1,3+O.length]};if(/\/\*\*/.test(I.substring(0,M.column)))return{text:b+O+" * "+b+" "+O+"*/",selection:[1,4+O.length,1,4+O.length]}}})},m.isSaneInsertion=function(v,y){var $=v.getCursorPosition(),_=new g(y,$.row,$.column);if(!this.$matchTokenType(_.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine($.row)[$.column]))return!0;var S=new g(y,$.row,$.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",p))return!1}return _.stepForward(),_.getCurrentTokenRow()!==$.row||this.$matchTokenType(_.getCurrentToken()||"text",s)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,$){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isAutoInsertedClosing(_,S,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=_.row,r.autoInsertedLineEnd=$+S.substr(_.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,$){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isMaybeInsertedClosing(_,S)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=_.row,r.maybeInsertedLineStart=S.substr(0,_.column)+$,r.maybeInsertedLineEnd=S.substr(_.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,$){return r.autoInsertedBrackets>0&&v.row===r.autoInsertedRow&&$===r.autoInsertedLineEnd[0]&&y.substr(v.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return r.maybeInsertedBrackets>0&&v.row===r.maybeInsertedRow&&y.substr(v.column)===r.maybeInsertedLineEnd&&y.substr(0,v.column)==r.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},a.inherits(m,d),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,o){for(var a=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,g=[],l=0;l<a.length;l+=2)g.push(d+=a[l]),a[l+1]&&g.push(45,d+=a[l+1]);i.wordChars=String.fromCharCode.apply(null,g)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,i,o){var a=n("../config"),d=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,l=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),s=n("../lib/lang"),r=n("../token_iterator").TokenIterator,c=n("../range").Range,u;u=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new d(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(h,f,m,v){var y=f.doc,$=!0,_=!0,S=1/0,b=f.getTabSize(),M=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var T=this.lineCommentStart.map(s.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var T=s.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;T=new RegExp("^(\\s*)(?:"+T+") ?"),M=f.getUseSoftTabs();var C=function(U,j){var B=U.match(T);if(B){var V=B[1].length,Q=B[0].length;!E(U,V,Q)&&B[0][Q-1]==" "&&Q--,y.removeInLine(j,V,Q)}},A=I+" ",x=function(U,j){(!$||/\S/.test(U))&&(E(U,S,S)?y.insertInLine({row:j,column:S},A):y.insertInLine({row:j,column:S},I))},w=function(U,j){return T.test(U)},E=function(U,j,B){for(var V=0;j--&&U.charAt(j)==" ";)V++;if(V%b!=0)return!1;for(var V=0;U.charAt(B++)==" ";)V++;return b>2?V%b!=b-1:V%b==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,L=this.blockComment.end,T=new RegExp("^(\\s*)(?:"+s.escapeRegExp(I)+")"),k=new RegExp("(?:"+s.escapeRegExp(L)+")\\s*$"),x=function(N,F){w(N,F)||(!$||/\S/.test(N))&&(y.insertInLine({row:F,column:N.length},L),y.insertInLine({row:F,column:S},I))},C=function(N,F){var z;(z=N.match(k))&&y.removeInLine(F,N.length-z[0].length,N.length),(z=N.match(T))&&y.removeInLine(F,z[1].length,z[0].length)},w=function(N,F){if(T.test(N))return!0;for(var z=f.getTokens(F),U=0;U<z.length;U++)if(z[U].type==="comment")return!0}}function R(N){for(var F=m;F<=v;F++)N(y.getLine(F),F)}var O=1/0;R(function(N,F){var z=N.search(/\S/);z!==-1?(z<S&&(S=z),_&&!w(N,F)&&(_=!1)):O>N.length&&(O=N.length)}),S==1/0&&(S=O,$=!1,_=!1),M&&S%b!=0&&(S=Math.floor(S/b)*b),R(_?C:x)},this.toggleBlockComment=function(h,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var $=new r(f,v.row,v.column),_=$.getCurrentToken();f.selection;var S=f.selection.toOrientedRange(),b,M;if(_&&/comment/.test(_.type)){for(var I,L;_&&/comment/.test(_.type);){var T=_.value.indexOf(y.start);if(T!=-1){var k=$.getCurrentTokenRow(),x=$.getCurrentTokenColumn()+T;I=new c(k,x,k,x+y.start.length);break}_=$.stepBackward()}for(var $=new r(f,v.row,v.column),_=$.getCurrentToken();_&&/comment/.test(_.type);){var T=_.value.indexOf(y.end);if(T!=-1){var k=$.getCurrentTokenRow(),x=$.getCurrentTokenColumn()+T;L=new c(k,x,k,x+y.end.length);break}_=$.stepForward()}L&&f.remove(L),I&&(f.remove(I),b=I.start.row,M=-y.start.length)}else M=y.start.length,b=m.start.row,f.insert(m.end,y.end),f.insert(m.start,y.start);S.start.row==b&&(S.start.column+=M),S.end.row==b&&(S.end.column+=M),f.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(h,f,m){return this.$getIndent(f)},this.checkOutdent=function(h,f,m){return!1},this.autoOutdent=function(h,f,m){},this.$getIndent=function(h){return h.match(/^\s*/)[0]},this.createWorker=function(h){return null},this.createModeDelegates=function(h){this.$embeds=[],this.$modes={};for(var f in h)if(h[f]){var m=h[f],v=m.prototype.$id,y=a.$modes[v];y||(a.$modes[v]=y=new m),a.$modes[f]||(a.$modes[f]=y),this.$embeds.push(f),this.$modes[f]=y}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],_=function(b){(function(M){var I=$[b],L=M[I];M[$[b]]=function(){return this.$delegator(I,arguments,L)}})(S)},S=this,f=0;f<$.length;f++)_(f)},this.$delegator=function(h,f,m){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],$=this.$modes[y];if($)return $[h].apply($,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var _=0;_<this.$embeds.length;_++)if(this.$modes[this.$embeds[_]]){var S=v.split(this.$embeds[_]);if(!S[0]&&S[1]){f[0]=S[1];var $=this.$modes[this.$embeds[_]];return $[h].apply($,f)}}var b=m.apply(this,f);return m?b:void 0},this.transformAction=function(h,f,m,v,y){if(this.$behaviour){var $=this.$behaviour.getBehaviours();for(var _ in $)if($[_][f]){var S=$[_][f].apply(this,arguments);if(S)return S}}},this.getKeywords=function(h){if(!this.completionKeywords){var f=this.$tokenizer.rules,m=[];for(var v in f)for(var y=f[v],$=0,_=y.length;$<_;$++)if(typeof y[$].token=="string")/keyword|support|storage/.test(y[$].token)&&m.push(y[$].regex);else if(typeof y[$].token=="object"){for(var S=0,b=y[$].token.length;S<b;S++)if(/keyword|support|storage/.test(y[$].token[S])){var v=y[$].regex.match(/\(.+?\)/g)[S];m.push(v.substr(1,v.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,f,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function($){return{name:$,value:$,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(u.prototype),i.Mode=u}),ace.define("ace/apply_delta",["require","exports","module"],function(n,i,o){i.applyDelta=function(a,d,g){var l=d.start.row,p=d.start.column,s=a[l]||"";switch(d.action){case"insert":var r=d.lines;if(r.length===1)a[l]=s.substring(0,p)+d.lines[0]+s.substring(p);else{var c=[l,1].concat(d.lines);a.splice.apply(a,c),a[l]=s.substring(0,p)+a[l],a[l+d.lines.length-1]+=s.substring(p)}break;case"remove":var u=d.end.column,h=d.end.row;l===h?a[l]=s.substring(0,p)+s.substring(u):a.splice(l,h-l+1,s.substring(0,p)+a[h].substring(u));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,o){var a=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function s(r,c,u){this.$onChange=this.onChange.bind(this),this.attach(r),typeof c!="number"?this.setPosition(c.row,c.column):this.setPosition(c,u)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(r){if(!(r.start.row==r.end.row&&r.start.row!=this.row)&&!(r.start.row>this.row)){var c=p(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},s.prototype.setPosition=function(r,c,u){var h;if(u?h={row:r,column:c}:h=this.$clipPositionToDocument(r,c),!(this.row==h.row&&this.column==h.column)){var f={row:this.row,column:this.column};this.row=h.row,this.column=h.column,this._signal("change",{old:f,value:h})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(r,c){var u={};return r>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):r<0?(u.row=0,u.column=0):(u.row=r,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,c))),c<0&&(u.column=0),u},s}();g.prototype.$insertRight=!1,a.implement(g.prototype,d);function l(s,r,c){var u=c?s.column<=r.column:s.column<r.column;return s.row<r.row||s.row==r.row&&u}function p(s,r,c){var u=s.action=="insert",h=(u?1:-1)*(s.end.row-s.start.row),f=(u?1:-1)*(s.end.column-s.start.column),m=s.start,v=u?m:s.end;return l(r,m,c)?{row:r.row,column:r.column}:l(v,r,!c)?{row:r.row+h,column:r.column+(r.row==v.row?f: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,o){var a=n("./lib/oop"),d=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,p=n("./anchor").Anchor,s=function(){function r(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)}return r.prototype.setValue=function(c){var u=this.getLength()-1;this.remove(new l(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},c||"")},r.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},r.prototype.createAnchor=function(c,u){return new p(this,c,u)},r.prototype.$detectNewLine=function(c){var u=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
783
+ `,this._signal("changeNewLineMode")},r.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
784
+ `;case"unix":return`
785
+ `;default:return this.$autoNewLine||`
786
+ `}},r.prototype.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},r.prototype.getNewLineMode=function(){return this.$newLineMode},r.prototype.isNewLine=function(c){return c==`\r
787
+ `||c=="\r"||c==`
788
+ `},r.prototype.getLine=function(c){return this.$lines[c]||""},r.prototype.getLines=function(c,u){return this.$lines.slice(c,u+1)},r.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},r.prototype.getLength=function(){return this.$lines.length},r.prototype.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},r.prototype.getLinesForRange=function(c){var u;if(c.start.row===c.end.row)u=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{u=this.getLines(c.start.row,c.end.row),u[0]=(u[0]||"").substring(c.start.column);var h=u.length-1;c.end.row-c.start.row==h&&(u[h]=u[h].substring(0,c.end.column))}return u},r.prototype.insertLines=function(c,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,u)},r.prototype.removeLines=function(c,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,u)},r.prototype.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},r.prototype.insert=function(c,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(c,this.$split(u))},r.prototype.insertInLine=function(c,u){var h=this.clippedPos(c.row,c.column),f=this.pos(c.row,c.column+u.length);return this.applyDelta({start:h,end:f,action:"insert",lines:[u]},!0),this.clonePos(f)},r.prototype.clippedPos=function(c,u){var h=this.getLength();c===void 0?c=h:c<0?c=0:c>=h&&(c=h-1,u=void 0);var f=this.getLine(c);return u==null&&(u=f.length),u=Math.min(Math.max(u,0),f.length),{row:c,column:u}},r.prototype.clonePos=function(c){return{row:c.row,column:c.column}},r.prototype.pos=function(c,u){return{row:c,column:u}},r.prototype.$clipPosition=function(c){var u=this.getLength();return c.row>=u?(c.row=Math.max(0,u-1),c.column=this.getLine(u-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},r.prototype.insertFullLines=function(c,u){c=Math.min(Math.max(c,0),this.getLength());var h=0;c<this.getLength()?(u=u.concat([""]),h=0):(u=[""].concat(u),c--,h=this.$lines[c].length),this.insertMergedLines({row:c,column:h},u)},r.prototype.insertMergedLines=function(c,u){var h=this.clippedPos(c.row,c.column),f={row:h.row+u.length-1,column:(u.length==1?h.column:0)+u[u.length-1].length};return this.applyDelta({start:h,end:f,action:"insert",lines:u}),this.clonePos(f)},r.prototype.remove=function(c){var u=this.clippedPos(c.start.row,c.start.column),h=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:u,end:h,action:"remove",lines:this.getLinesForRange({start:u,end:h})}),this.clonePos(u)},r.prototype.removeInLine=function(c,u,h){var f=this.clippedPos(c,u),m=this.clippedPos(c,h);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},r.prototype.removeFullLines=function(c,u){c=Math.min(Math.max(0,c),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var h=u==this.getLength()-1&&c>0,f=u<this.getLength()-1,m=h?c-1:c,v=h?this.getLine(m).length:0,y=f?u+1:u,$=f?0:this.getLine(y).length,_=new l(m,v,y,$),S=this.$lines.slice(c,u+1);return this.applyDelta({start:_.start,end:_.end,action:"remove",lines:this.getLinesForRange(_)}),S},r.prototype.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(c,u){if(c instanceof l||(c=l.fromPoints(c.start,c.end)),u.length===0&&c.isEmpty())return c.start;if(u==this.getTextRange(c))return c.end;this.remove(c);var h;return u?h=this.insert(c.start,u):h=c.start,h},r.prototype.applyDeltas=function(c){for(var u=0;u<c.length;u++)this.applyDelta(c[u])},r.prototype.revertDeltas=function(c){for(var u=c.length-1;u>=0;u--)this.revertDelta(c[u])},r.prototype.applyDelta=function(c,u){var h=c.action=="insert";(h?c.lines.length<=1&&!c.lines[0]:!l.comparePoints(c.start,c.end))||(h&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(d(this.$lines,c,u),this._signal("change",c)))},r.prototype.$safeApplyDelta=function(c){var u=this.$lines.length;(c.action=="remove"&&c.start.row<u&&c.end.row<u||c.action=="insert"&&c.start.row<=u)&&this.applyDelta(c)},r.prototype.$splitAndapplyLargeDelta=function(c,u){for(var h=c.lines,f=h.length-u+1,m=c.start.row,v=c.start.column,y=0,$=0;y<f;y=$){$+=u-1;var _=h.slice(y,$);_.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+$,v=0),action:c.action,lines:_},!0)}c.lines=h.slice(y),c.start.row=m+y,c.start.column=v,this.applyDelta(c,!0)},r.prototype.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},r.prototype.indexToPosition=function(c,u){for(var h=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=u||0,v=h.length;m<v;m++)if(c-=h[m].length+f,c<0)return{row:m,column:c+h[m].length+f};return{row:v-1,column:c+h[v-1].length+f}},r.prototype.positionToIndex=function(c,u){for(var h=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,v=Math.min(c.row,h.length),y=u||0;y<v;++y)m+=h[y].length+f;return m+c.column},r.prototype.$split=function(c){return c.split(/\r\n|\r|\n/)},r}();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,o){var a=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function l(p,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var r=this;this.$worker=function(){if(r.running){for(var c=new Date,u=r.currentLine,h=-1,f=r.doc,m=u;r.lines[u];)u++;var v=f.getLength(),y=0;for(r.running=!1;u<v;){r.$tokenizeRow(u),h=u;do u++;while(r.lines[u]);if(y++,y%5===0&&new Date-c>20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=u,h==-1&&(h=u),m<=h&&r.fireUpdateEvent(m,h)}}}return l.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},l.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},l.prototype.fireUpdateEvent=function(p,s){var r={first:p,last:s};this._signal("update",{data:r})},l.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},l.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},l.prototype.$updateOnChange=function(p){var s=p.start.row,r=p.end.row-s;if(r===0)this.lines[s]=null;else if(p.action=="remove")this.lines.splice(s,r+1,null),this.states.splice(s,r+1,null);else{var c=Array(r+1);c.unshift(s,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},l.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},l.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},l.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},l.prototype.$tokenizeRow=function(p){var s=this.doc.getLine(p),r=this.states[p-1],c=this.tokenizer.getLineTokens(s,r,p);return this.states[p]+""!=c.state+""?(this.states[p]=c.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=c.tokens},l.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},l}();a.implement(g.prototype,d),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,o){var a=n("./lib/lang"),d=n("./range").Range,g=function(){function l(p,s,r){r===void 0&&(r="text"),this.setRegexp(p),this.clazz=s,this.type=r}return l.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},l.prototype.update=function(p,s,r,c){if(this.regExp)for(var u=c.firstRow,h=c.lastRow,f={},m=u;m<=h;m++){var v=this.cache[m];v==null&&(v=a.getMatchOffsets(r.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new d(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var $=v[y].toScreenRange(r),_=$.toString();f[_]||(f[_]=!0,s.drawSingleLineMarker(p,$,this.clazz,c))}}},l}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,o){var a=function(){function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function(b){this.$session=b},S.prototype.add=function(b,M,I){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),M===!1||!this.lastDeltas){this.lastDeltas=[];var L=this.$undoStack.length;L>this.$undoDepth-1&&this.$undoStack.splice(0,L-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},S.prototype.addSelection=function(b,M){this.selections.push({value:b,rev:M||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(b,M){M==null&&(M=this.$rev+1);for(var I=this.$undoStack,L=I.length;L--;){var T=I[L][0];if(T.id<=b)break;T.id<M&&(T.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function(b,M){for(var I=this.selections,L=I.length;L--;){var T=I[L];if(T.rev<b)return M&&(T=I[L+1]),T}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function(b,M){M==null&&(M=this.$rev+1);for(var I=this.$undoStack,L=null,T=0,k=I.length;k--;){var x=I[k][0];if(x.id<M&&!L&&(L=k+1),x.id<=b){T=k+1;break}}return I.slice(T,L)},S.prototype.getChangedRanges=function(b,M){M==null&&(M=this.$rev+1)},S.prototype.getChangedLines=function(b,M){M==null&&(M=this.$rev+1)},S.prototype.undo=function(b,M){this.lastDeltas=null;var I=this.$undoStack;if(d(I,I.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var L=I.pop(),T=null;return L&&(T=b.undoChanges(L,M),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,T}},S.prototype.redo=function(b,M){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var I=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);_(this.$redoStack,I),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(k){k[0].id=++this.$maxRev},this)}var L=this.$redoStack.pop(),T=null;return L&&(T=b.redoChanges(L,M),this.$undoStack.push(L),this.$syncRev()),this.$fromUndo=!1,T},S.prototype.$syncRev=function(){var b=this.$undoStack,M=b[b.length-1],I=M&&M[0].id||0;this.$redoStackBaseRev=I,this.$rev=I},S.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=[]},S.prototype.canUndo=function(){return this.$undoStack.length>0},S.prototype.canRedo=function(){return this.$redoStack.length>0},S.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},S.prototype.$prettyPrint=function(b){return b?r(b):r(this.$undoStack)+`
789
+ ---
790
+ `+r(this.$redoStack)},S}();a.prototype.hasUndo=a.prototype.canUndo,a.prototype.hasRedo=a.prototype.canRedo,a.prototype.isClean=a.prototype.isAtBookmark,a.prototype.markClean=a.prototype.bookmark;function d(S,b){for(var M=b;M--;){var I=S[M];if(I&&!I[0].ignore){for(;M<b-1;){var L=h(S[M],S[M+1]);S[M]=L[0],S[M+1]=L[1],M++}return!0}}}var g=n("./range").Range,l=g.comparePoints;g.comparePoints;function p(S){return{row:S.row,column:S.column}}function s(S){return{start:p(S.start),end:p(S.end),action:S.action,lines:S.lines.slice()}}function r(S){if(S=S||this,Array.isArray(S))return S.map(r).join(`
791
+ `);var b="";return S.action?(b=S.action=="insert"?"+":"-",b+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?b=S.value.map(c).join(`
792
+ `):b=c(S.value)),S.start&&(b+=c(S)),(S.id||S.rev)&&(b+=" ("+(S.id||S.rev)+")"),b}function c(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function u(S,b){var M=S.action=="insert",I=b.action=="insert";if(M&&I)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.start,S.start)<=0)m(S,b,1);else return null;else if(M&&!I)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!M&&I)if(l(b.start,S.start)>=0)m(b,S,1);else if(l(b.start,S.start)<=0)m(S,b,1);else return null;else if(!M&&!I)if(l(b.start,S.start)>=0)m(b,S,1);else if(l(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function h(S,b){for(var M=S.length;M--;)for(var I=0;I<b.length;I++)if(!u(S[M],b[I])){for(;M<S.length;){for(;I--;)u(b[I],S[M]);I=b.length,M++}return[S,b]}return S.selectionBefore=b.selectionBefore=S.selectionAfter=b.selectionAfter=null,[b,S]}function f(S,b){var M=S.action=="insert",I=b.action=="insert";if(M&&I)l(S.start,b.start)<0?m(b,S,1):m(S,b,1);else if(M&&!I)l(S.start,b.end)>=0?m(S,b,-1):(l(S.start,b.start)<=0||m(S,g.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!M&&I)l(b.start,S.end)>=0?m(b,S,-1):(l(b.start,S.start)<=0||m(b,g.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!M&&!I)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.end,S.start)<=0)m(S,b,-1);else{var L,T;return l(S.start,b.start)<0&&(L=S,S=y(S,b.start)),l(S.end,b.end)>0&&(T=y(S,b.end)),v(b.end,S.start,S.end,-1),T&&!L&&(S.lines=T.lines,S.start=T.start,S.end=T.end,T=S),[b,L,T].filter(Boolean)}return[b,S]}function m(S,b,M){v(S.start,b.start,b.end,M),v(S.end,b.start,b.end,M)}function v(S,b,M,I){S.row==(I==1?b:M).row&&(S.column+=I*(M.column-b.column)),S.row+=I*(M.row-b.row)}function y(S,b){var M=S.lines,I=S.end;S.end=p(b);var L=S.end.row-S.start.row,T=M.splice(L,M.length),k=L?b.column:b.column-S.start.column;M.push(T[0].substring(0,k)),T[0]=T[0].substr(k);var x={start:p(b),end:I,lines:T,action:S.action};return x}function $(S,b){b=s(b);for(var M=S.length;M--;){for(var I=S[M],L=0;L<I.length;L++){var T=I[L],k=f(T,b);b=k[0],k.length!=2&&(k[2]?(I.splice(L+1,1,k[1],k[2]),L++):k[1]||(I.splice(L,1),L--))}I.length||S.splice(M,1)}return S}function _(S,b){for(var M=0;M<b.length;M++)for(var I=b[M],L=0;L<I.length;L++)$(S,I[L])}i.UndoManager=a}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,o){var a=n("../range").Range,d=function(){function g(l,p){this.foldData=l,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(r){r.setFoldLine(this)},this)}return g.prototype.shiftRow=function(l){this.start.row+=l,this.end.row+=l,this.folds.forEach(function(p){p.start.row+=l,p.end.row+=l})},g.prototype.addFold=function(l){if(l.sameRow){if(l.start.row<this.startRow||l.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(l),this.folds.sort(function(p,s){return-p.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(l.start.row,l.start.column)>0?(this.end.row=l.end.row,this.end.column=l.end.column):this.range.compareStart(l.end.row,l.end.column)<0&&(this.start.row=l.start.row,this.start.column=l.start.column)}else if(l.start.row==this.end.row)this.folds.push(l),this.end.row=l.end.row,this.end.column=l.end.column;else if(l.end.row==this.start.row)this.folds.unshift(l),this.start.row=l.start.row,this.start.column=l.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");l.foldLine=this},g.prototype.containsRow=function(l){return l>=this.start.row&&l<=this.end.row},g.prototype.walk=function(l,p,s){var r=0,c=this.folds,u,h,f,m=!0;p==null&&(p=this.end.row,s=this.end.column);for(var v=0;v<c.length;v++){if(u=c[v],h=u.range.compareStart(p,s),h==-1){l(null,p,s,r,m);return}if(f=l(null,u.start.row,u.start.column,r,m),f=!f&&l(u.placeholder,u.start.row,u.start.column,r),f||h===0)return;m=!u.sameRow,r=u.end.column}l(null,p,s,r,m)},g.prototype.getNextFoldTo=function(l,p){for(var s,r,c=0;c<this.folds.length;c++){if(s=this.folds[c],r=s.range.compareEnd(l,p),r==-1)return{fold:s,kind:"after"};if(r===0)return{fold:s,kind:"inside"}}return null},g.prototype.addRemoveChars=function(l,p,s){var r=this.getNextFoldTo(l,p),c,u;if(r){if(c=r.fold,r.kind=="inside"&&c.start.column!=p&&c.start.row!=l)window.console&&window.console.log(l,p,c);else if(c.start.row==l){u=this.folds;var h=u.indexOf(c);for(h===0&&(this.start.column+=s),h;h<u.length;h++){if(c=u[h],c.start.column+=s,!c.sameRow)return;c.end.column+=s}this.end.column+=s}}},g.prototype.split=function(l,p){var s=this.getNextFoldTo(l,p);if(!s||s.kind=="inside")return null;var r=s.fold,c=this.folds,u=this.foldData,h=c.indexOf(r),f=c[h-1];this.end.row=f.end.row,this.end.column=f.end.column,c=c.splice(h,c.length-h);var m=new g(u,c);return u.splice(u.indexOf(this)+1,0,m),m},g.prototype.merge=function(l){for(var p=l.folds,s=0;s<p.length;s++)this.addFold(p[s]);var r=this.foldData;r.splice(r.indexOf(l),1)},g.prototype.toString=function(){var l=[this.range.toString()+": ["];return this.folds.forEach(function(p){l.push(" "+p.toString())}),l.push("]"),l.join(`
793
+ `)},g.prototype.idxToPosition=function(l){for(var p=0,s=0;s<this.folds.length;s++){var r=this.folds[s];if(l-=r.start.column-p,l<0)return{row:r.start.row,column:r.start.column+l};if(l-=r.placeholder.length,l<0)return r.start;p=r.end.column}return{row:this.end.row,column:this.end.column+l}},g}();i.FoldLine=d}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,o){var a=n("./range").Range,d=a.comparePoints,g=function(){function l(){this.ranges=[],this.$bias=1}return l.prototype.pointIndex=function(p,s,r){for(var c=this.ranges,u=r||0;u<c.length;u++){var h=c[u],f=d(p,h.end);if(!(f>0)){var m=d(p,h.start);return f===0?s&&m!==0?-u-2:u:m>0||m===0&&!s?u:-u-1}}return-u-1},l.prototype.add=function(p){var s=!p.isEmpty(),r=this.pointIndex(p.start,s);r<0&&(r=-r-1);var c=this.pointIndex(p.end,s,r);return c<0?c=-c-1:c++,this.ranges.splice(r,c-r,p)},l.prototype.addList=function(p){for(var s=[],r=p.length;r--;)s.push.apply(s,this.add(p[r]));return s},l.prototype.substractPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges.splice(s,1)},l.prototype.merge=function(){var p=[],s=this.ranges;s=s.sort(function(f,m){return d(f.start,m.start)});for(var r=s[0],c,u=1;u<s.length;u++){c=r,r=s[u];var h=d(c.end,r.start);h<0||h==0&&!c.isEmpty()&&!r.isEmpty()||(d(c.end,r.end)<0&&(c.end.row=r.end.row,c.end.column=r.end.column),s.splice(u,1),p.push(r),r=c,u--)}return this.ranges=s,p},l.prototype.contains=function(p,s){return this.pointIndex({row:p,column:s})>=0},l.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},l.prototype.rangeAtPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges[s]},l.prototype.clipRows=function(p,s){var r=this.ranges;if(r[0].start.row>s||r[r.length-1].start.row<p)return[];var c=this.pointIndex({row:p,column:0});c<0&&(c=-c-1);var u=this.pointIndex({row:s,column:0},c);u<0&&(u=-u-1);for(var h=[],f=c;f<u;f++)h.push(r[f]);return h},l.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},l.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},l.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},l.prototype.$onChange=function(p){for(var s=p.start,r=p.end,c=s.row,u=r.row,h=this.ranges,f=0,m=h.length;f<m;f++){var v=h[f];if(v.end.row>=c)break}if(p.action=="insert")for(var y=u-c,$=-s.column+r.column;f<m;f++){var v=h[f];if(v.start.row>c)break;if(v.start.row==c&&v.start.column>=s.column&&(v.start.column==s.column&&this.$bias<=0||(v.start.column+=$,v.start.row+=y)),v.end.row==c&&v.end.column>=s.column){if(v.end.column==s.column&&this.$bias<0)continue;v.end.column==s.column&&$>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==h[f+1].start.column&&(v.end.column-=$),v.end.column+=$,v.end.row+=y}}else for(var y=c-u,$=s.column-r.column;f<m;f++){var v=h[f];if(v.start.row>u)break;v.end.row<u&&(c<v.end.row||c==v.end.row&&s.column<v.end.column)?(v.end.row=c,v.end.column=s.column):v.end.row==u?v.end.column<=r.column?(y||v.end.column>s.column)&&(v.end.column=s.column,v.end.row=s.row):(v.end.column+=$,v.end.row+=y):v.end.row>u&&(v.end.row+=y),v.start.row<u&&(c<v.start.row||c==v.start.row&&s.column<v.start.column)?(v.start.row=c,v.start.column=s.column):v.start.row==u?v.start.column<=r.column?(y||v.start.column>s.column)&&(v.start.column=s.column,v.start.row=s.row):(v.start.column+=$,v.start.row+=y):v.start.row>u&&(v.start.row+=y)}if(y!=0&&f<m)for(;f<m;f++){var v=h[f];v.start.row+=y,v.end.row+=y}},l}();g.prototype.comparePoints=d,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,o){var a=this&&this.__extends||function(){var c=function(u,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},c(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),d=n("../range_list").RangeList,g=function(c){a(u,c);function u(h,f){var m=c.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=h,m.start=h.start,m.end=h.end,m.sameRow=h.start.row==h.end.row,m.subFolds=m.ranges=[],m}return u.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},u.prototype.setFoldLine=function(h){this.foldLine=h,this.subFolds.forEach(function(f){f.setFoldLine(h)})},u.prototype.clone=function(){var h=this.range.clone(),f=new u(h,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},u.prototype.addSubFold=function(h){if(!this.range.isEqual(h)){p(h,this.start);for(var $=h.start.row,_=h.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare($,_),m==1);f++);var v=this.subFolds[f],y=0;if(m==0){if(v.range.containsRange(h))return v.addSubFold(h);y=1}for(var $=h.range.end.row,_=h.range.end.column,S=f,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare($,_),m==1);S++);m==0&&S++;for(var b=this.subFolds.splice(f,S-f,h),M=m==0?b.length-1:b.length,I=y;I<M;I++)h.addSubFold(b[I]);return h.setFoldLine(this.foldLine),h}},u.prototype.restoreRange=function(h){return r(h,this.start)},u}(d);function l(c,u){c.row-=u.row,c.row==0&&(c.column-=u.column)}function p(c,u){l(c.start,u),l(c.end,u)}function s(c,u){c.row==0&&(c.column+=u.column),c.row+=u.row}function r(c,u){s(c.start,u),s(c.end,u)}i.Fold=g}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,i,o){var a=n("../range").Range,d=n("./fold_line").FoldLine,g=n("./fold").Fold,l=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(r,c,u){var h=this.getFoldLine(r);if(!h)return null;for(var f=h.folds,m=0;m<f.length;m++){var v=f[m].range;if(v.contains(r,c)){if(u==1&&v.isEnd(r,c)&&!v.isEmpty())continue;if(u==-1&&v.isStart(r,c)&&!v.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(r){var c=r.start,u=r.end,h=this.$foldData,f=[];c.column+=1,u.column-=1;for(var m=0;m<h.length;m++){var v=h[m].range.compareRange(r);if(v!=2){if(v==-2)break;for(var y=h[m].folds,$=0;$<y.length;$++){var _=y[$];if(v=_.range.compareRange(r),v==-2)break;if(v==2)continue;if(v==42)break;f.push(_)}}}return c.column-=1,u.column+=1,f},this.getFoldsInRangeList=function(r){if(Array.isArray(r)){var c=[];r.forEach(function(u){c=c.concat(this.getFoldsInRange(u))},this)}else var c=this.getFoldsInRange(r);return c},this.getAllFolds=function(){for(var r=[],c=this.$foldData,u=0;u<c.length;u++)for(var h=0;h<c[u].folds.length;h++)r.push(c[u].folds[h]);return r},this.getFoldStringAt=function(r,c,u,h){if(h=h||this.getFoldLine(r),!h)return null;for(var f={end:{column:0}},m,v,y=0;y<h.folds.length;y++){v=h.folds[y];var $=v.range.compareEnd(r,c);if($==-1){m=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if($===0)return null;f=v}return m||(m=this.getLine(v.start.row).substring(f.end.column)),u==-1?m.substring(0,c-f.end.column):u==1?m.substring(c-f.end.column):m},this.getFoldLine=function(r,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var f=u[h];if(f.start.row<=r&&f.end.row>=r)return f;if(f.end.row>r)return null}return null},this.getNextFoldLine=function(r,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h<u.length;h++){var f=u[h];if(f.end.row>=r)return f}return null},this.getFoldedRowCount=function(r,c){for(var u=this.$foldData,h=c-r+1,f=0;f<u.length;f++){var m=u[f],v=m.end.row,y=m.start.row;if(v>=c){y<c&&(y>=r?h-=c-y:h=0);break}else v>=r&&(y>=r?h-=v-y:h-=v-r+1)}return h},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(c,u){return c.start.row-u.start.row}),r},this.addFold=function(r,c){var u=this.$foldData,h=!1,f;r instanceof g?f=r:(f=new g(c,r),f.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,y=f.end.row,$=f.end.column,_=this.getFoldAt(m,v,1),S=this.getFoldAt(y,$,-1);if(_&&S==_)return _.addSubFold(f);_&&!_.range.isStart(m,v)&&this.removeFold(_),S&&!S.range.isEnd(y,$)&&this.removeFold(S);var b=this.getFoldsInRange(f.range);b.length>0&&(this.removeFolds(b),f.collapseChildren||b.forEach(function(T){f.addSubFold(T)}));for(var M=0;M<u.length;M++){var I=u[M];if(y==I.start.row){I.addFold(f),h=!0;break}else if(m==I.end.row){if(I.addFold(f),h=!0,!f.sameRow){var L=u[M+1];if(L&&L.start.row==y){I.merge(L);break}}break}else if(y<=I.start.row)break}return h||(I=this.$addFoldLine(new d(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(I.start.row,I.start.row):this.$updateRowLengthCache(I.start.row,I.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(r){r.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(r){var c=r.foldLine,u=c.start.row,h=c.end.row,f=this.$foldData,m=c.folds;if(m.length==1)f.splice(f.indexOf(c),1);else if(c.range.isEnd(r.end.row,r.end.column))m.pop(),c.end.row=m[m.length-1].end.row,c.end.column=m[m.length-1].end.column;else if(c.range.isStart(r.start.row,r.start.column))m.shift(),c.start.row=m[0].start.row,c.start.column=m[0].start.column;else if(r.sameRow)m.splice(m.indexOf(r),1);else{var v=c.split(r.start.row,r.start.column);m=v.folds,m.shift(),v.start.row=m[0].start.row,v.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(u,h):this.$updateRowLengthCache(u,h)),this.$modified=!0,this._signal("changeFold",{data:r,action:"remove"})},this.removeFolds=function(r){for(var c=[],u=0;u<r.length;u++)c.push(r[u]);c.forEach(function(h){this.removeFold(h)},this),this.$modified=!0},this.expandFold=function(r){this.removeFold(r),r.subFolds.forEach(function(c){r.restoreRange(c),this.addFold(c)},this),r.collapseChildren>0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(r,c){var u,h;if(r==null)u=new a(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof r=="number")u=new a(r,0,r,this.getLine(r).length);else if("row"in r)u=a.fromPoints(r,r);else{if(Array.isArray(r))return h=[],r.forEach(function(m){h=h.concat(this.unfold(m))},this),h;u=r}h=this.getFoldsInRangeList(u);for(var f=h;h.length==1&&a.comparePoints(h[0].start,u.start)<0&&a.comparePoints(h[0].end,u.end)>0;)this.expandFolds(h),h=this.getFoldsInRangeList(u);if(c!=!1?this.removeFolds(h):this.expandFolds(h),f.length)return f},this.isRowFolded=function(r,c){return!!this.getFoldLine(r,c)},this.getRowFoldEnd=function(r,c){var u=this.getFoldLine(r,c);return u?u.end.row:r},this.getRowFoldStart=function(r,c){var u=this.getFoldLine(r,c);return u?u.start.row:r},this.getFoldDisplayLine=function(r,c,u,h,f){h==null&&(h=r.start.row),f==null&&(f=0),c==null&&(c=r.end.row),u==null&&(u=this.getLine(c).length);var m=this.doc,v="";return r.walk(function(y,$,_,S){if(!($<h)){if($==h){if(_<f)return;S=Math.max(f,S)}y!=null?v+=y:v+=m.getLine($).substring(S,_)}},c,u),v},this.getDisplayLine=function(r,c,u,h){var f=this.getFoldLine(r);if(f)return this.getFoldDisplayLine(f,r,c,u,h);var m;return m=this.doc.getLine(r),m.substring(h||0,c||m.length)},this.$cloneFoldData=function(){var r=[];return r=this.$foldData.map(function(c){var u=c.folds.map(function(h){return h.clone()});return new d(r,u)}),r},this.toggleFold=function(r){var c=this.selection,u=c.getRange(),h,f;if(u.isEmpty()){var m=u.start;if(h=this.getFoldAt(m.row,m.column),h){this.expandFold(h);return}else(f=this.findMatchingBracket(m))?u.comparePoint(f)==1?u.end=f:(u.start=f,u.start.column++,u.end.column--):(f=this.findMatchingBracket({row:m.row,column:m.column+1}))?(u.comparePoint(f)==1?u.end=f:u.start=f,u.start.column++):u=this.getCommentFoldRange(m.row,m.column)||u}else{var v=this.getFoldsInRange(u);if(r&&v.length){this.expandFolds(v);return}else v.length==1&&(h=v[0])}if(h||(h=this.getFoldAt(u.start.row,u.start.column)),h&&h.range.toString()==u.toString()){this.expandFold(h);return}var y="...";if(!u.isMultiLine()){if(y=this.getTextRange(u),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,u)},this.getCommentFoldRange=function(r,c,u){var h=new l(this,r,c),f=h.getCurrentToken(),m=f&&f.type;if(f&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new a;if(u!=1){do f=h.stepBackward();while(f&&v.test(f.type));f=h.stepForward()}y.start.row=h.getCurrentTokenRow(),y.start.column=h.getCurrentTokenColumn()+f.value.length,h=new l(this,r,c);var $=this.getState(h.$row);if(u!=-1){var _=-1;do if(f=h.stepForward(),_==-1){var S=this.getState(h.$row);$.toString()!==S.toString()&&(_=h.$row)}else if(h.$row>_)break;while(f&&v.test(f.type));f=h.stepBackward()}else f=h.getCurrentToken();return y.end.row=h.getCurrentTokenRow(),y.end.column=h.getCurrentTokenColumn(),y}},this.foldAll=function(r,c,u,h){u==null&&(u=1e5);var f=this.foldWidgets;if(f){c=c||this.getLength(),r=r||0;for(var m=r;m<c;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(h&&!h(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=c&&v.start.row>=r&&(m=v.end.row,v.collapseChildren=u,this.addFold("...",v))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(c){for(var u=r.getTokens(c),h=0;h<u.length;h++){var f=u[h];if(!(f.type=="text"&&/^\s+$/.test(f.value)))return!!/comment/.test(f.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(r){if(!this.$foldStyles[r])throw new Error("invalid fold style: "+r+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=r){this.$foldStyle=r,r=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(r){if(this.$foldMode!=r){if(this.$foldMode=r,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!r||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=r.getFoldWidget.bind(r,this,this.$foldStyle),this.getFoldWidgetRange=r.getFoldWidgetRange.bind(r,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(r,c){var u=this.foldWidgets;if(!u||c&&u[r])return{};for(var h=r-1,f;h>=0;){var m=u[h];if(m==null&&(m=u[h]=this.getFoldWidget(h)),m=="start"){var v=this.getFoldWidgetRange(h);if(f||(f=v),v&&v.end.row>=r)break}h--}return{range:h!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(r,c){c instanceof p&&(c=c.domEvent);var u={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},h=this.$toggleFoldWidget(r,u);if(!h){var f=c.target||c.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,c){if(this.getFoldWidget){var u=this.getFoldWidget(r),h=this.getLine(r),f=u==="end"?-1:1,m=this.getFoldAt(r,f===-1?0:h.length,f);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(r,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(r);if(y.range)var $=y.range.start.row+1,_=y.range.end.row;this.foldAll($,_,c.all?1e4:0)}else c.children?(_=v?v.end.row:this.getLength(),this.foldAll(r+1,_,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(r){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var u=this.$toggleFoldWidget(c,{});if(!u){var h=this.getParentFoldRangeData(c,!0);if(u=h.range||h.firstRange,u){c=u.start.row;var f=this.getFoldAt(c,this.getLine(c).length,1);f?this.removeFold(f):this.addFold("...",u)}}},this.updateFoldWidgets=function(r){var c=r.start.row,u=r.end.row-c;if(u===0)this.foldWidgets[c]=null;else if(r.action=="remove")this.foldWidgets.splice(c,u+1,null);else{var h=Array(u+1);h.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,h)}},this.tokenizerUpdateFoldWidgets=function(r){var c=r.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}i.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,o){var a=n("../token_iterator").TokenIterator,d=n("../range").Range;function g(){this.findMatchingBracket=function(l,p){if(l.column==0)return null;var s=p||this.getLine(l.row).charAt(l.column-1);if(s=="")return null;var r=s.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],l):this.$findOpeningBracket(r[2],l):null},this.getBracketRange=function(l){var p=this.getLine(l.row),s=!0,r,c=p.charAt(l.column-1),u=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(u||(c=p.charAt(l.column),l={row:l.row,column:l.column+1},u=c&&c.match(/([\(\[\{])|([\)\]\}])/),s=!1),!u)return null;if(u[1]){var h=this.$findClosingBracket(u[1],l);if(!h)return null;r=d.fromPoints(l,h),s||(r.end.column++,r.start.column--),r.cursor=r.end}else{var h=this.$findOpeningBracket(u[2],l);if(!h)return null;r=d.fromPoints(h,l),s||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(l,p){var s=this.getLine(l.row),r=/([\(\[\{])|([\)\]\}])/,c=!p&&s.charAt(l.column-1),u=c&&c.match(r);if(u||(c=(p===void 0||p)&&s.charAt(l.column),l={row:l.row,column:l.column+1},u=c&&c.match(r)),!u)return null;var h=new d(l.row,l.column-1,l.row,l.column),f=u[1]?this.$findClosingBracket(u[1],l):this.$findOpeningBracket(u[2],l);if(!f)return[h];var m=new d(f.row,f.column,f.row,f.column+1);return[h,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(l,p,s){var r=this.$brackets[l],c=1,u=new a(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.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 f=p.column-u.getCurrentTokenColumn()-2,m=h.value;;){for(;f>=0;){var v=m.charAt(f);if(v==r){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else v==l&&(c+=1);f-=1}do h=u.stepBackward();while(h&&!s.test(h.type));if(h==null)break;m=h.value,f=m.length-1}return null}},this.$findClosingBracket=function(l,p,s){var r=this.$brackets[l],c=1,u=new a(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.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 f=p.column-u.getCurrentTokenColumn();;){for(var m=h.value,v=m.length;f<v;){var y=m.charAt(f);if(y==r){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else y==l&&(c+=1);f+=1}do h=u.stepForward();while(h&&!s.test(h.type));if(h==null)break;f=0}return null}},this.getMatchingTags=function(l){var p=new a(this,l.row,l.column),s=this.$findTagName(p);if(s){var r=p.stepBackward();return r.value==="<"?this.$findClosingTag(p,s):this.$findOpeningTag(p,s)}},this.$findTagName=function(l){var p=l.getCurrentToken(),s=!1,r=!1;if(p&&p.type.indexOf("tag-name")===-1)do r?p=l.stepBackward():p=l.stepForward(),p&&(p.value==="/>"?r=!0:p.type.indexOf("tag-name")!==-1&&(s=!0));while(p&&!s);return p},this.$findClosingTag=function(l,p){var s,r=p.value,c=p.value,u=0,h=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);p=l.stepForward();var f=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length),m=!1;do{if(s=p,s.type.indexOf("tag-close")!==-1&&!m){var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p=l.stepForward(),p){if(p.value===">"&&!m){var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(r=p.value,c===r){if(s.value==="<")u++;else if(s.value==="</"&&(u--,u<0)){l.stepBackward();var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2);p=l.stepForward();var $=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=l.stepForward()),p&&p.value===">")var _=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);else return}}}else if(c===r&&p.value==="/>"&&(u--,u<0))var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2),$=y,_=$,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}}while(p&&u>=0);if(h&&v&&y&&_&&f&&$)return{openTag:new d(h.start.row,h.start.column,v.end.row,v.end.column),closeTag:new d(y.start.row,y.start.column,_.end.row,_.end.column),openTagName:f,closeTagName:$}},this.$findOpeningTag=function(l,p){var s=l.getCurrentToken(),r=p.value,c=0,u=l.getCurrentTokenRow(),h=l.getCurrentTokenColumn(),f=h+2,m=new d(u,h,u,f);l.stepForward();var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=l.stepForward()),!(!p||p.value!==">")){var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);l.stepBackward(),l.stepBackward();do if(p=s,u=l.getCurrentTokenRow(),h=l.getCurrentTokenColumn(),f=h+p.value.length,s=l.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(r===p.value)if(s.value==="<"){if(c++,c>0){var $=new d(u,h,u,f),_=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);do p=l.stepForward();while(p&&p.value!==">");var S=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1)}}else s.value==="</"&&c--}else if(p.value==="/>"){for(var b=0,M=s;M;){if(M.type.indexOf("tag-name")!==-1&&M.value===r){c--;break}else if(M.value==="<")break;M=l.stepBackward(),b++}for(var I=0;I<b;I++)l.stepForward()}}while(s&&c<=0);if(_&&S&&m&&y&&$&&v)return{openTag:new d(_.start.row,_.start.column,S.end.row,S.end.column),closeTag:new d(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:$,closeTagName:v}}}}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/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,i,o){var a=n("./lib/oop"),d=n("./lib/lang"),g=n("./bidihandler").BidiHandler,l=n("./config"),p=n("./lib/event_emitter").EventEmitter,s=n("./selection").Selection,r=n("./mode/text").Mode,c=n("./range").Range,u=n("./document").Document,h=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function k(x,C){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++k.$uid,this.$foldData.toString=function(){return this.join(`
794
+ `)},this.bgTokenizer=new h(new r().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(A){w._signal("tokenizerUpdate",A)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof x!="object"||!x.getLine)&&(x=new u(x)),this.setDocument(x),this.selection=new s(this),this.$bidiHandler=new g(this),l.resetOptions(this),this.setMode(C),l._signal("session",this),this.destroyed=!1}return k.prototype.setDocument=function(x){this.doc&&this.doc.off("change",this.$onChange),this.doc=x,x.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},k.prototype.getDocument=function(){return this.doc},k.prototype.$resetRowCache=function(x){if(!x){this.$docRowCache=[],this.$screenRowCache=[];return}var C=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,x)+1;C>w&&(this.$docRowCache.splice(w,C),this.$screenRowCache.splice(w,C))},k.prototype.$getRowCacheIndex=function(x,C){for(var w=0,A=x.length-1;w<=A;){var E=w+A>>1,R=x[E];if(C>R)w=E+1;else if(C<R)A=E-1;else return E}return w-1},k.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},k.prototype.onChangeFold=function(x){var C=x.data;this.$resetRowCache(C.start.row)},k.prototype.onChange=function(x){this.$modified=!0,this.$bidiHandler.onChange(x),this.$resetRowCache(x.start.row);var C=this.$updateInternalDataOnChange(x);!this.$fromUndo&&this.$undoManager&&(C&&C.length&&(this.$undoManager.add({action:"removeFolds",folds:C},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(x,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(x),this._signal("change",x)},k.prototype.setValue=function(x){this.doc.setValue(x),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},k.fromJSON=function(x){typeof x=="string"&&(x=JSON.parse(x));var C=new m;C.$undoStack=x.history.undo,C.$redoStack=x.history.redo,C.mark=x.history.mark,C.$rev=x.history.rev;var w=new k(x.value);return x.folds.forEach(function(A){w.addFold("...",c.fromPoints(A.start,A.end))}),w.setAnnotations(x.annotations),w.setBreakpoints(x.breakpoints),w.setMode(x.mode),w.setScrollLeft(x.scrollLeft),w.setScrollTop(x.scrollTop),w.setUndoManager(C),w.selection.fromJSON(x.selection),w},k.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(x){return x.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},k.prototype.toString=function(){return this.doc.getValue()},k.prototype.getSelection=function(){return this.selection},k.prototype.getState=function(x){return this.bgTokenizer.getState(x)},k.prototype.getTokens=function(x){return this.bgTokenizer.getTokens(x)},k.prototype.getTokenAt=function(x,C){var w=this.bgTokenizer.getTokens(x),A,E=0;if(C==null){var R=w.length-1;E=this.getLine(x).length}else for(var R=0;R<w.length&&(E+=w[R].value.length,!(E>=C));R++);return A=w[R],A?(A.index=R,A.start=E-A.value.length,A):null},k.prototype.setUndoManager=function(x){if(this.$undoManager=x,this.$informUndoManager&&this.$informUndoManager.cancel(),x){var C=this;x.addSession(this),this.$syncInformUndoManager=function(){C.$informUndoManager.cancel(),C.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},k.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},k.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},k.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},k.prototype.setUseSoftTabs=function(x){this.setOption("useSoftTabs",x)},k.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},k.prototype.setTabSize=function(x){this.setOption("tabSize",x)},k.prototype.getTabSize=function(){return this.$tabSize},k.prototype.isTabStop=function(x){return this.$useSoftTabs&&x.column%this.$tabSize===0},k.prototype.setNavigateWithinSoftTabs=function(x){this.setOption("navigateWithinSoftTabs",x)},k.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},k.prototype.setOverwrite=function(x){this.setOption("overwrite",x)},k.prototype.getOverwrite=function(){return this.$overwrite},k.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},k.prototype.addGutterDecoration=function(x,C){this.$decorations[x]||(this.$decorations[x]=""),this.$decorations[x]+=" "+C,this._signal("changeBreakpoint",{})},k.prototype.removeGutterDecoration=function(x,C){this.$decorations[x]=(this.$decorations[x]||"").replace(" "+C,""),this._signal("changeBreakpoint",{})},k.prototype.getBreakpoints=function(){return this.$breakpoints},k.prototype.setBreakpoints=function(x){this.$breakpoints=[];for(var C=0;C<x.length;C++)this.$breakpoints[x[C]]="ace_breakpoint";this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},k.prototype.setBreakpoint=function(x,C){C===void 0&&(C="ace_breakpoint"),C?this.$breakpoints[x]=C:delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoint=function(x){delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},k.prototype.addMarker=function(x,C,w,A){var E=this.$markerId++,R={range:x,type:w||"line",renderer:typeof w=="function"?w:null,clazz:C,inFront:!!A,id:E};return A?(this.$frontMarkers[E]=R,this._signal("changeFrontMarker")):(this.$backMarkers[E]=R,this._signal("changeBackMarker")),E},k.prototype.addDynamicMarker=function(x,C){if(x.update){var w=this.$markerId++;return x.id=w,x.inFront=!!C,C?(this.$frontMarkers[w]=x,this._signal("changeFrontMarker")):(this.$backMarkers[w]=x,this._signal("changeBackMarker")),x}},k.prototype.removeMarker=function(x){var C=this.$frontMarkers[x]||this.$backMarkers[x];if(C){var w=C.inFront?this.$frontMarkers:this.$backMarkers;delete w[x],this._signal(C.inFront?"changeFrontMarker":"changeBackMarker")}},k.prototype.getMarkers=function(x){return x?this.$frontMarkers:this.$backMarkers},k.prototype.highlight=function(x){if(!this.$searchHighlight){var C=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(C)}this.$searchHighlight.setRegexp(x)},k.prototype.highlightLines=function(x,C,w,A){typeof C!="number"&&(w=C,C=x),w||(w="ace_step");var E=new c(x,0,C,1/0);return E.id=this.addMarker(E,w,"fullLine",A),E},k.prototype.setAnnotations=function(x){this.$annotations=x,this._signal("changeAnnotation",{})},k.prototype.getAnnotations=function(){return this.$annotations||[]},k.prototype.clearAnnotations=function(){this.setAnnotations([])},k.prototype.$detectNewLine=function(x){var C=x.match(/^.*?(\r?\n)/m);C?this.$autoNewLine=C[1]:this.$autoNewLine=`
795
+ `},k.prototype.getWordRange=function(x,C){var w=this.getLine(x),A=!1;if(C>0&&(A=!!w.charAt(C-1).match(this.tokenRe)),A||(A=!!w.charAt(C).match(this.tokenRe)),A)var E=this.tokenRe;else if(/^\s+$/.test(w.slice(C-1,C+1)))var E=/\s/;else var E=this.nonTokenRe;var R=C;if(R>0){do R--;while(R>=0&&w.charAt(R).match(E));R++}for(var O=C;O<w.length&&w.charAt(O).match(E);)O++;return new c(x,R,x,O)},k.prototype.getAWordRange=function(x,C){for(var w=this.getWordRange(x,C),A=this.getLine(w.end.row);A.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},k.prototype.setNewLineMode=function(x){this.doc.setNewLineMode(x)},k.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},k.prototype.setUseWorker=function(x){this.setOption("useWorker",x)},k.prototype.getUseWorker=function(){return this.$useWorker},k.prototype.onReloadTokenizer=function(x){var C=x.data;this.bgTokenizer.start(C.first),this._signal("tokenizerUpdate",x)},k.prototype.setMode=function(x,C){if(x&&typeof x=="object"){if(x.getTokenizer)return this.$onChangeMode(x);var w=x,A=w.path}else A=x||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new r),this.$modes[A]&&!w){this.$onChangeMode(this.$modes[A]),C&&C();return}this.$modeId=A,l.loadModule(["mode",A],(function(E){if(this.$modeId!==A)return C&&C();this.$modes[A]&&!w?this.$onChangeMode(this.$modes[A]):E&&E.Mode&&(E=new E.Mode(w),w||(this.$modes[A]=E,E.$id=A),this.$onChangeMode(E)),C&&C()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},k.prototype.$onChangeMode=function(x,C){if(C||(this.$modeId=x.$id),this.$mode!==x){var w=this.$mode;this.$mode=x,this.$stopWorker(),this.$useWorker&&this.$startWorker();var A=x.getTokenizer();if(A.on!==void 0){var E=this.onReloadTokenizer.bind(this);A.on("update",E)}this.bgTokenizer.setTokenizer(A),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=x.tokenRe,this.nonTokenRe=x.nonTokenRe,C||(x.attachToSession&&x.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(x.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:x}))}},k.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},k.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(x){l.warn("Could not load worker",x),this.$worker=null}},k.prototype.getMode=function(){return this.$mode},k.prototype.setScrollTop=function(x){this.$scrollTop===x||isNaN(x)||(this.$scrollTop=x,this._signal("changeScrollTop",x))},k.prototype.getScrollTop=function(){return this.$scrollTop},k.prototype.setScrollLeft=function(x){this.$scrollLeft===x||isNaN(x)||(this.$scrollLeft=x,this._signal("changeScrollLeft",x))},k.prototype.getScrollLeft=function(){return this.$scrollLeft},k.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},k.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var x=0;return this.lineWidgets.forEach(function(C){C&&C.screenWidth>x&&(x=C.screenWidth)}),this.lineWidgetWidth=x},k.prototype.$computeWidth=function(x){if(this.$modified||x){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),w=this.$rowLengthCache,A=0,E=0,R=this.$foldData[E],O=R?R.start.row:1/0,N=C.length,F=0;F<N;F++){if(F>O){if(F=R.end.row+1,F>=N)break;R=this.$foldData[E++],O=R?R.start.row:1/0}w[F]==null&&(w[F]=this.$getStringScreenWidth(C[F])[0]),w[F]>A&&(A=w[F])}this.screenWidth=A}},k.prototype.getLine=function(x){return this.doc.getLine(x)},k.prototype.getLines=function(x,C){return this.doc.getLines(x,C)},k.prototype.getLength=function(){return this.doc.getLength()},k.prototype.getTextRange=function(x){return this.doc.getTextRange(x||this.selection.getRange())},k.prototype.insert=function(x,C){return this.doc.insert(x,C)},k.prototype.remove=function(x){return this.doc.remove(x)},k.prototype.removeFullLines=function(x,C){return this.doc.removeFullLines(x,C)},k.prototype.undoChanges=function(x,C){if(x.length){this.$fromUndo=!0;for(var w=x.length-1;w!=-1;w--){var A=x[w];A.action=="insert"||A.action=="remove"?this.doc.revertDelta(A):A.folds&&this.addFolds(A.folds)}!C&&this.$undoSelect&&(x.selectionBefore?this.selection.fromJSON(x.selectionBefore):this.selection.setRange(this.$getUndoSelection(x,!0))),this.$fromUndo=!1}},k.prototype.redoChanges=function(x,C){if(x.length){this.$fromUndo=!0;for(var w=0;w<x.length;w++){var A=x[w];(A.action=="insert"||A.action=="remove")&&this.doc.$safeApplyDelta(A)}!C&&this.$undoSelect&&(x.selectionAfter?this.selection.fromJSON(x.selectionAfter):this.selection.setRange(this.$getUndoSelection(x,!1))),this.$fromUndo=!1}},k.prototype.setUndoSelect=function(x){this.$undoSelect=x},k.prototype.$getUndoSelection=function(x,C){function w(N){return C?N.action!=="insert":N.action==="insert"}for(var A,E,R=0;R<x.length;R++){var O=x[R];if(O.start){if(!A){w(O)?A=c.fromPoints(O.start,O.end):A=c.fromPoints(O.start,O.start);continue}w(O)?(E=O.start,A.compare(E.row,E.column)==-1&&A.setStart(E),E=O.end,A.compare(E.row,E.column)==1&&A.setEnd(E)):(E=O.start,A.compare(E.row,E.column)==-1&&(A=c.fromPoints(O.start,O.start)))}}return A},k.prototype.replace=function(x,C){return this.doc.replace(x,C)},k.prototype.moveText=function(x,C,w){var A=this.getTextRange(x),E=this.getFoldsInRange(x),R=c.fromPoints(C,C);if(!w){this.remove(x);var O=x.start.row-x.end.row,N=O?-x.end.column:x.start.column-x.end.column;N&&(R.start.row==x.end.row&&R.start.column>x.end.column&&(R.start.column+=N),R.end.row==x.end.row&&R.end.column>x.end.column&&(R.end.column+=N)),O&&R.start.row>=x.end.row&&(R.start.row+=O,R.end.row+=O)}if(R.end=this.insert(R.start,A),E.length){var F=x.start,z=R.start,O=z.row-F.row,N=z.column-F.column;this.addFolds(E.map(function(B){return B=B.clone(),B.start.row==F.row&&(B.start.column+=N),B.end.row==F.row&&(B.end.column+=N),B.start.row+=O,B.end.row+=O,B}))}return R},k.prototype.indentRows=function(x,C,w){w=w.replace(/\t/g,this.getTabString());for(var A=x;A<=C;A++)this.doc.insertInLine({row:A,column:0},w)},k.prototype.outdentRows=function(x){for(var C=x.collapseRows(),w=new c(0,0,0,0),A=this.getTabSize(),E=C.start.row;E<=C.end.row;++E){var R=this.getLine(E);w.start.row=E,w.end.row=E;for(var O=0;O<A&&R.charAt(O)==" ";++O);O<A&&R.charAt(O)==" "?(w.start.column=O,w.end.column=O+1):(w.start.column=0,w.end.column=O),this.remove(w)}},k.prototype.$moveLines=function(x,C,w){if(x=this.getRowFoldStart(x),C=this.getRowFoldEnd(C),w<0){var A=this.getRowFoldStart(x+w);if(A<0)return 0;var E=A-x}else if(w>0){var A=this.getRowFoldEnd(C+w);if(A>this.doc.getLength()-1)return 0;var E=A-C}else{x=this.$clipRowToDocument(x),C=this.$clipRowToDocument(C);var E=C-x+1}var R=new c(x,0,C,Number.MAX_VALUE),O=this.getFoldsInRange(R).map(function(F){return F=F.clone(),F.start.row+=E,F.end.row+=E,F}),N=w==0?this.doc.getLines(x,C):this.doc.removeFullLines(x,C);return this.doc.insertFullLines(x+E,N),O.length&&this.addFolds(O),E},k.prototype.moveLinesUp=function(x,C){return this.$moveLines(x,C,-1)},k.prototype.moveLinesDown=function(x,C){return this.$moveLines(x,C,1)},k.prototype.duplicateLines=function(x,C){return this.$moveLines(x,C,0)},k.prototype.$clipRowToDocument=function(x){return Math.max(0,Math.min(x,this.doc.getLength()-1))},k.prototype.$clipColumnToRow=function(x,C){return C<0?0:Math.min(this.doc.getLine(x).length,C)},k.prototype.$clipPositionToDocument=function(x,C){if(C=Math.max(0,C),x<0)x=0,C=0;else{var w=this.doc.getLength();x>=w?(x=w-1,C=this.doc.getLine(w-1).length):C=Math.min(this.doc.getLine(x).length,C)}return{row:x,column:C}},k.prototype.$clipRangeToDocument=function(x){x.start.row<0?(x.start.row=0,x.start.column=0):x.start.column=this.$clipColumnToRow(x.start.row,x.start.column);var C=this.doc.getLength()-1;return x.end.row>C?(x.end.row=C,x.end.column=this.doc.getLine(C).length):x.end.column=this.$clipColumnToRow(x.end.row,x.end.column),x},k.prototype.setUseWrapMode=function(x){if(x!=this.$useWrapMode){if(this.$useWrapMode=x,this.$modified=!0,this.$resetRowCache(0),x){var C=this.getLength();this.$wrapData=Array(C),this.$updateWrapData(0,C-1)}this._signal("changeWrapMode")}},k.prototype.getUseWrapMode=function(){return this.$useWrapMode},k.prototype.setWrapLimitRange=function(x,C){(this.$wrapLimitRange.min!==x||this.$wrapLimitRange.max!==C)&&(this.$wrapLimitRange={min:x,max:C},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},k.prototype.adjustWrapLimit=function(x,C){var w=this.$wrapLimitRange;w.max<0&&(w={min:C,max:C});var A=this.$constrainWrapLimit(x,w.min,w.max);return A!=this.$wrapLimit&&A>1?(this.$wrapLimit=A,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},k.prototype.$constrainWrapLimit=function(x,C,w){return C&&(x=Math.max(C,x)),w&&(x=Math.min(w,x)),x},k.prototype.getWrapLimit=function(){return this.$wrapLimit},k.prototype.setWrapLimit=function(x){this.setWrapLimitRange(x,x)},k.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},k.prototype.$updateInternalDataOnChange=function(x){var C=this.$useWrapMode,w=x.action,A=x.start,E=x.end,R=A.row,O=E.row,N=O-R,F=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[C?"$wrapData":"$rowLengthCache"].splice(R,N);var z=this.$foldData;F=this.getFoldsInRange(x),this.removeFolds(F);var U=this.getFoldLine(E.row),j=0;if(U){U.addRemoveChars(E.row,E.column,A.column-E.column),U.shiftRow(-N);var B=this.getFoldLine(R);B&&B!==U&&(B.merge(U),U=B),j=z.indexOf(U)+1}for(j;j<z.length;j++){var U=z[j];U.start.row>=E.row&&U.shiftRow(-N)}O=R}else{var V=Array(N);V.unshift(R,0);var Q=C?this.$wrapData:this.$rowLengthCache;Q.splice.apply(Q,V);var z=this.$foldData,U=this.getFoldLine(R),j=0;if(U){var H=U.range.compareInside(A.row,A.column);H==0?(U=U.split(A.row,A.column),U&&(U.shiftRow(N),U.addRemoveChars(O,0,E.column-A.column))):H==-1&&(U.addRemoveChars(R,0,E.column-A.column),U.shiftRow(N)),j=z.indexOf(U)+1}for(j;j<z.length;j++){var U=z[j];U.start.row>=R&&U.shiftRow(N)}}else{N=Math.abs(x.start.column-x.end.column),w==="remove"&&(F=this.getFoldsInRange(x),this.removeFolds(F),N=-N);var U=this.getFoldLine(R);U&&U.addRemoveChars(R,A.column,N)}return C&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,C?this.$updateWrapData(R,O):this.$updateRowLengthCache(R,O),F},k.prototype.$updateRowLengthCache=function(x,C){this.$rowLengthCache[x]=null,this.$rowLengthCache[C]=null},k.prototype.$updateWrapData=function(x,C){var w=this.doc.getAllLines(),A=this.getTabSize(),E=this.$wrapData,R=this.$wrapLimit,O,N,F=x;for(C=Math.min(C,w.length-1);F<=C;)N=this.getFoldLine(F,N),N?(O=[],N.walk((function(z,U,j,B){var V;if(z!=null){V=this.$getDisplayTokens(z,O.length),V[0]=_;for(var Q=1;Q<V.length;Q++)V[Q]=S}else V=this.$getDisplayTokens(w[U].substring(B,j),O.length);O=O.concat(V)}).bind(this),N.end.row,w[N.end.row].length+1),E[N.start.row]=this.$computeWrapSplits(O,R,A),F=N.end.row+1):(O=this.$getDisplayTokens(w[F]),E[F]=this.$computeWrapSplits(O,R,A),F++)},k.prototype.$computeWrapSplits=function(x,C,w){if(x.length==0)return[];var A=[],E=x.length,R=0,O=0,N=this.$wrapAsCode,F=this.$indentedSoftWrap,z=C<=Math.max(2*w,8)||F===!1?0:Math.floor(C/2);function U(){var H=0;if(z===0)return H;if(F)for(var K=0;K<x.length;K++){var X=x[K];if(X==M)H+=1;else if(X==I)H+=w;else{if(X==L)continue;break}}return N&&F!==!1&&(H+=w),Math.min(H,z)}function j(H){for(var K=H-R,X=R;X<H;X++){var q=x[X];(q===12||q===2)&&(K-=1)}A.length||(B=U(),A.indent=B),O+=K,A.push(O),R=H}for(var B=0;E-R>C-B;){var V=R+C-B;if(x[V-1]>=M&&x[V]>=M){j(V);continue}if(x[V]==_||x[V]==S){for(V;V!=R-1&&x[V]!=_;V--);if(V>R){j(V);continue}for(V=R+C,V;V<x.length&&x[V]==S;V++);if(V==x.length)break;j(V);continue}for(var Q=Math.max(V-(C-(C>>2)),R-1);V>Q&&x[V]<_;)V--;if(N){for(;V>Q&&x[V]<_;)V--;for(;V>Q&&x[V]==b;)V--}else for(;V>Q&&x[V]<M;)V--;if(V>Q){j(++V);continue}V=R+C,x[V]==$&&V--,j(V-B)}return A},k.prototype.$getDisplayTokens=function(x,C){var w=[],A;C=C||0;for(var E=0;E<x.length;E++){var R=x.charCodeAt(E);if(R==9){A=this.getScreenTabSize(w.length+C),w.push(I);for(var O=1;O<A;O++)w.push(L)}else R==32?w.push(M):R>39&&R<48||R>57&&R<64?w.push(b):R>=4352&&T(R)?w.push(y,$):w.push(y)}return w},k.prototype.$getStringScreenWidth=function(x,C,w){if(C==0)return[0,0];C==null&&(C=1/0),w=w||0;var A,E;for(E=0;E<x.length&&(A=x.charCodeAt(E),A==9?w+=this.getScreenTabSize(w):A>=4352&&T(A)?w+=2:w+=1,!(w>C));E++);return[w,E]},k.prototype.getRowLength=function(x){var C=1;return this.lineWidgets&&(C+=this.lineWidgets[x]&&this.lineWidgets[x].rowCount||0),!this.$useWrapMode||!this.$wrapData[x]?C:this.$wrapData[x].length+C},k.prototype.getRowLineCount=function(x){return!this.$useWrapMode||!this.$wrapData[x]?1:this.$wrapData[x].length+1},k.prototype.getRowWrapIndent=function(x){if(this.$useWrapMode){var C=this.screenToDocumentPosition(x,Number.MAX_VALUE),w=this.$wrapData[C.row];return w.length&&w[0]<C.column?w.indent:0}else return 0},k.prototype.getScreenLastRowColumn=function(x){var C=this.screenToDocumentPosition(x,Number.MAX_VALUE);return this.documentToScreenColumn(C.row,C.column)},k.prototype.getDocumentLastRowColumn=function(x,C){var w=this.documentToScreenRow(x,C);return this.getScreenLastRowColumn(w)},k.prototype.getDocumentLastRowColumnPosition=function(x,C){var w=this.documentToScreenRow(x,C);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},k.prototype.getRowSplitData=function(x){if(this.$useWrapMode)return this.$wrapData[x]},k.prototype.getScreenTabSize=function(x){return this.$tabSize-(x%this.$tabSize|0)},k.prototype.screenToDocumentRow=function(x,C){return this.screenToDocumentPosition(x,C).row},k.prototype.screenToDocumentColumn=function(x,C){return this.screenToDocumentPosition(x,C).column},k.prototype.screenToDocumentPosition=function(x,C,w){if(x<0)return{row:0,column:0};var A,E=0,R=0,O,N=0,F=0,z=this.$screenRowCache,U=this.$getRowCacheIndex(z,x),j=z.length;if(j&&U>=0)var N=z[U],E=this.$docRowCache[U],B=x>z[j-1];else var B=!j;for(var V=this.getLength()-1,Q=this.getNextFoldLine(E),H=Q?Q.start.row:1/0;N<=x&&(F=this.getRowLength(E),!(N+F>x||E>=V));)N+=F,E++,E>H&&(E=Q.end.row+1,Q=this.getNextFoldLine(E,Q),H=Q?Q.start.row:1/0),B&&(this.$docRowCache.push(E),this.$screenRowCache.push(N));if(Q&&Q.start.row<=E)A=this.getFoldDisplayLine(Q),E=Q.start.row;else{if(N+F<=x||E>V)return{row:V,column:this.getLine(V).length};A=this.getLine(E),Q=null}var K=0,X=Math.floor(x-N);if(this.$useWrapMode){var q=this.$wrapData[E];q&&(O=q[X],X>0&&q.length&&(K=q.indent,R=q[X-1]||q[q.length-1],A=A.substring(R)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+X,E,X)&&(C=this.$bidiHandler.offsetToCol(w)),R+=this.$getStringScreenWidth(A,C-K)[1],this.$useWrapMode&&R>=O&&(R=O-1),Q?Q.idxToPosition(R):{row:E,column:R}},k.prototype.documentToScreenPosition=function(x,C){if(typeof C>"u")var w=this.$clipPositionToDocument(x.row,x.column);else w=this.$clipPositionToDocument(x,C);x=w.row,C=w.column;var A=0,E=null,R=null;R=this.getFoldAt(x,C,1),R&&(x=R.start.row,C=R.start.column);var O,N=0,F=this.$docRowCache,z=this.$getRowCacheIndex(F,x),U=F.length;if(U&&z>=0)var N=F[z],A=this.$screenRowCache[z],j=x>F[U-1];else var j=!U;for(var B=this.getNextFoldLine(N),V=B?B.start.row:1/0;N<x;){if(N>=V){if(O=B.end.row+1,O>x)break;B=this.getNextFoldLine(O,B),V=B?B.start.row:1/0}else O=N+1;A+=this.getRowLength(N),N=O,j&&(this.$docRowCache.push(N),this.$screenRowCache.push(A))}var Q="";B&&N>=V?(Q=this.getFoldDisplayLine(B,x,C),E=B.start.row):(Q=this.getLine(x).substring(0,C),E=x);var H=0;if(this.$useWrapMode){var K=this.$wrapData[E];if(K){for(var X=0;Q.length>=K[X];)A++,X++;Q=Q.substring(K[X-1]||0,Q.length),H=X>0?K.indent:0}}return this.lineWidgets&&this.lineWidgets[N]&&this.lineWidgets[N].rowsAbove&&(A+=this.lineWidgets[N].rowsAbove),{row:A,column:H+this.$getStringScreenWidth(Q)[0]}},k.prototype.documentToScreenColumn=function(x,C){return this.documentToScreenPosition(x,C).column},k.prototype.documentToScreenRow=function(x,C){return this.documentToScreenPosition(x,C).row},k.prototype.getScreenLength=function(){var x=0,C=null;if(this.$useWrapMode)for(var E=this.$wrapData.length,R=0,A=0,C=this.$foldData[A++],O=C?C.start.row:1/0;R<E;){var N=this.$wrapData[R];x+=N?N.length+1:1,R++,R>O&&(R=C.end.row+1,C=this.$foldData[A++],O=C?C.start.row:1/0)}else{x=this.getLength();for(var w=this.$foldData,A=0;A<w.length;A++)C=w[A],x-=C.end.row-C.start.row}return this.lineWidgets&&(x+=this.$getWidgetScreenLength()),x},k.prototype.$setFontMetrics=function(x){this.$enableVarChar&&(this.$getStringScreenWidth=function(C,w,A){if(w===0)return[0,0];w||(w=1/0),A=A||0;var E,R;for(R=0;R<C.length&&(E=C.charAt(R),E===" "?A+=this.getScreenTabSize(A):A+=x.getCharacterWidth(E),!(A>w));R++);return[A,R]})},k.prototype.getPrecedingCharacter=function(){var x=this.selection.getCursor();if(x.column===0)return x.row===0?"":this.doc.getNewLineCharacter();var C=this.getLine(x.row);return C[x.column-1]},k.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},k}();v.$uid=0,v.prototype.$modes=l.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=T,a.implement(v.prototype,p);var y=1,$=2,_=3,S=4,b=9,M=10,I=11,L=12;function T(k){return k<4352?!1:k>=4352&&k<=4447||k>=4515&&k<=4519||k>=4602&&k<=4607||k>=9001&&k<=9002||k>=11904&&k<=11929||k>=11931&&k<=12019||k>=12032&&k<=12245||k>=12272&&k<=12283||k>=12288&&k<=12350||k>=12353&&k<=12438||k>=12441&&k<=12543||k>=12549&&k<=12589||k>=12593&&k<=12686||k>=12688&&k<=12730||k>=12736&&k<=12771||k>=12784&&k<=12830||k>=12832&&k<=12871||k>=12880&&k<=13054||k>=13056&&k<=19903||k>=19968&&k<=42124||k>=42128&&k<=42182||k>=43360&&k<=43388||k>=44032&&k<=55203||k>=55216&&k<=55238||k>=55243&&k<=55291||k>=63744&&k<=64255||k>=65040&&k<=65049||k>=65072&&k<=65106||k>=65108&&k<=65126||k>=65128&&k<=65131||k>=65281&&k<=65376||k>=65504&&k<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),l.defineOptions(v.prototype,"session",{wrap:{set:function(k){if(!k||k=="off"?k=!1:k=="free"?k=!0:k=="printMargin"?k=-1:typeof k=="string"&&(k=parseInt(k,10)||!1),this.$wrap!=k)if(this.$wrap=k,!k)this.setUseWrapMode(!1);else{var x=typeof k=="number"?k:null;this.setWrapLimitRange(x,x),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(k){k=k=="auto"?this.$mode.type!="text":k!="text",k!=this.$wrapAsCode&&(this.$wrapAsCode=k,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(k){this.$useWorker=k,this.$stopWorker(),k&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(k){k=parseInt(k),k>0&&this.$tabSize!==k&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=k,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(k){this.setFoldStyle(k)},handlesSet:!0},overwrite:{set:function(k){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(k){this.doc.setNewLineMode(k)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(k){this.setMode(k)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,o){var a=n("./lib/lang"),d=n("./lib/oop"),g=n("./range").Range,l=function(){function s(){this.$options={}}return s.prototype.set=function(r){return d.mixin(this.$options,r),this},s.prototype.getOptions=function(){return a.copyObject(this.$options)},s.prototype.setOptions=function(r){this.$options=r},s.prototype.find=function(r){var c=this.$options,u=this.$matchIterator(r,c);if(!u)return!1;var h=null;return u.forEach(function(f,m,v,y){return h=new g(f,m,v,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&h.isEqual(c.start)?(h=null,!1):!0}),h},s.prototype.findAll=function(r){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var u=c.range,h=u?r.getLines(u.start.row,u.end.row):r.doc.getAllLines(),f=[],m=c.re;if(c.$isMultiLine){var v=m.length,y=h.length-v,$;e:for(var _=m.offset||0;_<=y;_++){for(var S=0;S<v;S++)if(h[_+S].search(m[S])==-1)continue e;var b=h[_],M=h[_+v-1],I=b.length-b.match(m[0])[0].length,L=M.match(m[v-1])[0].length;$&&$.end.row===_&&$.end.column>I||(f.push($=new g(_,I,_+v-1,L)),v>2&&(_=_+v-2))}}else for(var T=0;T<h.length;T++)for(var k=a.getMatchOffsets(h[T],m),S=0;S<k.length;S++){var x=k[S];f.push(new g(T,x.offset,T,x.offset+x.length))}if(u){for(var C=u.start.column,w=u.end.column,T=0,S=f.length-1;T<S&&f[T].start.column<C&&f[T].start.row==0;)T++;for(var A=u.end.row-u.start.row;T<S&&f[S].end.column>w&&f[S].end.row==A;)S--;for(f=f.slice(T,S+1),T=0,S=f.length;T<S;T++)f[T].start.row+=u.start.row,f[T].end.row+=u.start.row}return f},s.prototype.replace=function(r,c){var u=this.$options,h=this.$assembleRegExp(u);if(u.$isMultiLine)return c;if(h){var f=h.exec(r);if(!f||f[0].length!=r.length)return null;if(u.regExp||(c=c.replace(/\$/g,"$$$$")),c=r.replace(h,c),u.preserveCase){c=c.split("");for(var m=Math.min(r.length,r.length);m--;){var v=r[m];v&&v.toLowerCase()!=v?c[m]=c[m].toUpperCase():c[m]=c[m].toLowerCase()}c=c.join("")}return c}},s.prototype.$assembleRegExp=function(r,c){if(r.needle instanceof RegExp)return r.re=r.needle;var u=r.needle;if(!r.needle)return r.re=!1;r.regExp||(u=a.escapeRegExp(u));var h=r.caseSensitive?"gm":"gmi";try{new RegExp(u,"u"),r.$supportsUnicodeFlag=!0,h+="u"}catch{r.$supportsUnicodeFlag=!1}if(r.wholeWord&&(u=p(u,r)),r.$isMultiLine=!c&&/[\n\r]/.test(u),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(u,h);try{var f=new RegExp(u,h)}catch{f=!1}return r.re=f},s.prototype.$assembleMultilineRegExp=function(r,c){for(var u=r.replace(/\r\n|\r|\n/g,`$
796
+ ^`).split(`
797
+ `),h=[],f=0;f<u.length;f++)try{h.push(new RegExp(u[f],c))}catch{return!1}return h},s.prototype.$matchIterator=function(r,c){var u=this.$assembleRegExp(c);if(!u)return!1;var h=c.backwards==!0,f=c.skipCurrent!=!1,m=u.unicode,v=c.range,y=c.start;y||(y=v?v[h?"end":"start"]:r.selection.getRange()),y.start&&(y=y[f!=h?"end":"start"]);var $=v?v.start.row:0,_=v?v.end.row:r.getLength()-1;if(h)var S=function(I){var L=y.row;if(!M(L,y.column,I)){for(L--;L>=$;L--)if(M(L,Number.MAX_VALUE,I))return;if(c.wrap!=!1){for(L=_,$=y.row;L>=$;L--)if(M(L,Number.MAX_VALUE,I))return}}};else var S=function(L){var T=y.row;if(!M(T,y.column,L)){for(T=T+1;T<=_;T++)if(M(T,0,L))return;if(c.wrap!=!1){for(T=$,_=y.row;T<=_;T++)if(M(T,0,L))return}}};if(c.$isMultiLine)var b=u.length,M=function(I,L,T){var k=h?I-b+1:I;if(!(k<0||k+b>r.getLength())){var x=r.getLine(k),C=x.search(u[0]);if(!(!h&&C<L||C===-1)){for(var w=1;w<b;w++)if(x=r.getLine(k+w),x.search(u[w])==-1)return;var A=x.match(u[b-1])[0].length;if(!(h&&A>L)&&T(k,C,k+b-1,A))return!0}}};else if(h)var M=function(L,T,k){var x=r.getLine(L),C=[],w,A=0;for(u.lastIndex=0;w=u.exec(x);){var E=w[0].length;if(A=w.index,!E){if(A>=x.length)break;u.lastIndex=A+=a.skipEmptyMatch(x,A,m)}if(w.index+E>T)break;C.push(w.index,E)}for(var R=C.length-1;R>=0;R-=2){var O=C[R-1],E=C[R];if(k(L,O,L,O+E))return!0}};else var M=function(L,T,k){var x=r.getLine(L),C,w;for(u.lastIndex=T;w=u.exec(x);){var A=w[0].length;if(C=w.index,k(L,C,L,C+A))return!0;if(!A&&(u.lastIndex=C+=a.skipEmptyMatch(x,C,m),C>=x.length))return!1}};return{forEach:S}},s}();function p(s,r){var c=a.supportsLookbehind();function u(v,y){y===void 0&&(y=!0);var $=c&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return $.test(v)||r.regExp?c&&r.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var h=Array.from(s),f=h[0],m=h[h.length-1];return u(f)+s+u(m,!1)}i.Search=l}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,o){var a=this&&this.__extends||function(){var c=function(u,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},c(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),d=n("../lib/keys"),g=n("../lib/useragent"),l=d.KEY_MODS,p=function(){function c(u,h){this.$init(u,h,!1)}return c.prototype.$init=function(u,h,f){this.platform=h||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=f},c.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},c.prototype.removeCommand=function(u,h){var f=u&&(typeof u=="string"?u:u.name);u=this.commands[f],h||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==u)delete m[v];else if(Array.isArray(y)){var $=y.indexOf(u);$!=-1&&(y.splice($,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(u,h,f){if(typeof u=="object"&&u&&(f==null&&(f=u.position),u=u[this.platform]),!!u){if(typeof h=="function")return this.addCommand({exec:h,bindKey:u,name:h.name||u});u.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),M=l[b.hashId]+b.key;v+=(v?" ":"")+M,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var $=this.parseKeys(m),_=l[$.hashId]+$.key;this._addCommandToBinding(v+_,h,f)},this)}},c.prototype._addCommandToBinding=function(u,h,f){var m=this.commandKeyBinding,v;if(!h)delete m[u];else if(!m[u]||this.$singleCommand)m[u]=h;else{Array.isArray(m[u])?(v=m[u].indexOf(h))!=-1&&m[u].splice(v,1):m[u]=[m[u]],typeof f!="number"&&(f=s(h));var y=m[u];for(v=0;v<y.length;v++){var $=y[v],_=s($);if(_>f)break}y.splice(v,0,h)}},c.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(h){var f=u[h];if(f){if(typeof f=="string")return this.bindKey(f,h);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=h),this.addCommand(f))}},this)},c.prototype.removeCommands=function(u){Object.keys(u).forEach(function(h){this.removeCommand(u[h])},this)},c.prototype.bindKeys=function(u){Object.keys(u).forEach(function(h){this.bindKey(h,u[h])},this)},c.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},c.prototype.parseKeys=function(u){var h=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),f=h.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(h.length){if(h.length==1&&h[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,y=h.length;y--;){var $=d.KEY_MODS[h[y]];if($==null)return typeof console<"u"&&console.error("invalid modifier "+h[y]+" in "+u),!1;v|=$}return{key:f,hashId:v}},c.prototype.findKeyCommand=function(u,h){var f=l[u]+h;return this.commandKeyBinding[f]},c.prototype.handleKeyboard=function(u,h,f,m){if(!(m<0)){var v=l[h]+f,y=this.commandKeyBinding[v];return u.$keyChain&&(u.$keyChain+=" "+v,y=this.commandKeyBinding[u.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||v,{command:"null"}):(u.$keyChain&&((!h||h==4)&&f.length==1?u.$keyChain=u.$keyChain.slice(0,-v.length-1):(h==-1||m>0)&&(u.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(u,h){return h.$keyChain||""},c}();function s(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var r=function(c){a(u,c);function u(h,f){var m=c.call(this,h,f)||this;return m.$singleCommand=!0,m}return u}(p);r.call=function(c,u,h){p.prototype.$init.call(c,u,h,!0)},p.call=function(c,u,h){p.prototype.$init.call(c,u,h,!1)},i.HashHandler=r,i.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,o){var a=this&&this.__extends||function(){var s=function(r,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(u[f]=h[f])},s(r,c)};return function(r,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(r,c);function u(){this.constructor=r}r.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),d=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,l=n("../lib/event_emitter").EventEmitter,p=function(s){a(r,s);function r(c,u){var h=s.call(this,u,c)||this;return h.byName=h.commands,h.setDefaultHandler("exec",function(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),h}return r.prototype.exec=function(c,u,h){if(Array.isArray(c)){for(var f=c.length;f--;)if(this.exec(c[f],u,h))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!this.canExecute(c,u))return!1;var m={editor:u,command:c,args:h};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.canExecute=function(c,u){return typeof c=="string"&&(c=this.commands[c]),!(!c||u&&u.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(u))},r.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},r.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,c):this.exec(u[0],c,u[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(c){return c.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},r}(g);d.implement(p.prototype,l),i.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,o){var a=n("../lib/lang"),d=n("../config"),g=n("../range").Range;function l(s,r){return{win:s,mac:r}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:l("Ctrl-,","Command-,"),exec:function(s){d.loadModule("ace/ext/settings_menu",function(r){r.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:l("Alt-E","F4"),exec:function(s){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(s){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:l("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:l(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:l("Ctrl-L","Command-L"),exec:function(s,r){typeof r=="number"&&!isNaN(r)&&s.gotoLine(r),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:l("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:l("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:l("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:l("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:l("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:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:l("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:l("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:l("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:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:l("Ctrl-F","Command-F"),exec:function(s){d.loadModule("ace/ext/searchbox",function(r){r.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:l("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:l("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:l("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:l("Up","Up|Ctrl-P"),exec:function(s,r){s.navigateUp(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:l("Down","Down|Ctrl-N"),exec:function(s,r){s.navigateDown(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:l("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:l("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:l("Left","Left|Ctrl-B"),exec:function(s,r){s.navigateLeft(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:l("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:l("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:l("Right","Right|Ctrl-F"),exec:function(s,r){s.navigateRight(r.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:l(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:l("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:l(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:l("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:l("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:l("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:l("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:l("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:l("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:l(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 r=s.$copyWithEmptySelection&&s.selection.isEmpty(),c=r?s.selection.getLineRange():s.selection.getRange();s._emit("cut",c),c.isEmpty()||s.session.remove(c),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,r){s.$handlePaste(r)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:l("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:l("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(s){d.loadModule("ace/ext/searchbox",function(r){r.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:l("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:l("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:l("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:l("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:l("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(s){var r=s.selection.getRange();r.start.column=0,s.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(s){var r=s.selection.getRange();r.end.column=Number.MAX_VALUE,s.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:l("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,r){s.insert(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,r){s.insert(a.stringRepeat(r.text||"",r.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:l(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:l(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var r=s.selection.getRange();r.start.column=r.end.column=0,r.end.row++,s.selection.setRange(r,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:l("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:l(null,null),exec:function(s){for(var r=s.selection.isBackwards(),c=r?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),u=r?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),h=s.session.doc.getLine(c.row).length,f=s.session.doc.getTextRange(s.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=s.session.doc.getLine(c.row),y=c.row+1;y<=u.row+1;y++){var $=a.stringTrimLeft(a.stringTrimRight(s.session.doc.getLine(y)));$.length!==0&&($=" "+$),v+=$}u.row+1<s.session.doc.getLength()-1&&(v+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new g(c.row,0,u.row+2,0),v),m>0?(s.selection.moveCursorTo(c.row,c.column),s.selection.selectTo(c.row,c.column+m)):(h=s.session.doc.getLine(c.row).length>h?h+1:h,s.selection.moveCursorTo(c.row,h))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:l(null,null),exec:function(s){var r=s.session.doc.getLength()-1,c=s.session.doc.getLine(r).length,u=s.selection.rangeList.ranges,h=[];u.length<1&&(u=[s.selection.getRange()]);for(var f=0;f<u.length;f++)f==u.length-1&&(u[f].end.row===r&&u[f].end.column===c||h.push(new g(u[f].end.row,u[f].end.column,r,c))),f===0?u[f].start.row===0&&u[f].start.column===0||h.push(new g(0,0,u[f].start.row,u[f].start.column)):h.push(new g(u[f-1].end.row,u[f-1].end.column,u[f].start.row,u[f].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var f=0;f<h.length;f++)s.selection.addRange(h[f],!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(`
798
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var r=s.getCursorPosition();s.selection.moveTo(r.row-1,Number.MAX_VALUE),s.insert(`
799
+ `),r.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:l("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:l(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/line_widgets",["require","exports","module","ace/lib/dom"],function(n,i,o){var a=n("./lib/dom"),d=function(){function g(l){this.session=l,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return g.prototype.getRowLength=function(l){var p;return this.lineWidgets?p=this.lineWidgets[l]&&this.lineWidgets[l].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[l]?1+p:this.$wrapData[l].length+1+p},g.prototype.$getWidgetScreenLength=function(){var l=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(l+=p.rowCount)}),l},g.prototype.$onChangeEditor=function(l){this.attach(l.editor)},g.prototype.attach=function(l){l&&l.widgetManager&&l.widgetManager!=this&&l.widgetManager.detach(),this.editor!=l&&(this.detach(),this.editor=l,l&&(l.widgetManager=this,l.renderer.on("beforeRender",this.measureWidgets),l.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(l){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},g.prototype.updateOnFold=function(l,p){var s=p.lineWidgets;if(!(!s||!l.action)){for(var r=l.data,c=r.start.row,u=r.end.row,h=l.action=="add",f=c+1;f<u;f++)s[f]&&(s[f].hidden=h);s[u]&&(h?s[c]?s[u].hidden=h:s[c]=s[u]:(s[c]==s[u]&&(s[c]=void 0),s[u].hidden=h))}},g.prototype.updateOnChange=function(l){var p=this.session.lineWidgets;if(p){var s=l.start.row,r=l.end.row-s;if(r!==0)if(l.action=="remove"){var c=p.splice(s+1,r);!p[s]&&c[c.length-1]&&(p[s]=c.pop()),c.forEach(function(h){h&&this.removeLineWidget(h)},this),this.$updateRows()}else{var u=new Array(r);p[s]&&p[s].column!=null&&l.start.column>p[s].column&&s++,u.unshift(s,0),p.splice.apply(p,u),this.$updateRows()}}},g.prototype.$updateRows=function(){var l=this.session.lineWidgets;if(l){var p=!0;l.forEach(function(s,r){if(s)for(p=!1,s.row=r;s.$oldWidget;)s.$oldWidget.row=r,s=s.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(l){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[l.row];return p&&(l.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[l.row]=l,l},g.prototype.addLineWidget=function(l){if(this.$registerLineWidget(l),l.session=this.session,!this.editor)return l;var p=this.editor.renderer;l.html&&!l.el&&(l.el=a.createElement("div"),l.el.innerHTML=l.html),l.text&&!l.el&&(l.el=a.createElement("div"),l.el.textContent=l.text),l.el&&(a.addCssClass(l.el,"ace_lineWidgetContainer"),l.className&&a.addCssClass(l.el,l.className),l.el.style.position="absolute",l.el.style.zIndex="5",p.container.appendChild(l.el),l._inDocument=!0,l.coverGutter||(l.el.style.zIndex="3"),l.pixelHeight==null&&(l.pixelHeight=l.el.offsetHeight)),l.rowCount==null&&(l.rowCount=l.pixelHeight/p.layerConfig.lineHeight);var s=this.session.getFoldAt(l.row,0);if(l.$fold=s,s){var r=this.session.lineWidgets;l.row==s.end.row&&!r[s.start.row]?r[s.start.row]=l:l.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(l),l},g.prototype.removeLineWidget=function(l){if(l._inDocument=!1,l.session=null,l.el&&l.el.parentNode&&l.el.parentNode.removeChild(l.el),l.editor&&l.editor.destroy)try{l.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[l.row];if(p==l)this.session.lineWidgets[l.row]=l.$oldWidget,l.$oldWidget&&this.onWidgetChanged(l.$oldWidget);else for(;p;){if(p.$oldWidget==l){p.$oldWidget=l.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(l){for(var p=this.session.lineWidgets,s=p&&p[l],r=[];s;)r.push(s),s=s.$oldWidget;return r},g.prototype.onWidgetChanged=function(l){this.session._changedWidgets.push(l),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(l,p){var s=this.session._changedWidgets,r=p.layerConfig;if(!(!s||!s.length)){for(var c=1/0,u=0;u<s.length;u++){var h=s[u];if(!(!h||!h.el)&&h.session==this.session){if(!h._inDocument){if(this.session.lineWidgets[h.row]!=h)continue;h._inDocument=!0,p.container.appendChild(h.el)}h.h=h.el.offsetHeight,h.fixedWidth||(h.w=h.el.offsetWidth,h.screenWidth=Math.ceil(h.w/r.characterWidth));var f=h.h/r.lineHeight;h.coverLine&&(f-=this.session.getRowLineCount(h.row),f<0&&(f=0)),h.rowCount!=f&&(h.rowCount=f,h.row<c&&(c=h.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(l,p){var s=p.layerConfig,r=this.session.lineWidgets;if(r){for(var c=Math.min(this.firstRow,s.firstRow),u=Math.max(this.lastRow,s.lastRow,r.length);c>0&&!r[c];)c--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,p.$cursorLayer.config=s;for(var h=c;h<=u;h++){var f=r[h];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,p.container.appendChild(f.el));var m=p.$cursorLayer.getPixelPosition({row:h,column:0},!0).top;f.coverLine||(m+=s.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-s.offset+"px";var v=f.coverGutter?0:p.gutterWidth;f.fixedWidth||(v-=p.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=s.width+2*s.padding+"px"),f.fixedWidth?f.el.style.right=p.scrollBar.getWidth()+"px":f.el.style.right=""}}}},g}();i.LineWidgets=d}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,o){var a=n("../lib/keys"),d=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 d(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(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 r=this.editor.getCursorPosition().row;this.editor.isRowVisible(r)||this.editor.scrollToLine(r,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldWidget(c),h=this.$findNearestAnnotation(c);if(!(u===null&&h===null)){if(u===null&&h!==null){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(u!==null&&h===null){this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(h-c)<Math.abs(u-c)){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new l(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 r=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==r&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(r),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var c=this.lines.cells[this.activeRowIndex].element.childNodes[2],u=c.getBoundingClientRect(),h=this.annotationTooltip.getElement().style;h.left=u.right+"px",h.top=u.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(s){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),c=this.$getFoldWidget(s).style.display!=="none";return r&&c},p.prototype.$isAnnotationVisible=function(s){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),c=this.$getAnnotation(s).style.display!=="none";return r&&c},p.prototype.$getFoldWidget=function(s){var r=this.lines.get(s),c=r.element;return c.childNodes[1]},p.prototype.$getAnnotation=function(s){var r=this.lines.get(s),c=r.element;return c.childNodes[2]},p.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var r=0;s-r>0||s+r<this.lines.getLength()-1;){if(r++,s-r>=0&&this.$isFoldWidgetVisible(s-r))return s-r;if(s+r<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+r))return s+r}return null},p.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var r=0;s-r>0||s+r<this.lines.getLength()-1;){if(r++,s-r>=0&&this.$isAnnotationVisible(s-r))return s-r;if(s+r<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+r))return s+r}return null},p.prototype.$focusFoldWidget=function(s){if(s!=null){var r=this.$getFoldWidget(s);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},p.prototype.$focusAnnotation=function(s){if(s!=null){var r=this.$getAnnotation(s);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},p.prototype.$blurFoldWidget=function(s){var r=this.$getFoldWidget(s);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},p.prototype.$blurAnnotation=function(s){var r=this.$getAnnotation(s);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.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 r=this.$findNearestAnnotation(this.activeRowIndex);if(r==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=r,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var c=this.$findNearestFoldWidget(this.activeRowIndex);if(c==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(s){var r=this.lines.get(s);return r?r.row:null},p.prototype.$rowToRowIndex=function(s){for(var r=0;r<this.lines.getLength();r++){var c=this.lines.get(r);if(c.row==s)return r}return null},p}();i.GutterKeyboardHandler=g;var l=function(){function p(s,r){this.gutterKeyboardHandler=r,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=l}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(n,i,o){var a=this&&this.__values||function(C){var w=typeof Symbol=="function"&&Symbol.iterator,A=w&&C[w],E=0;if(A)return A.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&E>=C.length&&(C=void 0),{value:C&&C[E++],done:!C}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/lang"),p=n("./lib/useragent"),s=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,h=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,$=n("./commands/default_commands").commands,_=n("./config"),S=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,M=n("./keyboard/gutter_handler").GutterKeyboardHandler,I=n("./config").nls,L=n("./clipboard"),T=n("./lib/keys"),k=function(){function C(w,A,E){this.session,this.$toDestroy=[];var R=w.getContainerElement();this.container=R,this.renderer=w,this.id="editor"+ ++C.$uid,this.commands=new y(p.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new s(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new c(this)),this.keyBinding=new u(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=l.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(O,N){N._$emitInputEvent.schedule(31)}),this.setSession(A||E&&E.session||new h("")),_.resetOptions(this),E&&this.setOptions(E),_._signal("editor",this)}return C.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=l.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},C.prototype.startOperation=function(w){if(this.curOp){if(!w||this.curOp.command)return;this.prevOp=this.curOp}w||(this.previousCommand=null,w={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:w.command||{},args:w.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},C.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var A=this.curOp.command,E=A&&A.scrollIntoView;if(E){switch(E){case"center-animate":E="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var R=this.selection.getRange(),O=this.renderer.layerConfig;(R.start.row>=O.lastRow||R.end.row<=O.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}E=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var N=this.selection.toJSON();this.curOp.selectionAfter=N,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(N),this.prevOp=this.curOp,this.curOp=null}},C.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var A=this.prevOp,E=this.$mergeableCommands,R=A.command&&w.command.name==A.command.name;if(w.command.name=="insertstring"){var O=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),R=R&&this.mergeNextCommand&&(!/\s/.test(O)||/\s/.test(A.args)),this.mergeNextCommand=!0}else R=R&&E.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(R=!1),R?this.session.mergeUndoDeltas=!0:E.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},C.prototype.setKeyboardHandler=function(w,A){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var E=this;_.loadModule(["keybinding",w],function(R){E.$keybindingId==w&&E.keyBinding.setKeyboardHandler(R&&R.handler),A&&A()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),A&&A()},C.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},C.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var A=this.session;if(A){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var E=this.session.getSelection();E.off("changeCursor",this.$onCursorChange),E.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:A}),this.curOp=null,A&&A._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},C.prototype.getSession=function(){return this.session},C.prototype.setValue=function(w,A){return this.session.doc.setValue(w),A?A==1?this.navigateFileEnd():A==-1&&this.navigateFileStart():this.selectAll(),w},C.prototype.getValue=function(){return this.session.getValue()},C.prototype.getSelection=function(){return this.selection},C.prototype.resize=function(w){this.renderer.onResize(w)},C.prototype.setTheme=function(w,A){this.renderer.setTheme(w,A)},C.prototype.getTheme=function(){return this.renderer.getTheme()},C.prototype.setStyle=function(w){this.renderer.setStyle(w)},C.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},C.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},C.prototype.setFontSize=function(w){this.setOption("fontSize",w)},C.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var A=w.session;if(!(!A||A.destroyed)){A.$bracketHighlight&&(A.$bracketHighlight.markerIds.forEach(function(B){A.removeMarker(B)}),A.$bracketHighlight=null);var E=w.getCursorPosition(),R=w.getKeyboardHandler(),O=R&&R.$getDirectionForHighlight&&R.$getDirectionForHighlight(w),N=A.getMatchingBracketRanges(E,O);if(!N){var F=new S(A,E.row,E.column),z=F.getCurrentToken();if(z&&/\b(?:tag-open|tag-name)/.test(z.type)){var U=A.getMatchingTags(E);U&&(N=[U.openTagName.isEmpty()?U.openTag:U.openTagName,U.closeTagName.isEmpty()?U.closeTag:U.closeTagName])}}if(!N&&A.$mode.getMatching&&(N=A.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var j="ace_bracket";Array.isArray(N)?N.length==1&&(j="ace_error_bracket"):N=[N],N.length==2&&(m.comparePoints(N[0].end,N[1].start)==0?N=[m.fromPoints(N[0].start,N[1].end)]:m.comparePoints(N[0].start,N[1].end)==0&&(N=[m.fromPoints(N[1].start,N[0].end)])),A.$bracketHighlight={ranges:N,markerIds:N.map(function(B){return A.addMarker(B,j,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},C.prototype.focus=function(){this.textInput.focus()},C.prototype.isFocused=function(){return this.textInput.isFocused()},C.prototype.blur=function(){this.textInput.blur()},C.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},C.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},C.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},C.prototype.onDocumentChange=function(w){var A=this.session.$useWrapMode,E=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,E,A),this._signal("change",w),this.$cursorChange()},C.prototype.onTokenizerUpdate=function(w){var A=w.data;this.renderer.updateLines(A.first,A.last)},C.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},C.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},C.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},C.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),A;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(A=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(A=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(A=!1)),w.$highlightLineMarker&&!A)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&A){var E=new m(A.row,A.column,A.row,1/0);E.id=w.addMarker(E,"ace_active-line","screenLine"),w.$highlightLineMarker=E}else A&&(w.$highlightLineMarker.start.row=A.row,w.$highlightLineMarker.end.row=A.row,w.$highlightLineMarker.start.column=A.column,w._signal("changeBackMarker"))},C.prototype.onSelectionChange=function(w){var A=this.session;if(A.$selectionMarker&&A.removeMarker(A.$selectionMarker),A.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var E=this.selection.getRange(),R=this.getSelectionStyle();A.$selectionMarker=A.addMarker(E,"ace_selection",R)}var O=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(O),this._signal("changeSelection")},C.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,A=this.getSelectionRange();if(!(A.isEmpty()||A.isMultiLine())){var E=A.start.column,R=A.end.column,O=w.getLine(A.start.row),N=O.substring(E,R);if(!(N.length>5e3||!/[\w\d]/.test(N))){var F=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),z=O.substring(E-1,R+1);if(F.test(z))return F}}},C.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},C.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},C.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},C.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},C.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},C.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},C.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},C.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},C.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},C.prototype.getCopyText=function(){var w=this.getSelectedText(),A=this.session.doc.getNewLineCharacter(),E=!1;if(!w&&this.$copyWithEmptySelection){E=!0;for(var R=this.selection.getAllRanges(),O=0;O<R.length;O++){var N=R[O];O&&R[O-1].start.row==N.start.row||(w+=this.session.getLine(N.start.row)+A)}}var F={text:w};return this._signal("copy",F),L.lineMode=E?F.text:!1,F.text},C.prototype.onCopy=function(){this.commands.exec("copy",this)},C.prototype.onCut=function(){this.commands.exec("cut",this)},C.prototype.onPaste=function(w,A){var E={text:w,event:A};this.commands.exec("paste",this,E)},C.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var A=w.text,E=A===L.lineMode,R=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)E?R.insert({row:this.selection.lead.row,column:0},A):this.insert(A);else if(E)this.selection.rangeList.ranges.forEach(function(j){R.insert({row:j.start.row,column:0},A)});else{var O=A.split(/\r\n|\r|\n/),N=this.selection.rangeList.ranges,F=O.length==2&&(!O[0]||!O[1]);if(O.length!=N.length||F)return this.commands.exec("insertstring",this,A);for(var z=N.length;z--;){var U=N[z];U.isEmpty()||R.remove(U),R.insert(U.start,O[z])}}},C.prototype.execCommand=function(w,A){return this.commands.exec(w,this,A)},C.prototype.insert=function(w,A){var E=this.session,R=E.getMode(),O=this.getCursorPosition();if(this.getBehavioursEnabled()&&!A){var N=R.transformAction(E.getState(O.row),"insertion",this,E,w);N&&(w!==N.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=N.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
800
+ `)==-1){var F=m.fromPoints(O,O);F.end.column+=w.length,this.session.remove(F)}}else{var F=this.getSelectionRange();O=this.session.remove(F),this.clearSelection()}if(w==`
801
+ `||w==`\r
802
+ `){var B=E.getLine(O.row);if(O.column>B.search(/\S|$/)){var z=B.substr(O.column).search(/\S|$/);E.doc.removeInLine(O.row,O.column,O.column+z)}}this.clearSelection();var U=O.column,j=E.getState(O.row),B=E.getLine(O.row),V=R.checkOutdent(j,B,w);if(E.insert(O,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(O.row,U+N.selection[0],O.row,U+N.selection[1])):this.selection.setSelectionRange(new m(O.row+N.selection[0],N.selection[1],O.row+N.selection[2],N.selection[3]))),this.$enableAutoIndent){if(E.getDocument().isNewLine(w)){var Q=R.getNextLineIndent(j,B.slice(0,O.column),E.getTabString());E.insert({row:O.row+1,column:0},Q)}V&&R.autoOutdent(j,E,O.row)}},C.prototype.autoIndent=function(){for(var w=this.session,A=w.getMode(),E=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),R="",O="",N="",F=w.getTabString(),z=0;z<E.length;z++)for(var U=E[z].start.row,j=E[z].end.row,B=U;B<=j;B++){B>0&&(R=w.getState(B-1),O=w.getLine(B-1),N=A.getNextLineIndent(R,O,F));var V=w.getLine(B),Q=A.$getIndent(V);if(N!==Q){if(Q.length>0){var H=new m(B,0,B,Q.length);w.remove(H)}N.length>0&&w.insert({row:B,column:0},N)}A.autoOutdent(R,w,B)}},C.prototype.onTextInput=function(w,A){if(!A)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var E=this.applyComposition.bind(this,w,A);this.selection.rangeCount?this.forEachSelection(E):E(),this.endOperation()},C.prototype.applyComposition=function(w,A){if(A.extendLeft||A.extendRight){var E=this.selection.getRange();E.start.column-=A.extendLeft,E.end.column+=A.extendRight,E.start.column<0&&(E.start.row--,E.start.column+=this.session.getLine(E.start.row).length+1),this.selection.setRange(E),!w&&!E.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),A.restoreStart||A.restoreEnd){var E=this.selection.getRange();E.start.column-=A.restoreStart,E.end.column-=A.restoreEnd,this.selection.setRange(E)}},C.prototype.onCommandKey=function(w,A,E){return this.keyBinding.onCommandKey(w,A,E)},C.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},C.prototype.getOverwrite=function(){return this.session.getOverwrite()},C.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},C.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},C.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},C.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},C.prototype.getDragDelay=function(){return this.getOption("dragDelay")},C.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},C.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},C.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},C.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},C.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},C.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},C.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},C.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},C.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},C.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},C.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},C.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},C.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},C.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},C.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},C.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},C.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},C.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},C.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},C.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},C.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},C.prototype.getReadOnly=function(){return this.getOption("readOnly")},C.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},C.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},C.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},C.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},C.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},C.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},C.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},C.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},C.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var A=this.getSelectionRange();if(this.getBehavioursEnabled()){var E=this.session,R=E.getState(A.start.row),O=E.getMode().transformAction(R,"deletion",this,E,A);if(A.end.column===0){var N=E.getTextRange(A);if(N[N.length-1]==`
803
+ `){var F=E.getLine(A.end.row);/^\s+$/.test(F)&&(A.end.column=F.length)}}O&&(A=O)}this.session.remove(A),this.clearSelection()},C.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},C.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
804
+ `),this.moveCursorToPosition(w)},C.prototype.setGhostText=function(w,A){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,A)},C.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},C.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),A=w.column;if(A!==0){var E=this.session.getLine(w.row),R,O;A<E.length?(R=E.charAt(A)+E.charAt(A-1),O=new m(w.row,A-1,w.row,A+1)):(R=E.charAt(A-1)+E.charAt(A-2),O=new m(w.row,A-2,w.row,A)),this.session.replace(O,R),this.session.selection.moveToPosition(O.end)}}},C.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var A=this.getSelectionRange(),E=this.session.getTextRange(A);this.session.replace(A,E.toLowerCase()),this.selection.setSelectionRange(w)},C.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var A=this.getSelectionRange(),E=this.session.getTextRange(A);this.session.replace(A,E.toUpperCase()),this.selection.setSelectionRange(w)},C.prototype.indent=function(){var w=this.session,A=this.getSelectionRange();if(A.start.row<A.end.row){var E=this.$getSelectedRows();w.indentRows(E.first,E.last," ");return}else if(A.start.column<A.end.column){var R=w.getTextRange(A);if(!/^\s+$/.test(R)){var E=this.$getSelectedRows();w.indentRows(E.first,E.last," ");return}}var O=w.getLine(A.start.row),N=A.start,F=w.getTabSize(),z=w.documentToScreenColumn(N.row,N.column);if(this.session.getUseSoftTabs())var U=F-z%F,j=l.stringRepeat(" ",U);else{for(var U=z%F;O[A.start.column-1]==" "&&U;)A.start.column--,U--;this.selection.setSelectionRange(A),j=" "}return this.insert(j)},C.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},C.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},C.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),A=this.session,E=[],R=w.first;R<=w.last;R++)E.push(A.getLine(R));E.sort(function(F,z){return F.toLowerCase()<z.toLowerCase()?-1:F.toLowerCase()>z.toLowerCase()?1:0});for(var O=new m(0,0,0,0),R=w.first;R<=w.last;R++){var N=A.getLine(R);O.start.row=R,O.end.row=R,O.end.column=N.length,A.replace(O,E[R-w.first])}},C.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),A=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,A.first,A.last)},C.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),A=this.session.getState(w.row),E=this.getSelectionRange();this.session.getMode().toggleBlockComment(A,this.session,E,w)},C.prototype.getNumberAt=function(w,A){var E=/[\-]?[0-9]+(?:\.[0-9]+)?/g;E.lastIndex=0;for(var R=this.session.getLine(w);E.lastIndex<A;){var O=E.exec(R);if(O.index<=A&&O.index+O[0].length>=A){var N={value:O[0],start:O.index,end:O.index+O[0].length};return N}}return null},C.prototype.modifyNumber=function(w){var A=this.selection.getCursor().row,E=this.selection.getCursor().column,R=new m(A,E-1,A,E),O=this.session.getTextRange(R);if(!isNaN(parseFloat(O))&&isFinite(O)){var N=this.getNumberAt(A,E);if(N){var F=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,z=N.start+N.value.length-F,U=parseFloat(N.value);U*=Math.pow(10,z),F!==N.end&&E<F?w*=Math.pow(10,N.end-E-1):w*=Math.pow(10,N.end-E),U+=w,U/=Math.pow(10,z);var j=U.toFixed(z),B=new m(A,N.start,A,N.end);this.session.replace(B,j),this.moveCursorTo(A,Math.max(N.start+1,E+j.length-N.value.length))}}else this.toggleWord()},C.prototype.toggleWord=function(){var w=this.selection.getCursor().row,A=this.selection.getCursor().column;this.selection.selectWord();var E=this.getSelectedText(),R=this.selection.getWordRange().start.column,O=E.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),N=A-R-1;N<0&&(N=0);var F=0,z=0,U=this;E.match(/[A-Za-z0-9_]+/)&&O.forEach(function(ue,we){z=F+ue.length,N>=F&&N<=z&&(E=ue,U.selection.clearSelection(),U.moveCursorTo(w,F+R),U.selection.selectTo(w,z+R)),F=z});for(var j=this.$toggleWordPairs,B,V=0;V<j.length;V++)for(var Q=j[V],H=0;H<=1;H++){var K=+!H,X=E.match(new RegExp("^\\s?_?("+l.escapeRegExp(Q[H])+")\\s?$","i"));if(X){var q=E.match(new RegExp("([_]|^|\\s)("+l.escapeRegExp(X[1])+")($|\\s)","g"));q&&(B=E.replace(new RegExp(l.escapeRegExp(Q[H]),"i"),function(ue){var we=Q[K];return ue.toUpperCase()==ue?we=we.toUpperCase():ue.charAt(0).toUpperCase()==ue.charAt(0)&&(we=we.substr(0,0)+Q[K].charAt(0).toUpperCase()+we.substr(1)),we}),this.insert(B),B="")}}},C.prototype.findLinkAt=function(w,A){var E,R,O=this.session.getLine(w),N=O.split(/((?:https?|ftp):\/\/[\S]+)/),F=A;F<0&&(F=0);var z=0,U=0,j;try{for(var B=a(N),V=B.next();!V.done;V=B.next()){var Q=V.value;if(U=z+Q.length,F>=z&&F<=U&&Q.match(/((?:https?|ftp):\/\/[\S]+)/)){j=Q.replace(/[\s:.,'";}\]]+$/,"");break}z=U}}catch(H){E={error:H}}finally{try{V&&!V.done&&(R=B.return)&&R.call(B)}finally{if(E)throw E.error}}return j},C.prototype.openLink=function(){var w=this.selection.getCursor(),A=this.findLinkAt(w.row,w.column);return A&&window.open(A,"_blank"),A!=null},C.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},C.prototype.duplicateSelection=function(){var w=this.selection,A=this.session,E=w.getRange(),R=w.isBackwards();if(E.isEmpty()){var O=E.start.row;A.duplicateLines(O,O)}else{var N=R?E.start:E.end,F=A.insert(N,A.getTextRange(E));E.start=N,E.end=F,w.setSelectionRange(E,R)}},C.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},C.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},C.prototype.moveText=function(w,A,E){return this.session.moveText(w,A,E)},C.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},C.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},C.prototype.$moveLines=function(w,A){var E,R,O=this.selection;if(!O.inMultiSelectMode||this.inVirtualSelectionMode){var N=O.toOrientedRange();E=this.$getSelectedRows(N),R=this.session.$moveLines(E.first,E.last,A?0:w),A&&w==-1&&(R=0),N.moveBy(R,0),O.fromOrientedRange(N)}else{var F=O.rangeList.ranges;O.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var z=0,U=0,j=F.length,B=0;B<j;B++){var V=B;F[B].moveBy(z,0),E=this.$getSelectedRows(F[B]);for(var Q=E.first,H=E.last;++B<j;){U&&F[B].moveBy(U,0);var K=this.$getSelectedRows(F[B]);if(A&&K.first!=H)break;if(!A&&K.first>H+1)break;H=K.last}for(B--,z=this.session.$moveLines(Q,H,A?0:w),A&&w==-1&&(V=B+1);V<=B;)F[V].moveBy(z,0),V++;A||(z=0),U+=z}O.fromOrientedRange(O.ranges[0]),O.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},C.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},C.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},C.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},C.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},C.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},C.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},C.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},C.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},C.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},C.prototype.$moveByPage=function(w,A){var E=this.renderer,R=this.renderer.layerConfig,O=w*Math.floor(R.height/R.lineHeight);A===!0?this.selection.$moveSelection(function(){this.moveCursorBy(O,0)}):A===!1&&(this.selection.moveCursorBy(O,0),this.selection.clearSelection());var N=E.scrollTop;E.scrollBy(0,O*R.lineHeight),A!=null&&E.scrollCursorIntoView(null,.5),E.animateScrolling(N)},C.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},C.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},C.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},C.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},C.prototype.scrollPageDown=function(){this.$moveByPage(1)},C.prototype.scrollPageUp=function(){this.$moveByPage(-1)},C.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},C.prototype.scrollToLine=function(w,A,E,R){this.renderer.scrollToLine(w,A,E,R)},C.prototype.centerSelection=function(){var w=this.getSelectionRange(),A={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(A,.5)},C.prototype.getCursorPosition=function(){return this.selection.getCursor()},C.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},C.prototype.getSelectionRange=function(){return this.selection.getRange()},C.prototype.selectAll=function(){this.selection.selectAll()},C.prototype.clearSelection=function(){this.selection.clearSelection()},C.prototype.moveCursorTo=function(w,A){this.selection.moveCursorTo(w,A)},C.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},C.prototype.jumpToMatching=function(w,A){var E=this.getCursorPosition(),R=new S(this.session,E.row,E.column),O=R.getCurrentToken(),N=0;O&&O.type.indexOf("tag-name")!==-1&&(O=R.stepBackward());var F=O||R.stepForward();if(F){var z,U=!1,j={},B=E.column-F.start,V,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(F.value.match(/[{}()\[\]]/g)){for(;B<F.value.length&&!U;B++)if(Q[F.value[B]])switch(V=Q[F.value[B]]+"."+F.type.replace("rparen","lparen"),isNaN(j[V])&&(j[V]=0),F.value[B]){case"(":case"[":case"{":j[V]++;break;case")":case"]":case"}":j[V]--,j[V]===-1&&(z="bracket",U=!0);break}}else F.type.indexOf("tag-name")!==-1&&(isNaN(j[F.value])&&(j[F.value]=0),O.value==="<"&&N>1?j[F.value]++:O.value==="</"&&j[F.value]--,j[F.value]===-1&&(z="tag",U=!0));U||(O=F,N++,F=R.stepForward(),B=0)}while(F&&!U);if(z){var H,K;if(z==="bracket")H=this.session.getBracketRange(E),H||(H=new m(R.getCurrentTokenRow(),R.getCurrentTokenColumn()+B-1,R.getCurrentTokenRow(),R.getCurrentTokenColumn()+B-1),K=H.start,(A||K.row===E.row&&Math.abs(K.column-E.column)<2)&&(H=this.session.getBracketRange(K)));else if(z==="tag"){if(!F||F.type.indexOf("tag-name")===-1)return;if(H=new m(R.getCurrentTokenRow(),R.getCurrentTokenColumn()-2,R.getCurrentTokenRow(),R.getCurrentTokenColumn()-2),H.compare(E.row,E.column)===0){var X=this.session.getMatchingTags(E);X&&(X.openTag.contains(E.row,E.column)?(H=X.closeTag,K=H.start):(H=X.openTag,X.closeTag.start.row===E.row&&X.closeTag.start.column===E.column?K=H.end:K=H.start))}K=K||H.start}K=H&&H.cursor||K,K&&(w?H&&A?this.selection.setRange(H):H&&H.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(K.row,K.column):this.selection.moveTo(K.row,K.column))}}},C.prototype.gotoLine=function(w,A,E){this.selection.clearSelection(),this.session.unfold({row:w-1,column:A||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,A||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,E)},C.prototype.navigateTo=function(w,A){this.selection.moveTo(w,A)},C.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var A=this.selection.anchor.getPosition();return this.moveCursorToPosition(A)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},C.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var A=this.selection.anchor.getPosition();return this.moveCursorToPosition(A)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},C.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var A=this.getSelectionRange().start;this.moveCursorToPosition(A)}this.clearSelection()},C.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var A=this.getSelectionRange().end;this.moveCursorToPosition(A)}this.clearSelection()},C.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},C.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},C.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},C.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},C.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},C.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},C.prototype.replace=function(w,A){A&&this.$search.set(A);var E=this.$search.find(this.session),R=0;return E&&(this.$tryReplace(E,w)&&(R=1),this.selection.setSelectionRange(E),this.renderer.scrollSelectionIntoView(E.start,E.end)),R},C.prototype.replaceAll=function(w,A){A&&this.$search.set(A);var E=this.$search.findAll(this.session),R=0;if(!E.length)return R;var O=this.getSelectionRange();this.selection.moveTo(0,0);for(var N=E.length-1;N>=0;--N)this.$tryReplace(E[N],w)&&R++;return this.selection.setSelectionRange(O),R},C.prototype.$tryReplace=function(w,A){var E=this.session.getTextRange(w);return A=this.$search.replace(E,A),A!==null?(w.end=this.session.replace(w,A),w):null},C.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},C.prototype.find=function(w,A,E){A||(A={}),typeof w=="string"||w instanceof RegExp?A.needle=w:typeof w=="object"&&d.mixin(A,w);var R=this.selection.getRange();A.needle==null&&(w=this.session.getTextRange(R)||this.$search.$options.needle,w||(R=this.session.getWordRange(R.start.row,R.start.column),w=this.session.getTextRange(R)),this.$search.set({needle:w})),this.$search.set(A),A.start||this.$search.set({start:R});var O=this.$search.find(this.session);if(A.preventScroll)return O;if(O)return this.revealRange(O,E),O;A.backwards?R.start=R.end:R.end=R.start,this.selection.setRange(R)},C.prototype.findNext=function(w,A){this.find({skipCurrent:!0,backwards:!1},w,A)},C.prototype.findPrevious=function(w,A){this.find(w,{skipCurrent:!0,backwards:!0},A)},C.prototype.revealRange=function(w,A){this.session.unfold(w),this.selection.setSelectionRange(w);var E=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),A!==!1&&this.renderer.animateScrolling(E)},C.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},C.prototype.setAutoScrollEditorIntoView=function(w){if(w){var A,E=this,R=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var O=this.$scrollAnchor;O.style.cssText="position:absolute",this.container.insertBefore(O,this.container.firstChild);var N=this.on("changeSelection",function(){R=!0}),F=this.renderer.on("beforeRender",function(){R&&(A=E.renderer.container.getBoundingClientRect())}),z=this.renderer.on("afterRender",function(){if(R&&A&&(E.isFocused()||E.searchBox&&E.searchBox.isFocused())){var U=E.renderer,j=U.$cursorLayer.$pixelPos,B=U.layerConfig,V=j.top-B.offset;j.top>=0&&V+A.top<0?R=!0:j.top<B.height&&j.top+A.top+B.lineHeight>window.innerHeight?R=!1:R=null,R!=null&&(O.style.top=V+"px",O.style.left=j.left+"px",O.style.height=B.lineHeight+"px",O.scrollIntoView(R)),R=A=null}});this.setAutoScrollEditorIntoView=function(U){U||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",z),this.renderer.off("beforeRender",F))}}},C.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",A=this.renderer.$cursorLayer;A&&(A.setSmoothBlinking(/smooth/.test(w)),A.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(A.element,"ace_slim-cursors",/slim/.test(w)))},C.prototype.prompt=function(w,A,E){var R=this;_.loadModule("ace/ext/prompt",function(O){O.prompt(R,w,A,E)})},C}();k.$uid=0,k.prototype.curOp=null,k.prototype.prevOp={},k.prototype.$mergeableCommands=["backspace","del","insertstring"],k.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],d.implement(k.prototype,v),_.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(C){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:C})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(C){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(C){this.textInput.setReadOnly(C),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(C){this.textInput.setCopyWithEmptySelection(C)},initialValue:!1},cursorStyle:{set:function(C){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(C){this.setAutoScrollEditorIntoView(C)}},keyboardHandler:{set:function(C){this.setKeyboardHandler(C)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(C){this.session.setValue(C)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(C){this.setSession(C)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(C){this.renderer.$gutterLayer.setShowLineNumbers(C),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),C&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(C){this.$showLineNumbers&&C?x.attach(this):x.detach(this)}},placeholder:{set:function(C){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var A=g.createElement("div");A.className="ace_placeholder",A.textContent=this.$placeholder||"",this.renderer.placeholderNode=A,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(C){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(R){R.blur(),R.renderer.scroller.focus()},readOnly:!0},A=function(R){if(R.target==this.renderer.scroller&&R.keyCode===T.enter){R.preventDefault();var O=this.getCursorPosition().row;this.isRowVisible(O)||this.scrollToLine(O,!0,!0),this.focus()}},E;C?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",I("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",I("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",A.bind(this)),this.commands.addCommand(w),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",I("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",I("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),E||(E=new M(this)),E.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",A.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),E&&E.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(C){this.$textInputAriaLabel=C},initialValue:""},enableMobileMenu:{set:function(C){this.$enableMobileMenu=C},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(C,w){return(Math.abs(C.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(C,w,A){return Math.max(w.toString().length,(A.lastRow+1).toString().length,2)*A.characterWidth},update:function(C,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(C){C.renderer.$gutterLayer.$renderer=this,C.on("changeSelection",this.update),this.update(null,C)},detach:function(C){C.renderer.$gutterLayer.$renderer==this&&(C.renderer.$gutterLayer.$renderer=null),C.off("changeSelection",this.update),this.update(null,C)}};i.Editor=k}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,o){var a=n("../lib/dom"),d=function(){function g(l,p){this.element=l,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(l){a.translate(this.element,0,-(l.firstRowScreen*l.lineHeight%this.canvasHeight)-l.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(l,p){return Math.floor(l.firstRowScreen*l.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(l,p,s){var r=p.firstRowScreen*p.lineHeight,c=Math.floor(r/this.canvasHeight),u=s.documentToScreenRow(l,0)*p.lineHeight;return u-c*this.canvasHeight},g.prototype.computeLineHeight=function(l,p,s){return p.lineHeight*s.getRowLineCount(l)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(l){return this.cells[l]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(l){if(Array.isArray(l)){this.cells.push.apply(this.cells,l);for(var p=a.createFragment(this.element),s=0;s<l.length;s++)p.appendChild(l[s].element);this.element.appendChild(p)}else this.cells.push(l),this.element.appendChild(l.element)},g.prototype.unshift=function(l){if(Array.isArray(l)){this.cells.unshift.apply(this.cells,l);for(var p=a.createFragment(this.element),s=0;s<l.length;s++)p.appendChild(l[s].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(l),this.element.insertAdjacentElement("afterbegin",l.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(l){l&&(l.element.remove(),this.cellCache.push(l))},g.prototype.createCell=function(l,p,s,r){var c=this.cellCache.pop();if(!c){var u=a.createElement("div");r&&r(u),this.element.appendChild(u),c={element:u,text:"",row:l}}return c.row=l,c},g}();i.Lines=d}),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,o){var a=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/lang"),l=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,s=n("../config").nls,r=function(){function u(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 u.prototype.setSession=function(h){this.session&&this.session.off("change",this.$updateAnnotations),this.session=h,h&&h.on("change",this.$updateAnnotations)},u.prototype.addGutterDecoration=function(h,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(h,f)},u.prototype.removeGutterDecoration=function(h,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(h,f)},u.prototype.setAnnotations=function(h){this.$annotations=[];for(var f=0;f<h.length;f++){var m=h[f],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[],displayText:[]});var $=m.text,_=m.text,S=m.type;$=$?g.escapeHTML($):m.html||"",_=_||m.html||"",y.text.indexOf($)===-1&&(y.text.push($),y.type.push(S),y.displayText.push(_));var b=m.className;b?y.className=b:S==="error"?y.className=" ace_error":S==="security"&&!/\bace_error\b/.test(y.className)?y.className=" ace_security":S==="warning"&&!/\bace_(error|security)\b/.test(y.className)?y.className=" ace_warning":S==="info"&&!y.className?y.className=" ace_info":S==="hint"&&!y.className&&(y.className=" ace_hint")}},u.prototype.$updateAnnotations=function(h){if(this.$annotations.length){var f=h.start.row,m=h.end.row-f;if(m!==0)if(h.action=="remove")this.$annotations.splice(f,m+1,null);else{var v=new Array(m+1);v.unshift(f,1),this.$annotations.splice.apply(this.$annotations,v)}}},u.prototype.update=function(h){this.config=h;var f=this.session,m=h.firstRow,v=Math.min(h.lastRow+h.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=h,this.$lines.moveContainer(h),this.$updateCursorRow();for(var y=f.getNextFoldLine(m),$=y?y.start.row:1/0,_=null,S=-1,b=m;;){if(b>$&&(b=y.end.row+1,y=f.getNextFoldLine(b,y),$=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}_=this.$lines.get(++S),_?_.row=b:(_=this.$lines.createCell(b,h,this.session,c),this.$lines.push(_)),this.$renderCell(_,h,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$updateGutterWidth=function(h){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(y=f.getLength()+v-1);var $=m?m.getWidth(f,y,h):y.toString().length*h.characterWidth,_=this.$padding||this.$computePadding();$+=_.left+_.right,$!==this.gutterWidth&&!isNaN($)&&(this.gutterWidth=$,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",$))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var h=this.session.selection.getCursor();this.$cursorRow!==h.row&&(this.$cursorRow=h.row)}},u.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var h=this.session.selection.cursor.row;if(this.$cursorRow=h,!(this.$cursorCell&&this.$cursorCell.row==h)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var f=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<f.length;m++){var v=f[m];if(v.row>=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==f[m-1].row)v=f[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},u.prototype.scrollLines=function(h){var f=this.config;if(this.config=h,this.$updateCursorRow(),this.$lines.pageChanged(f,h))return this.update(h);this.$lines.moveContainer(h);var m=Math.min(h.lastRow+h.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v<h.firstRow)return this.update(h);if(m<f.firstRow)return this.update(h);if(f.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,h.firstRow-1);y>0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();h.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(h,h.firstRow,f.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(h,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$renderLines=function(h,f,m){for(var v=[],y=f,$=this.session.getNextFoldLine(y),_=$?$.start.row:1/0;y>_&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),_=$?$.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,h,this.session,c);this.$renderCell(S,h,$,y),v.push(S),y++}return v},u.prototype.$renderCell=function(h,f,m,v){var y=h.element,$=this.session,_=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],M=b.firstChild,I=$.$firstLineNumber,L=$.$breakpoints,T=$.$decorations,k=$.gutterRenderer||this.$renderer,x=this.$showFoldWidgets&&$.foldWidgets,C=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",A=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",E=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=(k?k.getText($,v):v+I).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=C&&this.$cursorRow<=m.end.row)&&(A+="ace_gutter-active-line ",this.$cursorCell!=h&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=h)),L[v]&&(A+=L[v]),T[v]&&(A+=T[v]),this.$annotations[v]&&v!==C&&(A+=this.$annotations[v].className),x){var O=x[v];O==null&&(O=x[v]=$.getFoldWidget(v))}if(O){var N="ace_fold-widget ace_"+O,F=O=="start"&&v==C&&v<m.end.row;if(F){N+=" ace_closed";for(var z="",U=!1,j=v+1;j<=m.end.row;j++)if(this.$annotations[j]){if(this.$annotations[j].className===" ace_error"){U=!0,z=" ace_error_fold";break}this.$annotations[j].className===" ace_security"?(U=!0,z=" ace_security_fold"):this.$annotations[j].className===" ace_warning"&&z!==" ace_security_fold"&&(U=!0,z=" ace_warning_fold")}A+=z}else N+=" ace_open";S.className!=N&&(S.className=N),a.setStyle(S.style,"height",w),a.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var B=$.getFoldWidgetRange(v);B?S.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[B.start.row+1,B.end.row+1])):m?S.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])):S.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),F?(S.setAttribute("aria-expanded","false"),S.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(S.setAttribute("aria-expanded","true"),S.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else S&&(a.setStyle(S.style,"display","none"),S.setAttribute("tabindex","0"),S.removeAttribute("role"),S.removeAttribute("aria-label"));if(U&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",M.className=E,M.className+=z,a.setStyle(M.style,"height",w),a.setStyle(b.style,"display","block"),a.setStyle(b.style,"height",w);var V;switch(z){case" ace_error_fold":V=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[R]);break;case" ace_security_fold":V=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[R]);break;case" ace_warning_fold":V=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[R]);break}b.setAttribute("aria-label",V),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[v]){b.className="ace_gutter_annotation",M.className=E,this.$useSvgGutterIcons?M.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),a.setStyle(M.style,"height",w),a.setStyle(b.style,"display","block"),a.setStyle(b.style,"height",w);var V;switch(this.$annotations[v].className){case" ace_error":V=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[R]);break;case" ace_security":V=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[R]);break;case" ace_warning":V=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[R]);break;case" ace_info":V=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[R]);break;case" ace_hint":V=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[R]);break}b.setAttribute("aria-label",V),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else a.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return R!==_.data&&(_.data=R),y.className!=A&&(y.className=A),a.setStyle(h.element.style,"height",this.$lines.computeLineHeight(v,f,$)+"px"),a.setStyle(h.element.style,"top",this.$lines.computeLineTop(v,f,$)+"px"),h.text=R,b.style.display==="none"&&S.style.display==="none"?h.element.setAttribute("aria-hidden",!0):h.element.setAttribute("aria-hidden",!1),h},u.prototype.setHighlightGutterLine=function(h){this.$highlightGutterLine=h},u.prototype.setShowLineNumbers=function(h){this.$renderer=!h&&{getWidth:function(){return 0},getText:function(){return""}}},u.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},u.prototype.setShowFoldWidgets=function(h){h?a.addCssClass(this.element,"ace_folding-enabled"):a.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=h,this.$padding=null},u.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},u.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var h=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},u.prototype.getRegion=function(h){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(h.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&h.x>m.right-f.right)return"foldWidgets"},u}();r.prototype.$fixedWidth=!1,r.prototype.$highlightGutterLine=!0,r.prototype.$renderer="",r.prototype.$showLineNumbers=!0,r.prototype.$showFoldWidgets=!0,d.implement(r.prototype,l);function c(u){var h=document.createTextNode("");u.appendChild(h);var f=a.createElement("span");u.appendChild(f);var m=a.createElement("span");u.appendChild(m);var v=a.createElement("span");return m.appendChild(v),u}i.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,o){var a=n("../range").Range,d=n("../lib/dom"),g=function(){function p(s){this.element=d.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,r){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=r,c.className=s},p.prototype.update=function(s){if(s){this.config=s,this.i=0;var r;for(var c in this.markers){var u=this.markers[c];if(!u.range){u.update(r,this,this.session,s);continue}var h=u.range.clipRows(s.firstRow,s.lastRow);if(!h.isEmpty())if(h=h.toScreenRange(this.session),u.renderer){var f=this.$getTop(h.start.row,s),m=this.$padding+h.start.column*s.characterWidth;u.renderer(r,h,m,f,s)}else u.type=="fullLine"?this.drawFullLineMarker(r,h,u.clazz,s):u.type=="screenLine"?this.drawScreenLineMarker(r,h,u.clazz,s):h.isMultiLine()?u.type=="text"?this.drawTextMarker(r,h,u.clazz,s):this.drawMultiLineMarker(r,h,u.clazz,s):this.drawSingleLineMarker(r,h,u.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,r){return(s-r.firstRowScreen)*r.lineHeight},p.prototype.drawTextMarker=function(s,r,c,u,h){for(var f=this.session,m=r.start.row,v=r.end.row,y=m,$=0,_=0,S=f.getScreenLastRowColumn(y),b=new a(y,r.start.column,y,_);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?r.start.column:f.getRowWrapIndent(y),b.end.column=S,$=_,_=S,S=y+1<v?f.getScreenLastRowColumn(y+1):y==v?0:r.end.column,this.drawSingleLineMarker(s,b,c+(y==m?" ace_start":"")+" ace_br"+l(y==m||y==m+1&&r.start.column,$<_,_>S,y==v),u,y==v?0:1,h)},p.prototype.drawMultiLineMarker=function(s,r,c,u,h){var f=this.$padding,m=u.lineHeight,v=this.$getTop(r.start.row,u),y=f+r.start.column*u.characterWidth;if(h=h||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var $=r.clone();$.end.row=$.start.row,$.end.column=this.session.getLine($.start.row).length,this.drawBidiSingleLineMarker(s,$,c+" ace_br1 ace_start",u,null,h)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:"+f+"px;top:"+v+"px;left:"+y+"px;"+(h||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var $=r.clone();$.start.row=$.end.row,$.start.column=0,this.drawBidiSingleLineMarker(s,$,c+" ace_br12",u,null,h)}else{v=this.$getTop(r.end.row,u);var _=r.end.column*u.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+_+"px;top:"+v+"px;left:"+f+"px;"+(h||""))}if(m=(r.end.row-r.start.row-1)*u.lineHeight,!(m<=0)){v=this.$getTop(r.start.row+1,u);var S=(r.start.column?1:0)|(r.end.column?0:8);this.elt(c+(S?" ace_br"+S:""),"height:"+m+"px;right:"+f+"px;top:"+v+"px;left:"+f+"px;"+(h||""))}},p.prototype.drawSingleLineMarker=function(s,r,c,u,h,f){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(s,r,c,u,h,f);var m=u.lineHeight,v=(r.end.column+(h||0)-r.start.column)*u.characterWidth,y=this.$getTop(r.start.row,u),$=this.$padding+r.start.column*u.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+$+"px;"+(f||""))},p.prototype.drawBidiSingleLineMarker=function(s,r,c,u,h,f){var m=u.lineHeight,v=this.$getTop(r.start.row,u),y=this.$padding,$=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);$.forEach(function(_){this.elt(c,"height:"+m+"px;width:"+(_.width+(h||0))+"px;top:"+v+"px;left:"+(y+_.left)+"px;"+(f||""))},this)},p.prototype.drawFullLineMarker=function(s,r,c,u,h){var f=this.$getTop(r.start.row,u),m=u.lineHeight;r.start.row!=r.end.row&&(m+=this.$getTop(r.end.row,u)-f),this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},p.prototype.drawScreenLineMarker=function(s,r,c,u,h){var f=this.$getTop(r.start.row,u),m=u.lineHeight;this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},p}();g.prototype.$padding=0;function l(p,s,r,c){return(p?1:0)|(s?2:0)|(r?4:0)|(c?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,o){var a=new Set(["text","rparen","lparen"]);i.isTextToken=function(d){return a.has(d)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,i,o){var a=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),l=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,s=n("../config").nls,r=n("./text_util").isTextToken,c=function(){function u(h){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",h.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new l(this.element)}return u.prototype.$updateEolChar=function(){var h=this.session.doc,f=h.getNewLineCharacter()==`
805
+ `&&h.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},u.prototype.setPadding=function(h){this.$padding=h,this.element.style.margin="0 "+h+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(h){this.$fontMetrics=h,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(h){this.session=h,h&&this.$computeTabString()},u.prototype.setShowInvisibles=function(h){return this.showInvisibles==h?!1:(this.showInvisibles=h,typeof h=="string"?(this.showSpaces=/tab/i.test(h),this.showTabs=/space/i.test(h),this.showEOL=/eol/i.test(h)):this.showSpaces=this.showTabs=this.showEOL=h,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(h){return this.displayIndentGuides==h?!1:(this.displayIndentGuides=h,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(h){return this.$highlightIndentGuides===h?!1:(this.$highlightIndentGuides=h,h)},u.prototype.$computeTabString=function(){var h=this.session.getTabSize();this.tabSize=h;for(var f=this.$tabStrings=[0],m=1;m<h+1;m++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=g.stringRepeat(this.TAB_CHAR,m),f.push(v)}else f.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",$=this.showSpaces?" ace_invisible ace_invisible_space":"",_=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),S=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):_,v=this.dom.createElement("span");v.className=y+$,v.textContent=_,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+S,v.textContent=b,this.$tabStrings[" "]=v}},u.prototype.updateLines=function(h,f,m){if(this.config.lastRow!=h.lastRow||this.config.firstRow!=h.firstRow)return this.update(h);this.config=h;for(var v=Math.max(f,h.firstRow),y=Math.min(m,h.lastRow),$=this.element.childNodes,_=0,b=h.firstRow;b<v;b++){var M=this.session.getFoldLine(b);if(M)if(M.containsRow(v)){v=M.start.row;break}else b=M.end.row;_++}for(var S=!1,b=v,M=this.session.getNextFoldLine(b),I=M?M.start.row:1/0;b>I&&(b=M.end.row+1,M=this.session.getNextFoldLine(b,M),I=M?M.start.row:1/0),!(b>y);){var L=$[_++];if(L){this.dom.removeChildren(L),this.$renderLine(L,b,b==I?M:!1),S&&(L.style.top=this.$lines.computeLineTop(b,h,this.session)+"px");var T=h.lineHeight*this.session.getRowLength(b)+"px";L.style.height!=T&&(S=!0,L.style.height=T)}b++}if(S)for(;_<this.$lines.cells.length;){var k=this.$lines.cells[_++];k.element.style.top=this.$lines.computeLineTop(k.row,h,this.session)+"px"}},u.prototype.scrollLines=function(h){var f=this.config;if(this.config=h,this.$lines.pageChanged(f,h))return this.update(h);this.$lines.moveContainer(h);var m=h.lastRow,v=f?f.lastRow:-1;if(!f||v<h.firstRow)return this.update(h);if(m<f.firstRow)return this.update(h);if(!f||f.lastRow<h.firstRow)return this.update(h);if(h.lastRow<f.firstRow)return this.update(h);if(f.firstRow<h.firstRow)for(var y=this.session.getFoldedRowCount(f.firstRow,h.firstRow-1);y>0;y--)this.$lines.shift();if(f.lastRow>h.lastRow)for(var y=this.session.getFoldedRowCount(h.lastRow+1,f.lastRow);y>0;y--)this.$lines.pop();h.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(h,h.firstRow,f.firstRow-1)),h.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(h,f.lastRow+1,h.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(h,f,m){for(var v=[],y=f,$=this.session.getNextFoldLine(y),_=$?$.start.row:1/0;y>_&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),_=$?$.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,h,this.session),b=S.element;this.dom.removeChildren(b),d.setStyle(b.style,"height",this.$lines.computeLineHeight(y,h,this.session)+"px"),d.setStyle(b.style,"top",this.$lines.computeLineTop(y,h,this.session)+"px"),this.$renderLine(b,y,y==_?$:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},u.prototype.update=function(h){this.$lines.moveContainer(h),this.config=h;for(var f=h.firstRow,m=h.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(h,f,m))},u.prototype.$renderToken=function(h,f,m,v){for(var y=this,$=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,_=this.dom.createFragment(this.element),S,b=0;S=$.exec(v);){var M=S[1],I=S[2],L=S[3],T=S[4],k=S[5];if(!(!y.showSpaces&&I)){var x=b!=S.index?v.slice(b,S.index):"";if(b=S.index+S[0].length,x&&_.appendChild(this.dom.createTextNode(x,this.element)),M){var C=y.session.getScreenTabSize(f+S.index);_.appendChild(y.$tabStrings[C].cloneNode(!0)),f+=C-1}else if(I)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,I.length),_.appendChild(w)}else _.appendChild(this.dom.createTextNode(I,this.element));else if(L){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,L.length),_.appendChild(w)}else if(T){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=y.showSpaces?y.SPACE_CHAR:T,_.appendChild(w)}else if(k){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=k,_.appendChild(w)}}}if(_.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),r(m.type))h.appendChild(_);else{var A="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),w.className=A,w.appendChild(_),h.appendChild(w)}return f+v.length},u.prototype.renderIndentGuide=function(h,f,m){var v=f.search(this.$indentGuideRe);if(v<=0||v>=m)return f;if(f[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,$=0;$<y;$++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var $=0;$<v;$++)h.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},u.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var h=this.session.doc.$lines;if(h){var f=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(f.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:f.row};var y=this.session.$bracketHighlight;if(y){for(var $=this.session.$bracketHighlight.ranges,_=0;_<$.length;_++)if(f.row!==$[_].start.row){this.$highlightIndentGuideMarker.end=$[_].start.row,f.row>$[_].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&h[f.row]!==""&&f.column===h[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=f.row+1;_<h.length;_++){var S=h[_],b=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=_,b<=m))break}}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){for(var h=this.$lines.cells,f=0;f<h.length;f++){var m=h[f],v=m.element.childNodes;if(v.length>0){for(var y=0;y<v.length;y++)if(v[y].classList&&v[y].classList.contains("ace_indent-guide-active")){v[y].classList.remove("ace_indent-guide-active");break}}}},u.prototype.$setIndentGuideActive=function(h,f){var m=this.session.doc.getLine(h.row);if(m!==""){var v=h.element.childNodes;if(v){var y=v[f-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var h=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<h.length;m++){var v=h[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}else for(var m=h.length-1;m>=0;m--){var v=h[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},u.prototype.$createLineElement=function(h){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},u.prototype.$renderWrappedLine=function(h,f,m){var v=0,y=0,$=m[0],_=0,S=this.$createLineElement();h.appendChild(S);for(var b=0;b<f.length;b++){var M=f[b],I=M.value;if(b==0&&this.displayIndentGuides){if(v=I.length,I=this.renderIndentGuide(S,I,$),!I)continue;v-=I.length}if(v+I.length<$)_=this.$renderToken(S,_,M,I),v+=I.length;else{for(;v+I.length>=$;)_=this.$renderToken(S,_,M,I.substring(0,$-v)),I=I.substring($-v),v=$,S=this.$createLineElement(),h.appendChild(S),S.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,_=0,$=m[y]||Number.MAX_VALUE;I.length!=0&&(v+=I.length,_=this.$renderToken(S,_,M,I))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,_,null,"",!0)},u.prototype.$renderSimpleLine=function(h,f){for(var m=0,v=0;v<f.length;v++){var y=f[v],$=y.value;if(!(v==0&&this.displayIndentGuides&&($=this.renderIndentGuide(h,$),!$))){if(m+$.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(h,m,y,$);m=this.$renderToken(h,m,y,$)}}},u.prototype.$renderOverflowMessage=function(h,f,m,v,y){m&&this.$renderToken(h,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var $=this.dom.createElement("span");$.className="ace_inline_button ace_keyword ace_toggle_wrap",$.textContent=y?"<hide>":"<click to see more...>",h.appendChild($)},u.prototype.$renderLine=function(h,f,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(f)),m)var v=this.$getFoldLineTokens(f,m);else var v=this.session.getTokens(f);var y=h;if(v.length){var $=this.session.getRowSplitData(f);if($&&$.length){this.$renderWrappedLine(h,v,$);var y=h.lastChild}else{var y=h;this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y));if(this.showEOL&&y){m&&(f=m.end.row);var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(_)}},u.prototype.$getFoldLineTokens=function(h,f){var m=this.session,v=[];function y(_,S,b){for(var M=0,I=0;I+_[M].value.length<S;)if(I+=_[M].value.length,M++,M==_.length)return;if(I!=S){var L=_[M].value.substring(S-I);L.length>b-S&&(L=L.substring(0,b-S)),v.push({type:_[M].type,value:L}),I=S+L.length,M+=1}for(;I<b&&M<_.length;){var L=_[M].value;L.length+I>b?v.push({type:_[M].type,value:L.substring(0,b-I)}):v.push(_[M]),I+=L.length,M+=1}}var $=m.getTokens(h);return f.walk(function(_,S,b,M,I){_!=null?v.push({type:"fold",value:_}):(I&&($=m.getTokens(S)),$.length&&y($,M,b))},f.end.row,this.session.getLine(f.end.row).length),v},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,a.implement(c.prototype,p),i.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,o){var a=n("../lib/dom"),d=function(){function g(l){this.element=a.createElement("div"),this.element.className="ace_layer ace_cursor-layer",l.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),a.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(l){for(var p=this.cursors,s=p.length;s--;)a.setStyle(p[s].style,"opacity",l?"":"0")},g.prototype.$startCssAnimation=function(){for(var l=this.cursors,p=l.length;p--;)l[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&a.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,a.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(l){this.$padding=l},g.prototype.setSession=function(l){this.session=l},g.prototype.setBlinking=function(l){l!=this.isBlinking&&(this.isBlinking=l,this.restartTimer())},g.prototype.setBlinkInterval=function(l){l!=this.blinkInterval&&(this.blinkInterval=l,this.restartTimer())},g.prototype.setSmoothBlinking=function(l){l!=this.smoothBlinking&&(this.smoothBlinking=l,a.setCssClass(this.element,"ace_smooth-blinking",l),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var l=a.createElement("div");return l.className="ace_cursor",this.element.appendChild(l),this.cursors.push(l),l},g.prototype.removeCursor=function(){if(this.cursors.length>1){var l=this.cursors.pop();return l.parentNode.removeChild(l),l}},g.prototype.hideCursor=function(){this.isVisible=!1,a.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,a.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var l=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,a.removeCssClass(this.element,"ace_smooth-blinking")),l(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&a.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),a.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){l(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){l(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(l,p){if(!this.config||!this.session)return{left:0,top:0};l||(l=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(l),r=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,l.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),c=(s.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:c}},g.prototype.isCursorInView=function(l,p){return l.top>=0&&l.top<p.maxHeight},g.prototype.update=function(l){this.config=l;var p=this.session.$selectionMarkers,s=0,r=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var s=0,c=p.length;s<c;s++){var u=this.getPixelPosition(p[s].cursor,!0);if(!((u.top>l.height+l.offset||u.top<0)&&s>1)){var h=this.cursors[r++]||this.addCursor(),f=h.style;this.drawCursor?this.drawCursor(h,u,l,p[s],this.session):this.isCursorInView(u,l)?(a.setStyle(f,"display","block"),a.translate(h,u.left,u.top),a.setStyle(f,"width",Math.round(l.characterWidth)+"px"),a.setStyle(f,"height",l.lineHeight+"px")):a.setStyle(f,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=u,this.restartTimer()},g.prototype.$setOverwrite=function(l){l!=this.overwrite&&(this.overwrite=l,l?a.addCssClass(this.element,"ace_overwrite-cursors"):a.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();d.prototype.$padding=0,d.prototype.drawCursor=null,i.Cursor=d}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,o){var a=this&&this.__extends||function(){var h=function(f,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var $ in y)Object.prototype.hasOwnProperty.call(y,$)&&(v[$]=y[$])},h(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");h(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,s=32768,r=function(){function h(f,m){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}return h.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},h}();d.implement(r.prototype,p);var c=function(h){a(f,h);function f(m,v){var y=h.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=g.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>s?(this.coeff=s/m,m=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(r);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var u=function(h){a(f,h);function f(m,v){var y=h.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(m){this.element.style.width=m+"px"},f.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},f}(r);i.ScrollBar=c,i.ScrollBarV=c,i.ScrollBarH=u,i.VScrollBar=c,i.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,o){var a=this&&this.__extends||function(){var u=function(h,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},u(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
806
+ position: absolute;
807
+ background: rgba(128, 128, 128, 0.6);
808
+ -moz-box-sizing: border-box;
809
+ box-sizing: border-box;
810
+ border: 1px solid #bbb;
811
+ border-radius: 2px;
812
+ z-index: 8;
813
+ }
814
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
815
+ position: absolute;
816
+ z-index: 6;
817
+ background: none;
818
+ overflow: hidden!important;
819
+ }
820
+ .ace_editor>.ace_sb-v {
821
+ z-index: 6;
822
+ right: 0;
823
+ top: 0;
824
+ width: 12px;
825
+ }
826
+ .ace_editor>.ace_sb-v div {
827
+ z-index: 8;
828
+ right: 0;
829
+ width: 100%;
830
+ }
831
+ .ace_editor>.ace_sb-h {
832
+ bottom: 0;
833
+ left: 0;
834
+ height: 12px;
835
+ }
836
+ .ace_editor>.ace_sb-h div {
837
+ bottom: 0;
838
+ height: 100%;
839
+ }
840
+ .ace_editor>.ace_sb_grabbed {
841
+ z-index: 8;
842
+ background: #000;
843
+ }`,"ace_scrollbar.css",!1);var s=function(){function u(h,f){this.element=g.createElement("div"),this.element.className="ace_sb"+f,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},u}();d.implement(s.prototype,p);var r=function(u){a(h,u);function h(f,m){var v=u.call(this,f,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=f,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,$=function(T){y=T.clientY},_=function(){clearInterval(I)},S=m.clientY,b=this.thumbTop,M=function(){if(y!==void 0){var T=v.scrollTopFromThumbTop(b+y-S);T!==v.scrollTop&&v._emit("scroll",{data:T})}};l.capture(this.inner,$,_);var I=setInterval(M,20);return l.preventDefault(m)}var L=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),l.preventDefault(m)}},h.prototype.getHeight=function(){return this.height},h.prototype.scrollTopFromThumbTop=function(f){var m=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},h.prototype.setScrollHeight=function(f,m){this.pageHeight===f&&!m||(this.pageHeight=f,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},h.prototype.setScrollTop=function(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},h}(s);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var c=function(u){a(h,u);function h(f,m){var v=u.call(this,f,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,$=function(T){y=T.clientX},_=function(){clearInterval(I)},S=m.clientX,b=this.thumbLeft,M=function(){if(y!==void 0){var T=v.scrollLeftFromThumbLeft(b+y-S);T!==v.scrollLeft&&v._emit("scroll",{data:T})}};l.capture(this.inner,$,_);var I=setInterval(M,20);return l.preventDefault(m)}var L=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),l.preventDefault(m)}},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.prototype.scrollLeftFromThumbLeft=function(f){var m=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},h.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},h.prototype.setScrollWidth=function(f,m){this.pageWidth===f&&!m||(this.pageWidth=f,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},h.prototype.setScrollLeft=function(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},h}(s);c.prototype.setInnerWidth=c.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=c,i.VScrollBar=r,i.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,o){var a=n("./lib/event"),d=function(){function g(l,p){this.onRender=l,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var s=this;this._flush=function(r){s.pending=!1;var c=s.changes;if(c&&(a.blockIdle(100),s.changes=0,s.onRender(c)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return g.prototype.schedule=function(l){this.changes=this.changes|l,this.changes&&!this.pending&&(a.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(l){var p=this.changes;return this.changes=0,p},g}();i.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,i,o){var a=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),l=n("../lib/event"),p=n("../lib/useragent"),s=n("../lib/event_emitter").EventEmitter,r=512,c=typeof ResizeObserver=="function",u=200,h=function(){function f(m){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",r),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=l.onIdle(function v(){m.checkForSizeChanges(),l.onIdle(v,500)},500)},f.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/r};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,r);var v=this.$main.getBoundingClientRect();return v.width/r},f.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=d.buildDom([m(0,0),m(u,0),m(0,u),m(u,u)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function $(F,z,U){var j=F[1]*z[0]-F[0]*z[1];return[(-z[1]*U[0]+z[0]*U[1])/j,(+F[1]*U[0]-F[0]*U[1])/j]}function _(F,z){return[F[0]-z[0],F[1]-z[1]]}function S(F,z){return[F[0]+z[0],F[1]+z[1]]}function b(F,z){return[F*z[0],F*z[1]]}this.els||this.$initTransformMeasureNodes();function M(F){var z=F.getBoundingClientRect();return[z.left,z.top]}var I=M(this.els[0]),L=M(this.els[1]),T=M(this.els[2]),k=M(this.els[3]),x=$(_(k,L),_(k,T),_(S(L,T),S(k,I))),C=b(1+x[0],_(L,I)),w=b(1+x[1],_(T,I));if(v){var A=v,E=x[0]*A[0]/u+x[1]*A[1]/u+1,R=S(b(A[0],C),b(A[1],w));return S(b(1/E/u,R),I)}var O=_(m,I),N=$(_(C,b(x[0],O)),_(w,b(x[1],O)),O);return b(u,N)},f}();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,o){o.exports=`
844
+ .ace_br1 {border-top-left-radius : 3px;}
845
+ .ace_br2 {border-top-right-radius : 3px;}
846
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
847
+ .ace_br4 {border-bottom-right-radius: 3px;}
848
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
849
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
850
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
851
+ .ace_br8 {border-bottom-left-radius : 3px;}
852
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
853
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
854
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
855
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
856
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
857
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
858
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
859
+
860
+
861
+ .ace_editor {
862
+ position: relative;
863
+ overflow: hidden;
864
+ padding: 0;
865
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
866
+ direction: ltr;
867
+ text-align: left;
868
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
869
+ forced-color-adjust: none;
870
+ }
871
+
872
+ .ace_scroller {
873
+ position: absolute;
874
+ overflow: hidden;
875
+ top: 0;
876
+ bottom: 0;
877
+ background-color: inherit;
878
+ -ms-user-select: none;
879
+ -moz-user-select: none;
880
+ -webkit-user-select: none;
881
+ user-select: none;
882
+ cursor: text;
883
+ }
884
+
885
+ .ace_content {
886
+ position: absolute;
887
+ box-sizing: border-box;
888
+ min-width: 100%;
889
+ contain: style size layout;
890
+ font-variant-ligatures: no-common-ligatures;
891
+ }
892
+
893
+ .ace_keyboard-focus:focus {
894
+ box-shadow: inset 0 0 0 2px #5E9ED6;
895
+ outline: none;
896
+ }
897
+
898
+ .ace_dragging .ace_scroller:before{
899
+ position: absolute;
900
+ top: 0;
901
+ left: 0;
902
+ right: 0;
903
+ bottom: 0;
904
+ content: '';
905
+ background: rgba(250, 250, 250, 0.01);
906
+ z-index: 1000;
907
+ }
908
+ .ace_dragging.ace_dark .ace_scroller:before{
909
+ background: rgba(0, 0, 0, 0.01);
910
+ }
911
+
912
+ .ace_gutter {
913
+ position: absolute;
914
+ overflow : hidden;
915
+ width: auto;
916
+ top: 0;
917
+ bottom: 0;
918
+ left: 0;
919
+ cursor: default;
920
+ z-index: 4;
921
+ -ms-user-select: none;
922
+ -moz-user-select: none;
923
+ -webkit-user-select: none;
924
+ user-select: none;
925
+ contain: style size layout;
926
+ }
927
+
928
+ .ace_gutter-active-line {
929
+ position: absolute;
930
+ left: 0;
931
+ right: 0;
932
+ }
933
+
934
+ .ace_scroller.ace_scroll-left:after {
935
+ content: "";
936
+ position: absolute;
937
+ top: 0;
938
+ right: 0;
939
+ bottom: 0;
940
+ left: 0;
941
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
942
+ pointer-events: none;
943
+ }
944
+
945
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
946
+ position: absolute;
947
+ top: 0;
948
+ left: 0;
949
+ right: 0;
950
+ padding-left: 19px;
951
+ padding-right: 6px;
952
+ background-repeat: no-repeat;
953
+ }
954
+
955
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
956
+ margin-left: -14px;
957
+ float: left;
958
+ }
959
+
960
+ .ace_gutter-cell .ace_gutter_annotation {
961
+ margin-left: -19px;
962
+ float: left;
963
+ }
964
+
965
+ .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 {
966
+ 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==");
967
+ background-repeat: no-repeat;
968
+ background-position: 2px center;
969
+ }
970
+
971
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
972
+ 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==");
973
+ background-repeat: no-repeat;
974
+ background-position: 2px center;
975
+ }
976
+
977
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
978
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
979
+ background-repeat: no-repeat;
980
+ background-position: 2px center;
981
+ }
982
+
983
+ .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 {
984
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
985
+ }
986
+
987
+ .ace_icon_svg.ace_error {
988
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
989
+ background-color: crimson;
990
+ }
991
+ .ace_icon_svg.ace_security {
992
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
993
+ background-color: crimson;
994
+ }
995
+ .ace_icon_svg.ace_warning {
996
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
997
+ background-color: darkorange;
998
+ }
999
+ .ace_icon_svg.ace_info {
1000
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1001
+ background-color: royalblue;
1002
+ }
1003
+ .ace_icon_svg.ace_hint {
1004
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
1005
+ background-color: silver;
1006
+ }
1007
+
1008
+ .ace_icon_svg.ace_error_fold {
1009
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1010
+ background-color: crimson;
1011
+ }
1012
+ .ace_icon_svg.ace_security_fold {
1013
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1014
+ background-color: crimson;
1015
+ }
1016
+ .ace_icon_svg.ace_warning_fold {
1017
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1018
+ background-color: darkorange;
1019
+ }
1020
+
1021
+ .ace_scrollbar {
1022
+ contain: strict;
1023
+ position: absolute;
1024
+ right: 0;
1025
+ bottom: 0;
1026
+ z-index: 6;
1027
+ }
1028
+
1029
+ .ace_scrollbar-inner {
1030
+ position: absolute;
1031
+ cursor: text;
1032
+ left: 0;
1033
+ top: 0;
1034
+ }
1035
+
1036
+ .ace_scrollbar-v{
1037
+ overflow-x: hidden;
1038
+ overflow-y: scroll;
1039
+ top: 0;
1040
+ }
1041
+
1042
+ .ace_scrollbar-h {
1043
+ overflow-x: scroll;
1044
+ overflow-y: hidden;
1045
+ left: 0;
1046
+ }
1047
+
1048
+ .ace_print-margin {
1049
+ position: absolute;
1050
+ height: 100%;
1051
+ }
1052
+
1053
+ .ace_text-input {
1054
+ position: absolute;
1055
+ z-index: 0;
1056
+ width: 0.5em;
1057
+ height: 1em;
1058
+ opacity: 0;
1059
+ background: transparent;
1060
+ -moz-appearance: none;
1061
+ appearance: none;
1062
+ border: none;
1063
+ resize: none;
1064
+ outline: none;
1065
+ overflow: hidden;
1066
+ font: inherit;
1067
+ padding: 0 1px;
1068
+ margin: 0 -1px;
1069
+ contain: strict;
1070
+ -ms-user-select: text;
1071
+ -moz-user-select: text;
1072
+ -webkit-user-select: text;
1073
+ user-select: text;
1074
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1075
+ white-space: pre!important;
1076
+ }
1077
+ .ace_text-input.ace_composition {
1078
+ background: transparent;
1079
+ color: inherit;
1080
+ z-index: 1000;
1081
+ opacity: 1;
1082
+ }
1083
+ .ace_composition_placeholder { color: transparent }
1084
+ .ace_composition_marker {
1085
+ border-bottom: 1px solid;
1086
+ position: absolute;
1087
+ border-radius: 0;
1088
+ margin-top: 1px;
1089
+ }
1090
+
1091
+ [ace_nocontext=true] {
1092
+ transform: none!important;
1093
+ filter: none!important;
1094
+ clip-path: none!important;
1095
+ mask : none!important;
1096
+ contain: none!important;
1097
+ perspective: none!important;
1098
+ mix-blend-mode: initial!important;
1099
+ z-index: auto;
1100
+ }
1101
+
1102
+ .ace_layer {
1103
+ z-index: 1;
1104
+ position: absolute;
1105
+ overflow: hidden;
1106
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1107
+ word-wrap: normal;
1108
+ white-space: pre;
1109
+ height: 100%;
1110
+ width: 100%;
1111
+ box-sizing: border-box;
1112
+ /* setting pointer-events: auto; on node under the mouse, which changes
1113
+ during scroll, will break mouse wheel scrolling in Safari */
1114
+ pointer-events: none;
1115
+ }
1116
+
1117
+ .ace_gutter-layer {
1118
+ position: relative;
1119
+ width: auto;
1120
+ text-align: right;
1121
+ pointer-events: auto;
1122
+ height: 1000000px;
1123
+ contain: style size layout;
1124
+ }
1125
+
1126
+ .ace_text-layer {
1127
+ font: inherit !important;
1128
+ position: absolute;
1129
+ height: 1000000px;
1130
+ width: 1000000px;
1131
+ contain: style size layout;
1132
+ }
1133
+
1134
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1135
+ contain: style size layout;
1136
+ position: absolute;
1137
+ top: 0;
1138
+ left: 0;
1139
+ right: 0;
1140
+ }
1141
+
1142
+ .ace_hidpi .ace_text-layer,
1143
+ .ace_hidpi .ace_gutter-layer,
1144
+ .ace_hidpi .ace_content,
1145
+ .ace_hidpi .ace_gutter {
1146
+ contain: strict;
1147
+ }
1148
+ .ace_hidpi .ace_text-layer > .ace_line,
1149
+ .ace_hidpi .ace_text-layer > .ace_line_group {
1150
+ contain: strict;
1151
+ }
1152
+
1153
+ .ace_cjk {
1154
+ display: inline-block;
1155
+ text-align: center;
1156
+ }
1157
+
1158
+ .ace_cursor-layer {
1159
+ z-index: 4;
1160
+ }
1161
+
1162
+ .ace_cursor {
1163
+ z-index: 4;
1164
+ position: absolute;
1165
+ box-sizing: border-box;
1166
+ border-left: 2px solid;
1167
+ /* workaround for smooth cursor repaintng whole screen in chrome */
1168
+ transform: translatez(0);
1169
+ }
1170
+
1171
+ .ace_multiselect .ace_cursor {
1172
+ border-left-width: 1px;
1173
+ }
1174
+
1175
+ .ace_slim-cursors .ace_cursor {
1176
+ border-left-width: 1px;
1177
+ }
1178
+
1179
+ .ace_overwrite-cursors .ace_cursor {
1180
+ border-left-width: 0;
1181
+ border-bottom: 1px solid;
1182
+ }
1183
+
1184
+ .ace_hidden-cursors .ace_cursor {
1185
+ opacity: 0.2;
1186
+ }
1187
+
1188
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1189
+ opacity: 0;
1190
+ }
1191
+
1192
+ .ace_smooth-blinking .ace_cursor {
1193
+ transition: opacity 0.18s;
1194
+ }
1195
+
1196
+ .ace_animate-blinking .ace_cursor {
1197
+ animation-duration: 1000ms;
1198
+ animation-timing-function: step-end;
1199
+ animation-name: blink-ace-animate;
1200
+ animation-iteration-count: infinite;
1201
+ }
1202
+
1203
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1204
+ animation-duration: 1000ms;
1205
+ animation-timing-function: ease-in-out;
1206
+ animation-name: blink-ace-animate-smooth;
1207
+ }
1208
+
1209
+ @keyframes blink-ace-animate {
1210
+ from, to { opacity: 1; }
1211
+ 60% { opacity: 0; }
1212
+ }
1213
+
1214
+ @keyframes blink-ace-animate-smooth {
1215
+ from, to { opacity: 1; }
1216
+ 45% { opacity: 1; }
1217
+ 60% { opacity: 0; }
1218
+ 85% { opacity: 0; }
1219
+ }
1220
+
1221
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1222
+ position: absolute;
1223
+ z-index: 3;
1224
+ }
1225
+
1226
+ .ace_marker-layer .ace_selection {
1227
+ position: absolute;
1228
+ z-index: 5;
1229
+ }
1230
+
1231
+ .ace_marker-layer .ace_bracket {
1232
+ position: absolute;
1233
+ z-index: 6;
1234
+ }
1235
+
1236
+ .ace_marker-layer .ace_error_bracket {
1237
+ position: absolute;
1238
+ border-bottom: 1px solid #DE5555;
1239
+ border-radius: 0;
1240
+ }
1241
+
1242
+ .ace_marker-layer .ace_active-line {
1243
+ position: absolute;
1244
+ z-index: 2;
1245
+ }
1246
+
1247
+ .ace_marker-layer .ace_selected-word {
1248
+ position: absolute;
1249
+ z-index: 4;
1250
+ box-sizing: border-box;
1251
+ }
1252
+
1253
+ .ace_line .ace_fold {
1254
+ box-sizing: border-box;
1255
+
1256
+ display: inline-block;
1257
+ height: 11px;
1258
+ margin-top: -2px;
1259
+ vertical-align: middle;
1260
+
1261
+ background-image:
1262
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1263
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1264
+ background-repeat: no-repeat, repeat-x;
1265
+ background-position: center center, top left;
1266
+ color: transparent;
1267
+
1268
+ border: 1px solid black;
1269
+ border-radius: 2px;
1270
+
1271
+ cursor: pointer;
1272
+ pointer-events: auto;
1273
+ }
1274
+
1275
+ .ace_dark .ace_fold {
1276
+ }
1277
+
1278
+ .ace_fold:hover{
1279
+ background-image:
1280
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1281
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1282
+ }
1283
+
1284
+ .ace_tooltip {
1285
+ background-color: #f5f5f5;
1286
+ border: 1px solid gray;
1287
+ border-radius: 1px;
1288
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1289
+ color: black;
1290
+ max-width: 100%;
1291
+ padding: 3px 4px;
1292
+ position: fixed;
1293
+ z-index: 999999;
1294
+ box-sizing: border-box;
1295
+ cursor: default;
1296
+ white-space: pre-wrap;
1297
+ word-wrap: break-word;
1298
+ line-height: normal;
1299
+ font-style: normal;
1300
+ font-weight: normal;
1301
+ letter-spacing: normal;
1302
+ pointer-events: none;
1303
+ overflow: auto;
1304
+ max-width: min(60em, 66vw);
1305
+ overscroll-behavior: contain;
1306
+ }
1307
+ .ace_tooltip pre {
1308
+ white-space: pre-wrap;
1309
+ }
1310
+
1311
+ .ace_tooltip.ace_dark {
1312
+ background-color: #636363;
1313
+ color: #fff;
1314
+ }
1315
+
1316
+ .ace_tooltip:focus {
1317
+ outline: 1px solid #5E9ED6;
1318
+ }
1319
+
1320
+ .ace_icon {
1321
+ display: inline-block;
1322
+ width: 18px;
1323
+ vertical-align: top;
1324
+ }
1325
+
1326
+ .ace_icon_svg {
1327
+ display: inline-block;
1328
+ width: 12px;
1329
+ vertical-align: top;
1330
+ -webkit-mask-repeat: no-repeat;
1331
+ -webkit-mask-size: 12px;
1332
+ -webkit-mask-position: center;
1333
+ }
1334
+
1335
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1336
+ padding-right: 13px;
1337
+ }
1338
+
1339
+ .ace_fold-widget {
1340
+ box-sizing: border-box;
1341
+
1342
+ margin: 0 -12px 0 1px;
1343
+ display: none;
1344
+ width: 11px;
1345
+ vertical-align: top;
1346
+
1347
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1348
+ background-repeat: no-repeat;
1349
+ background-position: center;
1350
+
1351
+ border-radius: 3px;
1352
+
1353
+ border: 1px solid transparent;
1354
+ cursor: pointer;
1355
+ }
1356
+
1357
+ .ace_folding-enabled .ace_fold-widget {
1358
+ display: inline-block;
1359
+ }
1360
+
1361
+ .ace_fold-widget.ace_end {
1362
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1363
+ }
1364
+
1365
+ .ace_fold-widget.ace_closed {
1366
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1367
+ }
1368
+
1369
+ .ace_fold-widget:hover {
1370
+ border: 1px solid rgba(0, 0, 0, 0.3);
1371
+ background-color: rgba(255, 255, 255, 0.2);
1372
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1373
+ }
1374
+
1375
+ .ace_fold-widget:active {
1376
+ border: 1px solid rgba(0, 0, 0, 0.4);
1377
+ background-color: rgba(0, 0, 0, 0.05);
1378
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1379
+ }
1380
+ /**
1381
+ * Dark version for fold widgets
1382
+ */
1383
+ .ace_dark .ace_fold-widget {
1384
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1385
+ }
1386
+ .ace_dark .ace_fold-widget.ace_end {
1387
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1388
+ }
1389
+ .ace_dark .ace_fold-widget.ace_closed {
1390
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1391
+ }
1392
+ .ace_dark .ace_fold-widget:hover {
1393
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1394
+ background-color: rgba(255, 255, 255, 0.1);
1395
+ }
1396
+ .ace_dark .ace_fold-widget:active {
1397
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1398
+ }
1399
+
1400
+ .ace_inline_button {
1401
+ border: 1px solid lightgray;
1402
+ display: inline-block;
1403
+ margin: -1px 8px;
1404
+ padding: 0 5px;
1405
+ pointer-events: auto;
1406
+ cursor: pointer;
1407
+ }
1408
+ .ace_inline_button:hover {
1409
+ border-color: gray;
1410
+ background: rgba(200,200,200,0.2);
1411
+ display: inline-block;
1412
+ pointer-events: auto;
1413
+ }
1414
+
1415
+ .ace_fold-widget.ace_invalid {
1416
+ background-color: #FFB4B4;
1417
+ border-color: #DE5555;
1418
+ }
1419
+
1420
+ .ace_fade-fold-widgets .ace_fold-widget {
1421
+ transition: opacity 0.4s ease 0.05s;
1422
+ opacity: 0;
1423
+ }
1424
+
1425
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
1426
+ transition: opacity 0.05s ease 0.05s;
1427
+ opacity:1;
1428
+ }
1429
+
1430
+ .ace_underline {
1431
+ text-decoration: underline;
1432
+ }
1433
+
1434
+ .ace_bold {
1435
+ font-weight: bold;
1436
+ }
1437
+
1438
+ .ace_nobold .ace_bold {
1439
+ font-weight: normal;
1440
+ }
1441
+
1442
+ .ace_italic {
1443
+ font-style: italic;
1444
+ }
1445
+
1446
+
1447
+ .ace_error-marker {
1448
+ background-color: rgba(255, 0, 0,0.2);
1449
+ position: absolute;
1450
+ z-index: 9;
1451
+ }
1452
+
1453
+ .ace_highlight-marker {
1454
+ background-color: rgba(255, 255, 0,0.2);
1455
+ position: absolute;
1456
+ z-index: 8;
1457
+ }
1458
+
1459
+ .ace_mobile-menu {
1460
+ position: absolute;
1461
+ line-height: 1.5;
1462
+ border-radius: 4px;
1463
+ -ms-user-select: none;
1464
+ -moz-user-select: none;
1465
+ -webkit-user-select: none;
1466
+ user-select: none;
1467
+ background: white;
1468
+ box-shadow: 1px 3px 2px grey;
1469
+ border: 1px solid #dcdcdc;
1470
+ color: black;
1471
+ }
1472
+ .ace_dark > .ace_mobile-menu {
1473
+ background: #333;
1474
+ color: #ccc;
1475
+ box-shadow: 1px 3px 2px grey;
1476
+ border: 1px solid #444;
1477
+
1478
+ }
1479
+ .ace_mobile-button {
1480
+ padding: 2px;
1481
+ cursor: pointer;
1482
+ overflow: hidden;
1483
+ }
1484
+ .ace_mobile-button:hover {
1485
+ background-color: #eee;
1486
+ opacity:1;
1487
+ }
1488
+ .ace_mobile-button:active {
1489
+ background-color: #ddd;
1490
+ }
1491
+
1492
+ .ace_placeholder {
1493
+ position: relative;
1494
+ font-family: arial;
1495
+ transform: scale(0.9);
1496
+ transform-origin: left;
1497
+ white-space: pre;
1498
+ opacity: 0.7;
1499
+ margin: 0 10px;
1500
+ z-index: 1;
1501
+ }
1502
+
1503
+ .ace_ghost_text {
1504
+ opacity: 0.5;
1505
+ font-style: italic;
1506
+ }
1507
+
1508
+ .ace_ghost_text_container > div {
1509
+ white-space: pre;
1510
+ }
1511
+
1512
+ .ghost_text_line_wrapped::after {
1513
+ content: "↩";
1514
+ position: absolute;
1515
+ }
1516
+
1517
+ .ace_lineWidgetContainer.ace_ghost_text {
1518
+ margin: 0px 4px
1519
+ }
1520
+
1521
+ .ace_screenreader-only {
1522
+ position:absolute;
1523
+ left:-10000px;
1524
+ top:auto;
1525
+ width:1px;
1526
+ height:1px;
1527
+ overflow:hidden;
1528
+ }
1529
+
1530
+ .ace_hidden_token {
1531
+ display: none;
1532
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,o){var a=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,l=function(){function p(s,r){this.canvas=a.createElement("canvas"),this.renderer=r,this.pixelRatio=1,this.maxHeight=r.layerConfig.maxHeight,this.lineHeight=r.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 r=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 c=(s.lastRow+1)*this.lineHeight;c<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var u=this.canvas.getContext("2d");function h(k,x){return k.priority<x.priority?-1:k.priority>x.priority?1:0}var f=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(k){k.priority=m[k.type]||null}),f=f.sort(h);for(var v=this.renderer.session.$foldData,y=0;y<f.length;y++){var $=f[y].row,_=this.compensateFoldRows($,v),S=Math.round(($-_)*this.lineHeight*this.heightRatio),b=Math.round(($-_)*this.lineHeight*this.heightRatio),M=Math.round((($-_)*this.lineHeight+this.lineHeight)*this.heightRatio),I=M-b;if(I<this.minDecorationHeight){var L=(b+M)/2|0;L<this.halfMinDecorationHeight?L=this.halfMinDecorationHeight:L+this.halfMinDecorationHeight>this.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(L-this.halfMinDecorationHeight),M=Math.round(L+this.halfMinDecorationHeight)}u.fillStyle=r[f[y].type]||null,u.fillRect(0,S,this.canvasWidth,M-b)}}var T=this.renderer.session.selection.getCursor();if(T){var _=this.compensateFoldRows(T.row,v),S=Math.round((T.row-_)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(s,r){var c=0;if(r&&r.length>0)for(var u=0;u<r.length;u++)s>r[u].start.row&&s<r[u].end.row?c+=s-r[u].start.row:s>=r[u].end.row&&(c+=r[u].end.row-r[u].start.row);return c},p}();d.implement(l.prototype,g),i.Decorator=l}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(n,i,o){var a=n("./lib/oop"),d=n("./lib/dom"),g=n("./lib/lang"),l=n("./config"),p=n("./layer/gutter").Gutter,s=n("./layer/marker").Marker,r=n("./layer/text").Text,c=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,h=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,$=n("./lib/event_emitter").EventEmitter,_=n("./css/editor-css"),S=n("./layer/decorators").Decorator,b=n("./lib/useragent"),M=n("./layer/text_util").isTextToken;d.importCssString(_,"ace_editor.css",!1);var I=function(){function L(T,k){var x=this;this.container=T||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(k),l.get("useStrictCSP")==null&&l.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var C=this.$textLayer=new r(this.content);this.canvas=C.element,this.$markerFront=new s(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(w){x.$scrollAnimation||x.session.setScrollTop(w.data-x.scrollMargin.top)}),this.scrollBarH.on("scroll",function(w){x.$scrollAnimation||x.session.setScrollLeft(w.data-x.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(w){x.updateCharacterSize(),x.onResize(!0,x.gutterWidth,x.$size.width,x.$size.height),x._signal("changeCharacterSize",w)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),l.resetOptions(this),l._signal("renderer",this)}return L.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},L.prototype.updateLines=function(T,k,x){if(k===void 0&&(k=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRow<k&&(this.$changedLines.lastRow=k)):this.$changedLines={firstRow:T,lastRow:k},this.$changedLines.lastRow<this.layerConfig.firstRow)if(x)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(T,k,x,C){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var w=this.container;C||(C=w.clientHeight||w.scrollHeight),!C&&this.$maxLines&&this.lineHeight>1&&(!w.style.height||w.style.height=="0px")&&(w.style.height="1px",C=w.clientHeight||w.scrollHeight),x||(x=w.clientWidth||w.scrollWidth);var A=this.$updateCachedSize(T,k,x,C);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!x&&!C)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(A|this.$changes,!0):this.$loop.schedule(A|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(T,k,x,C){C-=this.$extraHeight||0;var w=0,A=this.$size,E={width:A.width,height:A.height,scrollerHeight:A.scrollerHeight,scrollerWidth:A.scrollerWidth};if(C&&(T||A.height!=C)&&(A.height=C,w|=this.CHANGE_SIZE,A.scrollerHeight=A.height,this.$horizScroll&&(A.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(A.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",w=w|this.CHANGE_SCROLL),x&&(T||A.width!=x)){w|=this.CHANGE_SIZE,A.width=x,k==null&&(k=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=k,d.setStyle(this.scrollBarH.element.style,"left",k+"px"),d.setStyle(this.scroller.style,"left",k+this.margin.left+"px"),A.scrollerWidth=Math.max(0,x-k-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var R=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",R),d.setStyle(this.scroller.style,"right",R),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(A.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(w|=this.CHANGE_FULL)}return A.$dirty=!x||!C,w&&this._signal("resize",E),w},L.prototype.onGutterResize=function(T){var k=this.$showGutter?T:0;k!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,k,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},L.prototype.adjustWrapLimit=function(){var T=this.$size.scrollerWidth-this.$padding*2,k=Math.floor(T/this.characterWidth);return this.session.adjustWrapLimit(k,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},L.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},L.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=d.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,this.content.firstChild)}var k=this.$printMarginEl.style;k.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",k.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,k=this.$composition;if(!this.$keepTextAreaAtCursor&&!k){d.translate(this.textarea,-100,0);return}var x=this.$cursorLayer.$pixelPos;if(x){k&&k.markerRange&&(x=this.$cursorLayer.getPixelPosition(k.markerRange.start,!0));var C=this.layerConfig,w=x.top,A=x.left;w-=C.offset;var E=k&&k.useTextareaForIME||b.isMobile?this.lineHeight:1;if(w<0||w>C.height-E){d.translate(this.textarea,0,0);return}var R=1,O=this.$size.height-E;if(!k)w+=this.lineHeight;else if(k.useTextareaForIME){var N=this.textarea.value;R=this.characterWidth*this.session.$getStringScreenWidth(N)[0]}else w+=this.lineHeight+2;A-=this.scrollLeft,A>this.$size.scrollerWidth-R&&(A=this.$size.scrollerWidth-R),A+=this.gutterWidth+this.margin.left,d.setStyle(T,"height",E+"px"),d.setStyle(T,"width",R+"px"),d.translate(this.textarea,Math.min(A,this.$size.scrollerWidth-R),Math.min(w,O))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,k=T.lastRow,x=this.session.documentToScreenRow(k,0)*T.lineHeight;return x-this.session.getScrollTop()>T.height-T.lineHeight?k-1:k},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(T,k,x,C){var w=this.scrollMargin;w.top=T|0,w.bottom=k|0,w.right=C|0,w.left=x|0,w.v=w.top+w.bottom,w.h=w.left+w.right,w.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-w.top),this.updateFull()},L.prototype.setMargin=function(T,k,x,C){var w=this.margin;w.top=T|0,w.bottom=k|0,w.right=C|0,w.left=x|0,w.v=w.top+w.bottom,w.h=w.left+w.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},L.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,k=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(T-=(k-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>T-k&&(T=this.scrollTop+k,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(T+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(T,k){if(this.$changes&&(T|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!T&&!k){this.$changes|=T;return}if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var x=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),x.firstRow!=this.layerConfig.firstRow&&x.firstRowScreen==this.layerConfig.firstRowScreen){var C=this.scrollTop+(x.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;C>0&&(this.scrollTop=C,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}x=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-x.offset);var w=x.width+2*this.$padding+"px",A=x.minHeight+"px";d.setStyle(this.content.style,"width",w),d.setStyle(this.content.style,"height",A)}if(T&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-x.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(x),this.$showGutter&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x),this.$markerBack.update(x),this.$markerFront.update(x),this.$cursorLayer.update(x),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update(x):this.$textLayer.scrollLines(x),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update(x):this.$gutterLayer.scrollLines(x)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x),this.$markerBack.update(x),this.$markerFront.update(x),this.$cursorLayer.update(x),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(x),this.$showGutter&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update(x),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(x),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(x),this._signal("afterRender",T)},L.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,k=this.$maxLines*this.lineHeight,x=Math.min(k,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(x+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&x>this.$maxPixelHeight&&(x=this.$maxPixelHeight);var C=x<=2*this.lineHeight,w=!C&&T>k;if(x!=this.desiredHeight||this.$size.height!=this.desiredHeight||w!=this.$vScroll){w!=this.$vScroll&&(this.$vScroll=w,this.scrollBarV.setVisible(w));var A=this.container.clientWidth;this.container.style.height=x+"px",this.$updateCachedSize(!0,this.$gutterWidth,A,x),this.desiredHeight=x,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var T=this.session,k=this.$size,x=k.height<=2*this.lineHeight,C=this.session.getScreenLength(),w=C*this.lineHeight,A=this.$getLongestLine(),E=!x&&(this.$hScrollBarAlwaysVisible||k.scrollerWidth-A-2*this.$padding<0),R=this.$horizScroll!==E;R&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var N=k.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(k.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;w+=F;var z=this.scrollMargin;this.session.setScrollTop(Math.max(-z.top,Math.min(this.scrollTop,w-k.scrollerHeight+z.bottom))),this.session.setScrollLeft(Math.max(-z.left,Math.min(this.scrollLeft,A+2*this.$padding-k.scrollerWidth+z.right)));var U=!x&&(this.$vScrollBarAlwaysVisible||k.scrollerHeight-w+F<0||this.scrollTop>z.top),j=O!==U;j&&(this.$vScroll=U,this.scrollBarV.setVisible(U));var B=this.scrollTop%this.lineHeight,V=Math.ceil(N/this.lineHeight)-1,Q=Math.max(0,Math.round((this.scrollTop-B)/this.lineHeight)),H=Q+V,K,X,q=this.lineHeight;Q=T.screenToDocumentRow(Q,0);var ue=T.getFoldLine(Q);ue&&(Q=ue.start.row),K=T.documentToScreenRow(Q,0),X=T.getRowLength(Q)*q,H=Math.min(T.screenToDocumentRow(H,0),T.getLength()-1),N=k.scrollerHeight+T.getRowLength(H)*q+X,B=this.scrollTop-K*q;var we=0;return(this.layerConfig.width!=A||R)&&(we=this.CHANGE_H_SCROLL),(R||j)&&(we|=this.$updateCachedSize(!0,this.gutterWidth,k.width,k.height),this._signal("scrollbarVisibilityChanged"),j&&(A=this.$getLongestLine())),this.layerConfig={width:A,padding:this.$padding,firstRow:Q,firstRowScreen:K,lastRow:H,lineHeight:q,characterWidth:this.characterWidth,minHeight:N,maxHeight:w,offset:B,gutterOffset:q?Math.max(0,Math.ceil((B+k.height-k.scrollerHeight)/q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(A-this.$padding),we},L.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,k=this.$changedLines.lastRow;this.$changedLines=null;var x=this.layerConfig;if(!(T>x.lastRow+1)&&!(k<x.firstRow)){if(k===1/0){this.$showGutter&&this.$gutterLayer.update(x),this.$textLayer.update(x);return}return this.$textLayer.updateLines(x,T,k),!0}}},L.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))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(T,k){this.$gutterLayer.addGutterDecoration(T,k)},L.prototype.removeGutterDecoration=function(T,k){this.$gutterLayer.removeGutterDecoration(T,k)},L.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(T,k,x){this.scrollCursorIntoView(T,x),this.scrollCursorIntoView(k,x)},L.prototype.scrollCursorIntoView=function(T,k,x){if(this.$size.scrollerHeight!==0){var C=this.$cursorLayer.getPixelPosition(T),w=C.left,A=C.top,E=x&&x.top||0,R=x&&x.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+E>A?(k&&O+E>A+this.lineHeight&&(A-=k*this.$size.scrollerHeight),A===0&&(A=-this.scrollMargin.top),this.session.setScrollTop(A)):O+this.$size.scrollerHeight-R<A+this.lineHeight&&(k&&O+this.$size.scrollerHeight-R<A-this.lineHeight&&(A+=k*this.$size.scrollerHeight),this.session.setScrollTop(A+this.lineHeight+R-this.$size.scrollerHeight));var N=this.scrollLeft,F=2*this.layerConfig.characterWidth;w-F<N?(w-=F,w<this.$padding+F&&(w=-this.scrollMargin.left),this.session.setScrollLeft(w)):(w+=F,N+this.$size.scrollerWidth<w+this.characterWidth?this.session.setScrollLeft(Math.round(w+this.characterWidth-this.$size.scrollerWidth)):N<=this.$padding&&w-N<this.characterWidth&&this.session.setScrollLeft(0))}},L.prototype.getScrollTop=function(){return this.session.getScrollTop()},L.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},L.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},L.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},L.prototype.scrollToRow=function(T){this.session.setScrollTop(T*this.lineHeight)},L.prototype.alignCursor=function(T,k){typeof T=="number"&&(T={row:T,column:0});var x=this.$cursorLayer.getPixelPosition(T),C=this.$size.scrollerHeight-this.lineHeight,w=x.top-C*(k||0);return this.session.setScrollTop(w),w},L.prototype.$calcSteps=function(T,k){var x=0,C=this.STEPS,w=[],A=function(E,R,O){return O*(Math.pow(E-1,3)+1)+R};for(x=0;x<C;++x)w.push(A(x/this.STEPS,T,k-T));return w},L.prototype.scrollToLine=function(T,k,x,C){var w=this.$cursorLayer.getPixelPosition({row:T,column:0}),A=w.top;k&&(A-=this.$size.scrollerHeight/2);var E=this.scrollTop;this.session.setScrollTop(A),x!==!1&&this.animateScrolling(E,C)},L.prototype.animateScrolling=function(T,k){var x=this.scrollTop;if(!this.$animatedScroll)return;var C=this;if(T==x)return;if(this.$scrollAnimation){var w=this.$scrollAnimation.steps;if(w.length&&(T=w[0],T==x))return}var A=C.$calcSteps(T,x);this.$scrollAnimation={from:T,to:x,steps:A},clearInterval(this.$timer),C.session.setScrollTop(A.shift()),C.session.$scrollTop=x;function E(){C.$timer=clearInterval(C.$timer),C.$scrollAnimation=null,C.$stopAnimation=!1,k&&k()}this.$timer=setInterval(function(){if(C.$stopAnimation){E();return}if(!C.session)return clearInterval(C.$timer);A.length?(C.session.setScrollTop(A.shift()),C.session.$scrollTop=x):x!=null?(C.session.$scrollTop=-1,C.session.setScrollTop(x),x=null):E()},10)},L.prototype.scrollToY=function(T){this.scrollTop!==T&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=T)},L.prototype.scrollToX=function(T){this.scrollLeft!==T&&(this.scrollLeft=T),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(T,k){this.session.setScrollTop(k),this.session.setScrollLeft(T)},L.prototype.scrollBy=function(T,k){k&&this.session.setScrollTop(this.session.getScrollTop()+k),T&&this.session.setScrollLeft(this.session.getScrollLeft()+T)},L.prototype.isScrollableBy=function(T,k){if(k<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||k>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(T,k){var x;if(this.$hasCssTransforms){x={top:0,left:0};var C=this.$fontMetrics.transformCoordinates([T,k]);T=C[1]-this.gutterWidth-this.margin.left,k=C[0]}else x=this.scroller.getBoundingClientRect();var w=T+this.scrollLeft-x.left-this.$padding,A=w/this.characterWidth,E=Math.floor((k+this.scrollTop-x.top)/this.lineHeight),R=this.$blockCursor?Math.floor(A):Math.round(A);return{row:E,column:R,side:A-R>0?1:-1,offsetX:w}},L.prototype.screenToTextCoordinates=function(T,k){var x;if(this.$hasCssTransforms){x={top:0,left:0};var C=this.$fontMetrics.transformCoordinates([T,k]);T=C[1]-this.gutterWidth-this.margin.left,k=C[0]}else x=this.scroller.getBoundingClientRect();var w=T+this.scrollLeft-x.left-this.$padding,A=w/this.characterWidth,E=this.$blockCursor?Math.floor(A):Math.round(A),R=Math.floor((k+this.scrollTop-x.top)/this.lineHeight);return this.session.screenToDocumentPosition(R,Math.max(E,0),w)},L.prototype.textToScreenCoordinates=function(T,k){var x=this.scroller.getBoundingClientRect(),C=this.session.documentToScreenPosition(T,k),w=this.$padding+(this.session.$bidiHandler.isBidiRow(C.row,T)?this.session.$bidiHandler.getPosLeft(C.column):Math.round(C.column*this.characterWidth)),A=C.row*this.lineHeight;return{pageX:x.left+w-this.scrollLeft,pageY:x.top+A-this.scrollTop}},L.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(T){var k=this.session.selection.cursor;this.addToken(T,"composition_placeholder",k.row,k.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(T,k){var x=this.session.selection.cursor,C=k||{row:x.row,column:x.column};this.removeGhostText();var w=this.$calculateWrappedTextChunks(T,C);this.addToken(w[0].text,"ghost_text",C.row,C.column),this.$ghostText={text:T,position:{row:C.row,column:C.column}};var A=d.createElement("div");if(w.length>1){var E=this.hideTokensAfterPosition(C.row,C.column),R;w.slice(1).forEach(function(j){var B=d.createElement("div"),V=d.createElement("span");V.className="ace_ghost_text",j.wrapped&&(B.className="ghost_text_line_wrapped"),j.text.length===0&&(j.text=" "),V.appendChild(d.createTextNode(j.text)),B.appendChild(V),A.appendChild(B),R=B}),E.forEach(function(j){var B=d.createElement("span");M(j.type)||(B.className="ace_"+j.type.replace(/\./g," ace_")),B.appendChild(d.createTextNode(j.value)),R.appendChild(B)}),this.$ghostTextWidget={el:A,row:C.row,column:C.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var O=this.$cursorLayer.getPixelPosition(C,!0),N=this.container,F=N.getBoundingClientRect().height,z=w.length*this.lineHeight,U=z<F-O.top;if(U)return;z<F?this.scrollBy(0,(w.length-1)*this.lineHeight):this.scrollToRow(C.row)}},L.prototype.$calculateWrappedTextChunks=function(T,k){var x=this.$size.scrollerWidth-this.$padding*2,C=Math.floor(x/this.characterWidth)-2;C=C<=0?60:C;for(var w=T.split(/\r?\n/),A=[],E=0;E<w.length;E++){var R=this.session.$getDisplayTokens(w[E],k.column),O=this.session.$computeWrapSplits(R,C,this.session.$tabSize);if(O.length>0){var N=0;O.push(w[E].length);for(var F=0;F<O.length;F++){var z=w[E].slice(N,O[F]);A.push({text:z,wrapped:!0}),N=O[F]}}else A.push({text:w[E],wrapped:!1})}return A},L.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}},L.prototype.addToken=function(T,k,x,C){var w=this.session;w.bgTokenizer.lines[x]=null;var A={type:k,value:T},E=w.getTokens(x);if(C==null||!E.length)E.push(A);else for(var R=0,O=0;O<E.length;O++){var N=E[O];if(R+=N.value.length,C<=R){var F=N.value.length-(R-C),z=N.value.slice(0,F),U=N.value.slice(F);E.splice(O,1,{type:N.type,value:z},A,{type:N.type,value:U});break}}this.updateLines(x,x)},L.prototype.hideTokensAfterPosition=function(T,k){for(var x=this.session.getTokens(T),C=0,w=!1,A=[],E=0;E<x.length;E++){var R=x[E];if(C+=R.value.length,R.type!=="ghost_text"){if(w){A.push({type:R.type,value:R.value}),R.type="hidden_token";continue}C===k&&(w=!0)}}return this.updateLines(T,T),A},L.prototype.removeExtraToken=function(T,k){this.session.bgTokenizer.lines[T]=null,this.updateLines(T,T)},L.prototype.setTheme=function(T,k){var x=this;if(this.$themeId=T,x._dispatchEvent("themeChange",{theme:T}),!T||typeof T=="string"){var C=T||this.$options.theme.initialValue;l.loadModule(["theme",C],w)}else w(T);function w(A){if(x.$themeId!=T)return k&&k();if(!A||!A.cssClass)throw new Error("couldn't load module "+T+" or it didn't call define");A.$id&&(x.$themeId=A.$id),d.importCssString(A.cssText,A.cssClass,x.container),x.theme&&d.removeCssClass(x.container,x.theme.cssClass);var E="padding"in A?A.padding:"padding"in(x.theme||{})?4:x.$padding;x.$padding&&E!=x.$padding&&x.setPadding(E),x.$theme=A.cssClass,x.theme=A,d.addCssClass(x.container,A.cssClass),d.setCssClass(x.container,"ace_dark",A.isDark),x.$size&&(x.$size.width=0,x.$updateSizeAsync()),x._dispatchEvent("themeLoaded",{theme:A}),k&&k(),b.isSafari&&x.scroller&&(x.scroller.style.background="red",x.scroller.style.background="")}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(T,k){d.setCssClass(this.container,T,k!==!1)},L.prototype.unsetStyle=function(T){d.removeCssClass(this.container,T)},L.prototype.setCursorStyle=function(T){d.setStyle(this.scroller.style,"cursor",T)},L.prototype.setMouseCursor=function(T){d.setStyle(this.scroller.style,"cursor",T)},L.prototype.attachToShadowRoot=function(){d.importCssString(_,"ace_editor.css",this.container)},L.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},L.prototype.$updateCustomScrollbar=function(T){var k=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 f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(x){k.$scrollAnimation||k.session.setScrollTop(x.data-k.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(x){k.$scrollAnimation||k.session.setScrollLeft(x.data-k.scrollMargin.left)}),this.$scrollDecorator=new S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(x){k.$scrollAnimation||k.session.setScrollTop(x.data-k.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(x){k.$scrollAnimation||k.session.setScrollLeft(x.data-k.scrollMargin.left)}))},L.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(k){var x=k[0].contentRect.width,C=k[0].contentRect.height;Math.abs(T.$size.width-x)>1||Math.abs(T.$size.height-C)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();I.prototype.CHANGE_CURSOR=1,I.prototype.CHANGE_MARKER=2,I.prototype.CHANGE_GUTTER=4,I.prototype.CHANGE_SCROLL=8,I.prototype.CHANGE_LINES=16,I.prototype.CHANGE_TEXT=32,I.prototype.CHANGE_SIZE=64,I.prototype.CHANGE_MARKER_BACK=128,I.prototype.CHANGE_MARKER_FRONT=256,I.prototype.CHANGE_FULL=512,I.prototype.CHANGE_H_SCROLL=1024,I.prototype.$changes=0,I.prototype.$padding=null,I.prototype.$frozen=!1,I.prototype.STEPS=8,a.implement(I.prototype,$),l.defineOptions(I.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),i.VirtualRenderer=I}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,o){var a=n("../lib/oop"),d=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,l=n("../config");function p(u){var h="importScripts('"+d.qualifyURL(u)+"');";try{return new Blob([h],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(h),m.getBlob("application/javascript")}}function s(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var h=p(u),f=window.URL||window.webkitURL,m=f.createObjectURL(h);return new Worker(m)}return new Worker(u)}var r=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){a.implement(this,g),this.$createWorkerFromOldConfig=function(u,h,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),l.get("packaged")||!n.toUrl)m=m||l.moduleUrl(h,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var $={};u.forEach(function(_){$[_]=y(n.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:$,module:h,classname:f}),this.$worker},this.onMessage=function(u){var h=u.data;switch(h.type){case"event":this._signal(h.name,{data:h.data});break;case"call":var f=this.callbacks[h.id];f&&(f(h.data),delete this.callbacks[h.id]);break;case"error":this.reportError(h.data);break;case"log":window.console&&console.log&&console.log.apply(console,h.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return d.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,h){this.$worker.postMessage({command:u,args:h})},this.call=function(u,h,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,h.push(m)}this.send(u,h)},this.emit=function(u,h){try{h.data&&h.data.err&&(h.data.err={message:h.data.err.message,stack:h.data.err.stack,code:h.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:h.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(r.prototype);var c=function(u,h,f){var m=null,v=!1,y=Object.create(g),$=[],_=new r({messageBuffer:$,terminate:function(){},postMessage:function(b){$.push(b),m&&(v?setTimeout(S):S())}});_.setEmitSync=function(b){v=b};var S=function(){var b=$.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){_.onMessage({data:b})},y.callback=function(b,M){this.postMessage({type:"call",id:M,data:b})},y.emit=function(b,M){this.postMessage({type:"event",name:b,data:M})},l.loadModule(["worker",h],function(b){for(m=new b[f](y);$.length;)S()}),_};i.UIWorkerClient=c,i.WorkerClient=r,i.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,o){var a=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),l=function(){function p(s,r,c,u,h,f){var m=this;this.length=r,this.session=s,this.doc=s.getDocument(),this.mainClass=h,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var s=this,r=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=c.addMarker(new a(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(h){var f=r.createAnchor(h.row,h.column);f.$insertRight=!0,f.detach(),s.others.push(f)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,r=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=s.addMarker(new a(c.row,c.column,c.row,c.column+r.length),r.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var 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 r=s;if(r.start.row===r.end.row&&r.start.row===this.pos.row){this.$updating=!0;var c=s.action==="insert"?r.end.column-r.start.column:r.start.column-r.end.column,u=r.start.column>=this.pos.column&&r.start.column<=this.pos.column+this.length+1,h=r.start.column-this.pos.column;if(this.updateAnchors(s),u&&(this.length+=c),u&&!this.session.$fromUndo){if(s.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.insertMergedLines(v,s.lines)}else if(s.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.remove(new a(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var r=this.others.length;r--;)this.others[r].onChange(s);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var s=this,r=this.session,c=function(h,f){r.removeMarker(h.markerId),h.markerId=r.addMarker(new a(h.row,h.column,h.row,h.column+s.length),f,null,!1)};c(this.pos,this.mainClass);for(var u=this.others.length;u--;)c(this.others[u],this.othersClass)}},p.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",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(),r=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,c=0;c<r;c++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(l.prototype,d),i.PlaceHolder=l}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,o){var a=n("../lib/event"),d=n("../lib/useragent");function g(p,s){return p.row==s.row&&p.column==s.column}function l(p){var s=p.domEvent,r=s.altKey,c=s.shiftKey,u=s.ctrlKey,h=p.getAccelKey(),f=p.getButton();if(u&&d.isMac&&(f=s.button),p.editor.inMultiSelectMode&&f==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!u&&!r&&!h){f===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(f===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,$=p.getDocumentPosition(),_=v.getCursor(),S=p.inSelection()||v.isEmpty()&&g($,_),b=p.x,M=p.y,I=function(z){b=z.clientX,M=z.clientY},L=m.session,T=m.renderer.pixelToScreenCoordinates(b,M),k=T,x;if(m.$mouseHandler.$enableJumpToDef)u&&r||h&&r?x=c?"block":"add":r&&m.$blockSelectEnabled&&(x="block");else if(h&&!r){if(x="add",!y&&c)return}else r&&m.$blockSelectEnabled&&(x="block");if(x&&d.isMac&&s.ctrlKey&&m.$mouseHandler.cancelContextMenu(),x=="add"){if(!y&&S)return;if(!y){var C=v.toOrientedRange();m.addSelectionMarker(C)}var w=v.rangeList.rangeAtPoint($);m.inVirtualSelectionMode=!0,c&&(w=null,C=v.ranges[0]||C,m.removeSelectionMarker(C)),m.once("mouseup",function(){var z=v.toOrientedRange();w&&z.isEmpty()&&g(w.cursor,z.cursor)?v.substractPoint(z.cursor):(c?v.substractPoint(C.cursor):C&&(m.removeSelectionMarker(C),v.addRange(C)),v.addRange(z)),m.inVirtualSelectionMode=!1})}else if(x=="block"){p.stop(),m.inVirtualSelectionMode=!0;var A,E=[],R=function(){var z=m.renderer.pixelToScreenCoordinates(b,M),U=L.screenToDocumentPosition(z.row,z.column,z.offsetX);g(k,z)&&g(U,v.lead)||(k=z,m.selection.moveToPosition(U),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(E),E=v.rectangularRangeBlock(k,T),m.$mouseHandler.$clickSelection&&E.length==1&&E[0].isEmpty()&&(E[0]=m.$mouseHandler.$clickSelection.clone()),E.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!h?v.toSingleRange():!y&&h&&(A=v.toOrientedRange(),m.addSelectionMarker(A)),c?T=L.documentToScreenPosition(v.lead):v.moveToPosition($),k={row:-1,column:-1};var O=function(z){R(),clearInterval(F),m.removeSelectionMarkers(E),E.length||(E=[v.toOrientedRange()]),A&&(m.removeSelectionMarker(A),v.toSingleRange(A));for(var U=0;U<E.length;U++)v.addRange(E[U]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=R;a.capture(m.container,I,O);var F=setInterval(function(){N()},20);return p.preventDefault()}}}i.onMouseDown=l}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,o){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(d){d.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(d){d.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(d){d.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(d){d.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(d){d.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(d){d.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(d){d.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(d){d.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(d){d.multiSelect.rangeCount>1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var a=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new a(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,i,o){var a=n("./range_list").RangeList,d=n("./range").Range,g=n("./selection").Selection,l=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),s=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var c=n("./search").Search,u=new c;function h(_,S,b){return u.$options.wrap=!0,u.$options.needle=S,u.$options.backwards=b==-1,u.find(_)}var f=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(_,S){if(_){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(_),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(_);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}_.cursor||(_.cursor=_.end);var M=this.rangeList.add(_);return this.$onAddRange(_),M.length&&this.$onRemoveRange(M),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var S=this.rangeList.substractPoint(_);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var _=this.rangeList.merge();_.length&&this.$onRemoveRange(_)},this.$onAddRange=function(_){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(_),this._signal("addRange",{range:_})},this.$onRemoveRange=function(_){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();_.push(S),this.rangeCount=0}for(var b=_.length;b--;){var M=this.ranges.indexOf(_[b]);this.ranges.splice(M,1)}this._signal("removeRange",{ranges:_}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new a,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var _=this.ranges.length?this.ranges:[this.getRange()],S=[],b=0;b<_.length;b++){var M=_[b],I=M.start.row,L=M.end.row;if(I===L)S.push(M.clone());else{for(S.push(new d(I,M.start.column,I,this.session.getLine(I).length));++I<L;)S.push(this.getLineRange(I,!0));S.push(new d(L,0,L,M.end.column))}b==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var b=S.length;b--;)this.addRange(S[b])},this.joinSelections=function(){var _=this.rangeList.ranges,S=_[_.length-1],b=d.fromPoints(_[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var _=this.rangeList.ranges,S=_[_.length-1],b=d.fromPoints(_[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var M=this.session.documentToScreenPosition(this.cursor),I=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(M,I);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,S,b){var M=[],I=_.column<S.column;if(I)var L=_.column,T=S.column,k=_.offsetX,x=S.offsetX;else var L=S.column,T=_.column,k=S.offsetX,x=_.offsetX;var C=_.row<S.row;if(C)var w=_.row,A=S.row;else var w=S.row,A=_.row;L<0&&(L=0),w<0&&(w=0),w==A&&(b=!0);for(var E,R=w;R<=A;R++){var O=d.fromPoints(this.session.screenToDocumentPosition(R,L,k),this.session.screenToDocumentPosition(R,T,x));if(O.isEmpty()){if(E&&v(O.end,E))break;E=O.end}O.cursor=I?O.start:O.end,M.push(O)}if(C&&M.reverse(),!b){for(var N=M.length-1;M[N].isEmpty()&&N>0;)N--;if(N>0)for(var F=0;M[F].isEmpty();)F++;for(var z=N;z>=F;z--)M[z].isEmpty()&&M.splice(z,1)}return M}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(_){_.cursor||(_.cursor=_.end);var S=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",S),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var S=this.session.$selectionMarkers.indexOf(_);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var S=this.session.$selectionMarkers,b=_.length;b--;){var M=_[b];if(M.marker){this.session.removeMarker(M.marker);var I=S.indexOf(M);I!=-1&&S.splice(I,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(_){this.addSelectionMarker(_.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(_){this.removeSelectionMarkers(_.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(_){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(r.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(_){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(r.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var S=_.command,b=_.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?M=b.forEachSelection(S,_.args):S.multiSelectAction=="forEachLine"?M=b.forEachSelection(S,_.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),M=S.exec(b,_.args||{})):M=S.multiSelectAction(b,_.args||{});else{var M=S.exec(b,_.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return M}},this.forEachSelection=function(_,S,b){if(!this.inVirtualSelectionMode){var M=b&&b.keepOrder,I=b==!0||b&&b.$byLines,L=this.session,T=this.selection,k=T.rangeList,x=(M?T:k).ranges,C;if(!x.length)return _.exec?_.exec(this,S||{}):_(this,S||{});var w=T._eventRegistry;T._eventRegistry={};var A=new g(L);this.inVirtualSelectionMode=!0;for(var E=x.length;E--;){if(I)for(;E>0&&x[E].start.row==x[E-1].end.row;)E--;A.fromOrientedRange(x[E]),A.index=E,this.selection=L.selection=A;var R=_.exec?_.exec(this,S||{}):_(this,S||{});!C&&R!==void 0&&(C=R),A.toOrientedRange(x[E])}A.detach(),this.selection=L.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=w,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var O=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),O&&O.from==O.to&&this.renderer.animateScrolling(O.from),C}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,b=[],M=0;M<S.length;M++)b.push(this.session.getTextRange(S[M]));var I=this.session.getDocument().getNewLineCharacter();_=b.join(I),_.length==(b.length-1)*I.length&&(_="")}else this.selection.isEmpty()||(_=this.session.getTextRange(this.getSelectionRange()));return _},this.$checkMultiselectChange=function(_,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var M=S==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;M.row!=S.row||this.session.$clipPositionToDocument(M.row,M.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(_,S,b){if(S=S||{},S.needle=_||S.needle,S.needle==null){var M=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(M)}this.$search.set(S);var I=this.$search.findAll(this.session);if(!I.length)return 0;var L=this.multiSelect;b||L.toSingleRange(I[0]);for(var T=I.length;T--;)L.addRange(I[T],!0);return M&&L.rangeList.rangeAtPoint(M.start)&&L.addRange(M,!0),I.length},this.selectMoreLines=function(_,S){var b=this.selection.toOrientedRange(),M=b.cursor==b.end,I=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(I.column=this.selection.$desiredColumn);var L=this.session.screenToDocumentPosition(I.row+_,I.column);if(b.isEmpty())var k=L;else var T=this.session.documentToScreenPosition(M?b.end:b.start),k=this.session.screenToDocumentPosition(T.row+_,T.column);if(M){var x=d.fromPoints(L,k);x.cursor=x.start}else{var x=d.fromPoints(k,L);x.cursor=x.end}if(x.desiredColumn=I.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(S)var C=b.cursor;this.selection.addRange(x),C&&this.selection.substractPoint(C)},this.transposeSelections=function(_){for(var S=this.session,b=S.multiSelect,M=b.ranges,I=M.length;I--;){var L=M[I];if(L.isEmpty()){var T=S.getWordRange(L.start.row,L.start.column);L.start.row=T.start.row,L.start.column=T.start.column,L.end.row=T.end.row,L.end.column=T.end.column}}b.mergeOverlappingRanges();for(var k=[],I=M.length;I--;){var L=M[I];k.unshift(S.getTextRange(L))}_<0?k.unshift(k.pop()):k.push(k.shift());for(var I=M.length;I--;){var L=M[I],x=L.clone();S.replace(L,k[I]),L.start.row=x.start.row,L.start.column=x.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(_,S,b){var M=this.session,I=M.multiSelect,L=I.toOrientedRange();if(!(L.isEmpty()&&(L=M.getWordRange(L.start.row,L.start.column),L.cursor=_==-1?L.start:L.end,this.multiSelect.addRange(L),b))){var T=M.getTextRange(L),k=h(M,T,_);k&&(k.cursor=_==-1?k.start:k.end,this.session.unfold(k),this.multiSelect.addRange(k),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(L.cursor)}},this.alignCursors=function(){var _=this.session,S=_.multiSelect,b=S.ranges,M=-1,I=b.filter(function(N){if(N.cursor.row==M)return!0;M=N.cursor.row});if(!b.length||I.length==b.length-1){var L=this.selection.getRange(),T=L.start.row,k=L.end.row,x=T==k;if(x){var C=this.session.getLength(),w;do w=this.session.getLine(k);while(/[=:]/.test(w)&&++k<C);do w=this.session.getLine(T);while(/[=:]/.test(w)&&--T>0);T<0&&(T=0),k>=C&&(k=C-1)}var A=this.session.removeFullLines(T,k);A=this.$reAlignText(A,x),this.session.insert({row:T,column:0},A.join(`
1533
+ `)+`
1534
+ `),x||(L.start.column=0,L.end.column=A[A.length-1].length),this.selection.setRange(L)}else{I.forEach(function(N){S.substractPoint(N.cursor)});var E=0,R=1/0,O=b.map(function(N){var F=N.cursor,z=_.getLine(F.row),U=z.substr(F.column).search(/\S/g);return U==-1&&(U=0),F.column>E&&(E=F.column),U<R&&(R=U),U});b.forEach(function(N,F){var z=N.cursor,U=E-z.column,j=O[F]-R;U>j?_.insert(z,s.stringRepeat(" ",U-j)):_.remove(new d(z.row,z.column,z.row,z.column-U+j)),N.start.column=N.end.column=E,N.start.row=N.end.row=z.row,N.cursor=N.end}),S.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,S){var b=!0,M=!0,I,L,T;return _.map(function(A){var E=A.match(/(\s*)(.*?)(\s*)([=:].*)/);return E?I==null?(I=E[1].length,L=E[2].length,T=E[3].length,E):(I+L+T!=E[1].length+E[2].length+E[3].length&&(M=!1),I!=E[1].length&&(b=!1),I>E[1].length&&(I=E[1].length),L<E[2].length&&(L=E[2].length),T>E[3].length&&(T=E[3].length),E):[A]}).map(S?x:b?M?C:x:w);function k(A){return s.stringRepeat(" ",A)}function x(A){return A[2]?k(I)+A[2]+k(L-A[2].length+T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}function C(A){return A[2]?k(I+L-A[2].length)+A[2]+k(T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}function w(A){return A[2]?k(I)+A[2]+k(T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}}}).call(m.prototype);function v(_,S){return _.row==S.row&&_.column==S.column}i.onSessionChange=function(_){var S=_.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var b=_.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(_){_.$multiselectOnSessionChange||(_.$onAddRange=_.$onAddRange.bind(_),_.$onRemoveRange=_.$onRemoveRange.bind(_),_.$onMultiSelect=_.$onMultiSelect.bind(_),_.$onSingleSelect=_.$onSingleSelect.bind(_),_.$multiselectOnSessionChange=i.onSessionChange.bind(_),_.$checkMultiselectChange=_.$checkMultiselectChange.bind(_),_.$multiselectOnSessionChange(_),_.on("changeSession",_.$multiselectOnSessionChange),_.on("mousedown",l),_.commands.addCommands(r.defaultCommands),$(_))}function $(_){if(!_.textInput)return;var S=_.textInput.getElement(),b=!1;p.addListener(S,"keydown",function(I){var L=I.keyCode==18&&!(I.ctrlKey||I.shiftKey||I.metaKey);_.$blockSelectEnabled&&L?b||(_.renderer.setMouseCursor("crosshair"),b=!0):b&&M()},_),p.addListener(S,"keyup",M,_),p.addListener(S,"blur",M,_);function M(I){b&&(_.renderer.setMouseCursor(""),b=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(_){y(this),_?this.on("mousedown",l):this.off("mousedown",l)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,o){var a=n("../../range").Range,d=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,l,p){var s=g.getLine(p);return this.foldingStartMarker.test(s)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(g,l,p){return null},this.indentationBlock=function(g,l,p){var s=/\S/,r=g.getLine(l),c=r.search(s);if(c!=-1){for(var u=p||r.length,h=g.getLength(),f=l,m=l;++l<h;){var v=g.getLine(l).search(s);if(v!=-1){if(v<=c){var y=g.getTokenAt(l,0);if(!y||y.type!=="string")break}m=l}}if(m>f){var $=g.getLine(m).length;return new a(f,u,m,$)}}},this.openingBracketBlock=function(g,l,p,s,r){var c={row:p,column:s+1},u=g.$findClosingBracket(l,c,r);if(u){var h=g.foldWidgets[u.row];return h==null&&(h=g.getFoldWidget(u.row)),h=="start"&&u.row>c.row&&(u.row--,u.column=g.getLine(u.row).length),a.fromPoints(c,u)}},this.closingBracketBlock=function(g,l,p,s,r){var c={row:p,column:s},u=g.$findOpeningBracket(l,c);if(u)return u.column++,c.column--,a.fromPoints(u,c)}}).call(d.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,i,o){var a=n("../line_widgets").LineWidgets,d=n("../lib/dom"),g=n("../range").Range,l=n("../config").nls;function p(r,c,u){for(var h=0,f=r.length-1;h<=f;){var m=h+f>>1,v=u(c,r[m]);if(v>0)h=m+1;else if(v<0)f=m-1;else return m}return-(h+1)}function s(r,c,u){var h=r.getAnnotations().sort(g.comparePoints);if(h.length){var f=p(h,{row:c,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=h.length?f=u>0?0:h.length-1:f===0&&u<0&&(f=h.length-1);var m=h[f];if(!(!m||!u)){if(m.row===c){do m=h[f+=u];while(m&&m.row===c);if(!m)return h.slice()}var v=[];c=m.row;do v[u<0?"unshift":"push"](m),m=h[f+=u];while(m&&m.row==c);return v.length&&v}}}i.showErrorMarker=function(r,c){var u=r.session;u.widgetManager||(u.widgetManager=new a(u),u.widgetManager.attach(r));var h=r.getCursorPosition(),f=h.row,m=u.widgetManager.getWidgetsAtRow(f).filter(function(L){return L.type=="errorMarker"})[0];m?m.destroy():f-=c;var v=s(u,f,c),y;if(v){var $=v[0];h.column=($.pos&&typeof $.column!="number"?$.pos.sc:$.column)||0,h.row=$.row,y=r.renderer.$gutterLayer.$annotations[h.row]}else{if(m)return;y={displayText:[l("error-marker.good-state","Looks good!")],className:"ace_ok"}}r.session.unfold(h.row),r.selection.moveToPosition(h);var _={row:h.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},S=_.el.appendChild(d.createElement("div")),b=_.el.appendChild(d.createElement("div"));b.className="error_widget_arrow "+y.className;var M=r.renderer.$cursorLayer.getPixelPosition(h).left;b.style.left=M+r.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",S.className="error_widget "+y.className,y.displayText.forEach(function(L,T){S.appendChild(d.createTextNode(L)),T<y.displayText.length-1&&S.appendChild(d.createElement("br"))}),S.appendChild(d.createElement("div"));var I=function(L,T,k){if(T===0&&(k==="esc"||k==="return"))return _.destroy(),{command:"null"}};_.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(I),u.widgetManager.removeLineWidget(_),r.off("changeSelection",_.destroy),r.off("changeSession",_.destroy),r.off("mouseup",_.destroy),r.off("change",_.destroy))},r.keyBinding.addKeyboardHandler(I),r.on("changeSelection",_.destroy),r.on("changeSession",_.destroy),r.on("mouseup",_.destroy),r.on("change",_.destroy),r.session.widgetManager.addLineWidget(_),_.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:_.el.offsetHeight})},d.importCssString(`
1535
+ .error_widget_wrapper {
1536
+ background: inherit;
1537
+ color: inherit;
1538
+ border:none
1539
+ }
1540
+ .error_widget {
1541
+ border-top: solid 2px;
1542
+ border-bottom: solid 2px;
1543
+ margin: 5px 0;
1544
+ padding: 10px 40px;
1545
+ white-space: pre-wrap;
1546
+ }
1547
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
1548
+ border-color: #ff5a5a
1549
+ }
1550
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1551
+ border-color: #F1D817
1552
+ }
1553
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
1554
+ border-color: #5a5a5a
1555
+ }
1556
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1557
+ border-color: #5aaa5a
1558
+ }
1559
+ .error_widget_arrow {
1560
+ position: absolute;
1561
+ border: solid 5px;
1562
+ border-top-color: transparent!important;
1563
+ border-right-color: transparent!important;
1564
+ border-left-color: transparent!important;
1565
+ top: -5px;
1566
+ }
1567
+ `,"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,o){n("./loader_build")(i);var a=n("./lib/dom"),d=n("./range").Range,g=n("./editor").Editor,l=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(r,c){if(typeof r=="string"){var u=r;if(r=document.getElementById(u),!r)throw new Error("ace.edit can't find div #"+u)}if(r&&r.env&&r.env.editor instanceof g)return r.env.editor;var h="";if(r&&/input|textarea/i.test(r.tagName)){var f=r;h=f.value,r=a.createElement("pre"),f.parentNode.replaceChild(r,f)}else r&&(h=r.textContent,r.innerHTML="");var m=i.createEditSession(h),v=new g(new s(r),m,c),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return f&&(y.textarea=f),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},i.createEditSession=function(r,c){var u=new l(r,c);return u.setUndoManager(new p),u},i.Range=d,i.Editor=g,i.EditSession=l,i.UndoManager=p,i.VirtualRenderer=s,i.version=i.config.version}),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 o in n)n.hasOwnProperty(o)&&(i.ace[o]=n[o]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()})(Cp);var l2=Cp.exports;const Zl=Vi(l2),c2="/assets/mode-yaml-ELgwiJiP.js",u2="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Zl.config.setModuleUrl("ace/mode/yaml",c2);Zl.config.setModuleUrl("ace/theme/monokai",u2);var $p=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(o,a){return o[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),o=this.__entries__[i];return o&&o[1]},t.prototype.set=function(n,i){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,o=e(i,n);~o&&i.splice(o,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 o=0,a=this.__entries__;o<a.length;o++){var d=a[o];n.call(i,d[1],d[0])}},t}()}(),Ya=typeof window<"u"&&typeof document<"u"&&window.document===document,Ps=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")()}(),h2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ps):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),d2=2;function f2(e,t){var n=!1,i=!1,o=0;function a(){n&&(n=!1,e()),i&&g()}function d(){h2(a)}function g(){var l=Date.now();if(n){if(l-o<d2)return;i=!0}else n=!0,i=!1,setTimeout(d,t);o=l}return g}var p2=20,g2=["top","right","bottom","left","width","height","size","weight"],m2=typeof MutationObserver<"u",v2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=f2(this.refresh.bind(this),p2)}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(){!Ya||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ya||!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,o=g2.some(function(a){return!!~i.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ap=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Wi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ps},kp=So(0,0,0,0);function Ws(e){return parseFloat(e)||0}function Ku(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,o){var a=e["border-"+o+"-width"];return i+Ws(a)},0)}function y2(e){for(var t=["top","right","bottom","left"],n={},i=0,o=t;i<o.length;i++){var a=o[i],d=e["padding-"+a];n[a]=Ws(d)}return n}function b2(e){var t=e.getBBox();return So(0,0,t.width,t.height)}function w2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return kp;var i=Wi(e).getComputedStyle(e),o=y2(i),a=o.left+o.right,d=o.top+o.bottom,g=Ws(i.width),l=Ws(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+a)!==t&&(g-=Ku(i,"left","right")+a),Math.round(l+d)!==n&&(l-=Ku(i,"top","bottom")+d)),!S2(e)){var p=Math.round(g+a)-t,s=Math.round(l+d)-n;Math.abs(p)!==1&&(g-=p),Math.abs(s)!==1&&(l-=s)}return So(o.left,o.top,g,l)}var _2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Wi(e).SVGGraphicsElement}:function(e){return e instanceof Wi(e).SVGElement&&typeof e.getBBox=="function"}}();function S2(e){return e===Wi(e).document.documentElement}function x2(e){return Ya?_2(e)?b2(e):w2(e):kp}function C2(e){var t=e.x,n=e.y,i=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(a.prototype);return Ap(d,{x:t,y:n,width:i,height:o,top:n,right:t+i,bottom:o+n,left:t}),d}function So(e,t,n,i){return{x:e,y:t,width:n,height:i}}var $2=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=x2(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}(),A2=function(){function e(t,n){var i=C2(n);Ap(this,{target:t,contentRect:i})}return e}(),k2=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new $p,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 Wi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new $2(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 Wi(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 A2(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}(),Mp=typeof WeakMap<"u"?new WeakMap:new $p,Ep=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=v2.getInstance(),i=new k2(t,n,this);Mp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ep.prototype[e]=function(){var t;return(t=Mp.get(this))[e].apply(t,arguments)}});var M2=function(){return typeof Ps.ResizeObserver<"u"?Ps.ResizeObserver:Ep}();const Zu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],Tp=Ce({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...Zu],render(){return io("div")},mounted(){const e=this._editor=Jh(Zl.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)}),Zu.forEach(t=>{const n="on"+Wr(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new M2(()=>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)}}}),E2={class:"block"},Lp=Ce({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,i=t,o=yl(n,"yaml");return Al(()=>{i("update-yaml",o.value)}),(a,d)=>(Y(),ie("div",E2,[se(ce(Tp),{class:"vue-ace-editor",value:o.value,"onUpdate:value":d[0]||(d[0]=g=>o.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),T2={class:"block"},L2={class:"is-size-2 block"},R2={class:"field is-grouped is-grouped-centered"},I2={class:"control"},O2={class:"icon is-small"},N2={key:0,class:"block"},D2=Ce({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=ji(),i=yl(t.rule.yaml),o=ES(),a=g=>{i.value=g},d=async()=>{const g=await o.perform({yaml:i.value});n.push({name:"Rule",params:{id:g.id}})};return(g,l)=>{var s,r;const p=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("div",T2,[D("h2",L2,"Edit rule: "+Se(e.rule.id),1),se(Lp,{yaml:i.value,"onUpdate:yaml":l[0]||(l[0]=c=>i.value=c),onUpdateYaml:a},null,8,["yaml"]),D("div",R2,[D("p",I2,[D("a",{class:"button is-primary",onClick:d},[D("span",O2,[se(p,{icon:"edit"})]),l[1]||(l[1]=D("span",null,"Edit",-1))])])])]),(s=ce(o).last)!=null&&s.error?(Y(),ie("div",N2,[l[2]||(l[2]=D("hr",null,null,-1)),se(mt,{error:(r=ce(o).last)==null?void 0:r.error},null,8,["error"])])):ge("",!0)],64)}}}),F2=Ce({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=ep(),i=async()=>{await n.perform(t.id)};return ct(async()=>{await i()}),et(t,async()=>{await i()}),(o,a)=>{var d,g;return Y(),ie(Pe,null,[ce(n).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(n).isError?(Y(),xe(mt,{key:1,error:(d=ce(n).last)==null?void 0:d.error},null,8,["error"])):ge("",!0),(g=ce(n).last)!=null&&g.value?(Y(),xe(D2,{key:2,rule:ce(n).last.value},null,8,["rule"])):ge("",!0)],64)}}}),P2=Ce({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Edit rule:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,o)=>(Y(),xe(F2,{id:e.id},null,8,["id"]))}});function W2(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 o=i.reduce(function(g,l){var p=l.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(s){var r,c;return(c=(r=s.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&c!==void 0?c:0})):g},[]);if(o.length){var a=new RegExp(`
1568
+ [ ]{`+Math.min.apply(Math,o)+"}","g");i=i.map(function(g){return g.replace(a,`
1569
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var d=i[0];return t.forEach(function(g,l){var p=d.match(/(?:^|\n)( *)$/),s=p?p[1]:"",r=g;typeof g=="string"&&g.includes(`
1570
+ `)&&(r=String(g).split(`
1571
+ `).map(function(c,u){return u===0?c:""+s+c}).join(`
1572
+ `)),d+=r+i[l+1]}),d}var os,B2=new Uint8Array(16);function z2(){if(!os&&(os=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!os))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return os(B2)}const j2=/^(?:[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 H2(e){return typeof e=="string"&&j2.test(e)}var dt=[];for(var Qo=0;Qo<256;++Qo)dt.push((Qo+256).toString(16).substr(1));function U2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(dt[e[t+0]]+dt[e[t+1]]+dt[e[t+2]]+dt[e[t+3]]+"-"+dt[e[t+4]]+dt[e[t+5]]+"-"+dt[e[t+6]]+dt[e[t+7]]+"-"+dt[e[t+8]]+dt[e[t+9]]+"-"+dt[e[t+10]]+dt[e[t+11]]+dt[e[t+12]]+dt[e[t+13]]+dt[e[t+14]]+dt[e[t+15]]).toLowerCase();if(!H2(n))throw TypeError("Stringified UUID is invalid");return n}function V2(e,t,n){e=e||{};var i=e.random||(e.rng||z2)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,U2(i)}function G2(){const e=V2(),t=_o();return W2`---
1573
+ id: ${e}
1574
+ title: Title goes here
1575
+ description: Description goes here
1576
+ created_on: ${t.format("YYYY-MM-DD")}
1577
+ queries: []`}const Y2={class:"block"},K2={class:"field is-grouped is-grouped-centered"},Z2={class:"control"},X2={class:"icon is-small"},Q2={key:0,class:"block"},q2=Ce({__name:"NewRule",setup(e){const t=ji(),n=He(G2()),i=MS(),o=d=>{n.value=d},a=async()=>{const d=await i.perform({yaml:n.value});t.push({name:"Rule",params:{id:d.id}})};return(d,g)=>{var p,s;const l=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("div",Y2,[g[2]||(g[2]=D("h2",{class:"is-size-2 block"},"New rule",-1)),se(Lp,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=r=>n.value=r),onUpdateYaml:o},null,8,["yaml"]),D("div",K2,[D("p",Z2,[D("a",{class:"button is-primary",onClick:a},[D("span",X2,[se(l,{icon:"plus"})]),g[1]||(g[1]=D("span",null,"Create",-1))])])])]),(p=ce(i).last)!=null&&p.error?(Y(),ie("div",Q2,[g[3]||(g[3]=D("hr",null,null,-1)),se(mt,{error:(s=ce(i).last)==null?void 0:s.error},null,8,["error"])])):ge("",!0)],64)}}}),J2=Ce({__name:"NewRule",setup(e){const t=()=>{Cn("New rule - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),xe(q2))}}),ek={class:"buttons is-pulled-right"},tk=["href"],nk={class:"icon is-small"},ik={class:"icon is-small"},rk={class:"icon is-small"},sk={class:"icon is-small"},Rp=Ce({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,o=ke(()=>`/api/rules/${n.rule.id}`),a=ke(()=>`rule.id:"${n.rule.id}"`),d=AS(),g=kS(),l=vo(),p=Ul(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await d.perform(n.rule.id),i("delete")}catch(u){tt.isAxiosError(u)&&i("set-error",u)}},r=async()=>{try{const c=await g.perform(n.rule.id);i("set-message",c)}catch(c){tt.isAxiosError(c)&&i("set-error",c)}};return ct(()=>{l.perform({q:a.value,page:1,limit:0}),p.perform({q:a.value,page:1,limit:0})}),(c,u)=>{const h=Xe("router-link"),f=Xe("font-awesome-icon");return Y(),ie("span",ek,[se(h,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:a.value}}},{default:nt(()=>{var m,v;return[u[0]||(u[0]=D("span",null,"Alerts:",-1)),D("span",null,Se((v=(m=ce(l).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),se(h,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:a.value}}},{default:nt(()=>{var m,v;return[u[1]||(u[1]=D("span",null,"Artifacts:",-1)),D("span",null,Se((v=(m=ce(p).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),D("a",{class:"button is-link is-light is-small",href:o.value,target:"_blank"},[u[2]||(u[2]=D("span",null,"JSON",-1)),D("span",nk,[se(f,{icon:"barcode"})])],8,tk),D("button",{class:"button is-primary is-light is-small",onClick:r},[u[3]||(u[3]=D("span",null,"Search",-1)),D("span",ik,[ce(g).isRunning?(Y(),xe(f,{key:0,icon:"spinner",spin:""})):(Y(),xe(f,{key:1,icon:"magnifying-glass"}))])]),se(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:nt(()=>[u[4]||(u[4]=D("span",null,"Edit",-1)),D("span",rk,[se(f,{icon:"edit"})])]),_:1},8,["to"]),D("button",{class:"button is-light is-small",onClick:s},[u[5]||(u[5]=D("span",null,"Delete",-1)),D("span",sk,[se(f,{icon:"times"})])])])}}}),ok={class:"box"},ak={class:"block"},lk={class:"table is-fullwidth is-completely-borderless"},ck={key:0},uk={class:"help"},hk=Ce({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(),o=He(),a=s=>{i.value=s},d=()=>{i.value=void 0},g=s=>{o.value=s},l=()=>{o.value=void 0},p=()=>{n("delete")};return(s,r)=>{const c=Xe("router-link");return Y(),ie("div",ok,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),o.value?(Y(),xe(yo,{key:1,class:"block",message:o.value,disposable:!0,onDispose:l},null,8,["message"])):ge("",!0),D("div",ak,[D("p",null,[se(Rp,{rule:e.rule,onSetError:a,onDelete:p,onSetMessage:g},null,8,["rule"])]),se(c,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:nt(()=>[it(Se(e.rule.id),1)]),_:1},8,["to"])]),D("table",lk,[D("tr",null,[r[0]||(r[0]=D("th",null,"Title",-1)),D("td",null,Se(e.rule.title),1)]),D("tr",null,[r[1]||(r[1]=D("th",null,"Description",-1)),D("td",null,Se(e.rule.description),1)]),e.rule.tags.length>0?(Y(),ie("tr",ck,[r[2]||(r[2]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):ge("",!0)]),r[3]||(r[3]=D("p",{class:"block is-clearfix"},null,-1)),D("p",uk,"Created at: "+Se(e.rule.createdAt),1)])}}}),dk={key:0,class:"block"},fk={class:"help"},pk={key:1,class:"block"},gk=Ce({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,o=g=>{i("update-page",g)},a=()=>{i("refresh")},d=ke(()=>n.rules.results.length>0);return(g,l)=>d.value?(Y(),ie("div",dk,[(Y(!0),ie(Pe,null,Pt(e.rules.results,p=>(Y(),xe(hk,{rule:p,key:p.id,onRefresh:a,onDelete:a},null,8,["rule"]))),128)),se(Vl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:o},null,8,["currentPage","total","pageSize"]),D("p",fk,"("+Se(e.rules.total)+" results in total, "+Se(e.rules.results.length)+" shown)",1)])):(Y(),ie("div",pk,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),mk={class:"block"},vk={class:"field has-addons"},yk={class:"control is-expanded"},bk={class:"control"},wk={class:"icon is-small"},_k={class:"control"},Sk={class:"icon is-small"},xk={key:0,class:"content mt-3"},Ck={key:0,class:"block"},$k=Ce({__name:"RulesWrapper",setup(e){const t=Ni("page","1"),n=Ni("q",""),i=He(!1),o=Jf(),a=async()=>{const s={q:n.value,page:parseInt(t.value)};return await o.perform(s)},d=s=>{t.value=s.toString()},g=async()=>{t.value="1",await a()},l=g,p=Ur(i);return ct(async()=>{await a()}),et(t,async()=>{await a()}),et(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(s,r)=>{var h,f;const c=Xe("font-awesome-icon"),u=Xe("router-link");return Y(),ie(Pe,null,[D("div",mk,[D("div",vk,[D("p",yk,[_l(D("input",{class:"input",type:"text","onUpdate:modelValue":r[0]||(r[0]=m=>lt(n)?n.value=m:null)},null,512),[[Ll,ce(n)]])]),D("p",bk,[D("a",{class:"button is-primary",onClick:g},[D("span",wk,[se(c,{icon:"search"})]),r[2]||(r[2]=D("span",null,"Search",-1))])]),D("p",_k,[D("a",{class:"button is-info",onClick:r[1]||(r[1]=m=>ce(p)())},[D("span",Sk,[se(c,{icon:"question"})]),r[3]||(r[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",xk,[r[5]||(r[5]=Ml('<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>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),D("ul",null,[D("li",null,[se(u,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:nt(()=>r[4]||(r[4]=[it("title:foo AND created_at >= 2020-01-01")])),_:1})])])])):ge("",!0)]),ce(o).performCount>0?(Y(),ie("div",Ck,[ce(o).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(o).isError?(Y(),xe(mt,{key:1,error:(h=ce(o).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(f=ce(o).last)!=null&&f.value?(Y(),xe(gk,{key:2,rules:ce(o).last.value,onUpdatePage:d,onRefresh:ce(l)},null,8,["rules","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),Ak=Ce({__name:"RulesView",setup(e){return Cn("Rules - Mihari"),(t,n)=>(Y(),xe($k))}}),kk={class:"block"},Mk=Ce({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(Y(),ie("div",kk,[se(ce(Tp),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),Ek={class:"block"},Tk={class:"is-size-2 block"},Lk={class:"block is-clearfix"},Rk={class:"block"},Ik=Ce({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,i=He(),o=He(),a=()=>{n("delete")},d=s=>{i.value=s},g=()=>{i.value=void 0},l=s=>{s.queued?o.value=s:n("refresh")},p=()=>{o.value=void 0};return(s,r)=>(Y(),ie(Pe,null,[D("div",Ek,[D("h2",Tk,Se(e.rule.id),1),i.value?(Y(),xe(mt,{key:0,class:"mt-3 mb-3",error:i.value,disposable:!0,onDispose:g},null,8,["error"])):ge("",!0),o.value?(Y(),xe(yo,{key:1,class:"block",message:o.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),D("p",Lk,[se(Rp,{rule:e.rule,onSetMessage:l,onDelete:a,onSetError:d},null,8,["rule"])]),se(Mk,{yaml:e.rule.yaml},null,8,["yaml"])]),r[1]||(r[1]=D("hr",null,null,-1)),D("div",Rk,[r[0]||(r[0]=D("h2",{class:"is-size-2 block"},"Alerts",-1)),se(cp,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),Ok=Ce({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=ep(),i=ji(),o=async()=>{await n.perform(t.id)},a=async()=>{await o()},d=()=>{i.push("/")};return ct(async()=>{await o()}),et(t,async()=>{await o()}),(g,l)=>{var p,s;return Y(),ie(Pe,null,[ce(n).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(n).isError?(Y(),xe(mt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(s=ce(n).last)!=null&&s.value?(Y(),xe(Ik,{key:2,rule:ce(n).last.value,onRefresh:a,onDelete:d},null,8,["rule"])):ge("",!0)],64)}}}),Nk=Ce({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Rule:${t.id} - Mihari`)};return ct(()=>{n()}),et(()=>t.id,()=>{n()}),(i,o)=>(Y(),xe(Ok,{id:e.id},null,8,["id"]))}}),Dk=[{path:"/",name:"Alerts",component:nC},{path:"/alerts/:id",name:"Alert",component:dC,props:!0},{path:"/config",name:"Config",component:a2},{path:"/artifacts/",name:"Artifacts",component:GC},{path:"/artifacts/:id",name:"Artifact",component:KA,props:!0},{path:"/rules",name:"Rules",component:Ak},{path:"/rules/new",name:"NewRule",component:J2},{path:"/rules/:id",name:"Rule",component:Nk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:P2,props:!0}],Fk=n1({history:Tb(),routes:Dk});_m.add(km,Hm,Bm,$m,jm,Em,xm,Nm,Om,Pm,Fm,Am,kh,Im,Rm,Tm,zm,Wm,Lm);const Ip=c0(q0);Ip.component("font-awesome-icon",x0);Ip.use(Fk).mount("#app");