mihari 6.0.0 → 6.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -0
  3. data/lib/mihari/actor.rb +4 -6
  4. data/lib/mihari/analyzers/base.rb +10 -3
  5. data/lib/mihari/analyzers/circl.rb +1 -1
  6. data/lib/mihari/analyzers/dnstwister.rb +1 -1
  7. data/lib/mihari/analyzers/hunterhow.rb +1 -1
  8. data/lib/mihari/analyzers/otx.rb +1 -1
  9. data/lib/mihari/analyzers/passivetotal.rb +1 -1
  10. data/lib/mihari/analyzers/pulsedive.rb +1 -1
  11. data/lib/mihari/analyzers/securitytrails.rb +1 -1
  12. data/lib/mihari/analyzers/virustotal.rb +1 -1
  13. data/lib/mihari/clients/google_public_dns.rb +31 -0
  14. data/lib/mihari/config.rb +10 -2
  15. data/lib/mihari/{type_checker.rb → data_type.rb} +32 -37
  16. data/lib/mihari/database.rb +8 -4
  17. data/lib/mihari/emitters/misp.rb +2 -2
  18. data/lib/mihari/emitters/slack.rb +5 -5
  19. data/lib/mihari/emitters/the_hive.rb +2 -2
  20. data/lib/mihari/enrichers/base.rb +2 -0
  21. data/lib/mihari/enrichers/google_public_dns.rb +4 -21
  22. data/lib/mihari/enrichers/ipinfo.rb +1 -0
  23. data/lib/mihari/enrichers/shodan.rb +1 -0
  24. data/lib/mihari/enrichers/whois.rb +11 -16
  25. data/lib/mihari/entities/artifact.rb +1 -0
  26. data/lib/mihari/mixins/falsepositive.rb +2 -2
  27. data/lib/mihari/models/artifact.rb +14 -6
  28. data/lib/mihari/models/dns.rb +3 -8
  29. data/lib/mihari/rule.rb +20 -7
  30. data/lib/mihari/schemas/options.rb +5 -1
  31. data/lib/mihari/structs/google_public_dns.rb +4 -8
  32. data/lib/mihari/version.rb +1 -1
  33. data/lib/mihari/web/app.rb +2 -2
  34. data/lib/mihari/web/public/assets/index-1d77cd61.js +1756 -0
  35. data/lib/mihari/web/public/assets/{index-56fc2187.css → index-4c8509ee.css} +1 -1
  36. data/lib/mihari/web/public/index.html +2 -2
  37. data/lib/mihari/web/public/redoc-static.html +5 -5
  38. data/lib/mihari.rb +10 -10
  39. data/mihari.gemspec +5 -4
  40. data/mkdocs.yml +1 -0
  41. data/requirements.txt +1 -1
  42. metadata +23 -50
  43. data/lib/mihari/web/public/assets/index-07cddfcd.js +0 -1750
@@ -1,1750 +0,0 @@
1
- var gp=Object.defineProperty;var mp=(e,t,n)=>t in e?gp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>(mp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))i(p);new MutationObserver(p=>{for(const u of p)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function n(p){const u={};return p.integrity&&(u.integrity=p.integrity),p.referrerPolicy&&(u.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?u.credentials="include":p.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(p){if(p.ep)return;p.ep=!0;const u=n(p);fetch(p.href,u)}})();function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tl(Object(n),!0).forEach(function(i){et(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function lo(e){"@babel/helpers - typeof";return lo=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},lo(e)}function vp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ll(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function yp(e,t,n){return t&&Ll(e.prototype,t),n&&Ll(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _a(e,t){return wp(e)||_p(e,t)||xu(e,t)||Sp()}function $r(e){return bp(e)||$p(e)||xu(e)||Cp()}function bp(e){if(Array.isArray(e))return Is(e)}function wp(e){if(Array.isArray(e))return e}function $p(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _p(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],p=!0,u=!1,d,g;try{for(n=n.call(e);!(p=(d=n.next()).done)&&(i.push(d.value),!(t&&i.length===t));p=!0);}catch(s){u=!0,g=s}finally{try{!p&&n.return!=null&&n.return()}finally{if(u)throw g}}return i}}function xu(e,t){if(e){if(typeof e=="string")return Is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Is(e,t)}}function Is(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 Cp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ml=function(){},Ca={},ku={},Eu=null,Ru={mark:Ml,measure:Ml};try{typeof window<"u"&&(Ca=window),typeof document<"u"&&(ku=document),typeof MutationObserver<"u"&&(Eu=MutationObserver),typeof performance<"u"&&(Ru=performance)}catch{}var Ap=Ca.navigator||{},Ol=Ap.userAgent,Il=Ol===void 0?"":Ol,xn=Ca,Ve=ku,Fl=Eu,Mr=Ru;xn.document;var ln=!!Ve.documentElement&&!!Ve.head&&typeof Ve.addEventListener=="function"&&typeof Ve.createElement=="function",Tu=~Il.indexOf("MSIE")||~Il.indexOf("Trident/"),Or,Ir,Fr,Nr,Pr,on="___FONT_AWESOME___",Fs=16,Lu="fa",Mu="svg-inline--fa",Yn="data-fa-i2svg",Ns="data-fa-pseudo-element",xp="data-fa-pseudo-element-pending",Sa="data-prefix",Aa="data-icon",Nl="fontawesome-i2svg",kp="async",Ep=["HTML","HEAD","STYLE","SCRIPT"],Ou=function(){try{return!0}catch{return!1}}(),ze="classic",Xe="sharp",xa=[ze,Xe];function _r(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[ze]}})}var rr=_r((Or={},et(Or,ze,{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",fak:"kit","fa-kit":"kit"}),et(Or,Xe,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Or)),or=_r((Ir={},et(Ir,ze,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),et(Ir,Xe,{solid:"fass",regular:"fasr",light:"fasl"}),Ir)),sr=_r((Fr={},et(Fr,ze,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),et(Fr,Xe,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Fr)),Rp=_r((Nr={},et(Nr,ze,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),et(Nr,Xe,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Nr)),Tp=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Iu="fa-layers-text",Lp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Mp=_r((Pr={},et(Pr,ze,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),et(Pr,Xe,{900:"fass",400:"fasr",300:"fasl"}),Pr)),Fu=[1,2,3,4,5,6,7,8,9,10],Op=Fu.concat([11,12,13,14,15,16,17,18,19,20]),Ip=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Hn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ar=new Set;Object.keys(or[ze]).map(ar.add.bind(ar));Object.keys(or[Xe]).map(ar.add.bind(ar));var Fp=[].concat(xa,$r(ar),["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",Hn.GROUP,Hn.SWAP_OPACITY,Hn.PRIMARY,Hn.SECONDARY]).concat(Fu.map(function(e){return"".concat(e,"x")})).concat(Op.map(function(e){return"w-".concat(e)})),Ki=xn.FontAwesomeConfig||{};function Np(e){var t=Ve.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Pp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ve&&typeof Ve.querySelector=="function"){var Dp=[["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"]];Dp.forEach(function(e){var t=_a(e,2),n=t[0],i=t[1],p=Pp(Np(n));p!=null&&(Ki[i]=p)})}var Nu={styleDefault:"solid",familyDefault:"classic",cssPrefix:Lu,replacementClass:Mu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ki.familyPrefix&&(Ki.cssPrefix=Ki.familyPrefix);var gi=pe(pe({},Nu),Ki);gi.autoReplaceSvg||(gi.observeMutations=!1);var ye={};Object.keys(Nu).forEach(function(e){Object.defineProperty(ye,e,{enumerable:!0,set:function(n){gi[e]=n,Yi.forEach(function(i){return i(ye)})},get:function(){return gi[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(t){gi.cssPrefix=t,Yi.forEach(function(n){return n(ye)})},get:function(){return gi.cssPrefix}});xn.FontAwesomeConfig=ye;var Yi=[];function Bp(e){return Yi.push(e),function(){Yi.splice(Yi.indexOf(e),1)}}var pn=Fs,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Wp(e){if(!(!e||!ln)){var t=Ve.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ve.head.childNodes,i=null,p=n.length-1;p>-1;p--){var u=n[p],d=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(i=u)}return Ve.head.insertBefore(t,i),e}}var Hp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function lr(){for(var e=12,t="";e-- >0;)t+=Hp[Math.random()*62|0];return t}function ki(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ka(e){return e.classList?ki(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Pu(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Up(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Pu(e[n]),'" ')},"").trim()}function Ro(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ea(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}function zp(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,p={transform:"translate(".concat(n/2," 256)")},u="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)"),s={transform:"".concat(u," ").concat(d," ").concat(g)},h={transform:"translate(".concat(i/2*-1," -256)")};return{outer:p,inner:s,path:h}}function Vp(e){var t=e.transform,n=e.width,i=n===void 0?Fs:n,p=e.height,u=p===void 0?Fs:p,d=e.startCentered,g=d===void 0?!1:d,s="";return g&&Tu?s+="translate(".concat(t.x/pn-i/2,"em, ").concat(t.y/pn-u/2,"em) "):g?s+="translate(calc(-50% + ".concat(t.x/pn,"em), calc(-50% + ").concat(t.y/pn,"em)) "):s+="translate(".concat(t.x/pn,"em, ").concat(t.y/pn,"em) "),s+="scale(".concat(t.size/pn*(t.flipX?-1:1),", ").concat(t.size/pn*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var jp=`:root, :host {
4
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
5
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
6
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
7
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
8
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
9
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
10
- --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
11
- --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
12
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
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
- -webkit-transform-origin: center center;
85
- transform-origin: center center;
86
- }
87
-
88
- .fa-layers-text {
89
- left: 50%;
90
- top: 50%;
91
- -webkit-transform: translate(-50%, -50%);
92
- transform: translate(-50%, -50%);
93
- -webkit-transform-origin: center center;
94
- transform-origin: center center;
95
- }
96
-
97
- .fa-layers-counter {
98
- background-color: var(--fa-counter-background-color, #ff253a);
99
- border-radius: var(--fa-counter-border-radius, 1em);
100
- box-sizing: border-box;
101
- color: var(--fa-inverse, #fff);
102
- line-height: var(--fa-counter-line-height, 1);
103
- max-width: var(--fa-counter-max-width, 5em);
104
- min-width: var(--fa-counter-min-width, 1.5em);
105
- overflow: hidden;
106
- padding: var(--fa-counter-padding, 0.25em 0.5em);
107
- right: var(--fa-right, 0);
108
- text-overflow: ellipsis;
109
- top: var(--fa-top, 0);
110
- -webkit-transform: scale(var(--fa-counter-scale, 0.25));
111
- transform: scale(var(--fa-counter-scale, 0.25));
112
- -webkit-transform-origin: top right;
113
- transform-origin: top right;
114
- }
115
-
116
- .fa-layers-bottom-right {
117
- bottom: var(--fa-bottom, 0);
118
- right: var(--fa-right, 0);
119
- top: auto;
120
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
121
- transform: scale(var(--fa-layers-scale, 0.25));
122
- -webkit-transform-origin: bottom right;
123
- transform-origin: bottom right;
124
- }
125
-
126
- .fa-layers-bottom-left {
127
- bottom: var(--fa-bottom, 0);
128
- left: var(--fa-left, 0);
129
- right: auto;
130
- top: auto;
131
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
132
- transform: scale(var(--fa-layers-scale, 0.25));
133
- -webkit-transform-origin: bottom left;
134
- transform-origin: bottom left;
135
- }
136
-
137
- .fa-layers-top-right {
138
- top: var(--fa-top, 0);
139
- right: var(--fa-right, 0);
140
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
141
- transform: scale(var(--fa-layers-scale, 0.25));
142
- -webkit-transform-origin: top right;
143
- transform-origin: top right;
144
- }
145
-
146
- .fa-layers-top-left {
147
- left: var(--fa-left, 0);
148
- right: auto;
149
- top: var(--fa-top, 0);
150
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
151
- transform: scale(var(--fa-layers-scale, 0.25));
152
- -webkit-transform-origin: top left;
153
- transform-origin: top left;
154
- }
155
-
156
- .fa-1x {
157
- font-size: 1em;
158
- }
159
-
160
- .fa-2x {
161
- font-size: 2em;
162
- }
163
-
164
- .fa-3x {
165
- font-size: 3em;
166
- }
167
-
168
- .fa-4x {
169
- font-size: 4em;
170
- }
171
-
172
- .fa-5x {
173
- font-size: 5em;
174
- }
175
-
176
- .fa-6x {
177
- font-size: 6em;
178
- }
179
-
180
- .fa-7x {
181
- font-size: 7em;
182
- }
183
-
184
- .fa-8x {
185
- font-size: 8em;
186
- }
187
-
188
- .fa-9x {
189
- font-size: 9em;
190
- }
191
-
192
- .fa-10x {
193
- font-size: 10em;
194
- }
195
-
196
- .fa-2xs {
197
- font-size: 0.625em;
198
- line-height: 0.1em;
199
- vertical-align: 0.225em;
200
- }
201
-
202
- .fa-xs {
203
- font-size: 0.75em;
204
- line-height: 0.0833333337em;
205
- vertical-align: 0.125em;
206
- }
207
-
208
- .fa-sm {
209
- font-size: 0.875em;
210
- line-height: 0.0714285718em;
211
- vertical-align: 0.0535714295em;
212
- }
213
-
214
- .fa-lg {
215
- font-size: 1.25em;
216
- line-height: 0.05em;
217
- vertical-align: -0.075em;
218
- }
219
-
220
- .fa-xl {
221
- font-size: 1.5em;
222
- line-height: 0.0416666682em;
223
- vertical-align: -0.125em;
224
- }
225
-
226
- .fa-2xl {
227
- font-size: 2em;
228
- line-height: 0.03125em;
229
- vertical-align: -0.1875em;
230
- }
231
-
232
- .fa-fw {
233
- text-align: center;
234
- width: 1.25em;
235
- }
236
-
237
- .fa-ul {
238
- list-style-type: none;
239
- margin-left: var(--fa-li-margin, 2.5em);
240
- padding-left: 0;
241
- }
242
- .fa-ul > li {
243
- position: relative;
244
- }
245
-
246
- .fa-li {
247
- left: calc(var(--fa-li-width, 2em) * -1);
248
- position: absolute;
249
- text-align: center;
250
- width: var(--fa-li-width, 2em);
251
- line-height: inherit;
252
- }
253
-
254
- .fa-border {
255
- border-color: var(--fa-border-color, #eee);
256
- border-radius: var(--fa-border-radius, 0.1em);
257
- border-style: var(--fa-border-style, solid);
258
- border-width: var(--fa-border-width, 0.08em);
259
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
260
- }
261
-
262
- .fa-pull-left {
263
- float: left;
264
- margin-right: var(--fa-pull-margin, 0.3em);
265
- }
266
-
267
- .fa-pull-right {
268
- float: right;
269
- margin-left: var(--fa-pull-margin, 0.3em);
270
- }
271
-
272
- .fa-beat {
273
- -webkit-animation-name: fa-beat;
274
- animation-name: fa-beat;
275
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
276
- animation-delay: var(--fa-animation-delay, 0s);
277
- -webkit-animation-direction: var(--fa-animation-direction, normal);
278
- animation-direction: var(--fa-animation-direction, normal);
279
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
280
- animation-duration: var(--fa-animation-duration, 1s);
281
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
282
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
283
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
284
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
285
- }
286
-
287
- .fa-bounce {
288
- -webkit-animation-name: fa-bounce;
289
- animation-name: fa-bounce;
290
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
291
- animation-delay: var(--fa-animation-delay, 0s);
292
- -webkit-animation-direction: var(--fa-animation-direction, normal);
293
- animation-direction: var(--fa-animation-direction, normal);
294
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
295
- animation-duration: var(--fa-animation-duration, 1s);
296
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
297
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
298
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
299
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
300
- }
301
-
302
- .fa-fade {
303
- -webkit-animation-name: fa-fade;
304
- animation-name: fa-fade;
305
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
306
- animation-delay: var(--fa-animation-delay, 0s);
307
- -webkit-animation-direction: var(--fa-animation-direction, normal);
308
- animation-direction: var(--fa-animation-direction, normal);
309
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
310
- animation-duration: var(--fa-animation-duration, 1s);
311
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
312
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
313
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
314
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
315
- }
316
-
317
- .fa-beat-fade {
318
- -webkit-animation-name: fa-beat-fade;
319
- animation-name: fa-beat-fade;
320
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
321
- animation-delay: var(--fa-animation-delay, 0s);
322
- -webkit-animation-direction: var(--fa-animation-direction, normal);
323
- animation-direction: var(--fa-animation-direction, normal);
324
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
325
- animation-duration: var(--fa-animation-duration, 1s);
326
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
327
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
328
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
329
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
330
- }
331
-
332
- .fa-flip {
333
- -webkit-animation-name: fa-flip;
334
- animation-name: fa-flip;
335
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
336
- animation-delay: var(--fa-animation-delay, 0s);
337
- -webkit-animation-direction: var(--fa-animation-direction, normal);
338
- animation-direction: var(--fa-animation-direction, normal);
339
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
340
- animation-duration: var(--fa-animation-duration, 1s);
341
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
342
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
343
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
344
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
345
- }
346
-
347
- .fa-shake {
348
- -webkit-animation-name: fa-shake;
349
- animation-name: fa-shake;
350
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
351
- animation-delay: var(--fa-animation-delay, 0s);
352
- -webkit-animation-direction: var(--fa-animation-direction, normal);
353
- animation-direction: var(--fa-animation-direction, normal);
354
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
355
- animation-duration: var(--fa-animation-duration, 1s);
356
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
357
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
358
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
359
- animation-timing-function: var(--fa-animation-timing, linear);
360
- }
361
-
362
- .fa-spin {
363
- -webkit-animation-name: fa-spin;
364
- animation-name: fa-spin;
365
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
366
- animation-delay: var(--fa-animation-delay, 0s);
367
- -webkit-animation-direction: var(--fa-animation-direction, normal);
368
- animation-direction: var(--fa-animation-direction, normal);
369
- -webkit-animation-duration: var(--fa-animation-duration, 2s);
370
- animation-duration: var(--fa-animation-duration, 2s);
371
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
372
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
373
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
374
- animation-timing-function: var(--fa-animation-timing, linear);
375
- }
376
-
377
- .fa-spin-reverse {
378
- --fa-animation-direction: reverse;
379
- }
380
-
381
- .fa-pulse,
382
- .fa-spin-pulse {
383
- -webkit-animation-name: fa-spin;
384
- animation-name: fa-spin;
385
- -webkit-animation-direction: var(--fa-animation-direction, normal);
386
- animation-direction: var(--fa-animation-direction, normal);
387
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
388
- animation-duration: var(--fa-animation-duration, 1s);
389
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
390
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
391
- -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
392
- animation-timing-function: var(--fa-animation-timing, steps(8));
393
- }
394
-
395
- @media (prefers-reduced-motion: reduce) {
396
- .fa-beat,
397
- .fa-bounce,
398
- .fa-fade,
399
- .fa-beat-fade,
400
- .fa-flip,
401
- .fa-pulse,
402
- .fa-shake,
403
- .fa-spin,
404
- .fa-spin-pulse {
405
- -webkit-animation-delay: -1ms;
406
- animation-delay: -1ms;
407
- -webkit-animation-duration: 1ms;
408
- animation-duration: 1ms;
409
- -webkit-animation-iteration-count: 1;
410
- animation-iteration-count: 1;
411
- -webkit-transition-delay: 0s;
412
- transition-delay: 0s;
413
- -webkit-transition-duration: 0s;
414
- transition-duration: 0s;
415
- }
416
- }
417
- @-webkit-keyframes fa-beat {
418
- 0%, 90% {
419
- -webkit-transform: scale(1);
420
- transform: scale(1);
421
- }
422
- 45% {
423
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
424
- transform: scale(var(--fa-beat-scale, 1.25));
425
- }
426
- }
427
- @keyframes fa-beat {
428
- 0%, 90% {
429
- -webkit-transform: scale(1);
430
- transform: scale(1);
431
- }
432
- 45% {
433
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
434
- transform: scale(var(--fa-beat-scale, 1.25));
435
- }
436
- }
437
- @-webkit-keyframes fa-bounce {
438
- 0% {
439
- -webkit-transform: scale(1, 1) translateY(0);
440
- transform: scale(1, 1) translateY(0);
441
- }
442
- 10% {
443
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
444
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
445
- }
446
- 30% {
447
- -webkit-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));
448
- 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));
449
- }
450
- 50% {
451
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
452
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
453
- }
454
- 57% {
455
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
456
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
457
- }
458
- 64% {
459
- -webkit-transform: scale(1, 1) translateY(0);
460
- transform: scale(1, 1) translateY(0);
461
- }
462
- 100% {
463
- -webkit-transform: scale(1, 1) translateY(0);
464
- transform: scale(1, 1) translateY(0);
465
- }
466
- }
467
- @keyframes fa-bounce {
468
- 0% {
469
- -webkit-transform: scale(1, 1) translateY(0);
470
- transform: scale(1, 1) translateY(0);
471
- }
472
- 10% {
473
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
474
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
475
- }
476
- 30% {
477
- -webkit-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));
478
- 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));
479
- }
480
- 50% {
481
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
482
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
483
- }
484
- 57% {
485
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
486
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
487
- }
488
- 64% {
489
- -webkit-transform: scale(1, 1) translateY(0);
490
- transform: scale(1, 1) translateY(0);
491
- }
492
- 100% {
493
- -webkit-transform: scale(1, 1) translateY(0);
494
- transform: scale(1, 1) translateY(0);
495
- }
496
- }
497
- @-webkit-keyframes fa-fade {
498
- 50% {
499
- opacity: var(--fa-fade-opacity, 0.4);
500
- }
501
- }
502
- @keyframes fa-fade {
503
- 50% {
504
- opacity: var(--fa-fade-opacity, 0.4);
505
- }
506
- }
507
- @-webkit-keyframes fa-beat-fade {
508
- 0%, 100% {
509
- opacity: var(--fa-beat-fade-opacity, 0.4);
510
- -webkit-transform: scale(1);
511
- transform: scale(1);
512
- }
513
- 50% {
514
- opacity: 1;
515
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
516
- transform: scale(var(--fa-beat-fade-scale, 1.125));
517
- }
518
- }
519
- @keyframes fa-beat-fade {
520
- 0%, 100% {
521
- opacity: var(--fa-beat-fade-opacity, 0.4);
522
- -webkit-transform: scale(1);
523
- transform: scale(1);
524
- }
525
- 50% {
526
- opacity: 1;
527
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
528
- transform: scale(var(--fa-beat-fade-scale, 1.125));
529
- }
530
- }
531
- @-webkit-keyframes fa-flip {
532
- 50% {
533
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
534
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
535
- }
536
- }
537
- @keyframes fa-flip {
538
- 50% {
539
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
540
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
541
- }
542
- }
543
- @-webkit-keyframes fa-shake {
544
- 0% {
545
- -webkit-transform: rotate(-15deg);
546
- transform: rotate(-15deg);
547
- }
548
- 4% {
549
- -webkit-transform: rotate(15deg);
550
- transform: rotate(15deg);
551
- }
552
- 8%, 24% {
553
- -webkit-transform: rotate(-18deg);
554
- transform: rotate(-18deg);
555
- }
556
- 12%, 28% {
557
- -webkit-transform: rotate(18deg);
558
- transform: rotate(18deg);
559
- }
560
- 16% {
561
- -webkit-transform: rotate(-22deg);
562
- transform: rotate(-22deg);
563
- }
564
- 20% {
565
- -webkit-transform: rotate(22deg);
566
- transform: rotate(22deg);
567
- }
568
- 32% {
569
- -webkit-transform: rotate(-12deg);
570
- transform: rotate(-12deg);
571
- }
572
- 36% {
573
- -webkit-transform: rotate(12deg);
574
- transform: rotate(12deg);
575
- }
576
- 40%, 100% {
577
- -webkit-transform: rotate(0deg);
578
- transform: rotate(0deg);
579
- }
580
- }
581
- @keyframes fa-shake {
582
- 0% {
583
- -webkit-transform: rotate(-15deg);
584
- transform: rotate(-15deg);
585
- }
586
- 4% {
587
- -webkit-transform: rotate(15deg);
588
- transform: rotate(15deg);
589
- }
590
- 8%, 24% {
591
- -webkit-transform: rotate(-18deg);
592
- transform: rotate(-18deg);
593
- }
594
- 12%, 28% {
595
- -webkit-transform: rotate(18deg);
596
- transform: rotate(18deg);
597
- }
598
- 16% {
599
- -webkit-transform: rotate(-22deg);
600
- transform: rotate(-22deg);
601
- }
602
- 20% {
603
- -webkit-transform: rotate(22deg);
604
- transform: rotate(22deg);
605
- }
606
- 32% {
607
- -webkit-transform: rotate(-12deg);
608
- transform: rotate(-12deg);
609
- }
610
- 36% {
611
- -webkit-transform: rotate(12deg);
612
- transform: rotate(12deg);
613
- }
614
- 40%, 100% {
615
- -webkit-transform: rotate(0deg);
616
- transform: rotate(0deg);
617
- }
618
- }
619
- @-webkit-keyframes fa-spin {
620
- 0% {
621
- -webkit-transform: rotate(0deg);
622
- transform: rotate(0deg);
623
- }
624
- 100% {
625
- -webkit-transform: rotate(360deg);
626
- transform: rotate(360deg);
627
- }
628
- }
629
- @keyframes fa-spin {
630
- 0% {
631
- -webkit-transform: rotate(0deg);
632
- transform: rotate(0deg);
633
- }
634
- 100% {
635
- -webkit-transform: rotate(360deg);
636
- transform: rotate(360deg);
637
- }
638
- }
639
- .fa-rotate-90 {
640
- -webkit-transform: rotate(90deg);
641
- transform: rotate(90deg);
642
- }
643
-
644
- .fa-rotate-180 {
645
- -webkit-transform: rotate(180deg);
646
- transform: rotate(180deg);
647
- }
648
-
649
- .fa-rotate-270 {
650
- -webkit-transform: rotate(270deg);
651
- transform: rotate(270deg);
652
- }
653
-
654
- .fa-flip-horizontal {
655
- -webkit-transform: scale(-1, 1);
656
- transform: scale(-1, 1);
657
- }
658
-
659
- .fa-flip-vertical {
660
- -webkit-transform: scale(1, -1);
661
- transform: scale(1, -1);
662
- }
663
-
664
- .fa-flip-both,
665
- .fa-flip-horizontal.fa-flip-vertical {
666
- -webkit-transform: scale(-1, -1);
667
- transform: scale(-1, -1);
668
- }
669
-
670
- .fa-rotate-by {
671
- -webkit-transform: rotate(var(--fa-rotate-angle, none));
672
- transform: rotate(var(--fa-rotate-angle, none));
673
- }
674
-
675
- .fa-stack {
676
- display: inline-block;
677
- vertical-align: middle;
678
- height: 2em;
679
- position: relative;
680
- width: 2.5em;
681
- }
682
-
683
- .fa-stack-1x,
684
- .fa-stack-2x {
685
- bottom: 0;
686
- left: 0;
687
- margin: auto;
688
- position: absolute;
689
- right: 0;
690
- top: 0;
691
- z-index: var(--fa-stack-z-index, auto);
692
- }
693
-
694
- .svg-inline--fa.fa-stack-1x {
695
- height: 1em;
696
- width: 1.25em;
697
- }
698
- .svg-inline--fa.fa-stack-2x {
699
- height: 2em;
700
- width: 2.5em;
701
- }
702
-
703
- .fa-inverse {
704
- color: var(--fa-inverse, #fff);
705
- }
706
-
707
- .sr-only,
708
- .fa-sr-only {
709
- position: absolute;
710
- width: 1px;
711
- height: 1px;
712
- padding: 0;
713
- margin: -1px;
714
- overflow: hidden;
715
- clip: rect(0, 0, 0, 0);
716
- white-space: nowrap;
717
- border-width: 0;
718
- }
719
-
720
- .sr-only-focusable:not(:focus),
721
- .fa-sr-only-focusable:not(:focus) {
722
- position: absolute;
723
- width: 1px;
724
- height: 1px;
725
- padding: 0;
726
- margin: -1px;
727
- overflow: hidden;
728
- clip: rect(0, 0, 0, 0);
729
- white-space: nowrap;
730
- border-width: 0;
731
- }
732
-
733
- .svg-inline--fa .fa-primary {
734
- fill: var(--fa-primary-color, currentColor);
735
- opacity: var(--fa-primary-opacity, 1);
736
- }
737
-
738
- .svg-inline--fa .fa-secondary {
739
- fill: var(--fa-secondary-color, currentColor);
740
- opacity: var(--fa-secondary-opacity, 0.4);
741
- }
742
-
743
- .svg-inline--fa.fa-swap-opacity .fa-primary {
744
- opacity: var(--fa-secondary-opacity, 0.4);
745
- }
746
-
747
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
748
- opacity: var(--fa-primary-opacity, 1);
749
- }
750
-
751
- .svg-inline--fa mask .fa-primary,
752
- .svg-inline--fa mask .fa-secondary {
753
- fill: black;
754
- }
755
-
756
- .fad.fa-inverse,
757
- .fa-duotone.fa-inverse {
758
- color: var(--fa-inverse, #fff);
759
- }`;function Du(){var e=Lu,t=Mu,n=ye.cssPrefix,i=ye.replacementClass,p=jp;if(n!==e||i!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");p=p.replace(u,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(g,".".concat(i))}return p}var Pl=!1;function fs(){ye.autoAddCss&&!Pl&&(Wp(Du()),Pl=!0)}var Gp={mixout:function(){return{dom:{css:Du,insertCss:fs}}},hooks:function(){return{beforeDOMElementCreation:function(){fs()},beforeI2svg:function(){fs()}}}},sn=xn||{};sn[on]||(sn[on]={});sn[on].styles||(sn[on].styles={});sn[on].hooks||(sn[on].hooks={});sn[on].shims||(sn[on].shims=[]);var It=sn[on],Bu=[],Kp=function e(){Ve.removeEventListener("DOMContentLoaded",e),co=1,Bu.map(function(t){return t()})},co=!1;ln&&(co=(Ve.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ve.readyState),co||Ve.addEventListener("DOMContentLoaded",Kp));function Yp(e){ln&&(co?setTimeout(e,0):Bu.push(e))}function Cr(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,p=e.children,u=p===void 0?[]:p;return typeof e=="string"?Pu(e):"<".concat(t," ").concat(Up(i),">").concat(u.map(Cr).join(""),"</").concat(t,">")}function Dl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Xp=function(t,n){return function(i,p,u,d){return t.call(n,i,p,u,d)}},ds=function(t,n,i,p){var u=Object.keys(t),d=u.length,g=p!==void 0?Xp(n,p):n,s,h,o;for(i===void 0?(s=1,o=t[u[0]]):(s=0,o=i);s<d;s++)h=u[s],o=g(o,t[h],h,t);return o};function Zp(e){for(var t=[],n=0,i=e.length;n<i;){var p=e.charCodeAt(n++);if(p>=55296&&p<=56319&&n<i){var u=e.charCodeAt(n++);(u&64512)==56320?t.push(((p&1023)<<10)+(u&1023)+65536):(t.push(p),n--)}else t.push(p)}return t}function Ps(e){var t=Zp(e);return t.length===1?t[0].toString(16):null}function Qp(e,t){var n=e.length,i=e.charCodeAt(t),p;return i>=55296&&i<=56319&&n>t+1&&(p=e.charCodeAt(t+1),p>=56320&&p<=57343)?(i-55296)*1024+p-56320+65536:i}function Bl(e){return Object.keys(e).reduce(function(t,n){var i=e[n],p=!!i.icon;return p?t[i.iconName]=i.icon:t[n]=i,t},{})}function Ds(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,p=i===void 0?!1:i,u=Bl(t);typeof It.hooks.addPack=="function"&&!p?It.hooks.addPack(e,Bl(t)):It.styles[e]=pe(pe({},It.styles[e]||{}),u),e==="fas"&&Ds("fa",t)}var Dr,Br,Wr,si=It.styles,Jp=It.shims,qp=(Dr={},et(Dr,ze,Object.values(sr[ze])),et(Dr,Xe,Object.values(sr[Xe])),Dr),Ra=null,Wu={},Hu={},Uu={},zu={},Vu={},eg=(Br={},et(Br,ze,Object.keys(rr[ze])),et(Br,Xe,Object.keys(rr[Xe])),Br);function tg(e){return~Fp.indexOf(e)}function ng(e,t){var n=t.split("-"),i=n[0],p=n.slice(1).join("-");return i===e&&p!==""&&!tg(p)?p:null}var ju=function(){var t=function(u){return ds(si,function(d,g,s){return d[s]=ds(g,u,{}),d},{})};Wu=t(function(p,u,d){if(u[3]&&(p[u[3]]=d),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){p[s.toString(16)]=d})}return p}),Hu=t(function(p,u,d){if(p[d]=d,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){p[s]=d})}return p}),Vu=t(function(p,u,d){var g=u[2];return p[d]=d,g.forEach(function(s){p[s]=d}),p});var n="far"in si||ye.autoFetchSvg,i=ds(Jp,function(p,u){var d=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof d=="string"&&(p.names[d]={prefix:g,iconName:s}),typeof d=="number"&&(p.unicodes[d.toString(16)]={prefix:g,iconName:s}),p},{names:{},unicodes:{}});Uu=i.names,zu=i.unicodes,Ra=To(ye.styleDefault,{family:ye.familyDefault})};Bp(function(e){Ra=To(e.styleDefault,{family:ye.familyDefault})});ju();function Ta(e,t){return(Wu[e]||{})[t]}function ig(e,t){return(Hu[e]||{})[t]}function Un(e,t){return(Vu[e]||{})[t]}function Gu(e){return Uu[e]||{prefix:null,iconName:null}}function rg(e){var t=zu[e],n=Ta("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function kn(){return Ra}var La=function(){return{prefix:null,iconName:null,rest:[]}};function To(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?ze:n,p=rr[i][e],u=or[i][e]||or[i][p],d=e in It.styles?e:null;return u||d||null}var Wl=(Wr={},et(Wr,ze,Object.keys(sr[ze])),et(Wr,Xe,Object.keys(sr[Xe])),Wr);function Lo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,p=i===void 0?!1:i,u=(t={},et(t,ze,"".concat(ye.cssPrefix,"-").concat(ze)),et(t,Xe,"".concat(ye.cssPrefix,"-").concat(Xe)),t),d=null,g=ze;(e.includes(u[ze])||e.some(function(h){return Wl[ze].includes(h)}))&&(g=ze),(e.includes(u[Xe])||e.some(function(h){return Wl[Xe].includes(h)}))&&(g=Xe);var s=e.reduce(function(h,o){var r=ng(ye.cssPrefix,o);if(si[o]?(o=qp[g].includes(o)?Rp[g][o]:o,d=o,h.prefix=o):eg[g].indexOf(o)>-1?(d=o,h.prefix=To(o,{family:g})):r?h.iconName=r:o!==ye.replacementClass&&o!==u[ze]&&o!==u[Xe]&&h.rest.push(o),!p&&h.prefix&&h.iconName){var l=d==="fa"?Gu(h.iconName):{},c=Un(h.prefix,h.iconName);l.prefix&&(d=null),h.iconName=l.iconName||c||h.iconName,h.prefix=l.prefix||h.prefix,h.prefix==="far"&&!si.far&&si.fas&&!ye.autoFetchSvg&&(h.prefix="fas")}return h},La());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&g===Xe&&(si.fass||ye.autoFetchSvg)&&(s.prefix="fass",s.iconName=Un(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||d==="fa")&&(s.prefix=kn()||"fas"),s}var og=function(){function e(){vp(this,e),this.definitions={}}return yp(e,[{key:"add",value:function(){for(var n=this,i=arguments.length,p=new Array(i),u=0;u<i;u++)p[u]=arguments[u];var d=p.reduce(this._pullDefinitions,{});Object.keys(d).forEach(function(g){n.definitions[g]=pe(pe({},n.definitions[g]||{}),d[g]),Ds(g,d[g]);var s=sr[ze][g];s&&Ds(s,d[g]),ju()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,i){var p=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(p).map(function(u){var d=p[u],g=d.prefix,s=d.iconName,h=d.icon,o=h[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(r){typeof r=="string"&&(n[g][r]=h)}),n[g][s]=h}),n}}]),e}(),Hl=[],ai={},ci={},sg=Object.keys(ci);function ag(e,t){var n=t.mixoutsTo;return Hl=e,ai={},Object.keys(ci).forEach(function(i){sg.indexOf(i)===-1&&delete ci[i]}),Hl.forEach(function(i){var p=i.mixout?i.mixout():{};if(Object.keys(p).forEach(function(d){typeof p[d]=="function"&&(n[d]=p[d]),lo(p[d])==="object"&&Object.keys(p[d]).forEach(function(g){n[d]||(n[d]={}),n[d][g]=p[d][g]})}),i.hooks){var u=i.hooks();Object.keys(u).forEach(function(d){ai[d]||(ai[d]=[]),ai[d].push(u[d])})}i.provides&&i.provides(ci)}),n}function Bs(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),p=2;p<n;p++)i[p-2]=arguments[p];var u=ai[e]||[];return u.forEach(function(d){t=d.apply(null,[t].concat(i))}),t}function Xn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var p=ai[e]||[];p.forEach(function(u){u.apply(null,n)})}function an(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ci[e]?ci[e].apply(null,t):void 0}function Ws(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||kn();if(t)return t=Un(n,t)||t,Dl(Ku.definitions,n,t)||Dl(It.styles,n,t)}var Ku=new og,lg=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Xn("noAuto")},cg={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ln?(Xn("beforeI2svg",t),an("pseudoElements2svg",t),an("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,Yp(function(){hg({autoReplaceSvgRoot:n}),Xn("watch",t)})}},ug={icon:function(t){if(t===null)return null;if(lo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Un(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],i=To(t[0]);return{prefix:i,iconName:Un(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match(Tp))){var p=Lo(t.split(" "),{skipLookups:!0});return{prefix:p.prefix||kn(),iconName:Un(p.prefix,p.iconName)||p.iconName}}if(typeof t=="string"){var u=kn();return{prefix:u,iconName:Un(u,t)||t}}}},_t={noAuto:lg,config:ye,dom:cg,parse:ug,library:Ku,findIconDefinition:Ws,toHtml:Cr},hg=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?Ve:n;(Object.keys(It.styles).length>0||ye.autoFetchSvg)&&ln&&ye.autoReplaceSvg&&_t.dom.i2svg({node:i})};function Mo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Cr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(ln){var i=Ve.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function fg(e){var t=e.children,n=e.main,i=e.mask,p=e.attributes,u=e.styles,d=e.transform;if(Ea(d)&&n.found&&!i.found){var g=n.width,s=n.height,h={x:g/s/2,y:.5};p.style=Ro(pe(pe({},u),{},{"transform-origin":"".concat(h.x+d.x/16,"em ").concat(h.y+d.y/16,"em")}))}return[{tag:"svg",attributes:p,children:t}]}function dg(e){var t=e.prefix,n=e.iconName,i=e.children,p=e.attributes,u=e.symbol,d=u===!0?"".concat(t,"-").concat(ye.cssPrefix,"-").concat(n):u;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:pe(pe({},p),{},{id:d}),children:i}]}]}function Ma(e){var t=e.icons,n=t.main,i=t.mask,p=e.prefix,u=e.iconName,d=e.transform,g=e.symbol,s=e.title,h=e.maskId,o=e.titleId,r=e.extra,l=e.watchable,c=l===void 0?!1:l,a=i.found?i:n,f=a.width,m=a.height,v=p==="fak",b=[ye.replacementClass,u?"".concat(ye.cssPrefix,"-").concat(u):""].filter(function(k){return r.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(r.classes).join(" "),x={children:[],attributes:pe(pe({},r.attributes),{},{"data-prefix":p,"data-icon":u,class:b,role:r.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})},C=v&&!~r.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};c&&(x.attributes[Yn]=""),s&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(o||lr())},children:[s]}),delete x.attributes.title);var S=pe(pe({},x),{},{prefix:p,iconName:u,main:n,mask:i,maskId:h,transform:d,symbol:g,styles:pe(pe({},C),r.styles)}),$=i.found&&n.found?an("generateAbstractMask",S)||{children:[],attributes:{}}:an("generateAbstractIcon",S)||{children:[],attributes:{}},L=$.children,R=$.attributes;return S.children=L,S.attributes=R,g?dg(S):fg(S)}function Ul(e){var t=e.content,n=e.width,i=e.height,p=e.transform,u=e.title,d=e.extra,g=e.watchable,s=g===void 0?!1:g,h=pe(pe(pe({},d.attributes),u?{title:u}:{}),{},{class:d.classes.join(" ")});s&&(h[Yn]="");var o=pe({},d.styles);Ea(p)&&(o.transform=Vp({transform:p,startCentered:!0,width:n,height:i}),o["-webkit-transform"]=o.transform);var r=Ro(o);r.length>0&&(h.style=r);var l=[];return l.push({tag:"span",attributes:h,children:[t]}),u&&l.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),l}function pg(e){var t=e.content,n=e.title,i=e.extra,p=pe(pe(pe({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),u=Ro(i.styles);u.length>0&&(p.style=u);var d=[];return d.push({tag:"span",attributes:p,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}var ps=It.styles;function Hs(e){var t=e[0],n=e[1],i=e.slice(4),p=_a(i,1),u=p[0],d=null;return Array.isArray(u)?d={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Hn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Hn.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Hn.PRIMARY),fill:"currentColor",d:u[1]}}]}:d={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:d}}var gg={found:!1,width:512,height:512};function mg(e,t){!Ou&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Us(e,t){var n=t;return t==="fa"&&ye.styleDefault!==null&&(t=kn()),new Promise(function(i,p){if(an("missingIconAbstract"),n==="fa"){var u=Gu(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&ps[t]&&ps[t][e]){var d=ps[t][e];return i(Hs(d))}mg(e,t),i(pe(pe({},gg),{},{icon:ye.showMissingIcons&&e?an("missingIconAbstract")||{}:{}}))})}var zl=function(){},zs=ye.measurePerformance&&Mr&&Mr.mark&&Mr.measure?Mr:{mark:zl,measure:zl},zi='FA "6.4.2"',vg=function(t){return zs.mark("".concat(zi," ").concat(t," begins")),function(){return Yu(t)}},Yu=function(t){zs.mark("".concat(zi," ").concat(t," ends")),zs.measure("".concat(zi," ").concat(t),"".concat(zi," ").concat(t," begins"),"".concat(zi," ").concat(t," ends"))},Oa={begin:vg,end:Yu},eo=function(){};function Vl(e){var t=e.getAttribute?e.getAttribute(Yn):null;return typeof t=="string"}function yg(e){var t=e.getAttribute?e.getAttribute(Sa):null,n=e.getAttribute?e.getAttribute(Aa):null;return t&&n}function bg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function wg(){if(ye.autoReplaceSvg===!0)return to.replace;var e=to[ye.autoReplaceSvg];return e||to.replace}function $g(e){return Ve.createElementNS("http://www.w3.org/2000/svg",e)}function _g(e){return Ve.createElement(e)}function Xu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?$g:_g:n;if(typeof e=="string")return Ve.createTextNode(e);var p=i(e.tag);Object.keys(e.attributes||[]).forEach(function(d){p.setAttribute(d,e.attributes[d])});var u=e.children||[];return u.forEach(function(d){p.appendChild(Xu(d,{ceFn:i}))}),p}function Cg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var to={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(p){n.parentNode.insertBefore(Xu(p),n)}),n.getAttribute(Yn)===null&&ye.keepOriginalSource){var i=Ve.createComment(Cg(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~ka(n).indexOf(ye.replacementClass))return to.replace(t);var p=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var u=i[0].attributes.class.split(" ").reduce(function(g,s){return s===ye.replacementClass||s.match(p)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});i[0].attributes.class=u.toSvg.join(" "),u.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",u.toNode.join(" "))}var d=i.map(function(g){return Cr(g)}).join(`
760
- `);n.setAttribute(Yn,""),n.innerHTML=d}};function jl(e){e()}function Zu(e,t){var n=typeof t=="function"?t:eo;if(e.length===0)n();else{var i=jl;ye.mutateApproach===kp&&(i=xn.requestAnimationFrame||jl),i(function(){var p=wg(),u=Oa.begin("mutate");e.map(p),u(),n()})}}var Ia=!1;function Qu(){Ia=!0}function Vs(){Ia=!1}var uo=null;function Gl(e){if(Fl&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?eo:t,i=e.nodeCallback,p=i===void 0?eo:i,u=e.pseudoElementsCallback,d=u===void 0?eo:u,g=e.observeMutationsRoot,s=g===void 0?Ve:g;uo=new Fl(function(h){if(!Ia){var o=kn();ki(h).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!Vl(r.addedNodes[0])&&(ye.searchPseudoElements&&d(r.target),n(r.target)),r.type==="attributes"&&r.target.parentNode&&ye.searchPseudoElements&&d(r.target.parentNode),r.type==="attributes"&&Vl(r.target)&&~Ip.indexOf(r.attributeName))if(r.attributeName==="class"&&yg(r.target)){var l=Lo(ka(r.target)),c=l.prefix,a=l.iconName;r.target.setAttribute(Sa,c||o),a&&r.target.setAttribute(Aa,a)}else bg(r.target)&&p(r.target)})}}),ln&&uo.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Sg(){uo&&uo.disconnect()}function Ag(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,p){var u=p.split(":"),d=u[0],g=u.slice(1);return d&&g.length>0&&(i[d]=g.join(":").trim()),i},{})),n}function xg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",p=Lo(ka(e));return p.prefix||(p.prefix=kn()),t&&n&&(p.prefix=t,p.iconName=n),p.iconName&&p.prefix||(p.prefix&&i.length>0&&(p.iconName=ig(p.prefix,e.innerText)||Ta(p.prefix,Ps(e.innerText))),!p.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(p.iconName=e.firstChild.data)),p}function kg(e){var t=ki(e.attributes).reduce(function(p,u){return p.name!=="class"&&p.name!=="style"&&(p[u.name]=u.value),p},{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ye.autoA11y&&(n?t["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(i||lr()):(t["aria-hidden"]="true",t.focusable="false")),t}function Eg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Kl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=xg(e),i=n.iconName,p=n.prefix,u=n.rest,d=kg(e),g=Bs("parseNodeAttributes",{},e),s=t.styleParser?Ag(e):[];return pe({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:p,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:u,styles:s,attributes:d}},g)}var Rg=It.styles;function Ju(e){var t=ye.autoReplaceSvg==="nest"?Kl(e,{styleParser:!1}):Kl(e);return~t.extra.classes.indexOf(Iu)?an("generateLayersText",e,t):an("generateSvgReplacementMutation",e,t)}var En=new Set;xa.map(function(e){En.add("fa-".concat(e))});Object.keys(rr[ze]).map(En.add.bind(En));Object.keys(rr[Xe]).map(En.add.bind(En));En=$r(En);function Yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ln)return Promise.resolve();var n=Ve.documentElement.classList,i=function(r){return n.add("".concat(Nl,"-").concat(r))},p=function(r){return n.remove("".concat(Nl,"-").concat(r))},u=ye.autoFetchSvg?En:xa.map(function(o){return"fa-".concat(o)}).concat(Object.keys(Rg));u.includes("fa")||u.push("fa");var d=[".".concat(Iu,":not([").concat(Yn,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(Yn,"])")})).join(", ");if(d.length===0)return Promise.resolve();var g=[];try{g=ki(e.querySelectorAll(d))}catch{}if(g.length>0)i("pending"),p("complete");else return Promise.resolve();var s=Oa.begin("onTree"),h=g.reduce(function(o,r){try{var l=Ju(r);l&&o.push(l)}catch(c){Ou||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,r){Promise.all(h).then(function(l){Zu(l,function(){i("active"),i("complete"),p("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(l){s(),r(l)})})}function Tg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ju(e).then(function(n){n&&Zu([n],t)})}function Lg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Ws(t||{}),p=n.mask;return p&&(p=(p||{}).icon?p:Ws(p||{})),e(i,pe(pe({},n),{},{mask:p}))}}var Mg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,p=i===void 0?Ht:i,u=n.symbol,d=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,h=n.maskId,o=h===void 0?null:h,r=n.title,l=r===void 0?null:r,c=n.titleId,a=c===void 0?null:c,f=n.classes,m=f===void 0?[]:f,v=n.attributes,b=v===void 0?{}:v,x=n.styles,C=x===void 0?{}:x;if(t){var S=t.prefix,$=t.iconName,L=t.icon;return Mo(pe({type:"icon"},t),function(){return Xn("beforeDOMElementCreation",{iconDefinition:t,params:n}),ye.autoA11y&&(l?b["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(a||lr()):(b["aria-hidden"]="true",b.focusable="false")),Ma({icons:{main:Hs(L),mask:s?Hs(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:$,transform:pe(pe({},Ht),p),symbol:d,title:l,maskId:o,titleId:a,extra:{attributes:b,styles:C,classes:m}})})}},Og={mixout:function(){return{icon:Lg(Mg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Yl,n.nodeCallback=Tg,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,p=i===void 0?Ve:i,u=n.callback,d=u===void 0?function(){}:u;return Yl(p,d)},t.generateSvgReplacementMutation=function(n,i){var p=i.iconName,u=i.title,d=i.titleId,g=i.prefix,s=i.transform,h=i.symbol,o=i.mask,r=i.maskId,l=i.extra;return new Promise(function(c,a){Promise.all([Us(p,g),o.iconName?Us(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=_a(f,2),v=m[0],b=m[1];c([n,Ma({icons:{main:v,mask:b},prefix:g,iconName:p,transform:s,symbol:h,maskId:r,title:u,titleId:d,extra:l,watchable:!0})])}).catch(a)})},t.generateAbstractIcon=function(n){var i=n.children,p=n.attributes,u=n.main,d=n.transform,g=n.styles,s=Ro(g);s.length>0&&(p.style=s);var h;return Ea(d)&&(h=an("generateAbstractTransformGrouping",{main:u,transform:d,containerWidth:u.width,iconWidth:u.width})),i.push(h||u.icon),{children:i,attributes:p}}}},Ig={mixout:function(){return{layer:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.classes,u=p===void 0?[]:p;return Mo({type:"layer"},function(){Xn("beforeDOMElementCreation",{assembler:n,params:i});var d=[];return n(function(g){Array.isArray(g)?g.map(function(s){d=d.concat(s.abstract)}):d=d.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat($r(u)).join(" ")},children:d}]})}}}},Fg={mixout:function(){return{counter:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.title,u=p===void 0?null:p,d=i.classes,g=d===void 0?[]:d,s=i.attributes,h=s===void 0?{}:s,o=i.styles,r=o===void 0?{}:o;return Mo({type:"counter",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:i}),pg({content:n.toString(),title:u,extra:{attributes:h,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat($r(g))}})})}}}},Ng={mixout:function(){return{text:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.transform,u=p===void 0?Ht:p,d=i.title,g=d===void 0?null:d,s=i.classes,h=s===void 0?[]:s,o=i.attributes,r=o===void 0?{}:o,l=i.styles,c=l===void 0?{}:l;return Mo({type:"text",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:i}),Ul({content:n,transform:pe(pe({},Ht),u),title:g,extra:{attributes:r,styles:c,classes:["".concat(ye.cssPrefix,"-layers-text")].concat($r(h))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var p=i.title,u=i.transform,d=i.extra,g=null,s=null;if(Tu){var h=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/h,s=o.height/h}return ye.autoA11y&&!p&&(d.attributes["aria-hidden"]="true"),Promise.resolve([n,Ul({content:n.innerHTML,width:g,height:s,transform:u,title:p,extra:d,watchable:!0})])}}},Pg=new RegExp('"',"ug"),Xl=[1105920,1112319];function Dg(e){var t=e.replace(Pg,""),n=Qp(t,0),i=n>=Xl[0]&&n<=Xl[1],p=t.length===2?t[0]===t[1]:!1;return{value:Ps(p?t[0]:t),isSecondary:i||p}}function Zl(e,t){var n="".concat(xp).concat(t.replace(":","-"));return new Promise(function(i,p){if(e.getAttribute(n)!==null)return i();var u=ki(e.children),d=u.filter(function(L){return L.getAttribute(Ns)===t})[0],g=xn.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(Lp),h=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(d&&!s)return e.removeChild(d),i();if(s&&o!=="none"&&o!==""){var r=g.getPropertyValue("content"),l=~["Sharp"].indexOf(s[2])?Xe:ze,c=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?or[l][s[2].toLowerCase()]:Mp[l][h],a=Dg(r),f=a.value,m=a.isSecondary,v=s[0].startsWith("FontAwesome"),b=Ta(c,f),x=b;if(v){var C=rg(f);C.iconName&&C.prefix&&(b=C.iconName,c=C.prefix)}if(b&&!m&&(!d||d.getAttribute(Sa)!==c||d.getAttribute(Aa)!==x)){e.setAttribute(n,x),d&&e.removeChild(d);var S=Eg(),$=S.extra;$.attributes[Ns]=t,Us(b,c).then(function(L){var R=Ma(pe(pe({},S),{},{icons:{main:L,mask:La()},prefix:c,iconName:x,extra:$,watchable:!0})),k=Ve.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=R.map(function(M){return Cr(M)}).join(`
761
- `),e.removeAttribute(n),i()}).catch(p)}else i()}else i()})}function Bg(e){return Promise.all([Zl(e,"::before"),Zl(e,"::after")])}function Wg(e){return e.parentNode!==document.head&&!~Ep.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ns)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ql(e){if(ln)return new Promise(function(t,n){var i=ki(e.querySelectorAll("*")).filter(Wg).map(Bg),p=Oa.begin("searchPseudoElements");Qu(),Promise.all(i).then(function(){p(),Vs(),t()}).catch(function(){p(),Vs(),n()})})}var Hg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ql,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,p=i===void 0?Ve:i;ye.searchPseudoElements&&Ql(p)}}},Jl=!1,Ug={mixout:function(){return{dom:{unwatch:function(){Qu(),Jl=!0}}}},hooks:function(){return{bootstrap:function(){Gl(Bs("mutationObserverCallbacks",{}))},noAuto:function(){Sg()},watch:function(n){var i=n.observeMutationsRoot;Jl?Vs():Gl(Bs("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},ql=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,p){var u=p.toLowerCase().split("-"),d=u[0],g=u.slice(1).join("-");if(d&&g==="h")return i.flipX=!0,i;if(d&&g==="v")return i.flipY=!0,i;if(g=parseFloat(g),isNaN(g))return i;switch(d){case"grow":i.size=i.size+g;break;case"shrink":i.size=i.size-g;break;case"left":i.x=i.x-g;break;case"right":i.x=i.x+g;break;case"up":i.y=i.y-g;break;case"down":i.y=i.y+g;break;case"rotate":i.rotate=i.rotate+g;break}return i},n)},zg={mixout:function(){return{parse:{transform:function(n){return ql(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-transform");return p&&(n.transform=ql(p)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,p=n.transform,u=n.containerWidth,d=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(p.x*32,", ").concat(p.y*32,") "),h="scale(".concat(p.size/16*(p.flipX?-1:1),", ").concat(p.size/16*(p.flipY?-1:1),") "),o="rotate(".concat(p.rotate," 0 0)"),r={transform:"".concat(s," ").concat(h," ").concat(o)},l={transform:"translate(".concat(d/2*-1," -256)")},c={outer:g,inner:r,path:l};return{tag:"g",attributes:pe({},c.outer),children:[{tag:"g",attributes:pe({},c.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:pe(pe({},i.icon.attributes),c.path)}]}]}}}},gs={x:0,y:0,width:"100%",height:"100%"};function ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Vg(e){return e.tag==="g"?e.children:[e]}var jg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-mask"),u=p?Lo(p.split(" ").map(function(d){return d.trim()})):La();return u.prefix||(u.prefix=kn()),n.mask=u,n.maskId=i.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var i=n.children,p=n.attributes,u=n.main,d=n.mask,g=n.maskId,s=n.transform,h=u.width,o=u.icon,r=d.width,l=d.icon,c=zp({transform:s,containerWidth:r,iconWidth:h}),a={tag:"rect",attributes:pe(pe({},gs),{},{fill:"white"})},f=o.children?{children:o.children.map(ec)}:{},m={tag:"g",attributes:pe({},c.inner),children:[ec(pe({tag:o.tag,attributes:pe(pe({},o.attributes),c.path)},f))]},v={tag:"g",attributes:pe({},c.outer),children:[m]},b="mask-".concat(g||lr()),x="clip-".concat(g||lr()),C={tag:"mask",attributes:pe(pe({},gs),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[a,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:Vg(l)},C]};return i.push(S,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},gs)}),{children:i,attributes:p}}}},Gg={provides:function(t){var n=!1;xn.matchMedia&&(n=xn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],p={fill:"currentColor"},u={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:pe(pe({},p),{},{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"})});var d=pe(pe({},u),{},{attributeName:"opacity"}),g={tag:"circle",attributes:pe(pe({},p),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:pe(pe({},u),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:pe(pe({},d),{},{values:"1;0;1;1;0;1;"})}),i.push(g),i.push({tag:"path",attributes:pe(pe({},p),{},{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:n?[]:[{tag:"animate",attributes:pe(pe({},d),{},{values:"1;0;0;0;0;1;"})}]}),n||i.push({tag:"path",attributes:pe(pe({},p),{},{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:pe(pe({},d),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},Kg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-symbol"),u=p===null?!1:p===""?!0:p;return n.symbol=u,n}}}},Yg=[Gp,Og,Ig,Fg,Ng,Hg,Ug,zg,jg,Gg,Kg];ag(Yg,{mixoutsTo:_t});_t.noAuto;_t.config;var Xg=_t.library;_t.dom;var js=_t.parse;_t.findIconDefinition;_t.toHtml;var Zg=_t.icon;_t.layer;_t.text;_t.counter;var Qg={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2l0 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.4l0 0c19.8 27.1 39.7 54.4 49.2 86.2H272zM192 512c44.2 0 80-35.8 80-80V416H112v16c0 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"]},Jg={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 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},qg=Jg,em={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"]},tm={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 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-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"]},nm=tm,im={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"]},rm=im,om={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},sm={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"]},am=sm,lm={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"]},cm={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"]},um={prefix:"fas",iconName:"exclamation",icon:[64,512,[10069,10071,61738],"21","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V320c0 17.7 14.3 32 32 32s32-14.3 32-32V64zM32 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};function Oo(e,t){const n=Object.create(null),i=e.split(",");for(let p=0;p<i.length;p++)n[i[p]]=!0;return t?p=>!!n[p.toLowerCase()]:p=>!!n[p]}const Be={},ui=[],Nt=()=>{},hm=()=>!1,fm=/^on[^a-z]/,Sr=e=>fm.test(e),Fa=e=>e.startsWith("onUpdate:"),je=Object.assign,Na=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dm=Object.prototype.hasOwnProperty,Fe=(e,t)=>dm.call(e,t),ge=Array.isArray,hi=e=>Ei(e)==="[object Map]",ei=e=>Ei(e)==="[object Set]",tc=e=>Ei(e)==="[object Date]",pm=e=>Ei(e)==="[object RegExp]",Ce=e=>typeof e=="function",Ge=e=>typeof e=="string",mi=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Pa=e=>(We(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),qu=Object.prototype.toString,Ei=e=>qu.call(e),gm=e=>Ei(e).slice(8,-1),eh=e=>Ei(e)==="[object Object]",Da=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xi=Oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Io=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},mm=/-(\w)/g,mt=Io(e=>e.replace(mm,(t,n)=>n?n.toUpperCase():"")),vm=/\B([A-Z])/g,At=Io(e=>e.replace(vm,"-$1").toLowerCase()),Ri=Io(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zi=Io(e=>e?`on${Ri(e)}`:""),Rn=(e,t)=>!Object.is(e,t),fi=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ho=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},po=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let nc;const Gs=()=>nc||(nc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ym="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",bm=Oo(ym);function Ar(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],p=Ge(i)?Cm(i):Ar(i);if(p)for(const u in p)t[u]=p[u]}return t}else if(Ge(e)||We(e))return e}const wm=/;(?![^(]*\))/g,$m=/:([^]+)/,_m=/\/\*[^]*?\*\//g;function Cm(e){const t={};return e.replace(_m,"").split(wm).forEach(n=>{if(n){const i=n.split($m);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function xr(e){let t="";if(Ge(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const i=xr(e[n]);i&&(t+=i+" ")}else if(We(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Sm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=xr(t)),n&&(e.style=Ar(n)),e}const Am="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xm=Oo(Am);function th(e){return!!e||e===""}function km(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Tn(e[i],t[i]);return n}function Tn(e,t){if(e===t)return!0;let n=tc(e),i=tc(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=mi(e),i=mi(t),n||i)return e===t;if(n=ge(e),i=ge(t),n||i)return n&&i?km(e,t):!1;if(n=We(e),i=We(t),n||i){if(!n||!i)return!1;const p=Object.keys(e).length,u=Object.keys(t).length;if(p!==u)return!1;for(const d in e){const g=e.hasOwnProperty(d),s=t.hasOwnProperty(d);if(g&&!s||!g&&s||!Tn(e[d],t[d]))return!1}}return String(e)===String(t)}function Fo(e,t){return e.findIndex(n=>Tn(n,t))}const Ae=e=>Ge(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===qu||!Ce(e.toString))?JSON.stringify(e,nh,2):String(e),nh=(e,t)=>t&&t.__v_isRef?nh(e,t.value):hi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,p])=>(n[`${i} =>`]=p,n),{})}:ei(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!ge(t)&&!eh(t)?String(t):t;let yt;class Ba{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=yt,!t&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=yt;try{return yt=this,t()}finally{yt=n}}}on(){yt=this}off(){yt=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 p=this.parent.scopes.pop();p&&p!==this&&(this.parent.scopes[this.index]=p,p.index=this.index)}this.parent=void 0,this._active=!1}}}function ih(e){return new Ba(e)}function rh(e,t=yt){t&&t.active&&t.effects.push(e)}function Wa(){return yt}function oh(e){yt&&yt.cleanups.push(e)}const Ha=e=>{const t=new Set(e);return t.w=0,t.n=0,t},sh=e=>(e.w&Ln)>0,ah=e=>(e.n&Ln)>0,Em=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ln},Rm=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const p=t[i];sh(p)&&!ah(p)?p.delete(e):t[n++]=p,p.w&=~Ln,p.n&=~Ln}t.length=n}},go=new WeakMap;let Vi=0,Ln=1;const Ks=30;let Lt;const Vn=Symbol(""),Ys=Symbol("");class vi{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,rh(this,i)}run(){if(!this.active)return this.fn();let t=Lt,n=Sn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Lt,Lt=this,Sn=!0,Ln=1<<++Vi,Vi<=Ks?Em(this):ic(this),this.fn()}finally{Vi<=Ks&&Rm(this),Ln=1<<--Vi,Lt=this.parent,Sn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Lt===this?this.deferStop=!0:this.active&&(ic(this),this.onStop&&this.onStop(),this.active=!1)}}function ic(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Tm(e,t){e.effect instanceof vi&&(e=e.effect.fn);const n=new vi(e);t&&(je(n,t),t.scope&&rh(n,t.scope)),(!t||!t.lazy)&&n.run();const i=n.run.bind(n);return i.effect=n,i}function Lm(e){e.effect.stop()}let Sn=!0;const lh=[];function Ti(){lh.push(Sn),Sn=!1}function Li(){const e=lh.pop();Sn=e===void 0?!0:e}function vt(e,t,n){if(Sn&&Lt){let i=go.get(e);i||go.set(e,i=new Map);let p=i.get(n);p||i.set(n,p=Ha()),ch(p)}}function ch(e,t){let n=!1;Vi<=Ks?ah(e)||(e.n|=Ln,n=!sh(e)):n=!e.has(Lt),n&&(e.add(Lt),Lt.deps.push(e))}function en(e,t,n,i,p,u){const d=go.get(e);if(!d)return;let g=[];if(t==="clear")g=[...d.values()];else if(n==="length"&&ge(e)){const s=Number(i);d.forEach((h,o)=>{(o==="length"||!mi(o)&&o>=s)&&g.push(h)})}else switch(n!==void 0&&g.push(d.get(n)),t){case"add":ge(e)?Da(n)&&g.push(d.get("length")):(g.push(d.get(Vn)),hi(e)&&g.push(d.get(Ys)));break;case"delete":ge(e)||(g.push(d.get(Vn)),hi(e)&&g.push(d.get(Ys)));break;case"set":hi(e)&&g.push(d.get(Vn));break}if(g.length===1)g[0]&&Xs(g[0]);else{const s=[];for(const h of g)h&&s.push(...h);Xs(Ha(s))}}function Xs(e,t){const n=ge(e)?e:[...e];for(const i of n)i.computed&&rc(i);for(const i of n)i.computed||rc(i)}function rc(e,t){(e!==Lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Mm(e,t){var n;return(n=go.get(e))==null?void 0:n.get(t)}const Om=Oo("__proto__,__v_isRef,__isVue"),uh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mi)),oc=Im();function Im(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Le(this);for(let u=0,d=this.length;u<d;u++)vt(i,"get",u+"");const p=i[t](...n);return p===-1||p===!1?i[t](...n.map(Le)):p}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ti();const i=Le(this)[t].apply(this,n);return Li(),i}}),e}function Fm(e){const t=Le(this);return vt(t,"has",e),t.hasOwnProperty(e)}class hh{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const p=this._isReadonly,u=this._shallow;if(n==="__v_isReactive")return!p;if(n==="__v_isReadonly")return p;if(n==="__v_isShallow")return u;if(n==="__v_raw"&&i===(p?u?vh:mh:u?gh:ph).get(t))return t;const d=ge(t);if(!p){if(d&&Fe(oc,n))return Reflect.get(oc,n,i);if(n==="hasOwnProperty")return Fm}const g=Reflect.get(t,n,i);return(mi(n)?uh.has(n):Om(n))||(p||vt(t,"get",n),u)?g:qe(g)?d&&Da(n)?g:g.value:We(g)?p?Do(g):Mi(g):g}}class fh extends hh{constructor(t=!1){super(!1,t)}set(t,n,i,p){let u=t[n];if(Zn(u)&&qe(u)&&!qe(i))return!1;if(!this._shallow&&(!cr(i)&&!Zn(i)&&(u=Le(u),i=Le(i)),!ge(t)&&qe(u)&&!qe(i)))return u.value=i,!0;const d=ge(t)&&Da(n)?Number(n)<t.length:Fe(t,n),g=Reflect.set(t,n,i,p);return t===Le(p)&&(d?Rn(i,u)&&en(t,"set",n,i):en(t,"add",n,i)),g}deleteProperty(t,n){const i=Fe(t,n);t[n];const p=Reflect.deleteProperty(t,n);return p&&i&&en(t,"delete",n,void 0),p}has(t,n){const i=Reflect.has(t,n);return(!mi(n)||!uh.has(n))&&vt(t,"has",n),i}ownKeys(t){return vt(t,"iterate",ge(t)?"length":Vn),Reflect.ownKeys(t)}}class dh extends hh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Nm=new fh,Pm=new dh,Dm=new fh(!0),Bm=new dh(!0),Ua=e=>e,No=e=>Reflect.getPrototypeOf(e);function Hr(e,t,n=!1,i=!1){e=e.__v_raw;const p=Le(e),u=Le(t);n||(Rn(t,u)&&vt(p,"get",t),vt(p,"get",u));const{has:d}=No(p),g=i?Ua:n?ja:ur;if(d.call(p,t))return g(e.get(t));if(d.call(p,u))return g(e.get(u));e!==p&&e.get(t)}function Ur(e,t=!1){const n=this.__v_raw,i=Le(n),p=Le(e);return t||(Rn(e,p)&&vt(i,"has",e),vt(i,"has",p)),e===p?n.has(e):n.has(e)||n.has(p)}function zr(e,t=!1){return e=e.__v_raw,!t&&vt(Le(e),"iterate",Vn),Reflect.get(e,"size",e)}function sc(e){e=Le(e);const t=Le(this);return No(t).has.call(t,e)||(t.add(e),en(t,"add",e,e)),this}function ac(e,t){t=Le(t);const n=Le(this),{has:i,get:p}=No(n);let u=i.call(n,e);u||(e=Le(e),u=i.call(n,e));const d=p.call(n,e);return n.set(e,t),u?Rn(t,d)&&en(n,"set",e,t):en(n,"add",e,t),this}function lc(e){const t=Le(this),{has:n,get:i}=No(t);let p=n.call(t,e);p||(e=Le(e),p=n.call(t,e)),i&&i.call(t,e);const u=t.delete(e);return p&&en(t,"delete",e,void 0),u}function cc(){const e=Le(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function Vr(e,t){return function(i,p){const u=this,d=u.__v_raw,g=Le(d),s=t?Ua:e?ja:ur;return!e&&vt(g,"iterate",Vn),d.forEach((h,o)=>i.call(p,s(h),s(o),u))}}function jr(e,t,n){return function(...i){const p=this.__v_raw,u=Le(p),d=hi(u),g=e==="entries"||e===Symbol.iterator&&d,s=e==="keys"&&d,h=p[e](...i),o=n?Ua:t?ja:ur;return!t&&vt(u,"iterate",s?Ys:Vn),{next(){const{value:r,done:l}=h.next();return l?{value:r,done:l}:{value:g?[o(r[0]),o(r[1])]:o(r),done:l}},[Symbol.iterator](){return this}}}}function gn(e){return function(...t){return e==="delete"?!1:this}}function Wm(){const e={get(u){return Hr(this,u)},get size(){return zr(this)},has:Ur,add:sc,set:ac,delete:lc,clear:cc,forEach:Vr(!1,!1)},t={get(u){return Hr(this,u,!1,!0)},get size(){return zr(this)},has:Ur,add:sc,set:ac,delete:lc,clear:cc,forEach:Vr(!1,!0)},n={get(u){return Hr(this,u,!0)},get size(){return zr(this,!0)},has(u){return Ur.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:Vr(!0,!1)},i={get(u){return Hr(this,u,!0,!0)},get size(){return zr(this,!0)},has(u){return Ur.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:Vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=jr(u,!1,!1),n[u]=jr(u,!0,!1),t[u]=jr(u,!1,!0),i[u]=jr(u,!0,!0)}),[e,n,t,i]}const[Hm,Um,zm,Vm]=Wm();function Po(e,t){const n=t?e?Vm:zm:e?Um:Hm;return(i,p,u)=>p==="__v_isReactive"?!e:p==="__v_isReadonly"?e:p==="__v_raw"?i:Reflect.get(Fe(n,p)&&p in i?n:i,p,u)}const jm={get:Po(!1,!1)},Gm={get:Po(!1,!0)},Km={get:Po(!0,!1)},Ym={get:Po(!0,!0)},ph=new WeakMap,gh=new WeakMap,mh=new WeakMap,vh=new WeakMap;function Xm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zm(e){return e.__v_skip||!Object.isExtensible(e)?0:Xm(gm(e))}function Mi(e){return Zn(e)?e:Bo(e,!1,Nm,jm,ph)}function za(e){return Bo(e,!1,Dm,Gm,gh)}function Do(e){return Bo(e,!0,Pm,Km,mh)}function Qm(e){return Bo(e,!0,Bm,Ym,vh)}function Bo(e,t,n,i,p){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=p.get(e);if(u)return u;const d=Zm(e);if(d===0)return e;const g=new Proxy(e,d===2?i:n);return p.set(e,g),g}function jn(e){return Zn(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function Zn(e){return!!(e&&e.__v_isReadonly)}function cr(e){return!!(e&&e.__v_isShallow)}function Va(e){return jn(e)||Zn(e)}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function Wo(e){return ho(e,"__v_skip",!0),e}const ur=e=>We(e)?Mi(e):e,ja=e=>We(e)?Do(e):e;function Ga(e){Sn&&Lt&&(e=Le(e),ch(e.dep||(e.dep=Ha())))}function Ho(e,t){e=Le(e);const n=e.dep;n&&Xs(n)}function qe(e){return!!(e&&e.__v_isRef===!0)}function Ie(e){return bh(e,!1)}function yh(e){return bh(e,!0)}function bh(e,t){return qe(e)?e:new Jm(e,t)}class Jm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Le(t),this._value=n?t:ur(t)}get value(){return Ga(this),this._value}set value(t){const n=this.__v_isShallow||cr(t)||Zn(t);t=n?t:Le(t),Rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ur(t),Ho(this))}}function qm(e){Ho(e)}function tn(e){return qe(e)?e.value:e}function ev(e){return Ce(e)?e():tn(e)}const tv={get:(e,t,n)=>tn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const p=e[t];return qe(p)&&!qe(n)?(p.value=n,!0):Reflect.set(e,t,n,i)}};function Ka(e){return jn(e)?e:new Proxy(e,tv)}class nv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Ga(this),()=>Ho(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Ya(e){return new nv(e)}function iv(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=wh(e,n);return t}class rv{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Mm(Le(this._object),this._key)}}class ov{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function yi(e,t,n){return qe(e)?e:Ce(e)?new ov(e):We(e)&&arguments.length>1?wh(e,t,n):Ie(e)}function wh(e,t,n){const i=e[t];return qe(i)?i:new rv(e,t,n)}class sv{constructor(t,n,i,p){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new vi(t,()=>{this._dirty||(this._dirty=!0,Ho(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!p,this.__v_isReadonly=i}get value(){const t=Le(this);return Ga(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function av(e,t,n=!1){let i,p;const u=Ce(e);return u?(i=e,p=Nt):(i=e.get,p=e.set),new sv(i,p,u||!p,n)}function lv(e,...t){}function cv(e,t){}function nn(e,t,n,i){let p;try{p=i?e(...i):e()}catch(u){ti(u,t,n)}return p}function $t(e,t,n,i){if(Ce(e)){const u=nn(e,t,n,i);return u&&Pa(u)&&u.catch(d=>{ti(d,t,n)}),u}const p=[];for(let u=0;u<e.length;u++)p.push($t(e[u],t,n,i));return p}function ti(e,t,n,i=!0){const p=t?t.vnode:null;if(t){let u=t.parent;const d=t.proxy,g=n;for(;u;){const h=u.ec;if(h){for(let o=0;o<h.length;o++)if(h[o](e,d,g)===!1)return}u=u.parent}const s=t.appContext.config.errorHandler;if(s){nn(s,null,10,[e,d,g]);return}}uv(e,n,p,i)}function uv(e,t,n,i=!0){console.error(e)}let hr=!1,Zs=!1;const st=[];let Wt=0;const di=[];let Zt=null,Bn=0;const $h=Promise.resolve();let Xa=null;function Vt(e){const t=Xa||$h;return e?t.then(this?e.bind(this):e):t}function hv(e){let t=Wt+1,n=st.length;for(;t<n;){const i=t+n>>>1,p=st[i],u=fr(p);u<e||u===e&&p.pre?t=i+1:n=i}return t}function Uo(e){(!st.length||!st.includes(e,hr&&e.allowRecurse?Wt+1:Wt))&&(e.id==null?st.push(e):st.splice(hv(e.id),0,e),_h())}function _h(){!hr&&!Zs&&(Zs=!0,Xa=$h.then(Ch))}function fv(e){const t=st.indexOf(e);t>Wt&&st.splice(t,1)}function mo(e){ge(e)?di.push(...e):(!Zt||!Zt.includes(e,e.allowRecurse?Bn+1:Bn))&&di.push(e),_h()}function uc(e,t=hr?Wt+1:0){for(;t<st.length;t++){const n=st[t];n&&n.pre&&(st.splice(t,1),t--,n())}}function vo(e){if(di.length){const t=[...new Set(di)];if(di.length=0,Zt){Zt.push(...t);return}for(Zt=t,Zt.sort((n,i)=>fr(n)-fr(i)),Bn=0;Bn<Zt.length;Bn++)Zt[Bn]();Zt=null,Bn=0}}const fr=e=>e.id==null?1/0:e.id,dv=(e,t)=>{const n=fr(e)-fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ch(e){Zs=!1,hr=!0,st.sort(dv);const t=Nt;try{for(Wt=0;Wt<st.length;Wt++){const n=st[Wt];n&&n.active!==!1&&nn(n,null,14)}}finally{Wt=0,st.length=0,vo(),hr=!1,Xa=null,(st.length||di.length)&&Ch()}}let ri,Gr=[];function Sh(e,t){var n,i;ri=e,ri?(ri.enabled=!0,Gr.forEach(({event:p,args:u})=>ri.emit(p,...u)),Gr=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(u=>{Sh(u,t)}),setTimeout(()=>{ri||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Gr=[])},3e3)):Gr=[]}function pv(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Be;let p=n;const u=t.startsWith("update:"),d=u&&t.slice(7);if(d&&d in i){const o=`${d==="modelValue"?"model":d}Modifiers`,{number:r,trim:l}=i[o]||Be;l&&(p=n.map(c=>Ge(c)?c.trim():c)),r&&(p=n.map(fo))}let g,s=i[g=Zi(t)]||i[g=Zi(mt(t))];!s&&u&&(s=i[g=Zi(At(t))]),s&&$t(s,e,6,p);const h=i[g+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,$t(h,e,6,p)}}function Ah(e,t,n=!1){const i=t.emitsCache,p=i.get(e);if(p!==void 0)return p;const u=e.emits;let d={},g=!1;if(!Ce(e)){const s=h=>{const o=Ah(h,t,!0);o&&(g=!0,je(d,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(We(e)&&i.set(e,null),null):(ge(u)?u.forEach(s=>d[s]=null):je(d,u),We(e)&&i.set(e,d),d)}function zo(e,t){return!e||!Sr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,At(t))||Fe(e,t))}let nt=null,Vo=null;function dr(e){const t=nt;return nt=e,Vo=e&&e.type.__scopeId||null,t}function Za(e){Vo=e}function Qa(){Vo=null}const gv=e=>xt;function xt(e,t=nt,n){if(!t||e._n)return e;const i=(...p)=>{i._d&&ia(-1);const u=dr(t);let d;try{d=e(...p)}finally{dr(u),i._d&&ia(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function no(e){const{type:t,vnode:n,proxy:i,withProxy:p,props:u,propsOptions:[d],slots:g,attrs:s,emit:h,render:o,renderCache:r,data:l,setupState:c,ctx:a,inheritAttrs:f}=e;let m,v;const b=dr(e);try{if(n.shapeFlag&4){const C=p||i;m=bt(o.call(C,C,r,u,c,l,a)),v=s}else{const C=t;m=bt(C.length>1?C(u,{attrs:s,slots:g,emit:h}):C(u,null)),v=t.props?s:vv(s)}}catch(C){er.length=0,ti(C,e,1),m=he(lt)}let x=m;if(v&&f!==!1){const C=Object.keys(v),{shapeFlag:S}=x;C.length&&S&7&&(d&&C.some(Fa)&&(v=yv(v,d)),x=jt(x,v))}return n.dirs&&(x=jt(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),m=x,dr(b),m}function mv(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(Mn(i)){if(i.type!==lt||i.children==="v-if"){if(t)return;t=i}}else return}return t}const vv=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sr(n))&&((t||(t={}))[n]=e[n]);return t},yv=(e,t)=>{const n={};for(const i in e)(!Fa(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function bv(e,t,n){const{props:i,children:p,component:u}=e,{props:d,children:g,patchFlag:s}=t,h=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return i?hc(i,d,h):!!d;if(s&8){const o=t.dynamicProps;for(let r=0;r<o.length;r++){const l=o[r];if(d[l]!==i[l]&&!zo(h,l))return!0}}}else return(p||g)&&(!g||!g.$stable)?!0:i===d?!1:i?d?hc(i,d,h):!0:!!d;return!1}function hc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let p=0;p<i.length;p++){const u=i[p];if(t[u]!==e[u]&&!zo(n,u))return!0}return!1}function Ja({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const qa="components",wv="directives";function fe(e,t){return el(qa,e,!0,t)||e}const xh=Symbol.for("v-ndc");function $v(e){return Ge(e)?el(qa,e,!1)||e:e||xh}function _v(e){return el(wv,e)}function el(e,t,n=!0,i=!1){const p=nt||Qe;if(p){const u=p.type;if(e===qa){const g=sa(u,!1);if(g&&(g===t||g===mt(t)||g===Ri(mt(t))))return u}const d=fc(p[e]||u[e],t)||fc(p.appContext[e],t);return!d&&i?u:d}}function fc(e,t){return e&&(e[t]||e[mt(t)]||e[Ri(mt(t))])}const kh=e=>e.__isSuspense,Cv={name:"Suspense",__isSuspense:!0,process(e,t,n,i,p,u,d,g,s,h){e==null?Av(t,n,i,p,u,d,g,s,h):xv(e,t,n,i,p,d,g,s,h)},hydrate:kv,create:tl,normalize:Ev},Sv=Cv;function pr(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function Av(e,t,n,i,p,u,d,g,s){const{p:h,o:{createElement:o}}=s,r=o("div"),l=e.suspense=tl(e,p,i,t,r,n,u,d,g,s);h(null,l.pendingBranch=e.ssContent,r,null,i,l,u,d),l.deps>0?(pr(e,"onPending"),pr(e,"onFallback"),h(null,e.ssFallback,t,n,i,null,u,d),pi(l,e.ssFallback)):l.resolve(!1,!0)}function xv(e,t,n,i,p,u,d,g,{p:s,um:h,o:{createElement:o}}){const r=t.suspense=e.suspense;r.vnode=t,t.el=e.el;const l=t.ssContent,c=t.ssFallback,{activeBranch:a,pendingBranch:f,isInFallback:m,isHydrating:v}=r;if(f)r.pendingBranch=l,Ot(l,f)?(s(f,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0?r.resolve():m&&(s(a,c,n,i,p,null,u,d,g),pi(r,c))):(r.pendingId++,v?(r.isHydrating=!1,r.activeBranch=f):h(f,p,r),r.deps=0,r.effects.length=0,r.hiddenContainer=o("div"),m?(s(null,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0?r.resolve():(s(a,c,n,i,p,null,u,d,g),pi(r,c))):a&&Ot(l,a)?(s(a,l,n,i,p,r,u,d,g),r.resolve(!0)):(s(null,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0&&r.resolve()));else if(a&&Ot(l,a))s(a,l,n,i,p,r,u,d,g),pi(r,l);else if(pr(t,"onPending"),r.pendingBranch=l,r.pendingId++,s(null,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0)r.resolve();else{const{timeout:b,pendingId:x}=r;b>0?setTimeout(()=>{r.pendingId===x&&r.fallback(c)},b):b===0&&r.fallback(c)}}function tl(e,t,n,i,p,u,d,g,s,h,o=!1){const{p:r,m:l,um:c,n:a,o:{parentNode:f,remove:m}}=h;let v;const b=Rv(e);b&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const x=e.props?po(e.props.timeout):void 0,C={vnode:e,parent:t,parentComponent:n,isSVG:d,container:i,hiddenContainer:p,anchor:u,deps:0,pendingId:0,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:o,isUnmounted:!1,effects:[],resolve(S=!1,$=!1){const{vnode:L,activeBranch:R,pendingBranch:k,pendingId:M,effects:y,parentComponent:A,container:_}=C;let w=!1;if(C.isHydrating)C.isHydrating=!1;else if(!S){w=R&&k.transition&&k.transition.mode==="out-in",w&&(R.transition.afterLeave=()=>{M===C.pendingId&&(l(k,_,O,0),mo(y))});let{anchor:O}=C;R&&(O=a(R),c(R,A,C,!0)),w||l(k,_,O,0)}pi(C,k),C.pendingBranch=null,C.isInFallback=!1;let E=C.parent,T=!1;for(;E;){if(E.pendingBranch){E.effects.push(...y),T=!0;break}E=E.parent}!T&&!w&&mo(y),C.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),pr(L,"onResolve")},fallback(S){if(!C.pendingBranch)return;const{vnode:$,activeBranch:L,parentComponent:R,container:k,isSVG:M}=C;pr($,"onFallback");const y=a(L),A=()=>{C.isInFallback&&(r(null,S,k,y,R,null,M,g,s),pi(C,S))},_=S.transition&&S.transition.mode==="out-in";_&&(L.transition.afterLeave=A),C.isInFallback=!0,c(L,R,null,!0),_||A()},move(S,$,L){C.activeBranch&&l(C.activeBranch,S,$,L),C.container=S},next(){return C.activeBranch&&a(C.activeBranch)},registerDep(S,$){const L=!!C.pendingBranch;L&&C.deps++;const R=S.vnode.el;S.asyncDep.catch(k=>{ti(k,S,0)}).then(k=>{if(S.isUnmounted||C.isUnmounted||C.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;ra(S,k,!1),R&&(M.el=R);const y=!R&&S.subTree.el;$(S,M,f(R||S.subTree.el),R?null:a(S.subTree),C,d,s),y&&m(y),Ja(S,M.el),L&&--C.deps===0&&C.resolve()})},unmount(S,$){C.isUnmounted=!0,C.activeBranch&&c(C.activeBranch,n,S,$),C.pendingBranch&&c(C.pendingBranch,n,S,$)}};return C}function kv(e,t,n,i,p,u,d,g,s){const h=t.suspense=tl(t,i,n,e.parentNode,document.createElement("div"),null,p,u,d,g,!0),o=s(e,h.pendingBranch=t.ssContent,n,h,u,d);return h.deps===0&&h.resolve(!1,!0),o}function Ev(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=dc(i?n.default:n),e.ssFallback=i?dc(n.fallback):he(lt)}function dc(e){let t;if(Ce(e)){const n=qn&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=gt,rf())}return ge(e)&&(e=mv(e)),e=bt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Eh(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):mo(e)}function pi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,p=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=p,Ja(i,p))}function Rv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Rh(e,t){return kr(e,null,t)}function Th(e,t){return kr(e,null,{flush:"post"})}function Tv(e,t){return kr(e,null,{flush:"sync"})}const Kr={};function Ye(e,t,n){return kr(e,t,n)}function kr(e,t,{immediate:n,deep:i,flush:p,onTrack:u,onTrigger:d}=Be){var g;const s=Wa()===((g=Qe)==null?void 0:g.scope)?Qe:null;let h,o=!1,r=!1;if(qe(e)?(h=()=>e.value,o=cr(e)):jn(e)?(h=()=>e,i=!0):ge(e)?(r=!0,o=e.some(C=>jn(C)||cr(C)),h=()=>e.map(C=>{if(qe(C))return C.value;if(jn(C))return zn(C);if(Ce(C))return nn(C,s,2)})):Ce(e)?t?h=()=>nn(e,s,2):h=()=>{if(!(s&&s.isUnmounted))return l&&l(),$t(e,s,3,[c])}:h=Nt,t&&i){const C=h;h=()=>zn(C())}let l,c=C=>{l=b.onStop=()=>{nn(C,s,4)}},a;if(wi)if(c=Nt,t?n&&$t(t,s,3,[h(),r?[]:void 0,c]):h(),p==="sync"){const C=gf();a=C.__watcherHandles||(C.__watcherHandles=[])}else return Nt;let f=r?new Array(e.length).fill(Kr):Kr;const m=()=>{if(b.active)if(t){const C=b.run();(i||o||(r?C.some((S,$)=>Rn(S,f[$])):Rn(C,f)))&&(l&&l(),$t(t,s,3,[C,f===Kr?void 0:r&&f[0]===Kr?[]:f,c]),f=C)}else b.run()};m.allowRecurse=!!t;let v;p==="sync"?v=m:p==="post"?v=()=>rt(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),v=()=>Uo(m));const b=new vi(h,v);t?n?m():f=b.run():p==="post"?rt(b.run.bind(b),s&&s.suspense):b.run();const x=()=>{b.stop(),s&&s.scope&&Na(s.scope.effects,b)};return a&&a.push(x),x}function Lv(e,t,n){const i=this.proxy,p=Ge(e)?e.includes(".")?Lh(i,e):()=>i[e]:e.bind(i,i);let u;Ce(t)?u=t:(u=t.handler,n=t);const d=Qe;On(this);const g=kr(p,u.bind(i),n);return d?On(d):An(),g}function Lh(e,t){const n=t.split(".");return()=>{let i=e;for(let p=0;p<n.length&&i;p++)i=i[n[p]];return i}}function zn(e,t){if(!We(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),qe(e))zn(e.value,t);else if(ge(e))for(let n=0;n<e.length;n++)zn(e[n],t);else if(ei(e)||hi(e))e.forEach(n=>{zn(n,t)});else if(eh(e))for(const n in e)zn(e[n],t);return e}function Mt(e,t){const n=nt;if(n===null)return e;const i=Zo(n)||n.proxy,p=e.dirs||(e.dirs=[]);for(let u=0;u<t.length;u++){let[d,g,s,h=Be]=t[u];d&&(Ce(d)&&(d={mounted:d,updated:d}),d.deep&&zn(g),p.push({dir:d,instance:i,value:g,oldValue:void 0,arg:s,modifiers:h}))}return e}function Bt(e,t,n,i){const p=e.dirs,u=t&&t.dirs;for(let d=0;d<p.length;d++){const g=p[d];u&&(g.oldValue=u[d].value);let s=g.dir[i];s&&(Ti(),$t(s,n,8,[e.el,g,e,t]),Li())}}const $n=Symbol("_leaveCb"),Yr=Symbol("_enterCb");function nl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],il={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},Mv={name:"BaseTransition",props:il,setup(e,{slots:t}){const n=Dt(),i=nl();let p;return()=>{const u=t.default&&jo(t.default(),!0);if(!u||!u.length)return;let d=u[0];if(u.length>1){for(const f of u)if(f.type!==lt){d=f;break}}const g=Le(e),{mode:s}=g;if(i.isLeaving)return ms(d);const h=pc(d);if(!h)return ms(d);const o=bi(h,g,i,n);Qn(h,o);const r=n.subTree,l=r&&pc(r);let c=!1;const{getTransitionKey:a}=h.type;if(a){const f=a();p===void 0?p=f:f!==p&&(p=f,c=!0)}if(l&&l.type!==lt&&(!Ot(h,l)||c)){const f=bi(l,g,i,n);if(Qn(l,f),s==="out-in")return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},ms(d);s==="in-out"&&h.type!==lt&&(f.delayLeave=(m,v,b)=>{const x=Oh(i,l);x[String(l.key)]=l,m[$n]=()=>{v(),m[$n]=void 0,delete o.delayedLeave},o.delayedLeave=b})}return d}}},Mh=Mv;function Oh(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function bi(e,t,n,i){const{appear:p,mode:u,persisted:d=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:h,onEnterCancelled:o,onBeforeLeave:r,onLeave:l,onAfterLeave:c,onLeaveCancelled:a,onBeforeAppear:f,onAppear:m,onAfterAppear:v,onAppearCancelled:b}=t,x=String(e.key),C=Oh(n,e),S=(R,k)=>{R&&$t(R,i,9,k)},$=(R,k)=>{const M=k[1];S(R,k),ge(R)?R.every(y=>y.length<=1)&&M():R.length<=1&&M()},L={mode:u,persisted:d,beforeEnter(R){let k=g;if(!n.isMounted)if(p)k=f||g;else return;R[$n]&&R[$n](!0);const M=C[x];M&&Ot(e,M)&&M.el[$n]&&M.el[$n](),S(k,[R])},enter(R){let k=s,M=h,y=o;if(!n.isMounted)if(p)k=m||s,M=v||h,y=b||o;else return;let A=!1;const _=R[Yr]=w=>{A||(A=!0,w?S(y,[R]):S(M,[R]),L.delayedLeave&&L.delayedLeave(),R[Yr]=void 0)};k?$(k,[R,_]):_()},leave(R,k){const M=String(e.key);if(R[Yr]&&R[Yr](!0),n.isUnmounting)return k();S(r,[R]);let y=!1;const A=R[$n]=_=>{y||(y=!0,k(),_?S(a,[R]):S(c,[R]),R[$n]=void 0,C[M]===e&&delete C[M])};C[M]=e,l?$(l,[R,A]):A()},clone(R){return bi(R,t,n,i)}};return L}function ms(e){if(Er(e))return e=jt(e),e.children=null,e}function pc(e){return Er(e)?e.children?e.children[0]:void 0:e}function Qn(e,t){e.shapeFlag&6&&e.component?Qn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jo(e,t=!1,n){let i=[],p=0;for(let u=0;u<e.length;u++){let d=e[u];const g=n==null?d.key:String(n)+String(d.key!=null?d.key:u);d.type===Se?(d.patchFlag&128&&p++,i=i.concat(jo(d.children,t,g))):(t||d.type!==lt)&&i.push(g!=null?jt(d,{key:g}):d)}if(p>1)for(let u=0;u<i.length;u++)i[u].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function $e(e,t){return Ce(e)?(()=>je({name:e.name},t,{setup:e}))():e}const Gn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Ov(e){Ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:p=200,timeout:u,suspensible:d=!0,onError:g}=e;let s=null,h,o=0;const r=()=>(o++,s=null,l()),l=()=>{let c;return s||(c=s=t().catch(a=>{if(a=a instanceof Error?a:new Error(String(a)),g)return new Promise((f,m)=>{g(a,()=>f(r()),()=>m(a),o+1)});throw a}).then(a=>c!==s&&s?s:(a&&(a.__esModule||a[Symbol.toStringTag]==="Module")&&(a=a.default),h=a,a)))};return $e({name:"AsyncComponentWrapper",__asyncLoader:l,get __asyncResolved(){return h},setup(){const c=Qe;if(h)return()=>vs(h,c);const a=b=>{s=null,ti(b,c,13,!i)};if(d&&c.suspense||wi)return l().then(b=>()=>vs(b,c)).catch(b=>(a(b),()=>i?he(i,{error:b}):null));const f=Ie(!1),m=Ie(),v=Ie(!!p);return p&&setTimeout(()=>{v.value=!1},p),u!=null&&setTimeout(()=>{if(!f.value&&!m.value){const b=new Error(`Async component timed out after ${u}ms.`);a(b),m.value=b}},u),l().then(()=>{f.value=!0,c.parent&&Er(c.parent.vnode)&&Uo(c.parent.update)}).catch(b=>{a(b),m.value=b}),()=>{if(f.value&&h)return vs(h,c);if(m.value&&i)return he(i,{error:m.value});if(n&&!v.value)return he(n)}}})}function vs(e,t){const{ref:n,props:i,children:p,ce:u}=t.vnode,d=he(e,i,p);return d.ref=n,d.ce=u,delete t.vnode.ce,d}const Er=e=>e.type.__isKeepAlive,Iv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Dt(),i=n.ctx;if(!i.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const p=new Map,u=new Set;let d=null;const g=n.suspense,{renderer:{p:s,m:h,um:o,o:{createElement:r}}}=i,l=r("div");i.activate=(b,x,C,S,$)=>{const L=b.component;h(b,x,C,0,g),s(L.vnode,b,x,C,L,g,S,b.slotScopeIds,$),rt(()=>{L.isDeactivated=!1,L.a&&fi(L.a);const R=b.props&&b.props.onVnodeMounted;R&&pt(R,L.parent,b)},g)},i.deactivate=b=>{const x=b.component;h(b,l,null,1,g),rt(()=>{x.da&&fi(x.da);const C=b.props&&b.props.onVnodeUnmounted;C&&pt(C,x.parent,b),x.isDeactivated=!0},g)};function c(b){ys(b),o(b,n,g,!0)}function a(b){p.forEach((x,C)=>{const S=sa(x.type);S&&(!b||!b(S))&&f(C)})}function f(b){const x=p.get(b);!d||!Ot(x,d)?c(x):d&&ys(d),p.delete(b),u.delete(b)}Ye(()=>[e.include,e.exclude],([b,x])=>{b&&a(C=>ji(b,C)),x&&a(C=>!ji(x,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&p.set(m,bs(n.subTree))};return tt(v),Ko(v),Rr(()=>{p.forEach(b=>{const{subTree:x,suspense:C}=n,S=bs(x);if(b.type===S.type&&b.key===S.key){ys(S);const $=S.component.da;$&&rt($,C);return}c(b)})}),()=>{if(m=null,!t.default)return null;const b=t.default(),x=b[0];if(b.length>1)return d=null,b;if(!Mn(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return d=null,x;let C=bs(x);const S=C.type,$=sa(Gn(C)?C.type.__asyncResolved||{}:S),{include:L,exclude:R,max:k}=e;if(L&&(!$||!ji(L,$))||R&&$&&ji(R,$))return d=C,x;const M=C.key==null?S:C.key,y=p.get(M);return C.el&&(C=jt(C),x.shapeFlag&128&&(x.ssContent=C)),m=M,y?(C.el=y.el,C.component=y.component,C.transition&&Qn(C,C.transition),C.shapeFlag|=512,u.delete(M),u.add(M)):(u.add(M),k&&u.size>parseInt(k,10)&&f(u.values().next().value)),C.shapeFlag|=256,d=C,kh(x.type)?x:C}}},Fv=Iv;function ji(e,t){return ge(e)?e.some(n=>ji(n,t)):Ge(e)?e.split(",").includes(t):pm(e)?e.test(t):!1}function Ih(e,t){Nh(e,"a",t)}function Fh(e,t){Nh(e,"da",t)}function Nh(e,t,n=Qe){const i=e.__wdc||(e.__wdc=()=>{let p=n;for(;p;){if(p.isDeactivated)return;p=p.parent}return e()});if(Go(t,i,n),n){let p=n.parent;for(;p&&p.parent;)Er(p.parent.vnode)&&Nv(i,t,n,p),p=p.parent}}function Nv(e,t,n,i){const p=Go(t,e,i,!0);Yo(()=>{Na(i[t],p)},n)}function ys(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bs(e){return e.shapeFlag&128?e.ssContent:e}function Go(e,t,n=Qe,i=!1){if(n){const p=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...d)=>{if(n.isUnmounted)return;Ti(),On(n);const g=$t(t,n,e,d);return An(),Li(),g});return i?p.unshift(u):p.push(u),u}}const cn=e=>(t,n=Qe)=>(!wi||e==="sp")&&Go(e,(...i)=>t(...i),n),Ph=cn("bm"),tt=cn("m"),Dh=cn("bu"),Ko=cn("u"),Rr=cn("bum"),Yo=cn("um"),Bh=cn("sp"),Wh=cn("rtg"),Hh=cn("rtc");function Uh(e,t=Qe){Go("ec",e,t)}function ct(e,t,n,i){let p;const u=n&&n[i];if(ge(e)||Ge(e)){p=new Array(e.length);for(let d=0,g=e.length;d<g;d++)p[d]=t(e[d],d,void 0,u&&u[d])}else if(typeof e=="number"){p=new Array(e);for(let d=0;d<e;d++)p[d]=t(d+1,d,void 0,u&&u[d])}else if(We(e))if(e[Symbol.iterator])p=Array.from(e,(d,g)=>t(d,g,void 0,u&&u[g]));else{const d=Object.keys(e);p=new Array(d.length);for(let g=0,s=d.length;g<s;g++){const h=d[g];p[g]=t(e[h],h,g,u&&u[g])}}else p=[];return n&&(n[i]=p),p}function Pv(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(ge(i))for(let p=0;p<i.length;p++)e[i[p].name]=i[p].fn;else i&&(e[i.name]=i.key?(...p)=>{const u=i.fn(...p);return u&&(u.key=i.key),u}:i.fn)}return e}function Dv(e,t,n={},i,p){if(nt.isCE||nt.parent&&Gn(nt.parent)&&nt.parent.isCE)return t!=="default"&&(n.name=t),he("slot",n,i&&i());let u=e[t];u&&u._c&&(u._d=!1),q();const d=u&&zh(u(n)),g=Me(Se,{key:n.key||d&&d.key||`_${t}`},d||(i?i():[]),d&&e._===1?64:-2);return!p&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function zh(e){return e.some(t=>Mn(t)?!(t.type===lt||t.type===Se&&!zh(t.children)):!0)?e:null}function Bv(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Zi(i)]=e[i];return n}const Qs=e=>e?uf(e)?Zo(e)||e.proxy:Qs(e.parent):null,Qi=je(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=>Qs(e.parent),$root:e=>Qs(e.root),$emit:e=>e.emit,$options:e=>rl(e),$forceUpdate:e=>e.f||(e.f=()=>Uo(e.update)),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>Lv.bind(e)}),ws=(e,t)=>e!==Be&&!e.__isScriptSetup&&Fe(e,t),Js={get({_:e},t){const{ctx:n,setupState:i,data:p,props:u,accessCache:d,type:g,appContext:s}=e;let h;if(t[0]!=="$"){const c=d[t];if(c!==void 0)switch(c){case 1:return i[t];case 2:return p[t];case 4:return n[t];case 3:return u[t]}else{if(ws(i,t))return d[t]=1,i[t];if(p!==Be&&Fe(p,t))return d[t]=2,p[t];if((h=e.propsOptions[0])&&Fe(h,t))return d[t]=3,u[t];if(n!==Be&&Fe(n,t))return d[t]=4,n[t];qs&&(d[t]=0)}}const o=Qi[t];let r,l;if(o)return t==="$attrs"&&vt(e,"get",t),o(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==Be&&Fe(n,t))return d[t]=4,n[t];if(l=s.config.globalProperties,Fe(l,t))return l[t]},set({_:e},t,n){const{data:i,setupState:p,ctx:u}=e;return ws(p,t)?(p[t]=n,!0):i!==Be&&Fe(i,t)?(i[t]=n,!0):Fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:p,propsOptions:u}},d){let g;return!!n[d]||e!==Be&&Fe(e,d)||ws(t,d)||(g=u[0])&&Fe(g,d)||Fe(i,d)||Fe(Qi,d)||Fe(p.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Wv=je({},Js,{get(e,t){if(t!==Symbol.unscopables)return Js.get(e,t,e)},has(e,t){return t[0]!=="_"&&!bm(t)}});function Hv(){return null}function Uv(){return null}function zv(e){}function Vv(e){}function jv(){return null}function Gv(){}function Kv(e,t){return null}function Yv(){return Vh().slots}function Xv(){return Vh().attrs}function Zv(e,t,n){const i=Dt();if(n&&n.local){const p=Ie(e[t]);return Ye(()=>e[t],u=>p.value=u),Ye(p,u=>{u!==e[t]&&i.emit(`update:${t}`,u)}),p}else return{__v_isRef:!0,get value(){return e[t]},set value(p){i.emit(`update:${t}`,p)}}}function Vh(){const e=Dt();return e.setupContext||(e.setupContext=df(e))}function gr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Qv(e,t){const n=gr(e);for(const i in t){if(i.startsWith("__skip"))continue;let p=n[i];p?ge(p)||Ce(p)?p=n[i]={type:p,default:t[i]}:p.default=t[i]:p===null&&(p=n[i]={default:t[i]}),p&&t[`__skip_${i}`]&&(p.skipFactory=!0)}return n}function Jv(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):je({},gr(e),gr(t))}function qv(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function ey(e){const t=Dt();let n=e();return An(),Pa(n)&&(n=n.catch(i=>{throw On(t),i})),[n,()=>On(t)]}let qs=!0;function ty(e){const t=rl(e),n=e.proxy,i=e.ctx;qs=!1,t.beforeCreate&&gc(t.beforeCreate,e,"bc");const{data:p,computed:u,methods:d,watch:g,provide:s,inject:h,created:o,beforeMount:r,mounted:l,beforeUpdate:c,updated:a,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:b,destroyed:x,unmounted:C,render:S,renderTracked:$,renderTriggered:L,errorCaptured:R,serverPrefetch:k,expose:M,inheritAttrs:y,components:A,directives:_,filters:w}=t;if(h&&ny(h,i,null),d)for(const O in d){const I=d[O];Ce(I)&&(i[O]=I.bind(n))}if(p){const O=p.call(n,n);We(O)&&(e.data=Mi(O))}if(qs=!0,u)for(const O in u){const I=u[O],F=Ce(I)?I.bind(n,n):Ce(I.get)?I.get.bind(n,n):Nt,D=!Ce(I)&&Ce(I.set)?I.set.bind(n):Nt,W=Ee({get:F,set:D});Object.defineProperty(i,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(g)for(const O in g)jh(g[O],i,n,O);if(s){const O=Ce(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Ji(I,O[I])})}o&&gc(o,e,"c");function T(O,I){ge(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(T(Ph,r),T(tt,l),T(Dh,c),T(Ko,a),T(Ih,f),T(Fh,m),T(Uh,R),T(Hh,$),T(Wh,L),T(Rr,b),T(Yo,C),T(Bh,k),ge(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:F=>n[I]=F})})}else e.exposed||(e.exposed={});S&&e.render===Nt&&(e.render=S),y!=null&&(e.inheritAttrs=y),A&&(e.components=A),_&&(e.directives=_)}function ny(e,t,n=Nt){ge(e)&&(e=ea(e));for(const i in e){const p=e[i];let u;We(p)?"default"in p?u=kt(p.from||i,p.default,!0):u=kt(p.from||i):u=kt(p),qe(u)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>u.value,set:d=>u.value=d}):t[i]=u}}function gc(e,t,n){$t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function jh(e,t,n,i){const p=i.includes(".")?Lh(n,i):()=>n[i];if(Ge(e)){const u=t[e];Ce(u)&&Ye(p,u)}else if(Ce(e))Ye(p,e.bind(n));else if(We(e))if(ge(e))e.forEach(u=>jh(u,t,n,i));else{const u=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(u)&&Ye(p,u,e)}}function rl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:p,optionsCache:u,config:{optionMergeStrategies:d}}=e.appContext,g=u.get(t);let s;return g?s=g:!p.length&&!n&&!i?s=t:(s={},p.length&&p.forEach(h=>yo(s,h,d,!0)),yo(s,t,d)),We(t)&&u.set(t,s),s}function yo(e,t,n,i=!1){const{mixins:p,extends:u}=t;u&&yo(e,u,n,!0),p&&p.forEach(d=>yo(e,d,n,!0));for(const d in t)if(!(i&&d==="expose")){const g=iy[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const iy={data:mc,props:vc,emits:vc,methods:Gi,computed:Gi,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:Gi,directives:Gi,watch:oy,provide:mc,inject:ry};function mc(e,t){return t?e?function(){return je(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function ry(e,t){return Gi(ea(e),ea(t))}function ea(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ft(e,t){return e?[...new Set([].concat(e,t))]:t}function Gi(e,t){return e?je(Object.create(null),e,t):t}function vc(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:je(Object.create(null),gr(e),gr(t??{})):t}function oy(e,t){if(!e)return t;if(!t)return e;const n=je(Object.create(null),e);for(const i in t)n[i]=ft(e[i],t[i]);return n}function Gh(){return{app:null,config:{isNativeTag:hm,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 sy=0;function ay(e,t){return function(i,p=null){Ce(i)||(i=je({},i)),p!=null&&!We(p)&&(p=null);const u=Gh(),d=new WeakSet;let g=!1;const s=u.app={_uid:sy++,_component:i,_props:p,_container:null,_context:u,_instance:null,version:vf,get config(){return u.config},set config(h){},use(h,...o){return d.has(h)||(h&&Ce(h.install)?(d.add(h),h.install(s,...o)):Ce(h)&&(d.add(h),h(s,...o))),s},mixin(h){return u.mixins.includes(h)||u.mixins.push(h),s},component(h,o){return o?(u.components[h]=o,s):u.components[h]},directive(h,o){return o?(u.directives[h]=o,s):u.directives[h]},mount(h,o,r){if(!g){const l=he(i,p);return l.appContext=u,o&&t?t(l,h):e(l,h,r),g=!0,s._container=h,h.__vue_app__=s,Zo(l.component)||l.component.proxy}},unmount(){g&&(e(null,s._container),delete s._container.__vue_app__)},provide(h,o){return u.provides[h]=o,s},runWithContext(h){mr=s;try{return h()}finally{mr=null}}};return s}}let mr=null;function Ji(e,t){if(Qe){let n=Qe.provides;const i=Qe.parent&&Qe.parent.provides;i===n&&(n=Qe.provides=Object.create(i)),n[e]=t}}function kt(e,t,n=!1){const i=Qe||nt;if(i||mr){const p=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:mr._context.provides;if(p&&e in p)return p[e];if(arguments.length>1)return n&&Ce(t)?t.call(i&&i.proxy):t}}function ly(){return!!(Qe||nt||mr)}function cy(e,t,n,i=!1){const p={},u={};ho(u,Xo,1),e.propsDefaults=Object.create(null),Kh(e,t,p,u);for(const d in e.propsOptions[0])d in p||(p[d]=void 0);n?e.props=i?p:za(p):e.type.props?e.props=p:e.props=u,e.attrs=u}function uy(e,t,n,i){const{props:p,attrs:u,vnode:{patchFlag:d}}=e,g=Le(p),[s]=e.propsOptions;let h=!1;if((i||d>0)&&!(d&16)){if(d&8){const o=e.vnode.dynamicProps;for(let r=0;r<o.length;r++){let l=o[r];if(zo(e.emitsOptions,l))continue;const c=t[l];if(s)if(Fe(u,l))c!==u[l]&&(u[l]=c,h=!0);else{const a=mt(l);p[a]=ta(s,g,a,c,e,!1)}else c!==u[l]&&(u[l]=c,h=!0)}}}else{Kh(e,t,p,u)&&(h=!0);let o;for(const r in g)(!t||!Fe(t,r)&&((o=At(r))===r||!Fe(t,o)))&&(s?n&&(n[r]!==void 0||n[o]!==void 0)&&(p[r]=ta(s,g,r,void 0,e,!0)):delete p[r]);if(u!==g)for(const r in u)(!t||!Fe(t,r))&&(delete u[r],h=!0)}h&&en(e,"set","$attrs")}function Kh(e,t,n,i){const[p,u]=e.propsOptions;let d=!1,g;if(t)for(let s in t){if(Xi(s))continue;const h=t[s];let o;p&&Fe(p,o=mt(s))?!u||!u.includes(o)?n[o]=h:(g||(g={}))[o]=h:zo(e.emitsOptions,s)||(!(s in i)||h!==i[s])&&(i[s]=h,d=!0)}if(u){const s=Le(n),h=g||Be;for(let o=0;o<u.length;o++){const r=u[o];n[r]=ta(p,s,r,h[r],e,!Fe(h,r))}}return d}function ta(e,t,n,i,p,u){const d=e[n];if(d!=null){const g=Fe(d,"default");if(g&&i===void 0){const s=d.default;if(d.type!==Function&&!d.skipFactory&&Ce(s)){const{propsDefaults:h}=p;n in h?i=h[n]:(On(p),i=h[n]=s.call(null,t),An())}else i=s}d[0]&&(u&&!g?i=!1:d[1]&&(i===""||i===At(n))&&(i=!0))}return i}function Yh(e,t,n=!1){const i=t.propsCache,p=i.get(e);if(p)return p;const u=e.props,d={},g=[];let s=!1;if(!Ce(e)){const o=r=>{s=!0;const[l,c]=Yh(r,t,!0);je(d,l),c&&g.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!u&&!s)return We(e)&&i.set(e,ui),ui;if(ge(u))for(let o=0;o<u.length;o++){const r=mt(u[o]);yc(r)&&(d[r]=Be)}else if(u)for(const o in u){const r=mt(o);if(yc(r)){const l=u[o],c=d[r]=ge(l)||Ce(l)?{type:l}:je({},l);if(c){const a=$c(Boolean,c.type),f=$c(String,c.type);c[0]=a>-1,c[1]=f<0||a<f,(a>-1||Fe(c,"default"))&&g.push(r)}}}const h=[d,g];return We(e)&&i.set(e,h),h}function yc(e){return e[0]!=="$"}function bc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function wc(e,t){return bc(e)===bc(t)}function $c(e,t){return ge(t)?t.findIndex(n=>wc(n,e)):Ce(t)&&wc(t,e)?0:-1}const Xh=e=>e[0]==="_"||e==="$stable",ol=e=>ge(e)?e.map(bt):[bt(e)],hy=(e,t,n)=>{if(t._n)return t;const i=xt((...p)=>ol(t(...p)),n);return i._c=!1,i},Zh=(e,t,n)=>{const i=e._ctx;for(const p in e){if(Xh(p))continue;const u=e[p];if(Ce(u))t[p]=hy(p,u,i);else if(u!=null){const d=ol(u);t[p]=()=>d}}},Qh=(e,t)=>{const n=ol(t);e.slots.default=()=>n},fy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Le(t),ho(t,"_",n)):Zh(t,e.slots={})}else e.slots={},t&&Qh(e,t);ho(e.slots,Xo,1)},dy=(e,t,n)=>{const{vnode:i,slots:p}=e;let u=!0,d=Be;if(i.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(je(p,t),!n&&g===1&&delete p._):(u=!t.$stable,Zh(t,p)),d=t}else t&&(Qh(e,t),d={default:1});if(u)for(const g in p)!Xh(g)&&d[g]==null&&delete p[g]};function bo(e,t,n,i,p=!1){if(ge(e)){e.forEach((l,c)=>bo(l,t&&(ge(t)?t[c]:t),n,i,p));return}if(Gn(i)&&!p)return;const u=i.shapeFlag&4?Zo(i.component)||i.component.proxy:i.el,d=p?null:u,{i:g,r:s}=e,h=t&&t.r,o=g.refs===Be?g.refs={}:g.refs,r=g.setupState;if(h!=null&&h!==s&&(Ge(h)?(o[h]=null,Fe(r,h)&&(r[h]=null)):qe(h)&&(h.value=null)),Ce(s))nn(s,g,12,[d,o]);else{const l=Ge(s),c=qe(s);if(l||c){const a=()=>{if(e.f){const f=l?Fe(r,s)?r[s]:o[s]:s.value;p?ge(f)&&Na(f,u):ge(f)?f.includes(u)||f.push(u):l?(o[s]=[u],Fe(r,s)&&(r[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else l?(o[s]=d,Fe(r,s)&&(r[s]=d)):c&&(s.value=d,e.k&&(o[e.k]=d))};d?(a.id=-1,rt(a,n)):a()}}}let mn=!1;const Xr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Zr=e=>e.nodeType===8;function py(e){const{mt:t,p:n,o:{patchProp:i,createText:p,nextSibling:u,parentNode:d,remove:g,insert:s,createComment:h}}=e,o=(x,C)=>{if(!C.hasChildNodes()){n(null,x,C),vo(),C._vnode=x;return}mn=!1,r(C.firstChild,x,null,null,null),vo(),C._vnode=x,mn&&console.error("Hydration completed but contains mismatches.")},r=(x,C,S,$,L,R=!1)=>{const k=Zr(x)&&x.data==="[",M=()=>f(x,C,S,$,L,k),{type:y,ref:A,shapeFlag:_,patchFlag:w}=C;let E=x.nodeType;C.el=x,w===-2&&(R=!1,C.dynamicChildren=null);let T=null;switch(y){case Jn:E!==3?C.children===""?(s(C.el=p(""),d(x),x),T=x):T=M():(x.data!==C.children&&(mn=!0,x.data=C.children),T=u(x));break;case lt:b(x)?(T=u(x),v(C.el=x.content.firstChild,x,S)):E!==8||k?T=M():T=u(x);break;case Kn:if(k&&(x=u(x),E=x.nodeType),E===1||E===3){T=x;const O=!C.children.length;for(let I=0;I<C.staticCount;I++)O&&(C.children+=T.nodeType===1?T.outerHTML:T.data),I===C.staticCount-1&&(C.anchor=T),T=u(T);return k?u(T):T}else M();break;case Se:k?T=a(x,C,S,$,L,R):T=M();break;default:if(_&1)(E!==1||C.type.toLowerCase()!==x.tagName.toLowerCase())&&!b(x)?T=M():T=l(x,C,S,$,L,R);else if(_&6){C.slotScopeIds=L;const O=d(x);if(k?T=m(x):Zr(x)&&x.data==="teleport start"?T=m(x,x.data,"teleport end"):T=u(x),t(C,O,null,S,$,Xr(O),R),Gn(C)){let I;k?(I=he(Se),I.anchor=T?T.previousSibling:O.lastChild):I=x.nodeType===3?at(""):he("div"),I.el=x,C.component.subTree=I}}else _&64?E!==8?T=M():T=C.type.hydrate(x,C,S,$,L,R,e,c):_&128&&(T=C.type.hydrate(x,C,S,$,Xr(d(x)),L,R,e,r))}return A!=null&&bo(A,null,$,C),T},l=(x,C,S,$,L,R)=>{R=R||!!C.dynamicChildren;const{type:k,props:M,patchFlag:y,shapeFlag:A,dirs:_,transition:w}=C,E=k==="input"&&_||k==="option";if(E||y!==-1){if(_&&Bt(C,null,S,"created"),M)if(E||!R||y&48)for(const I in M)(E&&I.endsWith("value")||Sr(I)&&!Xi(I))&&i(x,I,null,M[I],!1,void 0,S);else M.onClick&&i(x,"onClick",null,M.onClick,!1,void 0,S);let T;(T=M&&M.onVnodeBeforeMount)&&pt(T,S,C);let O=!1;if(b(x)){O=tf($,w)&&S&&S.vnode.props&&S.vnode.props.appear;const I=x.content.firstChild;O&&w.beforeEnter(I),v(I,x,S),C.el=x=I}if(_&&Bt(C,null,S,"beforeMount"),((T=M&&M.onVnodeMounted)||_||O)&&Eh(()=>{T&&pt(T,S,C),O&&w.enter(x),_&&Bt(C,null,S,"mounted")},$),A&16&&!(M&&(M.innerHTML||M.textContent))){let I=c(x.firstChild,C,x,S,$,L,R);for(;I;){mn=!0;const F=I;I=I.nextSibling,g(F)}}else A&8&&x.textContent!==C.children&&(mn=!0,x.textContent=C.children)}return x.nextSibling},c=(x,C,S,$,L,R,k)=>{k=k||!!C.dynamicChildren;const M=C.children,y=M.length;for(let A=0;A<y;A++){const _=k?M[A]:M[A]=bt(M[A]);if(x)x=r(x,_,$,L,R,k);else{if(_.type===Jn&&!_.children)continue;mn=!0,n(null,_,S,null,$,L,Xr(S),R)}}return x},a=(x,C,S,$,L,R)=>{const{slotScopeIds:k}=C;k&&(L=L?L.concat(k):k);const M=d(x),y=c(u(x),C,M,S,$,L,R);return y&&Zr(y)&&y.data==="]"?u(C.anchor=y):(mn=!0,s(C.anchor=h("]"),M,y),y)},f=(x,C,S,$,L,R)=>{if(mn=!0,C.el=null,R){const y=m(x);for(;;){const A=u(x);if(A&&A!==y)g(A);else break}}const k=u(x),M=d(x);return g(x),n(null,C,M,k,S,$,Xr(M),L),k},m=(x,C="[",S="]")=>{let $=0;for(;x;)if(x=u(x),x&&Zr(x)&&(x.data===C&&$++,x.data===S)){if($===0)return u(x);$--}return x},v=(x,C,S)=>{const $=C.parentNode;$&&$.replaceChild(x,C);let L=S;for(;L;)L.vnode.el===C&&(L.vnode.el=L.subTree.el=x),L=L.parent},b=x=>x.nodeType===1&&x.tagName.toLowerCase()==="template";return[o,r]}const rt=Eh;function Jh(e){return ef(e)}function qh(e){return ef(e,py)}function ef(e,t){const n=Gs();n.__VUE__=!0;const{insert:i,remove:p,patchProp:u,createElement:d,createText:g,createComment:s,setText:h,setElementText:o,parentNode:r,nextSibling:l,setScopeId:c=Nt,insertStaticContent:a}=e,f=(P,B,G,Q=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(P===B)return;P&&!Ot(P,B)&&(Q=z(P),j(P,te,ie,!0),P=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case Jn:m(P,B,G,Q);break;case lt:v(P,B,G,Q);break;case Kn:P==null&&b(B,G,Q,le);break;case Se:A(P,B,G,Q,te,ie,le,se,ce);break;default:de&1?S(P,B,G,Q,te,ie,le,se,ce):de&6?_(P,B,G,Q,te,ie,le,se,ce):(de&64||de&128)&&re.process(P,B,G,Q,te,ie,le,se,ce,Y)}ve!=null&&te&&bo(ve,P&&P.ref,ie,B||P,!B)},m=(P,B,G,Q)=>{if(P==null)i(B.el=g(B.children),G,Q);else{const te=B.el=P.el;B.children!==P.children&&h(te,B.children)}},v=(P,B,G,Q)=>{P==null?i(B.el=s(B.children||""),G,Q):B.el=P.el},b=(P,B,G,Q)=>{[P.el,P.anchor]=a(P.children,B,G,Q,P.el,P.anchor)},x=({el:P,anchor:B},G,Q)=>{let te;for(;P&&P!==B;)te=l(P),i(P,G,Q),P=te;i(B,G,Q)},C=({el:P,anchor:B})=>{let G;for(;P&&P!==B;)G=l(P),p(P),P=G;p(B)},S=(P,B,G,Q,te,ie,le,se,ce)=>{le=le||B.type==="svg",P==null?$(B,G,Q,te,ie,le,se,ce):k(P,B,te,ie,le,se,ce)},$=(P,B,G,Q,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:_e,dirs:J}=P;if(ce=P.el=d(P.type,ie,de&&de.is,de),me&8?o(ce,P.children):me&16&&R(P.children,ce,null,Q,te,ie&&ve!=="foreignObject",le,se),J&&Bt(P,null,Q,"created"),L(ce,P,P.scopeId,le,Q),de){for(const ue in de)ue!=="value"&&!Xi(ue)&&u(ce,ue,null,de[ue],ie,P.children,Q,te,Z);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&pt(re,Q,P)}J&&Bt(P,null,Q,"beforeMount");const ae=tf(te,_e);ae&&_e.beforeEnter(ce),i(ce,B,G),((re=de&&de.onVnodeMounted)||ae||J)&&rt(()=>{re&&pt(re,Q,P),ae&&_e.enter(ce),J&&Bt(P,null,Q,"mounted")},te)},L=(P,B,G,Q,te)=>{if(G&&c(P,G),Q)for(let ie=0;ie<Q.length;ie++)c(P,Q[ie]);if(te){let ie=te.subTree;if(B===ie){const le=te.vnode;L(P,le,le.scopeId,le.slotScopeIds,te.parent)}}},R=(P,B,G,Q,te,ie,le,se,ce=0)=>{for(let re=ce;re<P.length;re++){const ve=P[re]=se?_n(P[re]):bt(P[re]);f(null,ve,B,G,Q,te,ie,le,se)}},k=(P,B,G,Q,te,ie,le)=>{const se=B.el=P.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=P.patchFlag&16;const de=P.props||Be,me=B.props||Be;let _e;G&&Pn(G,!1),(_e=me.onVnodeBeforeUpdate)&&pt(_e,G,B,P),ve&&Bt(B,P,G,"beforeUpdate"),G&&Pn(G,!0);const J=te&&B.type!=="foreignObject";if(re?M(P.dynamicChildren,re,se,G,Q,J,ie):le||I(P,B,se,null,G,Q,J,ie,!1),ce>0){if(ce&16)y(se,B,de,me,G,Q,te);else if(ce&2&&de.class!==me.class&&u(se,"class",null,me.class,te),ce&4&&u(se,"style",de.style,me.style,te),ce&8){const ae=B.dynamicProps;for(let ue=0;ue<ae.length;ue++){const be=ae[ue],Re=de[be],Ne=me[be];(Ne!==Re||be==="value")&&u(se,be,Re,Ne,te,P.children,G,Q,Z)}}ce&1&&P.children!==B.children&&o(se,B.children)}else!le&&re==null&&y(se,B,de,me,G,Q,te);((_e=me.onVnodeUpdated)||ve)&&rt(()=>{_e&&pt(_e,G,B,P),ve&&Bt(B,P,G,"updated")},Q)},M=(P,B,G,Q,te,ie,le)=>{for(let se=0;se<B.length;se++){const ce=P[se],re=B[se],ve=ce.el&&(ce.type===Se||!Ot(ce,re)||ce.shapeFlag&70)?r(ce.el):G;f(ce,re,ve,null,Q,te,ie,le,!0)}},y=(P,B,G,Q,te,ie,le)=>{if(G!==Q){if(G!==Be)for(const se in G)!Xi(se)&&!(se in Q)&&u(P,se,G[se],null,le,B.children,te,ie,Z);for(const se in Q){if(Xi(se))continue;const ce=Q[se],re=G[se];ce!==re&&se!=="value"&&u(P,se,re,ce,le,B.children,te,ie,Z)}"value"in Q&&u(P,"value",G.value,Q.value)}},A=(P,B,G,Q,te,ie,le,se,ce)=>{const re=B.el=P?P.el:g(""),ve=B.anchor=P?P.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:_e}=B;_e&&(se=se?se.concat(_e):_e),P==null?(i(re,G,Q),i(ve,G,Q),R(B.children,G,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&P.dynamicChildren?(M(P.dynamicChildren,me,G,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&sl(P,B,!0)):I(P,B,G,ve,te,ie,le,se,ce)},_=(P,B,G,Q,te,ie,le,se,ce)=>{B.slotScopeIds=se,P==null?B.shapeFlag&512?te.ctx.activate(B,G,Q,le,ce):w(B,G,Q,te,ie,le,ce):E(P,B,ce)},w=(P,B,G,Q,te,ie,le)=>{const se=P.component=cf(P,Q,te);if(Er(P)&&(se.ctx.renderer=Y),hf(se),se.asyncDep){if(te&&te.registerDep(se,T),!P.el){const ce=se.subTree=he(lt);v(null,ce,B,G)}return}T(se,P,B,G,te,ie,le)},E=(P,B,G)=>{const Q=B.component=P.component;if(bv(P,B,G))if(Q.asyncDep&&!Q.asyncResolved){O(Q,B,G);return}else Q.next=B,fv(Q.update),Q.update();else B.el=P.el,Q.vnode=B},T=(P,B,G,Q,te,ie,le)=>{const se=()=>{if(P.isMounted){let{next:ve,bu:de,u:me,parent:_e,vnode:J}=P,ae=ve,ue;Pn(P,!1),ve?(ve.el=J.el,O(P,ve,le)):ve=J,de&&fi(de),(ue=ve.props&&ve.props.onVnodeBeforeUpdate)&&pt(ue,_e,ve,J),Pn(P,!0);const be=no(P),Re=P.subTree;P.subTree=be,f(Re,be,r(Re.el),z(Re),P,te,ie),ve.el=be.el,ae===null&&Ja(P,be.el),me&&rt(me,te),(ue=ve.props&&ve.props.onVnodeUpdated)&&rt(()=>pt(ue,_e,ve,J),te)}else{let ve;const{el:de,props:me}=B,{bm:_e,m:J,parent:ae}=P,ue=Gn(B);if(Pn(P,!1),_e&&fi(_e),!ue&&(ve=me&&me.onVnodeBeforeMount)&&pt(ve,ae,B),Pn(P,!0),de&&ee){const be=()=>{P.subTree=no(P),ee(de,P.subTree,P,te,null)};ue?B.type.__asyncLoader().then(()=>!P.isUnmounted&&be()):be()}else{const be=P.subTree=no(P);f(null,be,G,Q,P,te,ie),B.el=be.el}if(J&&rt(J,te),!ue&&(ve=me&&me.onVnodeMounted)){const be=B;rt(()=>pt(ve,ae,be),te)}(B.shapeFlag&256||ae&&Gn(ae.vnode)&&ae.vnode.shapeFlag&256)&&P.a&&rt(P.a,te),P.isMounted=!0,B=G=Q=null}},ce=P.effect=new vi(se,()=>Uo(re),P.scope),re=P.update=()=>ce.run();re.id=P.uid,Pn(P,!0),re()},O=(P,B,G)=>{B.component=P;const Q=P.vnode.props;P.vnode=B,P.next=null,uy(P,B.props,Q,G),dy(P,B.children,G),Ti(),uc(),Li()},I=(P,B,G,Q,te,ie,le,se,ce=!1)=>{const re=P&&P.children,ve=P?P.shapeFlag:0,de=B.children,{patchFlag:me,shapeFlag:_e}=B;if(me>0){if(me&128){D(re,de,G,Q,te,ie,le,se,ce);return}else if(me&256){F(re,de,G,Q,te,ie,le,se,ce);return}}_e&8?(ve&16&&Z(re,te,ie),de!==re&&o(G,de)):ve&16?_e&16?D(re,de,G,Q,te,ie,le,se,ce):Z(re,te,ie,!0):(ve&8&&o(G,""),_e&16&&R(de,G,Q,te,ie,le,se,ce))},F=(P,B,G,Q,te,ie,le,se,ce)=>{P=P||ui,B=B||ui;const re=P.length,ve=B.length,de=Math.min(re,ve);let me;for(me=0;me<de;me++){const _e=B[me]=ce?_n(B[me]):bt(B[me]);f(P[me],_e,G,null,te,ie,le,se,ce)}re>ve?Z(P,te,ie,!0,!1,de):R(B,G,Q,te,ie,le,se,ce,de)},D=(P,B,G,Q,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=P.length-1,me=ve-1;for(;re<=de&&re<=me;){const _e=P[re],J=B[re]=ce?_n(B[re]):bt(B[re]);if(Ot(_e,J))f(_e,J,G,null,te,ie,le,se,ce);else break;re++}for(;re<=de&&re<=me;){const _e=P[de],J=B[me]=ce?_n(B[me]):bt(B[me]);if(Ot(_e,J))f(_e,J,G,null,te,ie,le,se,ce);else break;de--,me--}if(re>de){if(re<=me){const _e=me+1,J=_e<ve?B[_e].el:Q;for(;re<=me;)f(null,B[re]=ce?_n(B[re]):bt(B[re]),G,J,te,ie,le,se,ce),re++}}else if(re>me)for(;re<=de;)j(P[re],te,ie,!0),re++;else{const _e=re,J=re,ae=new Map;for(re=J;re<=me;re++){const ke=B[re]=ce?_n(B[re]):bt(B[re]);ke.key!=null&&ae.set(ke.key,re)}let ue,be=0;const Re=me-J+1;let Ne=!1,Ke=0;const De=new Array(Re);for(re=0;re<Re;re++)De[re]=0;for(re=_e;re<=de;re++){const ke=P[re];if(be>=Re){j(ke,te,ie,!0);continue}let Ue;if(ke.key!=null)Ue=ae.get(ke.key);else for(ue=J;ue<=me;ue++)if(De[ue-J]===0&&Ot(ke,B[ue])){Ue=ue;break}Ue===void 0?j(ke,te,ie,!0):(De[Ue-J]=re+1,Ue>=Ke?Ke=Ue:Ne=!0,f(ke,B[Ue],G,null,te,ie,le,se,ce),be++)}const He=Ne?gy(De):ui;for(ue=He.length-1,re=Re-1;re>=0;re--){const ke=J+re,Ue=B[ke],dn=ke+1<ve?B[ke+1].el:Q;De[re]===0?f(null,Ue,G,dn,te,ie,le,se,ce):Ne&&(ue<0||re!==He[ue]?W(Ue,G,dn,2):ue--)}}},W=(P,B,G,Q,te=null)=>{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=P;if(re&6){W(P.component.subTree,B,G,Q);return}if(re&128){P.suspense.move(B,G,Q);return}if(re&64){le.move(P,B,G,Y);return}if(le===Se){i(ie,B,G);for(let de=0;de<ce.length;de++)W(ce[de],B,G,Q);i(P.anchor,B,G);return}if(le===Kn){x(P,B,G);return}if(Q!==2&&re&1&&se)if(Q===0)se.beforeEnter(ie),i(ie,B,G),rt(()=>se.enter(ie),te);else{const{leave:de,delayLeave:me,afterLeave:_e}=se,J=()=>i(ie,B,G),ae=()=>{de(ie,()=>{J(),_e&&_e()})};me?me(ie,J,ae):ae()}else i(ie,B,G)},j=(P,B,G,Q=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=P;if(se!=null&&bo(se,null,G,P,!0),ve&256){B.ctx.deactivate(P);return}const _e=ve&1&&me,J=!Gn(P);let ae;if(J&&(ae=le&&le.onVnodeBeforeUnmount)&&pt(ae,B,P),ve&6)K(P.component,G,Q);else{if(ve&128){P.suspense.unmount(G,Q);return}_e&&Bt(P,null,B,"beforeUnmount"),ve&64?P.type.remove(P,B,G,te,Y,Q):re&&(ie!==Se||de>0&&de&64)?Z(re,B,G,!1,!0):(ie===Se&&de&384||!te&&ve&16)&&Z(ce,B,G),Q&&H(P)}(J&&(ae=le&&le.onVnodeUnmounted)||_e)&&rt(()=>{ae&&pt(ae,B,P),_e&&Bt(P,null,B,"unmounted")},G)},H=P=>{const{type:B,el:G,anchor:Q,transition:te}=P;if(B===Se){U(G,Q);return}if(B===Kn){C(P);return}const ie=()=>{p(G),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(P.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(G,ie);se?se(P.el,ie,ce):ce()}else ie()},U=(P,B)=>{let G;for(;P!==B;)G=l(P),p(P),P=G;p(B)},K=(P,B,G)=>{const{bum:Q,scope:te,update:ie,subTree:le,um:se}=P;Q&&fi(Q),te.stop(),ie&&(ie.active=!1,j(le,P,B,G)),se&&rt(se,B),rt(()=>{P.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(P,B,G,Q=!1,te=!1,ie=0)=>{for(let le=ie;le<P.length;le++)j(P[le],B,G,Q,te)},z=P=>P.shapeFlag&6?z(P.component.subTree):P.shapeFlag&128?P.suspense.next():l(P.anchor||P.el),X=(P,B,G)=>{P==null?B._vnode&&j(B._vnode,null,null,!0):f(B._vnode||null,P,B,null,null,null,G),uc(),vo(),B._vnode=P},Y={p:f,um:j,m:W,r:H,mt:w,mc:R,pc:I,pbc:M,n:z,o:e};let V,ee;return t&&([V,ee]=t(Y)),{render:X,hydrate:V,createApp:ay(X,V)}}function Pn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function tf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sl(e,t,n=!1){const i=e.children,p=t.children;if(ge(i)&&ge(p))for(let u=0;u<i.length;u++){const d=i[u];let g=p[u];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=p[u]=_n(p[u]),g.el=d.el),n||sl(d,g)),g.type===Jn&&(g.el=d.el)}}function gy(e){const t=e.slice(),n=[0];let i,p,u,d,g;const s=e.length;for(i=0;i<s;i++){const h=e[i];if(h!==0){if(p=n[n.length-1],e[p]<h){t[i]=p,n.push(i);continue}for(u=0,d=n.length-1;u<d;)g=u+d>>1,e[n[g]]<h?u=g+1:d=g;h<e[n[u]]&&(u>0&&(t[i]=n[u-1]),n[u]=i)}}for(u=n.length,d=n[u-1];u-- >0;)n[u]=d,d=t[d];return n}const my=e=>e.__isTeleport,qi=e=>e&&(e.disabled||e.disabled===""),_c=e=>typeof SVGElement<"u"&&e instanceof SVGElement,na=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},vy={__isTeleport:!0,process(e,t,n,i,p,u,d,g,s,h){const{mc:o,pc:r,pbc:l,o:{insert:c,querySelector:a,createText:f,createComment:m}}=h,v=qi(t.props);let{shapeFlag:b,children:x,dynamicChildren:C}=t;if(e==null){const S=t.el=f(""),$=t.anchor=f("");c(S,n,i),c($,n,i);const L=t.target=na(t.props,a),R=t.targetAnchor=f("");L&&(c(R,L),d=d||_c(L));const k=(M,y)=>{b&16&&o(x,M,y,p,u,d,g,s)};v?k(n,$):L&&k(L,R)}else{t.el=e.el;const S=t.anchor=e.anchor,$=t.target=e.target,L=t.targetAnchor=e.targetAnchor,R=qi(e.props),k=R?n:$,M=R?S:L;if(d=d||_c($),C?(l(e.dynamicChildren,C,k,p,u,d,g),sl(e,t,!0)):s||r(e,t,k,M,p,u,d,g,!1),v)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qr(t,n,S,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const y=t.target=na(t.props,a);y&&Qr(t,y,null,h,0)}else R&&Qr(t,$,L,h,1)}nf(t)},remove(e,t,n,i,{um:p,o:{remove:u}},d){const{shapeFlag:g,children:s,anchor:h,targetAnchor:o,target:r,props:l}=e;if(r&&u(o),d&&u(h),g&16){const c=d||!qi(l);for(let a=0;a<s.length;a++){const f=s[a];p(f,t,n,c,!!f.dynamicChildren)}}},move:Qr,hydrate:yy};function Qr(e,t,n,{o:{insert:i},m:p},u=2){u===0&&i(e.targetAnchor,t,n);const{el:d,anchor:g,shapeFlag:s,children:h,props:o}=e,r=u===2;if(r&&i(d,t,n),(!r||qi(o))&&s&16)for(let l=0;l<h.length;l++)p(h[l],t,n,2);r&&i(g,t,n)}function yy(e,t,n,i,p,u,{o:{nextSibling:d,parentNode:g,querySelector:s}},h){const o=t.target=na(t.props,s);if(o){const r=o._lpa||o.firstChild;if(t.shapeFlag&16)if(qi(t.props))t.anchor=h(d(e),t,g(e),n,i,p,u),t.targetAnchor=r;else{t.anchor=d(e);let l=r;for(;l;)if(l=d(l),l&&l.nodeType===8&&l.data==="teleport anchor"){t.targetAnchor=l,o._lpa=t.targetAnchor&&d(t.targetAnchor);break}h(r,t,o,n,i,p,u)}nf(t)}return t.anchor&&d(t.anchor)}const by=vy;function nf(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Se=Symbol.for("v-fgt"),Jn=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc"),er=[];let gt=null;function q(e=!1){er.push(gt=e?null:[])}function rf(){er.pop(),gt=er[er.length-1]||null}let qn=1;function ia(e){qn+=e}function of(e){return e.dynamicChildren=qn>0?gt||ui:null,rf(),qn>0&&gt&&gt.push(e),e}function oe(e,t,n,i,p,u){return of(N(e,t,n,i,p,u,!0))}function Me(e,t,n,i,p){return of(he(e,t,n,i,p,!0))}function Mn(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}function wy(e){}const Xo="__vInternal",sf=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||qe(e)||Ce(e)?{i:nt,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,i=0,p=null,u=e===Se?0:1,d=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sf(t),ref:t&&io(t),scopeId:Vo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:i,dynamicProps:p,dynamicChildren:null,appContext:null,ctx:nt};return g?(al(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ge(n)?8:16),qn>0&&!d&&gt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&gt.push(s),s}const he=$y;function $y(e,t=null,n=null,i=0,p=null,u=!1){if((!e||e===xh)&&(e=lt),Mn(e)){const g=jt(e,t,!0);return n&&al(g,n),qn>0&&!u&&gt&&(g.shapeFlag&6?gt[gt.indexOf(e)]=g:gt.push(g)),g.patchFlag|=-2,g}if(Ry(e)&&(e=e.__vccOpts),t){t=af(t);let{class:g,style:s}=t;g&&!Ge(g)&&(t.class=xr(g)),We(s)&&(Va(s)&&!ge(s)&&(s=je({},s)),t.style=Ar(s))}const d=Ge(e)?1:kh(e)?128:my(e)?64:We(e)?4:Ce(e)?2:0;return N(e,t,n,i,p,d,u,!0)}function af(e){return e?Va(e)||Xo in e?je({},e):e:null}function jt(e,t,n=!1){const{props:i,ref:p,patchFlag:u,children:d}=e,g=t?lf(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&sf(g),ref:t&&t.ref?n&&p?ge(p)?p.concat(io(t)):[p,io(t)]:io(t):p,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function at(e=" ",t=0){return he(Jn,null,e,t)}function _y(e,t){const n=he(Kn,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(q(),Me(lt,null,e)):he(lt,null,e)}function bt(e){return e==null||typeof e=="boolean"?he(lt):ge(e)?he(Se,null,e.slice()):typeof e=="object"?_n(e):he(Jn,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function al(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(i&65){const p=t.default;p&&(p._c&&(p._d=!1),al(e,p()),p._c&&(p._d=!0));return}else{n=32;const p=t._;!p&&!(Xo in t)?t._ctx=nt:p===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:nt},n=32):(t=String(t),i&64?(n=16,t=[at(t)]):n=8);e.children=t,e.shapeFlag|=n}function lf(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const p in i)if(p==="class")t.class!==i.class&&(t.class=xr([t.class,i.class]));else if(p==="style")t.style=Ar([t.style,i.style]);else if(Sr(p)){const u=t[p],d=i[p];d&&u!==d&&!(ge(u)&&u.includes(d))&&(t[p]=u?[].concat(u,d):d)}else p!==""&&(t[p]=i[p])}return t}function pt(e,t,n,i=null){$t(e,t,7,[n,i])}const Cy=Gh();let Sy=0;function cf(e,t,n){const i=e.type,p=(t?t.appContext:e.appContext)||Cy,u={uid:Sy++,vnode:e,type:i,parent:t,appContext:p,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ba(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(p.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yh(i,p),emitsOptions:Ah(i,p),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:i.inheritAttrs,ctx:Be,data:Be,props:Be,attrs:Be,slots:Be,refs:Be,setupState:Be,setupContext:null,attrsProxy:null,slotsProxy: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 u.ctx={_:u},u.root=t?t.root:u,u.emit=pv.bind(null,u),e.ce&&e.ce(u),u}let Qe=null;const Dt=()=>Qe||nt;let ll,ii,Cc="__VUE_INSTANCE_SETTERS__";(ii=Gs()[Cc])||(ii=Gs()[Cc]=[]),ii.push(e=>Qe=e),ll=e=>{ii.length>1?ii.forEach(t=>t(e)):ii[0](e)};const On=e=>{ll(e),e.scope.on()},An=()=>{Qe&&Qe.scope.off(),ll(null)};function uf(e){return e.vnode.shapeFlag&4}let wi=!1;function hf(e,t=!1){wi=t;const{props:n,children:i}=e.vnode,p=uf(e);cy(e,n,p,t),fy(e,i);const u=p?Ay(e,t):void 0;return wi=!1,u}function Ay(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Wo(new Proxy(e.ctx,Js));const{setup:i}=n;if(i){const p=e.setupContext=i.length>1?df(e):null;On(e),Ti();const u=nn(i,e,0,[e.props,p]);if(Li(),An(),Pa(u)){if(u.then(An,An),t)return u.then(d=>{ra(e,d,t)}).catch(d=>{ti(d,e,0)});e.asyncDep=u}else ra(e,u,t)}else ff(e,t)}function ra(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=Ka(t)),ff(e,n)}let wo,oa;function xy(e){wo=e,oa=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Wv))}}const ky=()=>!wo;function ff(e,t,n){const i=e.type;if(!e.render){if(!t&&wo&&!i.render){const p=i.template||rl(e).template;if(p){const{isCustomElement:u,compilerOptions:d}=e.appContext.config,{delimiters:g,compilerOptions:s}=i,h=je(je({isCustomElement:u,delimiters:g},d),s);i.render=wo(p,h)}}e.render=i.render||Nt,oa&&oa(e)}{On(e),Ti();try{ty(e)}finally{Li(),An()}}}function Ey(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return vt(e,"get","$attrs"),t[n]}}))}function df(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ey(e)},slots:e.slots,emit:e.emit,expose:t}}function Zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ka(Wo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qi)return Qi[n](e)},has(t,n){return n in t||n in Qi}}))}function sa(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Ry(e){return Ce(e)&&"__vccOpts"in e}const Ee=(e,t)=>av(e,t,wi);function Oi(e,t,n){const i=arguments.length;return i===2?We(t)&&!ge(t)?Mn(t)?he(e,null,[t]):he(e,t):he(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Mn(n)&&(n=[n]),he(e,t,n))}const pf=Symbol.for("v-scx"),gf=()=>kt(pf);function Ty(){}function Ly(e,t,n,i){const p=n[i];if(p&&mf(p,e))return p;const u=t();return u.memo=e.slice(),n[i]=u}function mf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(Rn(n[i],t[i]))return!1;return qn>0&&gt&&gt.push(e),!0}const vf="3.3.8",My={createComponentInstance:cf,setupComponent:hf,renderComponentRoot:no,setCurrentRenderingInstance:dr,isVNode:Mn,normalizeVNode:bt},Oy=My,Iy=null,Fy=null,Ny="http://www.w3.org/2000/svg",Wn=typeof document<"u"?document:null,Sc=Wn&&Wn.createElement("template"),Py={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 p=t?Wn.createElementNS(Ny,e):Wn.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&p.setAttribute("multiple",i.multiple),p},createText:e=>Wn.createTextNode(e),createComment:e=>Wn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,p,u){const d=n?n.previousSibling:t.lastChild;if(p&&(p===u||p.nextSibling))for(;t.insertBefore(p.cloneNode(!0),n),!(p===u||!(p=p.nextSibling)););else{Sc.innerHTML=i?`<svg>${e}</svg>`:e;const g=Sc.content;if(i){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vn="transition",Di="animation",$i=Symbol("_vtc"),cl=(e,{slots:t})=>Oi(Mh,bf(e),t);cl.displayName="Transition";const yf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Dy=cl.props=je({},il,yf),Dn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ac=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function bf(e){const t={};for(const A in e)A in yf||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:i,duration:p,enterFromClass:u=`${n}-enter-from`,enterActiveClass:d=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:h=d,appearToClass:o=g,leaveFromClass:r=`${n}-leave-from`,leaveActiveClass:l=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,a=By(p),f=a&&a[0],m=a&&a[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:x,onLeave:C,onLeaveCancelled:S,onBeforeAppear:$=v,onAppear:L=b,onAppearCancelled:R=x}=t,k=(A,_,w)=>{wn(A,_?o:g),wn(A,_?h:d),w&&w()},M=(A,_)=>{A._isLeaving=!1,wn(A,r),wn(A,c),wn(A,l),_&&_()},y=A=>(_,w)=>{const E=A?L:b,T=()=>k(_,A,w);Dn(E,[_,T]),xc(()=>{wn(_,A?s:u),Xt(_,A?o:g),Ac(E)||kc(_,i,f,T)})};return je(t,{onBeforeEnter(A){Dn(v,[A]),Xt(A,u),Xt(A,d)},onBeforeAppear(A){Dn($,[A]),Xt(A,s),Xt(A,h)},onEnter:y(!1),onAppear:y(!0),onLeave(A,_){A._isLeaving=!0;const w=()=>M(A,_);Xt(A,r),$f(),Xt(A,l),xc(()=>{A._isLeaving&&(wn(A,r),Xt(A,c),Ac(C)||kc(A,i,m,w))}),Dn(C,[A,w])},onEnterCancelled(A){k(A,!1),Dn(x,[A])},onAppearCancelled(A){k(A,!0),Dn(R,[A])},onLeaveCancelled(A){M(A),Dn(S,[A])}})}function By(e){if(e==null)return null;if(We(e))return[$s(e.enter),$s(e.leave)];{const t=$s(e);return[t,t]}}function $s(e){return po(e)}function Xt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$i]||(e[$i]=new Set)).add(t)}function wn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[$i];n&&(n.delete(t),n.size||(e[$i]=void 0))}function xc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wy=0;function kc(e,t,n,i){const p=e._endId=++Wy,u=()=>{p===e._endId&&i()};if(n)return setTimeout(u,n);const{type:d,timeout:g,propCount:s}=wf(e,t);if(!d)return i();const h=d+"end";let o=0;const r=()=>{e.removeEventListener(h,l),u()},l=c=>{c.target===e&&++o>=s&&r()};setTimeout(()=>{o<s&&r()},g+1),e.addEventListener(h,l)}function wf(e,t){const n=window.getComputedStyle(e),i=a=>(n[a]||"").split(", "),p=i(`${vn}Delay`),u=i(`${vn}Duration`),d=Ec(p,u),g=i(`${Di}Delay`),s=i(`${Di}Duration`),h=Ec(g,s);let o=null,r=0,l=0;t===vn?d>0&&(o=vn,r=d,l=u.length):t===Di?h>0&&(o=Di,r=h,l=s.length):(r=Math.max(d,h),o=r>0?d>h?vn:Di:null,l=o?o===vn?u.length:s.length:0);const c=o===vn&&/\b(transform|all)(,|$)/.test(i(`${vn}Property`).toString());return{type:o,timeout:r,propCount:l,hasTransform:c}}function Ec(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Rc(n)+Rc(e[i])))}function Rc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $f(){return document.body.offsetHeight}function Hy(e,t,n){const i=e[$i];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ul=Symbol("_vod"),_f={beforeMount(e,{value:t},{transition:n}){e[ul]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Bi(e,!0),i.enter(e)):i.leave(e,()=>{Bi(e,!1)}):Bi(e,t))},beforeUnmount(e,{value:t}){Bi(e,t)}};function Bi(e,t){e.style.display=t?e[ul]:"none"}function Uy(){_f.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function zy(e,t,n){const i=e.style,p=Ge(n);if(n&&!p){if(t&&!Ge(t))for(const u in t)n[u]==null&&aa(i,u,"");for(const u in n)aa(i,u,n[u])}else{const u=i.display;p?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),ul in e&&(i.display=u)}}const Tc=/\s*!important$/;function aa(e,t,n){if(ge(n))n.forEach(i=>aa(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Vy(e,t);Tc.test(n)?e.setProperty(At(i),n.replace(Tc,""),"important"):e[i]=n}}const Lc=["Webkit","Moz","ms"],_s={};function Vy(e,t){const n=_s[t];if(n)return n;let i=mt(t);if(i!=="filter"&&i in e)return _s[t]=i;i=Ri(i);for(let p=0;p<Lc.length;p++){const u=Lc[p]+i;if(u in e)return _s[t]=u}return t}const Mc="http://www.w3.org/1999/xlink";function jy(e,t,n,i,p){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Mc,t.slice(6,t.length)):e.setAttributeNS(Mc,t,n);else{const u=xm(t);n==null||u&&!th(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function Gy(e,t,n,i,p,u,d){if(t==="innerHTML"||t==="textContent"){i&&d(i,p,u),e[t]=n??"";return}const g=e.tagName;if(t==="value"&&g!=="PROGRESS"&&!g.includes("-")){e._value=n;const h=g==="OPTION"?e.getAttribute("value"):e.value,o=n??"";h!==o&&(e.value=o),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const h=typeof e[t];h==="boolean"?n=th(n):n==null&&h==="string"?(n="",s=!0):h==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Qt(e,t,n,i){e.addEventListener(t,n,i)}function Ky(e,t,n,i){e.removeEventListener(t,n,i)}const Oc=Symbol("_vei");function Yy(e,t,n,i,p=null){const u=e[Oc]||(e[Oc]={}),d=u[t];if(i&&d)d.value=i;else{const[g,s]=Xy(t);if(i){const h=u[t]=Jy(i,p);Qt(e,g,h,s)}else d&&(Ky(e,g,d,s),u[t]=void 0)}}const Ic=/(?:Once|Passive|Capture)$/;function Xy(e){let t;if(Ic.test(e)){t={};let i;for(;i=e.match(Ic);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let Cs=0;const Zy=Promise.resolve(),Qy=()=>Cs||(Zy.then(()=>Cs=0),Cs=Date.now());function Jy(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;$t(qy(i,n.value),t,5,[i])};return n.value=e,n.attached=Qy(),n}function qy(e,t){if(ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>p=>!p._stopped&&i&&i(p))}else return t}const Fc=/^on[a-z]/,e0=(e,t,n,i,p=!1,u,d,g,s)=>{t==="class"?Hy(e,i,p):t==="style"?zy(e,n,i):Sr(t)?Fa(t)||Yy(e,t,n,i,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):t0(e,t,i,p))?Gy(e,t,i,u,d,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),jy(e,t,i,p))};function t0(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Fc.test(t)&&Ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fc.test(t)&&Ge(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Cf(e,t){const n=$e(e);class i extends Qo{constructor(u){super(n,u,t)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const n0=e=>Cf(e,Of),i0=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends i0{constructor(t,n={},i){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Vt(()=>{this._connected||(ua(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(i=>{for(const p of i)this._setAttr(p.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(i,p=!1)=>{const{props:u,styles:d}=i;let g;if(u&&!ge(u))for(const s in u){const h=u[s];(h===Number||h&&h.type===Number)&&(s in this._props&&(this._props[s]=po(this._props[s])),(g||(g=Object.create(null)))[mt(s)]=!0)}this._numberProps=g,p&&this._resolveProps(i),this._applyStyles(d),this._update()},n=this._def.__asyncLoader;n?n().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,i=ge(n)?n:Object.keys(n||{});for(const p of Object.keys(this))p[0]!=="_"&&i.includes(p)&&this._setProp(p,this[p],!0,!1);for(const p of i.map(mt))Object.defineProperty(this,p,{get(){return this._getProp(p)},set(u){this._setProp(p,u)}})}_setAttr(t){let n=this.getAttribute(t);const i=mt(t);this._numberProps&&this._numberProps[i]&&(n=po(n)),this._setProp(i,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,p=!0){n!==this._props[t]&&(this._props[t]=n,p&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(At(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(At(t),n+""):n||this.removeAttribute(At(t))))}_update(){ua(this._createVNode(),this.shadowRoot)}_createVNode(){const t=he(this._def,je({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const i=(u,d)=>{this.dispatchEvent(new CustomEvent(u,{detail:d}))};n.emit=(u,...d)=>{i(u,d),At(u)!==u&&i(At(u),d)};let p=this;for(;p=p&&(p.parentNode||p.host);)if(p instanceof Qo){n.parent=p._instance,n.provides=p._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const i=document.createElement("style");i.textContent=n,this.shadowRoot.appendChild(i)})}}function r0(e="$style"){{const t=Dt();if(!t)return Be;const n=t.type.__cssModules;if(!n)return Be;const i=n[e];return i||Be}}function o0(e){const t=Dt();if(!t)return;const n=t.ut=(p=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>ca(u,p))},i=()=>{const p=e(t.proxy);la(t.subTree,p),n(p)};Th(i),tt(()=>{const p=new MutationObserver(i);p.observe(t.subTree.el.parentNode,{childList:!0}),Yo(()=>p.disconnect())})}function la(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{la(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ca(e.el,t);else if(e.type===Se)e.children.forEach(n=>la(n,t));else if(e.type===Kn){let{el:n,anchor:i}=e;for(;n&&(ca(n,t),n!==i);)n=n.nextSibling}}function ca(e,t){if(e.nodeType===1){const n=e.style;for(const i in t)n.setProperty(`--${i}`,t[i])}}const Sf=new WeakMap,Af=new WeakMap,$o=Symbol("_moveCb"),Nc=Symbol("_enterCb"),xf={name:"TransitionGroup",props:je({},Dy,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dt(),i=nl();let p,u;return Ko(()=>{if(!p.length)return;const d=e.moveClass||`${e.name||"v"}-move`;if(!h0(p[0].el,n.vnode.el,d))return;p.forEach(l0),p.forEach(c0);const g=p.filter(u0);$f(),g.forEach(s=>{const h=s.el,o=h.style;Xt(h,d),o.transform=o.webkitTransform=o.transitionDuration="";const r=h[$o]=l=>{l&&l.target!==h||(!l||/transform$/.test(l.propertyName))&&(h.removeEventListener("transitionend",r),h[$o]=null,wn(h,d))};h.addEventListener("transitionend",r)})}),()=>{const d=Le(e),g=bf(d);let s=d.tag||Se;p=u,u=t.default?jo(t.default()):[];for(let h=0;h<u.length;h++){const o=u[h];o.key!=null&&Qn(o,bi(o,g,i,n))}if(p)for(let h=0;h<p.length;h++){const o=p[h];Qn(o,bi(o,g,i,n)),Sf.set(o,o.el.getBoundingClientRect())}return he(s,null,u)}}},s0=e=>delete e.mode;xf.props;const a0=xf;function l0(e){const t=e.el;t[$o]&&t[$o](),t[Nc]&&t[Nc]()}function c0(e){Af.set(e,e.el.getBoundingClientRect())}function u0(e){const t=Sf.get(e),n=Af.get(e),i=t.left-n.left,p=t.top-n.top;if(i||p){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${i}px,${p}px)`,u.transitionDuration="0s",e}}function h0(e,t,n){const i=e.cloneNode(),p=e[$i];p&&p.forEach(g=>{g.split(/\s+/).forEach(s=>s&&i.classList.remove(s))}),n.split(/\s+/).forEach(g=>g&&i.classList.add(g)),i.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(i);const{hasTransform:d}=wf(i);return u.removeChild(i),d}const In=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>fi(t,n):t};function f0(e){e.target.composing=!0}function Pc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Et=Symbol("_assign"),Ft={created(e,{modifiers:{lazy:t,trim:n,number:i}},p){e[Et]=In(p);const u=i||p.props&&p.props.type==="number";Qt(e,t?"change":"input",d=>{if(d.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=fo(g)),e[Et](g)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",f0),Qt(e,"compositionend",Pc),Qt(e,"change",Pc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:p}},u){if(e[Et]=In(u),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(p||e.type==="number")&&fo(e.value)===t))return;const d=t??"";e.value!==d&&(e.value=d)}},hl={deep:!0,created(e,t,n){e[Et]=In(n),Qt(e,"change",()=>{const i=e._modelValue,p=_i(e),u=e.checked,d=e[Et];if(ge(i)){const g=Fo(i,p),s=g!==-1;if(u&&!s)d(i.concat(p));else if(!u&&s){const h=[...i];h.splice(g,1),d(h)}}else if(ei(i)){const g=new Set(i);u?g.add(p):g.delete(p),d(g)}else d(kf(e,u))})},mounted:Dc,beforeUpdate(e,t,n){e[Et]=In(n),Dc(e,t,n)}};function Dc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=Fo(t,i.props.value)>-1:ei(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Tn(t,kf(e,!0)))}const fl={created(e,{value:t},n){e.checked=Tn(t,n.props.value),e[Et]=In(n),Qt(e,"change",()=>{e[Et](_i(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Et]=In(i),t!==n&&(e.checked=Tn(t,i.props.value))}},vr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const p=ei(t);Qt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?fo(_i(d)):_i(d));e[Et](e.multiple?p?new Set(u):u:u[0])}),e[Et]=In(i)},mounted(e,{value:t}){Bc(e,t)},beforeUpdate(e,t,n){e[Et]=In(n)},updated(e,{value:t}){Bc(e,t)}};function Bc(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!ei(t))){for(let i=0,p=e.options.length;i<p;i++){const u=e.options[i],d=_i(u);if(n)ge(t)?u.selected=Fo(t,d)>-1:u.selected=t.has(d);else if(Tn(_i(u),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _i(e){return"_value"in e?e._value:e.value}function kf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ef={created(e,t,n){Jr(e,t,n,null,"created")},mounted(e,t,n){Jr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Jr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Jr(e,t,n,i,"updated")}};function Rf(e,t){switch(e){case"SELECT":return vr;case"TEXTAREA":return Ft;default:switch(t){case"checkbox":return hl;case"radio":return fl;default:return Ft}}}function Jr(e,t,n,i,p){const d=Rf(e.tagName,n.props&&n.props.type)[p];d&&d(e,t,n,i)}function d0(){Ft.getSSRProps=({value:e})=>({value:e}),fl.getSSRProps=({value:e},t)=>{if(t.props&&Tn(t.props.value,e))return{checked:!0}},hl.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&Fo(e,t.props.value)>-1)return{checked:!0}}else if(ei(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ef.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Rf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const p0=["ctrl","shift","alt","meta"],g0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>p0.some(n=>e[`${n}Key`]&&!t.includes(n))},m0=(e,t)=>(n,...i)=>{for(let p=0;p<t.length;p++){const u=g0[t[p]];if(u&&u(n,t))return}return e(n,...i)},v0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},y0=(e,t)=>n=>{if(!("key"in n))return;const i=At(n.key);if(t.some(p=>p===i||v0[p]===i))return e(n)},Tf=je({patchProp:e0},Py);let tr,Wc=!1;function Lf(){return tr||(tr=Jh(Tf))}function Mf(){return tr=Wc?tr:qh(Tf),Wc=!0,tr}const ua=(...e)=>{Lf().render(...e)},Of=(...e)=>{Mf().hydrate(...e)},If=(...e)=>{const t=Lf().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Ff(i);if(!p)return;const u=t._component;!Ce(u)&&!u.render&&!u.template&&(u.template=p.innerHTML),p.innerHTML="";const d=n(p,!1,p instanceof SVGElement);return p instanceof Element&&(p.removeAttribute("v-cloak"),p.setAttribute("data-v-app","")),d},t},b0=(...e)=>{const t=Mf().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Ff(i);if(p)return n(p,!0,p instanceof SVGElement)},t};function Ff(e){return Ge(e)?document.querySelector(e):e}let Hc=!1;const w0=()=>{Hc||(Hc=!0,d0(),Uy())},$0=()=>{},_0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Mh,BaseTransitionPropsValidators:il,Comment:lt,EffectScope:Ba,Fragment:Se,KeepAlive:Fv,ReactiveEffect:vi,Static:Kn,Suspense:Sv,Teleport:by,Text:Jn,Transition:cl,TransitionGroup:a0,VueElement:Qo,assertNumber:cv,callWithAsyncErrorHandling:$t,callWithErrorHandling:nn,camelize:mt,capitalize:Ri,cloneVNode:jt,compatUtils:Fy,compile:$0,computed:Ee,createApp:If,createBlock:Me,createCommentVNode:we,createElementBlock:oe,createElementVNode:N,createHydrationRenderer:qh,createPropsRestProxy:qv,createRenderer:Jh,createSSRApp:b0,createSlots:Pv,createStaticVNode:_y,createTextVNode:at,createVNode:he,customRef:Ya,defineAsyncComponent:Ov,defineComponent:$e,defineCustomElement:Cf,defineEmits:Uv,defineExpose:zv,defineModel:Gv,defineOptions:Vv,defineProps:Hv,defineSSRCustomElement:n0,defineSlots:jv,get devtools(){return ri},effect:Tm,effectScope:ih,getCurrentInstance:Dt,getCurrentScope:Wa,getTransitionRawChildren:jo,guardReactiveProps:af,h:Oi,handleError:ti,hasInjectionContext:ly,hydrate:Of,initCustomFormatter:Ty,initDirectivesForSSR:w0,inject:kt,isMemoSame:mf,isProxy:Va,isReactive:jn,isReadonly:Zn,isRef:qe,isRuntimeOnly:ky,isShallow:cr,isVNode:Mn,markRaw:Wo,mergeDefaults:Qv,mergeModels:Jv,mergeProps:lf,nextTick:Vt,normalizeClass:xr,normalizeProps:Sm,normalizeStyle:Ar,onActivated:Ih,onBeforeMount:Ph,onBeforeUnmount:Rr,onBeforeUpdate:Dh,onDeactivated:Fh,onErrorCaptured:Uh,onMounted:tt,onRenderTracked:Hh,onRenderTriggered:Wh,onScopeDispose:oh,onServerPrefetch:Bh,onUnmounted:Yo,onUpdated:Ko,openBlock:q,popScopeId:Qa,provide:Ji,proxyRefs:Ka,pushScopeId:Za,queuePostFlushCb:mo,reactive:Mi,readonly:Do,ref:Ie,registerRuntimeCompiler:xy,render:ua,renderList:ct,renderSlot:Dv,resolveComponent:fe,resolveDirective:_v,resolveDynamicComponent:$v,resolveFilter:Iy,resolveTransitionHooks:bi,setBlockTracking:ia,setDevtoolsHook:Sh,setTransitionHooks:Qn,shallowReactive:za,shallowReadonly:Qm,shallowRef:yh,ssrContextKey:pf,ssrUtils:Oy,stop:Lm,toDisplayString:Ae,toHandlerKey:Zi,toHandlers:Bv,toRaw:Le,toRef:yi,toRefs:iv,toValue:ev,transformVNodeArgs:wy,triggerRef:qm,unref:tn,useAttrs:Xv,useCssModule:r0,useCssVars:o0,useModel:Zv,useSSRContext:gf,useSlots:Yv,useTransitionState:nl,vModelCheckbox:hl,vModelDynamic:Ef,vModelRadio:fl,vModelSelect:vr,vModelText:Ft,vShow:_f,version:vf,warn:lv,watch:Ye,watchEffect:Rh,watchPostEffect:Th,watchSyncEffect:Tv,withAsyncContext:ey,withCtx:xt,withDefaults:Kv,withDirectives:Mt,withKeys:y0,withMemo:Ly,withModifiers:m0,withScopeId:gv},Symbol.toStringTag,{value:"Module"}));function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),n.push.apply(n,i)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(i){dt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function dt(e,t,n){return t=x0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C0(e,t){if(e==null)return{};var n={},i=Object.keys(e),p,u;for(u=0;u<i.length;u++)p=i[u],!(t.indexOf(p)>=0)&&(n[p]=e[p]);return n}function S0(e,t){if(e==null)return{};var n=C0(e,t),i,p;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(p=0;p<u.length;p++)i=u[p],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function A0(e,t){if(typeof e!="object"||e===null)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 x0(e){var t=A0(e,"string");return typeof t=="symbol"?t:String(t)}var k0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nf={exports:{}};(function(e){(function(t){var n=function(v,b,x){if(!h(b)||r(b)||l(b)||c(b)||s(b))return b;var C,S=0,$=0;if(o(b))for(C=[],$=b.length;S<$;S++)C.push(n(v,b[S],x));else{C={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&(C[v(L,x)]=n(v,b[L],x))}return C},i=function(v,b){b=b||{};var x=b.separator||"_",C=b.split||/(?=[A-Z])/;return v.split(C).join(x)},p=function(v){return a(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(b,x){return x?x.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},u=function(v){var b=p(v);return b.substr(0,1).toUpperCase()+b.substr(1)},d=function(v,b){return i(v,b).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},h=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},r=function(v){return g.call(v)=="[object Date]"},l=function(v){return g.call(v)=="[object RegExp]"},c=function(v){return g.call(v)=="[object Boolean]"},a=function(v){return v=v-0,v===v},f=function(v,b){var x=b&&"process"in b?b.process:b;return typeof x!="function"?v:function(C,S){return x(C,v,S)}},m={camelize:p,decamelize:d,pascalize:u,depascalize:d,camelizeKeys:function(v,b){return n(f(p,b),v)},decamelizeKeys:function(v,b){return n(f(d,b),v,b)},pascalizeKeys:function(v,b){return n(f(u,b),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(k0)})(Nf);var E0=Nf.exports,R0=["class","style"];function T0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),p=E0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[p]=u,t},{})}function L0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Pf(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(s){return Pf(s)}),p=Object.keys(e.attributes||{}).reduce(function(s,h){var o=e.attributes[h];switch(h){case"class":s.class=L0(o);break;case"style":s.style=T0(o);break;default:s.attrs[h]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,d=u===void 0?{}:u,g=S0(n,R0);return Oi(e.tag,Jt(Jt(Jt({},t),{},{class:p.class,style:Jt(Jt({},p.style),d)},p.attrs),g),i)}var Df=!1;try{Df=!0}catch{}function M0(){if(!Df&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ss(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?dt({},e,t):{}}function O0(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"},dt(t,"fa-".concat(e.size),e.size!==null),dt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),dt(t,"fa-pull-".concat(e.pull),e.pull!==null),dt(t,"fa-swap-opacity",e.swapOpacity),dt(t,"fa-bounce",e.bounce),dt(t,"fa-shake",e.shake),dt(t,"fa-beat",e.beat),dt(t,"fa-fade",e.fade),dt(t,"fa-beat-fade",e.beatFade),dt(t,"fa-flash",e.flash),dt(t,"fa-spin-pulse",e.spinPulse),dt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function zc(e){if(e&&_o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(js.icon)return js.icon(e);if(e===null)return null;if(_o(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 I0=$e({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,p=Ee(function(){return zc(t.icon)}),u=Ee(function(){return Ss("classes",O0(t))}),d=Ee(function(){return Ss("transform",typeof t.transform=="string"?js.transform(t.transform):t.transform)}),g=Ee(function(){return Ss("mask",zc(t.mask))}),s=Ee(function(){return Zg(p.value,Jt(Jt(Jt(Jt({},u.value),d.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Ye(s,function(o){if(!o)return M0("Could not find one or more icon(s)",p.value,g.value)},{immediate:!0});var h=Ee(function(){return s.value?Pf(s.value.abstract[0],{},i):null});return function(){return h.value}}});const F0=$e({name:"NavbarItem"});const xe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,p]of t)n[i]=p;return n},Jo=e=>(Za("data-v-19d4e9a4"),e=e(),Qa(),e),N0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},P0=Jo(()=>N("div",{class:"navbar-brand"},[N("a",{class:"navbar-item"},[N("h1",{class:"title"},"Mihari")]),N("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"})])],-1)),D0={class:"navbar-menu"},B0=Jo(()=>N("div",{class:"navbar-start"},null,-1)),W0={class:"navbar-end"},H0=Jo(()=>N("a",{class:"navbar-item"},[N("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),U0=Jo(()=>N("a",{class:"navbar-item"},[N("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function z0(e,t,n,i,p,u){const d=fe("router-link");return q(),oe("nav",N0,[P0,N("div",D0,[B0,N("div",W0,[he(d,{class:"navbar-item",to:{name:"Alerts"}},{default:xt(()=>[at("Alerts")]),_:1}),he(d,{class:"navbar-item",to:{name:"NewRule"}},{default:xt(()=>[at("New rule")]),_:1}),he(d,{class:"navbar-item",to:{name:"Rules"}},{default:xt(()=>[at("Rules")]),_:1}),he(d,{class:"navbar-item",to:{name:"Configs"}},{default:xt(()=>[at("Configs")]),_:1}),H0,U0])])])}const V0=xe(F0,[["render",z0],["__scopeId","data-v-19d4e9a4"]]),j0=$e({name:"App",components:{Navbar:V0}});const G0={class:"section is-medium"},K0={class:"container"};function Y0(e,t,n,i,p,u){const d=fe("Navbar"),g=fe("router-view");return q(),oe(Se,null,[he(d),N("section",G0,[N("div",K0,[he(g)])])],64)}const X0=xe(j0,[["render",Y0]]);/*!
762
- * vue-router v4.2.5
763
- * (c) 2023 Eduardo San Martin Morote
764
- * @license MIT
765
- */const oi=typeof window<"u";function Z0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function As(e,t){const n={};for(const i in t){const p=t[i];n[i]=Pt(p)?p.map(e):e(p)}return n}const nr=()=>{},Pt=Array.isArray,Q0=/\/$/,J0=e=>e.replace(Q0,"");function xs(e,t,n="/"){let i,p={},u="",d="";const g=t.indexOf("#");let s=t.indexOf("?");return g<s&&g>=0&&(s=-1),s>-1&&(i=t.slice(0,s),u=t.slice(s+1,g>-1?g:t.length),p=e(u)),g>-1&&(i=i||t.slice(0,g),d=t.slice(g,t.length)),i=nb(i??t,n),{fullPath:i+(u&&"?")+u+d,path:i,query:p,hash:d}}function q0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Vc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function eb(e,t,n){const i=t.matched.length-1,p=n.matched.length-1;return i>-1&&i===p&&Ci(t.matched[i],n.matched[p])&&Bf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ci(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Bf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tb(e[n],t[n]))return!1;return!0}function tb(e,t){return Pt(e)?jc(e,t):Pt(t)?jc(t,e):e===t}function jc(e,t){return Pt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function nb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),p=i[i.length-1];(p===".."||p===".")&&i.push("");let u=n.length-1,d,g;for(d=0;d<i.length;d++)if(g=i[d],g!==".")if(g==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+i.slice(d-(d===i.length?1:0)).join("/")}var yr;(function(e){e.pop="pop",e.push="push"})(yr||(yr={}));var ir;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ir||(ir={}));function ib(e){if(!e)if(oi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),J0(e)}const rb=/^[^#]+#/;function ob(e,t){return e.replace(rb,"#")+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 qo=()=>({left:window.pageXOffset,top:window.pageYOffset});function ab(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),p=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!p)return;t=sb(p,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Gc(e,t){return(history.state?history.state.position-t:-1)+e}const ha=new Map;function lb(e,t){ha.set(e,t)}function cb(e){const t=ha.get(e);return ha.delete(e),t}let ub=()=>location.protocol+"//"+location.host;function Wf(e,t){const{pathname:n,search:i,hash:p}=t,u=e.indexOf("#");if(u>-1){let g=p.includes(e.slice(u))?e.slice(u).length:1,s=p.slice(g);return s[0]!=="/"&&(s="/"+s),Vc(s,"")}return Vc(n,e)+i+p}function hb(e,t,n,i){let p=[],u=[],d=null;const g=({state:l})=>{const c=Wf(e,location),a=n.value,f=t.value;let m=0;if(l){if(n.value=c,t.value=l,d&&d===a){d=null;return}m=f?l.position-f.position:0}else i(c);p.forEach(v=>{v(n.value,a,{delta:m,type:yr.pop,direction:m?m>0?ir.forward:ir.back:ir.unknown})})};function s(){d=n.value}function h(l){p.push(l);const c=()=>{const a=p.indexOf(l);a>-1&&p.splice(a,1)};return u.push(c),c}function o(){const{history:l}=window;l.state&&l.replaceState(Pe({},l.state,{scroll:qo()}),"")}function r(){for(const l of u)l();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:h,destroy:r}}function Kc(e,t,n,i=!1,p=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:p?qo():null}}function fb(e){const{history:t,location:n}=window,i={value:Wf(e,n)},p={value:t.state};p.value||u(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(s,h,o){const r=e.indexOf("#"),l=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+s:ub()+e+s;try{t[o?"replaceState":"pushState"](h,"",l),p.value=h}catch(c){console.error(c),n[o?"replace":"assign"](l)}}function d(s,h){const o=Pe({},t.state,Kc(p.value.back,s,p.value.forward,!0),h,{position:p.value.position});u(s,o,!0),i.value=s}function g(s,h){const o=Pe({},p.value,t.state,{forward:s,scroll:qo()});u(o.current,o,!0);const r=Pe({},Kc(i.value,s,null),{position:o.position+1},h);u(s,r,!1),i.value=s}return{location:i,state:p,push:g,replace:d}}function db(e){e=ib(e);const t=fb(e),n=hb(e,t.state,t.location,t.replace);function i(u,d=!0){d||n.pauseListeners(),history.go(u)}const p=Pe({location:"",base:e,go:i,createHref:ob.bind(null,e)},t,n);return Object.defineProperty(p,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(p,"state",{enumerable:!0,get:()=>t.state.value}),p}function pb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),db(e)}function gb(e){return typeof e=="string"||e&&typeof e=="object"}function Hf(e){return typeof e=="string"||typeof e=="symbol"}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Uf=Symbol("");var Yc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Yc||(Yc={}));function Si(e,t){return Pe(new Error,{type:e,[Uf]:!0},t)}function Yt(e,t){return e instanceof Error&&Uf in e&&(t==null||!!(e.type&t))}const Xc="[^/]+?",mb={sensitive:!1,strict:!1,start:!0,end:!0},vb=/[.+*?^${}()[\]/\\]/g;function yb(e,t){const n=Pe({},mb,t),i=[];let p=n.start?"^":"";const u=[];for(const h of e){const o=h.length?[]:[90];n.strict&&!h.length&&(p+="/");for(let r=0;r<h.length;r++){const l=h[r];let c=40+(n.sensitive?.25:0);if(l.type===0)r||(p+="/"),p+=l.value.replace(vb,"\\$&"),c+=40;else if(l.type===1){const{value:a,repeatable:f,optional:m,regexp:v}=l;u.push({name:a,repeatable:f,optional:m});const b=v||Xc;if(b!==Xc){c+=10;try{new RegExp(`(${b})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${a}" (${b}): `+C.message)}}let x=f?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;r||(x=m&&h.length<2?`(?:/${x})`:"/"+x),m&&(x+="?"),p+=x,c+=20,m&&(c+=-8),f&&(c+=-20),b===".*"&&(c+=-50)}o.push(c)}i.push(o)}if(n.strict&&n.end){const h=i.length-1;i[h][i[h].length-1]+=.7000000000000001}n.strict||(p+="/?"),n.end?p+="$":n.strict&&(p+="(?:/|$)");const d=new RegExp(p,n.sensitive?"":"i");function g(h){const o=h.match(d),r={};if(!o)return null;for(let l=1;l<o.length;l++){const c=o[l]||"",a=u[l-1];r[a.name]=c&&a.repeatable?c.split("/"):c}return r}function s(h){let o="",r=!1;for(const l of e){(!r||!o.endsWith("/"))&&(o+="/"),r=!1;for(const c of l)if(c.type===0)o+=c.value;else if(c.type===1){const{value:a,repeatable:f,optional:m}=c,v=a in h?h[a]:"";if(Pt(v)&&!f)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const b=Pt(v)?v.join("/"):v;if(!b)if(m)l.length<2&&(o.endsWith("/")?o=o.slice(0,-1):r=!0);else throw new Error(`Missing required param "${a}"`);o+=b}}return o||"/"}return{re:d,score:i,keys:u,parse:g,stringify:s}}function bb(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]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function wb(e,t){let n=0;const i=e.score,p=t.score;for(;n<i.length&&n<p.length;){const u=bb(i[n],p[n]);if(u)return u;n++}if(Math.abs(p.length-i.length)===1){if(Zc(i))return 1;if(Zc(p))return-1}return p.length-i.length}function Zc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $b={type:0,value:""},_b=/[a-zA-Z0-9_]/;function Cb(e){if(!e)return[[]];if(e==="/")return[[$b]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${h}": ${c}`)}let n=0,i=n;const p=[];let u;function d(){u&&p.push(u),u=[]}let g=0,s,h="",o="";function r(){h&&(n===0?u.push({type:0,value:h}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:h,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),h="")}function l(){h+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:s==="/"?(h&&r(),d()):s===":"?(r(),n=1):l();break;case 4:l(),n=i;break;case 1:s==="("?n=2:_b.test(s)?l():(r(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--);break;case 2:s===")"?o[o.length-1]=="\\"?o=o.slice(0,-1)+s:n=3:o+=s;break;case 3:r(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${h}"`),r(),d(),p}function Sb(e,t,n){const i=yb(Cb(e.path),n),p=Pe(i,{record:e,parent:t,children:[],alias:[]});return t&&!p.record.aliasOf==!t.record.aliasOf&&t.children.push(p),p}function Ab(e,t){const n=[],i=new Map;t=qc({strict:!1,end:!0,sensitive:!1},t);function p(o){return i.get(o)}function u(o,r,l){const c=!l,a=xb(o);a.aliasOf=l&&l.record;const f=qc(t,o),m=[a];if("alias"in o){const x=typeof o.alias=="string"?[o.alias]:o.alias;for(const C of x)m.push(Pe({},a,{components:l?l.record.components:a.components,path:C,aliasOf:l?l.record:a}))}let v,b;for(const x of m){const{path:C}=x;if(r&&C[0]!=="/"){const S=r.record.path,$=S[S.length-1]==="/"?"":"/";x.path=r.record.path+(C&&$+C)}if(v=Sb(x,r,f),l?l.alias.push(v):(b=b||v,b!==v&&b.alias.push(v),c&&o.name&&!Jc(v)&&d(o.name)),a.children){const S=a.children;for(let $=0;$<S.length;$++)u(S[$],v,l&&l.children[$])}l=l||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&s(v)}return b?()=>{d(b)}:nr}function d(o){if(Hf(o)){const r=i.get(o);r&&(i.delete(o),n.splice(n.indexOf(r),1),r.children.forEach(d),r.alias.forEach(d))}else{const r=n.indexOf(o);r>-1&&(n.splice(r,1),o.record.name&&i.delete(o.record.name),o.children.forEach(d),o.alias.forEach(d))}}function g(){return n}function s(o){let r=0;for(;r<n.length&&wb(o,n[r])>=0&&(o.record.path!==n[r].record.path||!zf(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!Jc(o)&&i.set(o.record.name,o)}function h(o,r){let l,c={},a,f;if("name"in o&&o.name){if(l=i.get(o.name),!l)throw Si(1,{location:o});f=l.record.name,c=Pe(Qc(r.params,l.keys.filter(b=>!b.optional).map(b=>b.name)),o.params&&Qc(o.params,l.keys.map(b=>b.name))),a=l.stringify(c)}else if("path"in o)a=o.path,l=n.find(b=>b.re.test(a)),l&&(c=l.parse(a),f=l.record.name);else{if(l=r.name?i.get(r.name):n.find(b=>b.re.test(r.path)),!l)throw Si(1,{location:o,currentLocation:r});f=l.record.name,c=Pe({},r.params,o.params),a=l.stringify(c)}const m=[];let v=l;for(;v;)m.unshift(v.record),v=v.parent;return{name:f,path:a,params:c,matched:m,meta:Eb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:h,removeRoute:d,getRoutes:g,getRecordMatcher:p}}function Qc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function xb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kb(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 kb(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 Jc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Eb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function qc(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function zf(e,t){return t.children.some(n=>n===e||zf(e,n))}const Vf=/#/g,Rb=/&/g,Tb=/\//g,Lb=/=/g,Mb=/\?/g,jf=/\+/g,Ob=/%5B/g,Ib=/%5D/g,Gf=/%5E/g,Fb=/%60/g,Kf=/%7B/g,Nb=/%7C/g,Yf=/%7D/g,Pb=/%20/g;function dl(e){return encodeURI(""+e).replace(Nb,"|").replace(Ob,"[").replace(Ib,"]")}function Db(e){return dl(e).replace(Kf,"{").replace(Yf,"}").replace(Gf,"^")}function fa(e){return dl(e).replace(jf,"%2B").replace(Pb,"+").replace(Vf,"%23").replace(Rb,"%26").replace(Fb,"`").replace(Kf,"{").replace(Yf,"}").replace(Gf,"^")}function Bb(e){return fa(e).replace(Lb,"%3D")}function Wb(e){return dl(e).replace(Vf,"%23").replace(Mb,"%3F")}function Hb(e){return e==null?"":Wb(e).replace(Tb,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ub(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let p=0;p<i.length;++p){const u=i[p].replace(jf," "),d=u.indexOf("="),g=Co(d<0?u:u.slice(0,d)),s=d<0?null:Co(u.slice(d+1));if(g in t){let h=t[g];Pt(h)||(h=t[g]=[h]),h.push(s)}else t[g]=s}return t}function eu(e){let t="";for(let n in e){const i=e[n];if(n=Bb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Pt(i)?i.map(u=>u&&fa(u)):[i&&fa(i)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function zb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Pt(i)?i.map(p=>p==null?null:""+p):i==null?i:""+i)}return t}const Vb=Symbol(""),tu=Symbol(""),es=Symbol(""),pl=Symbol(""),da=Symbol("");function Wi(){let e=[];function t(i){return e.push(i),()=>{const p=e.indexOf(i);p>-1&&e.splice(p,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Cn(e,t,n,i,p){const u=i&&(i.enterCallbacks[p]=i.enterCallbacks[p]||[]);return()=>new Promise((d,g)=>{const s=r=>{r===!1?g(Si(4,{from:n,to:t})):r instanceof Error?g(r):gb(r)?g(Si(2,{from:t,to:r})):(u&&i.enterCallbacks[p]===u&&typeof r=="function"&&u.push(r),d())},h=e.call(i&&i.instances[p],t,n,s);let o=Promise.resolve(h);e.length<3&&(o=o.then(s)),o.catch(r=>g(r))})}function ks(e,t,n,i){const p=[];for(const u of e)for(const d in u.components){let g=u.components[d];if(!(t!=="beforeRouteEnter"&&!u.instances[d]))if(jb(g)){const h=(g.__vccOpts||g)[t];h&&p.push(Cn(h,n,i,u,d))}else{let s=g();p.push(()=>s.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${u.path}"`));const o=Z0(h)?h.default:h;u.components[d]=o;const l=(o.__vccOpts||o)[t];return l&&Cn(l,n,i,u,d)()}))}}return p}function jb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nu(e){const t=kt(es),n=kt(pl),i=Ee(()=>t.resolve(tn(e.to))),p=Ee(()=>{const{matched:s}=i.value,{length:h}=s,o=s[h-1],r=n.matched;if(!o||!r.length)return-1;const l=r.findIndex(Ci.bind(null,o));if(l>-1)return l;const c=iu(s[h-2]);return h>1&&iu(o)===c&&r[r.length-1].path!==c?r.findIndex(Ci.bind(null,s[h-2])):l}),u=Ee(()=>p.value>-1&&Xb(n.params,i.value.params)),d=Ee(()=>p.value>-1&&p.value===n.matched.length-1&&Bf(n.params,i.value.params));function g(s={}){return Yb(s)?t[tn(e.replace)?"replace":"push"](tn(e.to)).catch(nr):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:u,isExactActive:d,navigate:g}}const Gb=$e({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:nu,setup(e,{slots:t}){const n=Mi(nu(e)),{options:i}=kt(es),p=Ee(()=>({[ru(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[ru(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Oi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:p.value},u)}}}),Kb=Gb;function Yb(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 Xb(e,t){for(const n in t){const i=t[n],p=e[n];if(typeof i=="string"){if(i!==p)return!1}else if(!Pt(p)||p.length!==i.length||i.some((u,d)=>u!==p[d]))return!1}return!0}function iu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ru=(e,t,n)=>e??t??n,Zb=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=kt(da),p=Ee(()=>e.route||i.value),u=kt(tu,0),d=Ee(()=>{let h=tn(u);const{matched:o}=p.value;let r;for(;(r=o[h])&&!r.components;)h++;return h}),g=Ee(()=>p.value.matched[d.value]);Ji(tu,Ee(()=>d.value+1)),Ji(Vb,g),Ji(da,p);const s=Ie();return Ye(()=>[s.value,g.value,e.name],([h,o,r],[l,c,a])=>{o&&(o.instances[r]=h,c&&c!==o&&h&&h===l&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),h&&o&&(!c||!Ci(o,c)||!l)&&(o.enterCallbacks[r]||[]).forEach(f=>f(h))},{flush:"post"}),()=>{const h=p.value,o=e.name,r=g.value,l=r&&r.components[o];if(!l)return ou(n.default,{Component:l,route:h});const c=r.props[o],a=c?c===!0?h.params:typeof c=="function"?c(h):c:null,m=Oi(l,Pe({},a,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(r.instances[o]=null)},ref:s}));return ou(n.default,{Component:m,route:h})||m}}});function ou(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Qb=Zb;function Jb(e){const t=Ab(e.routes,e),n=e.parseQuery||Ub,i=e.stringifyQuery||eu,p=e.history,u=Wi(),d=Wi(),g=Wi(),s=yh(yn);let h=yn;oi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=As.bind(null,z=>""+z),r=As.bind(null,Hb),l=As.bind(null,Co);function c(z,X){let Y,V;return Hf(z)?(Y=t.getRecordMatcher(z),V=X):V=z,t.addRoute(V,Y)}function a(z){const X=t.getRecordMatcher(z);X&&t.removeRoute(X)}function f(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function v(z,X){if(X=Pe({},X||s.value),typeof z=="string"){const G=xs(n,z,X.path),Q=t.resolve({path:G.path},X),te=p.createHref(G.fullPath);return Pe(G,Q,{params:l(Q.params),hash:Co(G.hash),redirectedFrom:void 0,href:te})}let Y;if("path"in z)Y=Pe({},z,{path:xs(n,z.path,X.path).path});else{const G=Pe({},z.params);for(const Q in G)G[Q]==null&&delete G[Q];Y=Pe({},z,{params:r(G)}),X.params=r(X.params)}const V=t.resolve(Y,X),ee=z.hash||"";V.params=o(l(V.params));const P=q0(i,Pe({},z,{hash:Db(ee),path:V.path})),B=p.createHref(P);return Pe({fullPath:P,hash:ee,query:i===eu?zb(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function b(z){return typeof z=="string"?xs(n,z,s.value.path):Pe({},z)}function x(z,X){if(h!==z)return Si(8,{from:X,to:z})}function C(z){return L(z)}function S(z){return C(Pe(b(z),{replace:!0}))}function $(z){const X=z.matched[z.matched.length-1];if(X&&X.redirect){const{redirect:Y}=X;let V=typeof Y=="function"?Y(z):Y;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=b(V):{path:V},V.params={}),Pe({query:z.query,hash:z.hash,params:"path"in V?{}:z.params},V)}}function L(z,X){const Y=h=v(z),V=s.value,ee=z.state,P=z.force,B=z.replace===!0,G=$(Y);if(G)return L(Pe(b(G),{state:typeof G=="object"?Pe({},ee,G.state):ee,force:P,replace:B}),X||Y);const Q=Y;Q.redirectedFrom=X;let te;return!P&&eb(i,V,Y)&&(te=Si(16,{to:Q,from:V}),W(V,V,!0,!1)),(te?Promise.resolve(te):M(Q,V)).catch(ie=>Yt(ie)?Yt(ie,2)?ie:D(ie):I(ie,Q,V)).then(ie=>{if(ie){if(Yt(ie,2))return L(Pe({replace:B},b(ie.to),{state:typeof ie.to=="object"?Pe({},ee,ie.to.state):ee,force:P}),X||Q)}else ie=A(Q,V,!0,B,ee);return y(Q,V,ie),ie})}function R(z,X){const Y=x(z,X);return Y?Promise.reject(Y):Promise.resolve()}function k(z){const X=U.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(z):z()}function M(z,X){let Y;const[V,ee,P]=qb(z,X);Y=ks(V.reverse(),"beforeRouteLeave",z,X);for(const G of V)G.leaveGuards.forEach(Q=>{Y.push(Cn(Q,z,X))});const B=R.bind(null,z,X);return Y.push(B),Z(Y).then(()=>{Y=[];for(const G of u.list())Y.push(Cn(G,z,X));return Y.push(B),Z(Y)}).then(()=>{Y=ks(ee,"beforeRouteUpdate",z,X);for(const G of ee)G.updateGuards.forEach(Q=>{Y.push(Cn(Q,z,X))});return Y.push(B),Z(Y)}).then(()=>{Y=[];for(const G of P)if(G.beforeEnter)if(Pt(G.beforeEnter))for(const Q of G.beforeEnter)Y.push(Cn(Q,z,X));else Y.push(Cn(G.beforeEnter,z,X));return Y.push(B),Z(Y)}).then(()=>(z.matched.forEach(G=>G.enterCallbacks={}),Y=ks(P,"beforeRouteEnter",z,X),Y.push(B),Z(Y))).then(()=>{Y=[];for(const G of d.list())Y.push(Cn(G,z,X));return Y.push(B),Z(Y)}).catch(G=>Yt(G,8)?G:Promise.reject(G))}function y(z,X,Y){g.list().forEach(V=>k(()=>V(z,X,Y)))}function A(z,X,Y,V,ee){const P=x(z,X);if(P)return P;const B=X===yn,G=oi?history.state:{};Y&&(V||B?p.replace(z.fullPath,Pe({scroll:B&&G&&G.scroll},ee)):p.push(z.fullPath,ee)),s.value=z,W(z,X,Y,B),D()}let _;function w(){_||(_=p.listen((z,X,Y)=>{if(!K.listening)return;const V=v(z),ee=$(V);if(ee){L(Pe(ee,{replace:!0}),V).catch(nr);return}h=V;const P=s.value;oi&&lb(Gc(P.fullPath,Y.delta),qo()),M(V,P).catch(B=>Yt(B,12)?B:Yt(B,2)?(L(B.to,V).then(G=>{Yt(G,20)&&!Y.delta&&Y.type===yr.pop&&p.go(-1,!1)}).catch(nr),Promise.reject()):(Y.delta&&p.go(-Y.delta,!1),I(B,V,P))).then(B=>{B=B||A(V,P,!1),B&&(Y.delta&&!Yt(B,8)?p.go(-Y.delta,!1):Y.type===yr.pop&&Yt(B,20)&&p.go(-1,!1)),y(V,P,B)}).catch(nr)}))}let E=Wi(),T=Wi(),O;function I(z,X,Y){D(z);const V=T.list();return V.length?V.forEach(ee=>ee(z,X,Y)):console.error(z),Promise.reject(z)}function F(){return O&&s.value!==yn?Promise.resolve():new Promise((z,X)=>{E.add([z,X])})}function D(z){return O||(O=!z,w(),E.list().forEach(([X,Y])=>z?Y(z):X()),E.reset()),z}function W(z,X,Y,V){const{scrollBehavior:ee}=e;if(!oi||!ee)return Promise.resolve();const P=!Y&&cb(Gc(z.fullPath,0))||(V||!Y)&&history.state&&history.state.scroll||null;return Vt().then(()=>ee(z,X,P)).then(B=>B&&ab(B)).catch(B=>I(B,z,X))}const j=z=>p.go(z);let H;const U=new Set,K={currentRoute:s,listening:!0,addRoute:c,removeRoute:a,hasRoute:m,getRoutes:f,resolve:v,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:u.add,beforeResolve:d.add,afterEach:g.add,onError:T.add,isReady:F,install(z){const X=this;z.component("RouterLink",Kb),z.component("RouterView",Qb),z.config.globalProperties.$router=X,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>tn(s)}),oi&&!H&&s.value===yn&&(H=!0,C(p.location).catch(ee=>{}));const Y={};for(const ee in yn)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});z.provide(es,X),z.provide(pl,za(Y)),z.provide(da,s);const V=z.unmount;U.add(z),z.unmount=function(){U.delete(z),U.size<1&&(h=yn,_&&_(),_=null,s.value=yn,H=!1,O=!1),V()}}};function Z(z){return z.reduce((X,Y)=>X.then(()=>k(Y)),Promise.resolve())}return K}function qb(e,t){const n=[],i=[],p=[],u=Math.max(t.matched.length,e.matched.length);for(let d=0;d<u;d++){const g=t.matched[d];g&&(e.matched.find(h=>Ci(h,g))?i.push(g):n.push(g));const s=e.matched[d];s&&(t.matched.find(h=>Ci(h,s))||p.push(s))}return[n,i,p]}function Ii(){return kt(es)}function ts(){return kt(pl)}function Xf(e){return Wa()?(oh(e),!0):!1}function So(e){return typeof e=="function"?e():tn(e)}const Zf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ew=()=>{};function tw(...e){if(e.length!==1)return yi(...e);const t=e[0];return typeof t=="function"?Do(Ya(()=>({get:t,set:ew}))):Ie(t)}function nw(e){var t;const n=So(e);return(t=n==null?void 0:n.$el)!=null?t:n}const iw=Zf?window:void 0,rw=Zf?window.document:void 0;function ow(){const e=Ie(!1);return Dt()&&tt(()=>{e.value=!0}),e}function sw(e){const t=ow();return Ee(()=>(t.value,!!e()))}function aw(e,t,n={}){const{window:i=iw,...p}=n;let u;const d=sw(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>nw(e),r=>{g(),d.value&&i&&r&&(u=new MutationObserver(t),u.observe(r,p))},{immediate:!0}),h=()=>u==null?void 0:u.takeRecords(),o=()=>{g(),s()};return Xf(o),{isSupported:d,stop:o,takeRecords:h}}function ni(e=null,t={}){var n,i;const{document:p=rw}=t,u=tw((n=e??(p==null?void 0:p.title))!=null?n:null),d=e&&typeof e=="function";function g(s){if(!("titleTemplate"in t))return s;const h=t.titleTemplate||"%s";return typeof h=="function"?h(s):So(h).replace(/%s/g,s)}return Ye(u,(s,h)=>{s!==h&&p&&(p.title=g(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&p&&!d&&aw((i=p.head)==null?void 0:i.querySelector("title"),()=>{p&&p.title!==u.value&&(u.value=g(p.title))},{childList:!0}),u}var Fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qf(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 p=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,p.get?p:{enumerable:!0,get:function(){return e[i]}})}),n}var Nn={exports:{}},Ct={exports:{}};const qt=Symbol("Cleanup Function"),Jf=Symbol("Timeout Token"),li=Symbol("Signal Reason"),wt=Symbol("Unset"),[ro,lw]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,ml(t.signal.reason)]}();let Ao=class{constructor(t=new AbortController){this.controller=t,this.signal=t.signal,this.signal[li]=wt;var n,i=(p,u)=>{var d=()=>{if(u&&this.signal){let g=ns(this.signal);this._trackSignalReason(g),u(g!==wt?g:void 0)}u=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[qt]=null)),d=null}};this.signal.pr=new Promise(i),this.signal.pr[qt]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:wt;this._trackSignalReason(n),this.controller&&(ro&&n!==wt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[qt]&&this.signal.pr[qt](),this.signal.pr=null),delete this.signal[li],ro||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==wt&&(!ro&&!("reason"in this.signal)&&(this.signal.reason=t),this.signal[li]===wt&&(this.signal[li]=t))}};Ct.exports={CLEANUP_FN:qt,TIMEOUT_TOKEN:Jf,UNSET:wt,getSignalReason:ns,cancelToken:Ao,signalPromise:gl,processTokenOrSignal:qf,deferred:ed,isFunction:td,isPromise:nd,invokeAbort:id};Ct.exports.CLEANUP_FN=qt;Ct.exports.TIMEOUT_TOKEN=Jf;Ct.exports.UNSET=wt;Ct.exports.getSignalReason=ns;Ct.exports.cancelToken=Ao;Ct.exports.signalPromise=gl;Ct.exports.processTokenOrSignal=qf;Ct.exports.deferred=ed;Ct.exports.isFunction=td;Ct.exports.isPromise=nd;Ct.exports.invokeAbort=id;function ns(e){return e&&e.aborted?ro&&lw?ml(e.reason)?wt:e.reason:li in e?e[li]:wt:wt}function gl(e){if(e.pr)return e.pr;var t,n=new Promise(function(p,u){t=()=>{if(u&&e){let d=ns(e);u(d!==wt?d:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[qt]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[qt]=t=null)},n.catch(n[qt]),n}function qf(e){e instanceof AbortController&&(e=new Ao(e));var t=e&&e instanceof Ao?e.signal:e,n=gl(t);return{tokenOrSignal:e,signal:t,signalPr:n}}function ed(){var e,t=new Promise(n=>e=n);return{pr:t,resolve:e}}function td(e){return typeof e=="function"}function nd(e){return e&&typeof e=="object"&&typeof e.then=="function"}function ml(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function id(e,t){!ml(t)&&t!==wt?e.abort(t):e.abort()}var cw=Ct.exports,{CLEANUP_FN:su,TIMEOUT_TOKEN:rd,UNSET:br,getSignalReason:od,cancelToken:Fi,signalPromise:uw,processTokenOrSignal:sd,isFunction:hw,invokeAbort:is}=cw;Nn.exports=Object.assign(dw,{cancelToken:Fi,delay:vl,timeout:ad,signalRace:hd,signalAll:fd,tokenCycle:dd});var fw=Nn.exports.cancelToken=Fi;Nn.exports.delay=vl;Nn.exports.timeout=ad;Nn.exports.signalRace=hd;Nn.exports.signalAll=fd;Nn.exports.tokenCycle=dd;function dw(e){return function(n,...i){var p,u;if({tokenOrSignal:n,signal:p,signalPr:u}=sd(n),p.aborted)return u;var d=u.catch(function(r){var l=od(p);l=l!==br?l:r;try{var c=g.return();throw c.value!==void 0?c.value:l!==br?l:void 0}finally{g=s=d=h=null}}),{it:g,result:s}=pw.call(this,e,p,...i),h=Promise.race([s,d]);if(n!==p&&n[rd]){let o=function(l){is(n,l),hw(n.discard)&&n.discard(),n=o=null};h.then(o,o)}else h.catch(()=>{}),n=null;return i=null,h}}function vl(e,t){typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]);var n,i;return e&&({tokenOrSignal:e,signal:n,signalPr:i}=sd(e)),n&&n.aborted?i:new Promise(function(u,d){n&&(i.catch(function(){if(d&&n&&g){let h=od(n);clearTimeout(g),d(h!==br?h:`delay (${t}) interrupted`),u=d=g=n=null}}),i=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=d=g=n=null},t)})}function ad(e,t="Timeout"){e=Number(e)||0;var n=new Fi;return vl(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,rd,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...p){is(n,p.length>0?p[0]:br),n.discard(),n=null}}function ld(e){return e.reduce(function(n,i){var p=uw(i);return n[0].push(p),i.pr||n[1].push(p),n},[[],[]])}function cd(e,t,n){e.then(function(p){is(t,p),t.discard(),t=null}).then(function(){for(let p of n)p[su]&&p[su]();n=null})}function ud(e){return e.catch(t=>t)}function hd(e){var t=new Fi,[n,i]=ld(e);return cd(ud(Promise.race(n)),t,i),t.signal}function fd(e){var t=new Fi,[n,i]=ld(e);return cd(Promise.all(n.map(ud)),t,i),t.signal}function dd(){var e;return function(...n){return e&&(is(e,n.length>0?n[0]:br),e.discard()),e=new Fi}}function pw(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(p){try{var u=n.next(p);p=null}catch(d){return Promise.reject(d)}return function d(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(i,function(o){return Promise.resolve(n.throw(o)).then(d)}),s.catch(function(){n=null})),g=null,s}(u)}()}}var gw=Nn.exports;const mw=un(gw);function pa(){pa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},p=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",d=i.toStringTag||"@@toStringTag";function g(M,y,A){return Object.defineProperty(M,y,{value:A,enumerable:!0,configurable:!0,writable:!0}),M[y]}try{g({},"")}catch{g=function(y,A,_){return y[A]=_}}function s(M,y,A,_){var w=Object.create((y&&y.prototype instanceof r?y:r).prototype),E=new L(_||[]);return w._invoke=function(T,O,I){var F="suspendedStart";return function(D,W){if(F==="executing")throw new Error("Generator is already running");if(F==="completed"){if(D==="throw")throw W;return{value:void 0,done:!0}}for(I.method=D,I.arg=W;;){var j=I.delegate;if(j){var H=C(j,I);if(H){if(H===o)continue;return H}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(F==="suspendedStart")throw F="completed",I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);F="executing";var U=h(T,O,I);if(U.type==="normal"){if(F=I.done?"completed":"suspendedYield",U.arg===o)continue;return{value:U.arg,done:I.done}}U.type==="throw"&&(F="completed",I.method="throw",I.arg=U.arg)}}}(M,A,E),w}function h(M,y,A){try{return{type:"normal",arg:M.call(y,A)}}catch(_){return{type:"throw",arg:_}}}e.wrap=s;var o={};function r(){}function l(){}function c(){}var a={};g(a,p,function(){return this});var f=Object.getPrototypeOf,m=f&&f(f(R([])));m&&m!==t&&n.call(m,p)&&(a=m);var v=c.prototype=r.prototype=Object.create(a);function b(M){["next","throw","return"].forEach(function(y){g(M,y,function(A){return this._invoke(y,A)})})}function x(M,y){function A(w,E,T,O){var I=h(M[w],M,E);if(I.type!=="throw"){var F=I.arg,D=F.value;return D&&typeof D=="object"&&n.call(D,"__await")?y.resolve(D.__await).then(function(W){A("next",W,T,O)},function(W){A("throw",W,T,O)}):y.resolve(D).then(function(W){F.value=W,T(F)},function(W){return A("throw",W,T,O)})}O(I.arg)}var _;this._invoke=function(w,E){function T(){return new y(function(O,I){A(w,E,O,I)})}return _=_?_.then(T,T):T()}}function C(M,y){var A=M.iterator[y.method];if(A===void 0){if(y.delegate=null,y.method==="throw"){if(M.iterator.return&&(y.method="return",y.arg=void 0,C(M,y),y.method==="throw"))return o;y.method="throw",y.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var _=h(A,M.iterator,y.arg);if(_.type==="throw")return y.method="throw",y.arg=_.arg,y.delegate=null,o;var w=_.arg;return w?w.done?(y[M.resultName]=w.value,y.next=M.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,o):w:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,o)}function S(M){var y={tryLoc:M[0]};1 in M&&(y.catchLoc=M[1]),2 in M&&(y.finallyLoc=M[2],y.afterLoc=M[3]),this.tryEntries.push(y)}function $(M){var y=M.completion||{};y.type="normal",delete y.arg,M.completion=y}function L(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(S,this),this.reset(!0)}function R(M){if(M){var y=M[p];if(y)return y.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var A=-1,_=function w(){for(;++A<M.length;)if(n.call(M,A))return w.value=M[A],w.done=!1,w;return w.value=void 0,w.done=!0,w};return _.next=_}}return{next:k}}function k(){return{value:void 0,done:!0}}return l.prototype=c,g(v,"constructor",c),g(c,"constructor",l),l.displayName=g(c,d,"GeneratorFunction"),e.isGeneratorFunction=function(M){var y=typeof M=="function"&&M.constructor;return!!y&&(y===l||(y.displayName||y.name)==="GeneratorFunction")},e.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,c):(M.__proto__=c,g(M,d,"GeneratorFunction")),M.prototype=Object.create(v),M},e.awrap=function(M){return{__await:M}},b(x.prototype),g(x.prototype,u,function(){return this}),e.AsyncIterator=x,e.async=function(M,y,A,_,w){w===void 0&&(w=Promise);var E=new x(s(M,y,A,_),w);return e.isGeneratorFunction(y)?E:E.next().then(function(T){return T.done?T.value:E.next()})},b(v),g(v,d,"Generator"),g(v,p,function(){return this}),g(v,"toString",function(){return"[object Generator]"}),e.keys=function(M){var y=[];for(var A in M)y.push(A);return y.reverse(),function _(){for(;y.length;){var w=y.pop();if(w in M)return _.value=w,_.done=!1,_}return _.done=!0,_}},e.values=R,L.prototype={constructor:L,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!M)for(var y in this)y.charAt(0)==="t"&&n.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=void 0)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var y=this;function A(I,F){return E.type="throw",E.arg=M,y.next=I,F&&(y.method="next",y.arg=void 0),!!F}for(var _=this.tryEntries.length-1;_>=0;--_){var w=this.tryEntries[_],E=w.completion;if(w.tryLoc==="root")return A("end");if(w.tryLoc<=this.prev){var T=n.call(w,"catchLoc"),O=n.call(w,"finallyLoc");if(T&&O){if(this.prev<w.catchLoc)return A(w.catchLoc,!0);if(this.prev<w.finallyLoc)return A(w.finallyLoc)}else if(T){if(this.prev<w.catchLoc)return A(w.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return A(w.finallyLoc)}}}},abrupt:function(M,y){for(var A=this.tryEntries.length-1;A>=0;--A){var _=this.tryEntries[A];if(_.tryLoc<=this.prev&&n.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var w=_;break}}w&&(M==="break"||M==="continue")&&w.tryLoc<=y&&y<=w.finallyLoc&&(w=null);var E=w?w.completion:{};return E.type=M,E.arg=y,w?(this.method="next",this.next=w.finallyLoc,o):this.complete(E)},complete:function(M,y){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&y&&(this.next=y),o},finish:function(M){for(var y=this.tryEntries.length-1;y>=0;--y){var A=this.tryEntries[y];if(A.finallyLoc===M)return this.complete(A.completion,A.afterLoc),$(A),o}},catch:function(M){for(var y=this.tryEntries.length-1;y>=0;--y){var A=this.tryEntries[y];if(A.tryLoc===M){var _=A.completion;if(_.type==="throw"){var w=_.arg;$(A)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(M,y,A){return this.delegate={iterator:R(M),resultName:y,nextLoc:A},this.method==="next"&&(this.arg=void 0),o}},e}var vw=function(e){return e._runningInstances.length>=e._maxConcurrency},yw=function(e){var t=e._activeInstances[0];t&&t.cancel()},bw=function(e){e._enqueuedInstances.forEach(function(t){t.isEnqueued=!1,t.isDropped=!0})};function Hi(e,t){return t?function(n,i,p){return Ee(function(){return n().filter(function(u){return u[i]})})}(function(){return e()._instances},t):Ee(function(){return[]})}function ww(e){return Ee(function(){return e().length})}function au(e){return Ee(function(){var t=e();return t[t.length-1]})}function $w(e){return Ee(function(){return e()[0]})}function pd(e){return Mi(e)}function ut(e){return Cw(pa().mark(function t(n){var i=arguments;return pa().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",e.apply(void 0,[n].concat([].slice.call(i,1))));case 1:case"end":return p.stop()}},t)}))}function _w(e,t,n){var i,p,u={id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Ee(function(){return d.isCanceling&&d.isFinished}),isActive:Ee(function(){return d.isRunning&&!d.isCanceling}),isSuccessful:!1,isNotDropped:Ee(function(){return!d.isDropped}),isError:Ee(function(){return!!d.error}),status:Ee(function(){var s=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(function(h){return h[0]});return s&&s[1]}),error:null,value:null,cancel:function(s){if((s===void 0?{force:!1}:s).force||(d.isCanceling=!0,d.isEnqueued&&(d.isFinished=!0),d.isEnqueued=!1),d.token&&d._canAbort){d.token.abort("cancel");try{d.token.discard()}catch{}d.token=void 0,d._canAbort=!1}},canceledOn:function(s){return s.pr.catch(function(h){d.cancel()}),d},_run:function(){(function(s,h,o,r){var l=new fw,c=mw(h,l);function a(){s.isRunning=!1,s.isFinished=!0}s.token=l,s.hasStarted=!0,s.isRunning=!0,s.isEnqueued=!1,c.call.apply(c,[s,l].concat(o)).then(function(f){s.value=f,s.isSuccessful=!0,a(),s._deferredObject.resolve(f),s._canAbort=!1,r.onFinish(s)}).catch(function(f){f!=="cancel"&&(s.error=f),a(),s._shouldThrow&&s._deferredObject.reject(f),r.onFinish(s)})})(d,e,t,n)},_handled:!0,_deferredObject:(i={},p=new Promise(function(s,h){i.resolve=s,i.reject=h}),i.promise=p,i),_shouldThrow:!1,_canAbort:!0,then:function(s,h){return d._shouldThrow=!0,d._deferredObject.promise.then(s,h)},catch:function(s,h){return h===void 0&&(h=!0),d._shouldThrow=h,d._deferredObject.promise.catch(s)},finally:function(s){return d._shouldThrow=!0,d._deferredObject.promise.finally(s)}},d=pd(u),g=n.modifiers;return g.drop?d.isDropped=!0:g.enqueue?d.isEnqueued=!0:d._run(),d}function Cw(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Dt(),i=ih(),p={_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Ee(function(){return u._isRestartable||u._isDropping||u._isEnqueuing||u._isKeepingLatest}),isIdle:Ee(function(){return!u.isRunning}),isRunning:Ee(function(){return!!u._instances.find(function(d){return d.isRunning})}),isError:Ee(function(){return!(!u.last||!u.last.isError)}),_instances:[],_successfulInstances:Hi(function(){return u},"isSuccessful"),_runningInstances:Hi(function(){return u},"isRunning"),_enqueuedInstances:Hi(function(){return u},"isEnqueued"),_notDroppedInstances:Hi(function(){return u},"isNotDropped"),_activeInstances:Hi(function(){return u},"isActive"),performCount:ww(function(){return u._instances}),last:au(function(){return u._notDroppedInstances}),lastSuccessful:au(function(){return u._successfulInstances}),firstEnqueued:$w(function(){return u._enqueuedInstances}),cancelAll:function(d){var g=(d===void 0?{force:!1}:d).force;u._instances.forEach(function(s){try{(g||!s.isDropped&&!s.isFinished)&&s.cancel({force:g})}catch(h){if(h!=="cancel")throw h}})},perform:function(){var d=arguments,g={enqueue:!1,drop:!1};u._hasConcurrency&&vw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&yw(u),u._isKeepingLatest&&bw(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return Sw(u)},h=function(){return _w(e,[].slice.call(d),{modifiers:g,onFinish:s,scope:i,id:u._instances.length+1})},o=i.active?i.run(h):h();return i.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),u._instances=[].concat(u._instances,[o]),o},clear:function(){this.cancelAll({force:!0}),this._instances=[]},destroy:function(){i.stop(),this.clear()},restartable:function(){return u._resetModifierFlags(),u._isRestartable=!0,u},drop:function(){return u._resetModifierFlags(),u._isDropping=!0,u},enqueue:function(){return u._resetModifierFlags(),u._isEnqueuing=!0,u},keepLatest:function(){return u._resetModifierFlags(),u._isKeepingLatest=!0,u},_resetModifierFlags:function(){u._isKeepingLatest=!1,u._isRestartable=!1,u._isEnqueuing=!1,u._isDropping=!1},maxConcurrency:function(d){return u._maxConcurrency=d,u}},u=pd(p);return n&&t.cancelOnUnmount&&Rr(function(){u._instances&&u.destroy()}),u}function Sw(e){if(e._isEnqueuing||e._isKeepingLatest){var t=e.firstEnqueued;t&&t._run()}}function gd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Aw}=Object.prototype,{getPrototypeOf:yl}=Object,rs=(e=>t=>{const n=Aw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>rs(t)===e),os=e=>t=>typeof t===e,{isArray:Ni}=Array,wr=os("undefined");function xw(e){return e!==null&&!wr(e)&&e.constructor!==null&&!wr(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const md=Kt("ArrayBuffer");function kw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&md(e.buffer),t}const Ew=os("string"),Rt=os("function"),vd=os("number"),ss=e=>e!==null&&typeof e=="object",Rw=e=>e===!0||e===!1,oo=e=>{if(rs(e)!=="object")return!1;const t=yl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Tw=Kt("Date"),Lw=Kt("File"),Mw=Kt("Blob"),Ow=Kt("FileList"),Iw=e=>ss(e)&&Rt(e.pipe),Fw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=rs(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},Nw=Kt("URLSearchParams"),Pw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Tr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,p;if(typeof e!="object"&&(e=[e]),Ni(e))for(i=0,p=e.length;i<p;i++)t.call(null,e[i],i,e);else{const u=n?Object.getOwnPropertyNames(e):Object.keys(e),d=u.length;let g;for(i=0;i<d;i++)g=u[i],t.call(null,e[g],g,e)}}function yd(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,p;for(;i-- >0;)if(p=n[i],t===p.toLowerCase())return p;return null}const bd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),wd=e=>!wr(e)&&e!==bd;function ga(){const{caseless:e}=wd(this)&&this||{},t={},n=(i,p)=>{const u=e&&yd(t,p)||p;oo(t[u])&&oo(i)?t[u]=ga(t[u],i):oo(i)?t[u]=ga({},i):Ni(i)?t[u]=i.slice():t[u]=i};for(let i=0,p=arguments.length;i<p;i++)arguments[i]&&Tr(arguments[i],n);return t}const Dw=(e,t,n,{allOwnKeys:i}={})=>(Tr(t,(p,u)=>{n&&Rt(p)?e[u]=gd(p,n):e[u]=p},{allOwnKeys:i}),e),Bw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ww=(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)},Hw=(e,t,n,i)=>{let p,u,d;const g={};if(t=t||{},e==null)return t;do{for(p=Object.getOwnPropertyNames(e),u=p.length;u-- >0;)d=p[u],(!i||i(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=n!==!1&&yl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uw=(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},zw=e=>{if(!e)return null;if(Ni(e))return e;let t=e.length;if(!vd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yl(Uint8Array)),jw=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let p;for(;(p=i.next())&&!p.done;){const u=p.value;t.call(e,u[0],u[1])}},Gw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Kw=Kt("HTMLFormElement"),Yw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,p){return i.toUpperCase()+p}),lu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xw=Kt("RegExp"),$d=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Tr(n,(p,u)=>{let d;(d=t(p,u,e))!==!1&&(i[u]=d||p)}),Object.defineProperties(e,i)},Zw=e=>{$d(e,(t,n)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Rt(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+"'")})}})},Qw=(e,t)=>{const n={},i=p=>{p.forEach(u=>{n[u]=!0})};return Ni(e)?i(e):i(String(e).split(t)),n},Jw=()=>{},qw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Es="abcdefghijklmnopqrstuvwxyz",cu="0123456789",_d={DIGIT:cu,ALPHA:Es,ALPHA_DIGIT:Es+Es.toUpperCase()+cu},e1=(e=16,t=_d.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function t1(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const n1=e=>{const t=new Array(10),n=(i,p)=>{if(ss(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[p]=i;const u=Ni(i)?[]:{};return Tr(i,(d,g)=>{const s=n(d,p+1);!wr(s)&&(u[g]=s)}),t[p]=void 0,u}}return i};return n(e,0)},i1=Kt("AsyncFunction"),r1=e=>e&&(ss(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),ne={isArray:Ni,isArrayBuffer:md,isBuffer:xw,isFormData:Fw,isArrayBufferView:kw,isString:Ew,isNumber:vd,isBoolean:Rw,isObject:ss,isPlainObject:oo,isUndefined:wr,isDate:Tw,isFile:Lw,isBlob:Mw,isRegExp:Xw,isFunction:Rt,isStream:Iw,isURLSearchParams:Nw,isTypedArray:Vw,isFileList:Ow,forEach:Tr,merge:ga,extend:Dw,trim:Pw,stripBOM:Bw,inherits:Ww,toFlatObject:Hw,kindOf:rs,kindOfTest:Kt,endsWith:Uw,toArray:zw,forEachEntry:jw,matchAll:Gw,isHTMLForm:Kw,hasOwnProperty:lu,hasOwnProp:lu,reduceDescriptors:$d,freezeMethods:Zw,toObjectSet:Qw,toCamelCase:Yw,noop:Jw,toFiniteNumber:qw,findKey:yd,global:bd,isContextDefined:wd,ALPHABET:_d,generateString:e1,isSpecCompliantForm:t1,toJSONObject:n1,isAsyncFn:i1,isThenable:r1};function Oe(e,t,n,i,p){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),p&&(this.response=p)}ne.inherits(Oe,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:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Cd=Oe.prototype,Sd={};["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=>{Sd[e]={value:e}});Object.defineProperties(Oe,Sd);Object.defineProperty(Cd,"isAxiosError",{value:!0});Oe.from=(e,t,n,i,p,u)=>{const d=Object.create(Cd);return ne.toFlatObject(e,d,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Oe.call(d,e.message,t,n,i,p),d.cause=e,d.name=e.name,u&&Object.assign(d,u),d};const o1=null;function ma(e){return ne.isPlainObject(e)||ne.isArray(e)}function Ad(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function uu(e,t,n){return e?e.concat(t).map(function(p,u){return p=Ad(p),!n&&u?"["+p+"]":p}).join(n?".":""):t}function s1(e){return ne.isArray(e)&&!e.some(ma)}const a1=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function as(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!ne.isUndefined(m[f])});const i=n.metaTokens,p=n.visitor||o,u=n.dots,d=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(p))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(ne.isDate(a))return a.toISOString();if(!s&&ne.isBlob(a))throw new Oe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(a)||ne.isTypedArray(a)?s&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function o(a,f,m){let v=a;if(a&&!m&&typeof a=="object"){if(ne.endsWith(f,"{}"))f=i?f:f.slice(0,-2),a=JSON.stringify(a);else if(ne.isArray(a)&&s1(a)||(ne.isFileList(a)||ne.endsWith(f,"[]"))&&(v=ne.toArray(a)))return f=Ad(f),v.forEach(function(x,C){!(ne.isUndefined(x)||x===null)&&t.append(d===!0?uu([f],C,u):d===null?f:f+"[]",h(x))}),!1}return ma(a)?!0:(t.append(uu(m,f,u),h(a)),!1)}const r=[],l=Object.assign(a1,{defaultVisitor:o,convertValue:h,isVisitable:ma});function c(a,f){if(!ne.isUndefined(a)){if(r.indexOf(a)!==-1)throw Error("Circular reference detected in "+f.join("."));r.push(a),ne.forEach(a,function(v,b){(!(ne.isUndefined(v)||v===null)&&p.call(t,v,ne.isString(b)?b.trim():b,f,l))===!0&&c(v,f?f.concat(b):[b])}),r.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return c(e),t}function hu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function bl(e,t){this._pairs=[],e&&as(e,this,t)}const xd=bl.prototype;xd.append=function(t,n){this._pairs.push([t,n])};xd.toString=function(t){const n=t?function(i){return t.call(this,i,hu)}:hu;return this._pairs.map(function(p){return n(p[0])+"="+n(p[1])},"").join("&")};function l1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kd(e,t,n){if(!t)return e;const i=n&&n.encode||l1,p=n&&n.serialize;let u;if(p?u=p(t,n):u=ne.isURLSearchParams(t)?t.toString():new bl(t,n).toString(i),u){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class c1{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){ne.forEach(this.handlers,function(i){i!==null&&t(i)})}}const fu=c1,Ed={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u1=typeof URLSearchParams<"u"?URLSearchParams:bl,h1=typeof FormData<"u"?FormData:null,f1=typeof Blob<"u"?Blob:null,d1={isBrowser:!0,classes:{URLSearchParams:u1,FormData:h1,Blob:f1},protocols:["http","https","file","blob","url","data"]},Rd=typeof window<"u"&&typeof document<"u",p1=(e=>Rd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),g1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),m1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rd,hasStandardBrowserEnv:p1,hasStandardBrowserWebWorkerEnv:g1},Symbol.toStringTag,{value:"Module"})),Ut={...m1,...d1};function v1(e,t){return as(e,new Ut.classes.URLSearchParams,Object.assign({visitor:function(n,i,p,u){return Ut.isNode&&ne.isBuffer(n)?(this.append(i,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function y1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b1(e){const t={},n=Object.keys(e);let i;const p=n.length;let u;for(i=0;i<p;i++)u=n[i],t[u]=e[u];return t}function Td(e){function t(n,i,p,u){let d=n[u++];const g=Number.isFinite(+d),s=u>=n.length;return d=!d&&ne.isArray(p)?p.length:d,s?(ne.hasOwnProp(p,d)?p[d]=[p[d],i]:p[d]=i,!g):((!p[d]||!ne.isObject(p[d]))&&(p[d]=[]),t(n,i,p[d],u)&&ne.isArray(p[d])&&(p[d]=b1(p[d])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,p)=>{t(y1(i),p,n,0)}),n}return null}function w1(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const wl={transitional:Ed,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",p=i.indexOf("application/json")>-1,u=ne.isObject(t);if(u&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return p&&p?JSON.stringify(Td(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(u){if(i.indexOf("application/x-www-form-urlencoded")>-1)return v1(t,this.formSerializer).toString();if((g=ne.isFileList(t))||i.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return as(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||p?(n.setContentType("application/json",!1),w1(t)):t}],transformResponse:[function(t){const n=this.transitional||wl.transitional,i=n&&n.forcedJSONParsing,p=this.responseType==="json";if(t&&ne.isString(t)&&(i&&!this.responseType||p)){const d=!(n&&n.silentJSONParsing)&&p;try{return JSON.parse(t)}catch(g){if(d)throw g.name==="SyntaxError"?Oe.from(g,Oe.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:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{wl.headers[e]={}});const $l=wl,$1=ne.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"]),_1=e=>{const t={};let n,i,p;return e&&e.split(`
766
- `).forEach(function(d){p=d.indexOf(":"),n=d.substring(0,p).trim().toLowerCase(),i=d.substring(p+1).trim(),!(!n||t[n]&&$1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},du=Symbol("internals");function Ui(e){return e&&String(e).trim().toLowerCase()}function so(e){return e===!1||e==null?e:ne.isArray(e)?e.map(so):String(e)}function C1(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 S1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rs(e,t,n,i,p){if(ne.isFunction(i))return i.call(this,t,n);if(p&&(t=n),!!ne.isString(t)){if(ne.isString(i))return t.indexOf(i)!==-1;if(ne.isRegExp(i))return i.test(t)}}function A1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function x1(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(p,u,d){return this[i].call(this,t,p,u,d)},configurable:!0})})}class ls{constructor(t){t&&this.set(t)}set(t,n,i){const p=this;function u(g,s,h){const o=Ui(s);if(!o)throw new Error("header name must be a non-empty string");const r=ne.findKey(p,o);(!r||p[r]===void 0||h===!0||h===void 0&&p[r]!==!1)&&(p[r||s]=so(g))}const d=(g,s)=>ne.forEach(g,(h,o)=>u(h,o,s));return ne.isPlainObject(t)||t instanceof this.constructor?d(t,n):ne.isString(t)&&(t=t.trim())&&!S1(t)?d(_1(t),n):t!=null&&u(n,t,i),this}get(t,n){if(t=Ui(t),t){const i=ne.findKey(this,t);if(i){const p=this[i];if(!n)return p;if(n===!0)return C1(p);if(ne.isFunction(n))return n.call(this,p,i);if(ne.isRegExp(n))return n.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ui(t),t){const i=ne.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Rs(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let p=!1;function u(d){if(d=Ui(d),d){const g=ne.findKey(i,d);g&&(!n||Rs(i,i[g],g,n))&&(delete i[g],p=!0)}}return ne.isArray(t)?t.forEach(u):u(t),p}clear(t){const n=Object.keys(this);let i=n.length,p=!1;for(;i--;){const u=n[i];(!t||Rs(this,this[u],u,t,!0))&&(delete this[u],p=!0)}return p}normalize(t){const n=this,i={};return ne.forEach(this,(p,u)=>{const d=ne.findKey(i,u);if(d){n[d]=so(p),delete n[u];return}const g=t?A1(u):String(u).trim();g!==u&&delete n[u],n[g]=so(p),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(i,p)=>{i!=null&&i!==!1&&(n[p]=t&&ne.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(`
767
- `)}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(p=>i.set(p)),i}static accessor(t){const i=(this[du]=this[du]={accessors:{}}).accessors,p=this.prototype;function u(d){const g=Ui(d);i[g]||(x1(p,d),i[g]=!0)}return ne.isArray(t)?t.forEach(u):u(t),this}}ls.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(ls.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ne.freezeMethods(ls);const rn=ls;function Ts(e,t){const n=this||$l,i=t||n,p=rn.from(i.headers);let u=i.data;return ne.forEach(e,function(g){u=g.call(n,u,p.normalize(),t?t.status:void 0)}),p.normalize(),u}function Ld(e){return!!(e&&e.__CANCEL__)}function Lr(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Lr,Oe,{__CANCEL__:!0});function k1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const E1=Ut.hasStandardBrowserEnv?{write(e,t,n,i,p,u){const d=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),ne.isString(i)&&d.push("path="+i),ne.isString(p)&&d.push("domain="+p),u===!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 R1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function T1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Md(e,t){return e&&!R1(t)?T1(e,t):t}const L1=Ut.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function p(u){let d=u;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=p(window.location.href),function(d){const g=ne.isString(d)?p(d):d;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}();function M1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let p=0,u=0,d;return t=t!==void 0?t:1e3,function(s){const h=Date.now(),o=i[u];d||(d=h),n[p]=s,i[p]=h;let r=u,l=0;for(;r!==p;)l+=n[r++],r=r%e;if(p=(p+1)%e,p===u&&(u=(u+1)%e),h-d<t)return;const c=o&&h-o;return c?Math.round(l*1e3/c):void 0}}function pu(e,t){let n=0;const i=O1(50,250);return p=>{const u=p.loaded,d=p.lengthComputable?p.total:void 0,g=u-n,s=i(g),h=u<=d;n=u;const o={loaded:u,total:d,progress:d?u/d:void 0,bytes:g,rate:s||void 0,estimated:s&&d&&h?(d-u)/s:void 0,event:p};o[t?"download":"upload"]=!0,e(o)}}const I1=typeof XMLHttpRequest<"u",F1=I1&&function(e){return new Promise(function(n,i){let p=e.data;const u=rn.from(e.headers).normalize();let{responseType:d,withXSRFToken:g}=e,s;function h(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let o;if(ne.isFormData(p)){if(Ut.hasStandardBrowserEnv||Ut.hasStandardBrowserWebWorkerEnv)u.setContentType(!1);else if((o=u.getContentType())!==!1){const[f,...m]=o?o.split(";").map(v=>v.trim()).filter(Boolean):[];u.setContentType([f||"multipart/form-data",...m].join("; "))}}let r=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(f+":"+m))}const l=Md(e.baseURL,e.url);r.open(e.method.toUpperCase(),kd(l,e.params,e.paramsSerializer),!0),r.timeout=e.timeout;function c(){if(!r)return;const f=rn.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),v={data:!d||d==="text"||d==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:f,config:e,request:r};k1(function(x){n(x),h()},function(x){i(x),h()},v),r=null}if("onloadend"in r?r.onloadend=c:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(c)},r.onabort=function(){r&&(i(new Oe("Request aborted",Oe.ECONNABORTED,e,r)),r=null)},r.onerror=function(){i(new Oe("Network Error",Oe.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Ed;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),i(new Oe(m,v.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,r)),r=null},Ut.hasStandardBrowserEnv&&(g&&ne.isFunction(g)&&(g=g(e)),g||g!==!1&&L1(l))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&E1.read(e.xsrfCookieName);f&&u.set(e.xsrfHeaderName,f)}p===void 0&&u.setContentType(null),"setRequestHeader"in r&&ne.forEach(u.toJSON(),function(m,v){r.setRequestHeader(v,m)}),ne.isUndefined(e.withCredentials)||(r.withCredentials=!!e.withCredentials),d&&d!=="json"&&(r.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&r.addEventListener("progress",pu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&r.upload&&r.upload.addEventListener("progress",pu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=f=>{r&&(i(!f||f.type?new Lr(null,e,r):f),r.abort(),r=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const a=M1(l);if(a&&Ut.protocols.indexOf(a)===-1){i(new Oe("Unsupported protocol "+a+":",Oe.ERR_BAD_REQUEST,e));return}r.send(p||null)})},va={http:o1,xhr:F1};ne.forEach(va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gu=e=>`- ${e}`,N1=e=>ne.isFunction(e)||e===null||e===!1,Od={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,i;const p={};for(let u=0;u<t;u++){n=e[u];let d;if(i=n,!N1(n)&&(i=va[(d=String(n)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${d}'`);if(i)break;p[d||"#"+u]=i}if(!i){const u=Object.entries(p).map(([g,s])=>`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let d=t?u.length>1?`since :
768
- `+u.map(gu).join(`
769
- `):" "+gu(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:va};function Ls(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lr(null,e)}function mu(e){return Ls(e),e.headers=rn.from(e.headers),e.data=Ts.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Od.getAdapter(e.adapter||$l.adapter)(e).then(function(i){return Ls(e),i.data=Ts.call(e,e.transformResponse,i),i.headers=rn.from(i.headers),i},function(i){return Ld(i)||(Ls(e),i&&i.response&&(i.response.data=Ts.call(e,e.transformResponse,i.response),i.response.headers=rn.from(i.response.headers))),Promise.reject(i)})}const vu=e=>e instanceof rn?e.toJSON():e;function Ai(e,t){t=t||{};const n={};function i(h,o,r){return ne.isPlainObject(h)&&ne.isPlainObject(o)?ne.merge.call({caseless:r},h,o):ne.isPlainObject(o)?ne.merge({},o):ne.isArray(o)?o.slice():o}function p(h,o,r){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h,r)}else return i(h,o,r)}function u(h,o){if(!ne.isUndefined(o))return i(void 0,o)}function d(h,o){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h)}else return i(void 0,o)}function g(h,o,r){if(r in t)return i(h,o);if(r in e)return i(void 0,h)}const s={url:u,method:u,data:u,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:(h,o)=>p(vu(h),vu(o),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(o){const r=s[o]||p,l=r(e[o],t[o],o);ne.isUndefined(l)&&r!==g||(n[o]=l)}),n}const Id="1.6.2",_l={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_l[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const yu={};_l.transitional=function(t,n,i){function p(u,d){return"[Axios v"+Id+"] Transitional option '"+u+"'"+d+(i?". "+i:"")}return(u,d,g)=>{if(t===!1)throw new Oe(p(d," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!yu[d]&&(yu[d]=!0,console.warn(p(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,d,g):!0}};function P1(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let p=i.length;for(;p-- >0;){const u=i[p],d=t[u];if(d){const g=e[u],s=g===void 0||d(g,u,e);if(s!==!0)throw new Oe("option "+u+" must be "+s,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+u,Oe.ERR_BAD_OPTION)}}const ya={assertOptions:P1,validators:_l},bn=ya.validators;class xo{constructor(t){this.defaults=t,this.interceptors={request:new fu,response:new fu}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ai(this.defaults,n);const{transitional:i,paramsSerializer:p,headers:u}=n;i!==void 0&&ya.assertOptions(i,{silentJSONParsing:bn.transitional(bn.boolean),forcedJSONParsing:bn.transitional(bn.boolean),clarifyTimeoutError:bn.transitional(bn.boolean)},!1),p!=null&&(ne.isFunction(p)?n.paramsSerializer={serialize:p}:ya.assertOptions(p,{encode:bn.function,serialize:bn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=u&&ne.merge(u.common,u[n.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],a=>{delete u[a]}),n.headers=rn.concat(d,u);const g=[];let s=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(s=s&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const h=[];this.interceptors.response.forEach(function(f){h.push(f.fulfilled,f.rejected)});let o,r=0,l;if(!s){const a=[mu.bind(this),void 0];for(a.unshift.apply(a,g),a.push.apply(a,h),l=a.length,o=Promise.resolve(n);r<l;)o=o.then(a[r++],a[r++]);return o}l=g.length;let c=n;for(r=0;r<l;){const a=g[r++],f=g[r++];try{c=a(c)}catch(m){f.call(this,m);break}}try{o=mu.call(this,c)}catch(a){return Promise.reject(a)}for(r=0,l=h.length;r<l;)o=o.then(h[r++],h[r++]);return o}getUri(t){t=Ai(this.defaults,t);const n=Md(t.baseURL,t.url);return kd(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){xo.prototype[t]=function(n,i){return this.request(Ai(i||{},{method:t,url:n,data:(i||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(i){return function(u,d,g){return this.request(Ai(g||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:u,data:d}))}}xo.prototype[t]=n(),xo.prototype[t+"Form"]=n(!0)});const ao=xo;class Cl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const i=this;this.promise.then(p=>{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](p);i._listeners=null}),this.promise.then=p=>{let u;const d=new Promise(g=>{i.subscribe(g),u=g}).then(p);return d.cancel=function(){i.unsubscribe(u)},d},t(function(u,d,g){i.reason||(i.reason=new Lr(u,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)}static source(){let t;return{token:new Cl(function(p){t=p}),cancel:t}}}const D1=Cl;function B1(e){return function(n){return e.apply(null,n)}}function W1(e){return ne.isObject(e)&&e.isAxiosError===!0}const ba={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(ba).forEach(([e,t])=>{ba[t]=e});const H1=ba;function Fd(e){const t=new ao(e),n=gd(ao.prototype.request,t);return ne.extend(n,ao.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(p){return Fd(Ai(e,p))},n}const Je=Fd($l);Je.Axios=ao;Je.CanceledError=Lr;Je.CancelToken=D1;Je.isCancel=Ld;Je.VERSION=Id;Je.toFormData=as;Je.AxiosError=Oe;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=B1;Je.isAxiosError=W1;Je.mergeConfig=Ai;Je.AxiosHeaders=rn;Je.formToJSON=e=>Td(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Od.getAdapter;Je.HttpStatusCode=H1;Je.default=Je;const U1=Je,ot=U1.create({headers:{Accept:"application/json"}}),ht={async getConfigs(){return(await ot.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await ot.get("/api/alerts",{params:e})).data},async getTags(){return(await ot.get("/api/tags")).data.tags},async getRuleSet(){return(await ot.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await ot.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await ot.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await ot.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await ot.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await ot.get("/api/rules",{params:e})).data},async getRule(e){return(await ot.get(`/api/rules/${e}`)).data},async runRule(e){await ot.get(`/api/rules/${e}/run`)},async createRule(e){return(await ot.post("/api/rules/",e)).data},async updateRule(e){return(await ot.put("/api/rules/",e)).data},async deleteRule(e){await ot.delete(`/api/rules/${e}`)},async deleteTag(e){await ot.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await ot.get(`/api/ip_addresses/${e}`)).data}};function Sl(){return ut(async(e,t)=>await ht.getAlerts(t))}function z1(){return ut(async(e,t)=>await ht.deleteAlert(t))}function Nd(){return ut(async()=>await ht.getTags())}function V1(){return ut(async(e,t)=>await ht.deleteTag(t))}function j1(){return ut(async()=>await ht.getRuleSet())}function G1(){return ut(async(e,t)=>await ht.getArtifact(t))}function Pd(){return ut(async(e,t)=>await ht.deleteArtifact(t))}function K1(){return ut(async(e,t)=>await ht.enrichArtifact(t))}function Y1(){return ut(async()=>await ht.getConfigs())}function X1(){return ut(async(e,t)=>await ht.getIPInfo(t))}function Z1(){return ut(async(e,t)=>await ht.getRules(t))}function Dd(){return ut(async(e,t)=>await ht.getRule(t))}function Q1(){return ut(async(e,t)=>await ht.deleteRule(t))}function J1(){return ut(async(e,t)=>await ht.runRule(t))}function q1(){return ut(async(e,t)=>await ht.createRule(t))}function e$(){return ut(async(e,t)=>await ht.updateRule(t))}const t$=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Ie(!1),n=Ie(!1),i=Pd();return{isDeleted:t,deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await i.perform(e.artifact.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n}}}),n$={key:0,class:"control"};function i$(e,t,n,i,p,u){const d=fe("router-link");return e.isDeleted?we("",!0):(q(),oe("div",n$,[N("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...g)=>e.showDeleteButton&&e.showDeleteButton(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.hideDeleteButton&&e.hideDeleteButton(...g))},[he(d,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:xt(()=>[at(Ae(e.artifact.data),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(q(),oe("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...g)=>e.deleteArtifact&&e.deleteArtifact(...g))})):we("",!0)],32)]))}const r$=xe(t$,[["render",i$]]),o$=$e({name:"ArtifactTags",components:{ArtifactComponent:r$},props:{artifacts:{type:Array,required:!0}}}),s$={class:"field is-grouped is-grouped-multiline"};function a$(e,t,n,i,p,u){const d=fe("ArtifactComponent");return q(),oe("div",s$,[(q(!0),oe(Se,null,ct(e.artifacts,g=>(q(),Me(d,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const l$=xe(o$,[["render",a$]]),c$=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Ie(!1),i=Ie(!1),p=V1();return{updateTag:()=>{t.emit("update-tag",e.tag.name)},isDeleted:n,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await p.perform(e.tag.id),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),u$={key:0,class:"control"};function h$(e,t,n,i,p,u){return e.isDeleted?we("",!0):(q(),oe("div",u$,[N("div",{class:"tags has-addons are-medium",onMouseover:t[2]||(t[2]=(...d)=>e.showDeleteButton&&e.showDeleteButton(...d)),onMouseleave:t[3]||(t[3]=(...d)=>e.hideDeleteButton&&e.hideDeleteButton(...d))},[N("span",{class:"tag is-info is-light",onClick:t[0]||(t[0]=(...d)=>e.updateTag&&e.updateTag(...d))},Ae(e.tag.name),1),e.isDeleteButtonEnabled?(q(),oe("a",{key:0,class:"tag is-delete",onClick:t[1]||(t[1]=(...d)=>e.deleteTag&&e.deleteTag(...d))})):we("",!0)],32)]))}const f$=xe(c$,[["render",h$]]),d$=$e({name:"TagsItem",components:{TagComponent:f$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),p$={class:"field is-grouped is-grouped-multiline"};function g$(e,t,n,i,p,u){const d=fe("TagComponent");return q(),oe("div",p$,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(d,{tag:g,key:g.name,onUpdateTag:e.updateTag},null,8,["tag","onUpdateTag"]))),128))])}const Bd=xe(d$,[["render",g$]]);var Wd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Fn,function(){var n=1e3,i=6e4,p=36e5,u="millisecond",d="second",g="minute",s="hour",h="day",o="week",r="month",l="quarter",c="year",a="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,b={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 E=["th","st","nd","rd"],T=w%100;return"["+w+(E[(T-20)%10]||E[T]||E[0])+"]"}},x=function(w,E,T){var O=String(w);return!O||O.length>=E?w:""+Array(E+1-O.length).join(T)+w},C={s:x,z:function(w){var E=-w.utcOffset(),T=Math.abs(E),O=Math.floor(T/60),I=T%60;return(E<=0?"+":"-")+x(O,2,"0")+":"+x(I,2,"0")},m:function w(E,T){if(E.date()<T.date())return-w(T,E);var O=12*(T.year()-E.year())+(T.month()-E.month()),I=E.clone().add(O,r),F=T-I<0,D=E.clone().add(O+(F?-1:1),r);return+(-(O+(T-I)/(F?I-D:D-I))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:r,y:c,w:o,d:h,D:a,h:s,m:g,s:d,ms:u,Q:l}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",$={};$[S]=b;var L="$isDayjsObject",R=function(w){return w instanceof A||!(!w||!w[L])},k=function w(E,T,O){var I;if(!E)return S;if(typeof E=="string"){var F=E.toLowerCase();$[F]&&(I=F),T&&($[F]=T,I=F);var D=E.split("-");if(!I&&D.length>1)return w(D[0])}else{var W=E.name;$[W]=E,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(w,E){if(R(w))return w.clone();var T=typeof E=="object"?E:{};return T.date=w,T.args=arguments,new A(T)},y=C;y.l=k,y.i=R,y.w=function(w,E){return M(w,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var A=function(){function w(T){this.$L=k(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[L]=!0}var E=w.prototype;return E.parse=function(T){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if(y.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var D=I.match(m);if(D){var W=D[2]-1||0,j=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)):new Date(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)}}return new Date(I)}(T),this.init()},E.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},E.$utils=function(){return y},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},E.isAfter=function(T,O){return M(T)<this.startOf(O)},E.isBefore=function(T,O){return this.endOf(O)<M(T)},E.$g=function(T,O,I){return y.u(T)?this[O]:this.set(I,T)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(T,O){var I=this,F=!!y.u(O)||O,D=y.p(T),W=function(Y,V){var ee=y.w(I.$u?Date.UTC(I.$y,V,Y):new Date(I.$y,V,Y),I);return F?ee:ee.endOf(h)},j=function(Y,V){return y.w(I.toDate()[Y].apply(I.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(V)),I)},H=this.$W,U=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(D){case c:return F?W(1,0):W(31,11);case r:return F?W(1,U):W(0,U+1);case o:var z=this.$locale().weekStart||0,X=(H<z?H+7:H)-z;return W(F?K-X:K+(6-X),U);case h:case a:return j(Z+"Hours",0);case s:return j(Z+"Minutes",1);case g:return j(Z+"Seconds",2);case d:return j(Z+"Milliseconds",3);default:return this.clone()}},E.endOf=function(T){return this.startOf(T,!1)},E.$set=function(T,O){var I,F=y.p(T),D="set"+(this.$u?"UTC":""),W=(I={},I[h]=D+"Date",I[a]=D+"Date",I[r]=D+"Month",I[c]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[d]=D+"Seconds",I[u]=D+"Milliseconds",I)[F],j=F===h?this.$D+(O-this.$W):O;if(F===r||F===c){var H=this.clone().set(a,1);H.$d[W](j),H.init(),this.$d=H.set(a,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W](j);return this.init(),this},E.set=function(T,O){return this.clone().$set(T,O)},E.get=function(T){return this[y.p(T)]()},E.add=function(T,O){var I,F=this;T=Number(T);var D=y.p(O),W=function(U){var K=M(F);return y.w(K.date(K.date()+Math.round(U*T)),F)};if(D===r)return this.set(r,this.$M+T);if(D===c)return this.set(c,this.$y+T);if(D===h)return W(1);if(D===o)return W(7);var j=(I={},I[g]=i,I[s]=p,I[d]=n,I)[D]||1,H=this.$d.getTime()+T*j;return y.w(H,this)},E.subtract=function(T,O){return this.add(-1*T,O)},E.format=function(T){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var F=T||"YYYY-MM-DDTHH:mm:ssZ",D=y.z(this),W=this.$H,j=this.$m,H=this.$M,U=I.weekdays,K=I.months,Z=I.meridiem,z=function(V,ee,P,B){return V&&(V[ee]||V(O,F))||P[ee].slice(0,B)},X=function(V){return y.s(W%12||12,V,"0")},Y=Z||function(V,ee,P){var B=V<12?"AM":"PM";return P?B.toLowerCase():B};return F.replace(v,function(V,ee){return ee||function(P){switch(P){case"YY":return String(O.$y).slice(-2);case"YYYY":return y.s(O.$y,4,"0");case"M":return H+1;case"MM":return y.s(H+1,2,"0");case"MMM":return z(I.monthsShort,H,K,3);case"MMMM":return z(K,H);case"D":return O.$D;case"DD":return y.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return z(I.weekdaysMin,O.$W,U,2);case"ddd":return z(I.weekdaysShort,O.$W,U,3);case"dddd":return U[O.$W];case"H":return String(W);case"HH":return y.s(W,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Y(W,j,!0);case"A":return Y(W,j,!1);case"m":return String(j);case"mm":return y.s(j,2,"0");case"s":return String(O.$s);case"ss":return y.s(O.$s,2,"0");case"SSS":return y.s(O.$ms,3,"0");case"Z":return D}return null}(V)||D.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(T,O,I){var F,D=this,W=y.p(O),j=M(T),H=(j.utcOffset()-this.utcOffset())*i,U=this-j,K=function(){return y.m(D,j)};switch(W){case c:F=K()/12;break;case r:F=K();break;case l:F=K()/3;break;case o:F=(U-H)/6048e5;break;case h:F=(U-H)/864e5;break;case s:F=U/p;break;case g:F=U/i;break;case d:F=U/n;break;default:F=U}return I?F:y.a(F)},E.daysInMonth=function(){return this.endOf(r).$D},E.$locale=function(){return $[this.$L]},E.locale=function(T,O){if(!T)return this.$L;var I=this.clone(),F=k(T,O,!0);return F&&(I.$L=F),I},E.clone=function(){return y.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},w}(),_=A.prototype;return M.prototype=_,[["$ms",u],["$s",d],["$m",g],["$H",s],["$W",h],["$M",r],["$y",c],["$D",a]].forEach(function(w){_[w[1]]=function(E){return this.$g(E,w[0],w[1])}}),M.extend=function(w,E){return w.$i||(w(E,A,M),w.$i=!0),M},M.locale=k,M.isDayjs=R,M.unix=function(w){return M(1e3*w)},M.en=$[S],M.Ls=$,M.p={},M})})(Wd);var m$=Wd.exports;const Pi=un(m$);var Hd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Fn,function(){return function(n,i,p){n=n||{};var u=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(h,o,r,l){return u.fromToBase(h,o,r,l)}p.en.relativeTime=d,u.fromToBase=function(h,o,r,l,c){for(var a,f,m,v=r.$locale().relativeTime||d,b=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"}],x=b.length,C=0;C<x;C+=1){var S=b[C];S.d&&(a=l?p(h).diff(r,S.d,!0):r.diff(h,S.d,!0));var $=(n.rounding||Math.round)(Math.abs(a));if(m=a>0,$<=S.r||!S.r){$<=1&&C>0&&(S=b[C-1]);var L=v[S.l];c&&($=c(""+$)),f=typeof L=="string"?L.replace("%d",$):L($,o,S.l,m);break}}if(o)return f;var R=m?v.future:v.past;return typeof R=="function"?R(f):R.replace("%s",f)},u.to=function(h,o){return g(h,o,this,!0)},u.from=function(h,o){return g(h,o,this)};var s=function(h){return h.$u?p.utc():p()};u.toNow=function(h){return this.to(s(this),h)},u.fromNow=function(h){return this.from(s(this),h)}}})})(Hd);var v$=Hd.exports;const y$=un(v$);var Ud={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Fn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(p,u,d){var g,s=function(l,c,a){a===void 0&&(a={});var f=new Date(l),m=function(v,b){b===void 0&&(b={});var x=b.timeZoneName||"short",C=v+"|"+x,S=i[C];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:x}),i[C]=S),S}(c,a);return m.formatToParts(f)},h=function(l,c){for(var a=s(l,c),f=[],m=0;m<a.length;m+=1){var v=a[m],b=v.type,x=v.value,C=n[b];C>=0&&(f[C]=parseInt(x,10))}var S=f[3],$=S===24?0:S,L=f[0]+"-"+f[1]+"-"+f[2]+" "+$+":"+f[4]+":"+f[5]+":000",R=+l;return(d.utc(L).valueOf()-(R-=R%1e3))/6e4},o=u.prototype;o.tz=function(l,c){l===void 0&&(l=g);var a=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:l}),v=Math.round((f-new Date(m))/1e3/60),b=d(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-v,!0);if(c){var x=b.utcOffset();b=b.add(a-x,"minute")}return b.$x.$timezone=l,b},o.offsetName=function(l){var c=this.$x.$timezone||d.tz.guess(),a=s(this.valueOf(),c,{timeZoneName:l}).find(function(f){return f.type.toLowerCase()==="timezonename"});return a&&a.value};var r=o.startOf;o.startOf=function(l,c){if(!this.$x||!this.$x.$timezone)return r.call(this,l,c);var a=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(a,l,c).tz(this.$x.$timezone,!0)},d.tz=function(l,c,a){var f=a&&c,m=a||c||g,v=h(+d(),m);if(typeof l!="string")return d(l).tz(m);var b=function($,L,R){var k=$-60*L*1e3,M=h(k,R);if(L===M)return[k,L];var y=h(k-=60*(M-L)*1e3,R);return M===y?[k,M]:[$-60*Math.min(M,y)*1e3,Math.max(M,y)]}(d.utc(l,f).valueOf(),v,m),x=b[0],C=b[1],S=d(x).utcOffset(C);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(l){g=l}}})})(Ud);var b$=Ud.exports;const w$=un(b$);var zd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Fn,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(u,d,g){var s=d.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},s.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},s.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var h=s.parse;s.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),h.call(this,f)};var o=s.init;s.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else o.call(this)};var r=s.utcOffset;s.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 $=S.match(i);if(!$)return null;var L=(""+$[0]).match(p)||["-",0,0],R=L[0],k=60*+L[1]+ +L[2];return k===0?0:R==="+"?k:-k}(f),f===null))return this;var b=Math.abs(f)<=16?60*f:f,x=this;if(m)return x.$offset=b,x.$u=f===0,x;if(f!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(x=this.local().add(b+C,n)).$offset=b,x.$x.$localOffset=C}else x=this.utc();return x};var l=s.format;s.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,m)},s.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var c=s.toDate;s.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var a=s.diff;s.diff=function(f,m,v){if(f&&this.$u===f.$u)return a.call(this,f,m,v);var b=this.local(),x=g(f).local();return a.call(b,x,m,v)}}})})(zd);var $$=zd.exports;const _$=un($$),C$=[{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 S$(e){return C$.find(n=>n.code===e)}Pi.extend(y$);Pi.extend(w$);Pi.extend(_$);function A$(e){return Pi(e).local().format("YYYY-MM-DD HH:mm:ss")}function x$(e){return Pi(e).local().fromNow()}function Vd(e){const t=S$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function k$(e){if(e.loc!==void 0){const t=e.loc.split(",");if(t.length===2){const n=t[0],i=t[1];return{lat:parseFloat(n),long:parseFloat(i)}}}return Vd(e.countryCode)}function jd(e){if(e!=null)return typeof e=="string"?e:e.toString()}const E$=$e({name:"AlertItem",components:{Artifacts:l$,Tags:Bd},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=z1();return{updateTag:n,deleteAlert:async()=>{window.confirm(`Are you sure you want to delete ${e.alert.id}?`)&&(await i.perform(e.alert.id),t.emit("refresh-page"))},getLocalDatetime:A$,getHumanizedRelativeTime:x$}}}),R$={class:"box"},T$={class:"table is-fullwidth is-completely-borderless"},L$=N("th",null,"ID",-1),M$=N("span",null,"Delete",-1),O$={class:"icon is-small"},I$=N("th",null,"Rule",-1),F$=N("th",null,"Artifacts",-1),N$={key:0},P$=N("th",null,"Tags",-1),D$={class:"help"};function B$(e,t,n,i,p,u){const d=fe("font-awesome-icon"),g=fe("router-link"),s=fe("Artifacts"),h=fe("Tags");return q(),oe("div",R$,[N("table",T$,[N("tr",null,[L$,N("td",null,[at(Ae(e.alert.id)+" ",1),N("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[M$,N("span",O$,[he(d,{icon:"times"})])])])]),N("tr",null,[I$,N("td",null,[he(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:xt(()=>[at(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[F$,N("td",null,[he(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",N$,[P$,N("td",null,[he(h,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),N("p",D$,"Created at: "+Ae(e.alert.createdAt),1)])}const W$=xe(E$,[["render",B$]]),Ms=new WeakMap;function bu(e,t,n={}){const{mode:i="replace",route:p=ts(),router:u=Ii(),transform:d=r=>r}=n;Ms.has(u)||Ms.set(u,new Map);const g=Ms.get(u);let s=p.query[e];Xf(()=>{s=void 0});let h;const o=Ya((r,l)=>(h=l,{get(){return r(),d(s!==void 0?s:So(t))},set(c){s!==c&&(s=c,g.set(e,c),l(),Vt(()=>{if(g.size===0)return;const a=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=p;u[So(i)]({params:f,query:{...m,...a},hash:v})}))}}));return Ye(()=>p.query[e],r=>{s=r,h()},{flush:"sync"}),o}const H$=$e({name:"AlertsPagination",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=ts(),i=Ii(),p={route:n,router:i},u=Ee(()=>Math.ceil(e.total/e.pageSize)),d=Ee(()=>u.value===1),g=Ee(()=>e.currentPage>1),s=Ee(()=>e.currentPage-1!==1),h=Ee(()=>e.currentPage<u.value),o=Ee(()=>e.currentPage+1!==u.value),r=l=>{const c=bu("page",l.toString(),p);c.value=l.toString(),t.emit("update-page",l)};return tt(()=>{const l=bu("page",null,p);l.value&&parseInt(l.value)!==e.currentPage&&r(parseInt(l.value))}),{updatePage:r,hasNextPage:h,hasOnlyOnePage:d,hasPreviousPage:g,isNextPageNotLast:o,isPreviousPageNotFirst:s,totalPageCount:u}}}),U$={key:0,class:"message is-warning"},z$=N("div",{class:"message-body"},"There is no result to show.",-1),V$=[z$],j$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},G$={key:0,class:"pagination-list"},K$={key:1,class:"pagination-list"},Y$={key:0},X$={key:1},Z$=N("span",{class:"pagination-ellipsis"},"…",-1),Q$=[Z$],J$={key:2},q$={key:3},e_={key:4},t_=N("span",{class:"pagination-ellipsis"},"…",-1),n_=[t_],i_={key:5};function r_(e,t,n,i,p,u){return e.total===0?(q(),oe("article",U$,V$)):(q(),oe("nav",j$,[e.hasOnlyOnePage?(q(),oe("ul",G$,[N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=d=>e.updatePage(1))},"1")])])):(q(),oe("ul",K$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",Y$,[N("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=d=>e.updatePage(1))}," 1")])):we("",!0),e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",X$,Q$)):we("",!0),e.hasPreviousPage?(q(),oe("li",J$,[N("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=d=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=d=>e.updatePage(e.currentPage))},Ae(e.currentPage),1)]),e.hasNextPage?(q(),oe("li",q$,[N("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=d=>e.updatePage(e.currentPage+1))},Ae(e.currentPage+1),1)])):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",e_,n_)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",i_,[N("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=d=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const Gd=xe(H$,[["render",r_]]),o_=$e({name:"AlertsItem",components:{Alert:W$,Pagination:Gd},props:{alerts:{type:Object,required:!0}},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})};return{updatePage:d=>{n(),t.emit("update-page",d)},updateTag:d=>{n(),t.emit("update-tag",d)},refreshPage:()=>{n(),t.emit("refresh-page")}}}}),s_={class:"help"};function a_(e,t,n,i,p,u){const d=fe("Alert"),g=fe("Pagination");return q(),oe(Se,null,[(q(!0),oe(Se,null,ct(e.alerts.alerts,(s,h)=>(q(),Me(d,{alert:s,key:h,onRefreshPage:e.refreshPage,onUpdateTag:e.updateTag},null,8,["alert","onRefreshPage","onUpdateTag"]))),128)),he(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.updatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",s_,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const Kd=xe(o_,[["render",a_]]),l_=$e({name:"AlertsForm",props:{tags:{type:Array,required:!0},ruleSet:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=ts(),n=Ie(void 0),i=Ie(void 0),p=Ie(e.tag),u=Ie(void 0),d=Ie(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=jd(h))},s=()=>(g(),{artifact:n.value===""?void 0:n.value,page:e.page,ruleId:u.value===""?void 0:u.value,tag:p.value===""?void 0:p.value,toAt:d.value===""?void 0:d.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{artifact:n,fromAt:i,getSearchParams:s,ruleId:u,toAt:d,tagInput:p}}}),c_={class:"columns"},u_={class:"column"},h_={class:"field is-horizontal"},f_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Rule")],-1),d_={class:"field-body"},p_={class:"field"},g_={class:"control"},m_={class:"select"},v_=N("option",null,null,-1),y_={class:"column"},b_={class:"field is-horizontal"},w_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Artifact")],-1),$_={class:"field-body"},__={class:"field"},C_={class:"control"},S_={class:"columns"},A_={class:"column"},x_={class:"field is-horizontal"},k_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),E_={class:"field-body"},R_={class:"field"},T_={class:"control"},L_={class:"select"},M_=N("option",null,null,-1),O_=N("div",{class:"column"},null,-1),I_={class:"columns"},F_={class:"column"},N_={class:"field is-horizontal"},P_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),D_={class:"field-body"},B_={class:"field"},W_={class:"control"},H_={class:"column"},U_={class:"field is-horizontal"},z_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),V_={class:"field-body"},j_={class:"field"},G_={class:"control"};function K_(e,t,n,i,p,u){return q(),oe(Se,null,[N("div",c_,[N("div",u_,[N("div",h_,[f_,N("div",d_,[N("div",p_,[N("div",g_,[N("div",m_,[Mt(N("select",{"onUpdate:modelValue":t[0]||(t[0]=d=>e.ruleId=d)},[v_,(q(!0),oe(Se,null,ct(e.ruleSet,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[vr,e.ruleId]])])])])])])]),N("div",y_,[N("div",b_,[w_,N("div",$_,[N("div",__,[N("p",C_,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.artifact=d)},null,512),[[Ft,e.artifact]])])])])])])]),N("div",S_,[N("div",A_,[N("div",x_,[k_,N("div",E_,[N("div",R_,[N("div",T_,[N("div",L_,[Mt(N("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[M_,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[vr,e.tagInput]])])])])])])]),O_]),N("div",I_,[N("div",F_,[N("div",N_,[P_,N("div",D_,[N("div",B_,[N("p",W_,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),N("div",H_,[N("div",U_,[z_,N("div",V_,[N("div",j_,[N("p",G_,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const Y_=xe(l_,[["render",K_]]);var Yd={exports:{}};const X_=Qf(_0);(function(e,t){(function(n,i){e.exports=i(X_)})(Fn,function(n){return function(){var i={789:function(g){g.exports=n}},p={};function u(g){var s=p[g];if(s!==void 0)return s.exports;var h=p[g]={exports:{}};return i[g](h,h.exports,u),h.exports}u.d=function(g,s){for(var h in s)u.o(s,h)&&!u.o(g,h)&&Object.defineProperty(g,h,{enumerable:!0,get:s[h]})},u.o=function(g,s){return Object.prototype.hasOwnProperty.call(g,s)},u.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var d={};return function(){function g(y,A){(A==null||A>y.length)&&(A=y.length);for(var _=0,w=new Array(A);_<A;_++)w[_]=y[_];return w}function s(y,A){if(y){if(typeof y=="string")return g(y,A);var _=Object.prototype.toString.call(y).slice(8,-1);return _==="Object"&&y.constructor&&(_=y.constructor.name),_==="Map"||_==="Set"?Array.from(y):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?g(y,A):void 0}}function h(y){return function(A){if(Array.isArray(A))return g(A)}(y)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}(y)||s(y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
770
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o(y,A,_){return A in y?Object.defineProperty(y,A,{value:_,enumerable:!0,configurable:!0,writable:!0}):y[A]=_,y}u.r(d),u.d(d,{default:function(){return M}});var r=u(789),l=(0,r.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var y=this.data,A=this.onClick;return(0,r.createVNode)("span",{class:"vjs-tree-brackets",onClick:A},[y])}}),c=(0,r.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(y,A){var _=A.emit;return{uiType:(0,r.computed)(function(){return y.isMultiple?"checkbox":"radio"}),model:(0,r.computed)({get:function(){return y.checked},set:function(w){return _("update:modelValue",w)}})}},render:function(){var y=this.uiType,A=this.model,_=this.$emit;return(0,r.createVNode)("label",{class:["vjs-check-controller",A?"is-checked":""],onClick:function(w){return w.stopPropagation()}},[(0,r.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(y)},null),(0,r.createVNode)("input",{checked:A,class:"vjs-check-controller-original is-".concat(y),type:y,onChange:function(){return _("change",A)}},null)])}}),a=(0,r.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var y=this.nodeType,A=this.onClick,_=y==="objectStart"||y==="arrayStart";return _||y==="objectCollapsed"||y==="arrayCollapsed"?(0,r.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(_?"open":"close"),onClick:A},[(0,r.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,r.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}});function f(y){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},f(y)}function m(y){return Object.prototype.toString.call(y).slice(8,-1).toLowerCase()}function v(y){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3?arguments[3]:void 0,E=w||{},T=E.key,O=E.index,I=E.type,F=I===void 0?"content":I,D=E.showComma,W=D!==void 0&&D,j=E.length,H=j===void 0?1:j,U=m(y);if(U==="array"){var K=b(y.map(function(X,Y,V){return v(X,"".concat(A,"[").concat(Y,"]"),_+1,{index:Y,showComma:Y!==V.length-1,length:H,type:F})}));return[v("[",A,_,{showComma:!1,key:T,length:y.length,type:"arrayStart"})[0]].concat(K,v("]",A,_,{showComma:W,length:y.length,type:"arrayEnd"})[0])}if(U==="object"){var Z=Object.keys(y),z=b(Z.map(function(X,Y,V){return v(y[X],/^[a-zA-Z_]\w*$/.test(X)?"".concat(A,".").concat(X):"".concat(A,'["').concat(X,'"]'),_+1,{key:X,showComma:Y!==V.length-1,length:H,type:F})}));return[v("{",A,_,{showComma:!1,key:T,index:O,length:Z.length,type:"objectStart"})[0]].concat(z,v("}",A,_,{showComma:W,length:Z.length,type:"objectEnd"})[0])}return[{content:y,level:_,key:T,index:O,path:A,showComma:W,length:H,type:F}]}function b(y){if(typeof Array.prototype.flat=="function")return y.flat();for(var A=h(y),_=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,h(w)):_.push(w)}return _}function x(y){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(y==null)return y;if(y instanceof Date)return new Date(y);if(y instanceof RegExp)return new RegExp(y);if(f(y)!=="object")return y;if(A.get(y))return A.get(y);if(Array.isArray(y)){var _=y.map(function(T){return x(T,A)});return A.set(y,_),_}var w={};for(var E in y)w[E]=x(y[E],A);return A.set(y,w),w}function C(y,A){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(y,E).enumerable})),_.push.apply(_,w)}return _}function S(y){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?C(Object(_),!0).forEach(function(w){o(y,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(_)):C(Object(_)).forEach(function(w){Object.defineProperty(y,w,Object.getOwnPropertyDescriptor(_,w))})}return y}var $={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},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}},L=(0,r.defineComponent)({name:"TreeNode",props:S(S({},$),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(y,A){var _=A.emit,w=(0,r.computed)(function(){return m(y.node.content)}),E=(0,r.computed)(function(){return"vjs-value vjs-value-".concat(w.value)}),T=(0,r.computed)(function(){return y.showDoubleQuotes?'"'.concat(y.node.key,'"'):y.node.key}),O=(0,r.computed)(function(){return y.selectableType==="multiple"}),I=(0,r.computed)(function(){return y.selectableType==="single"}),F=(0,r.computed)(function(){return y.nodeSelectable(y.node)&&(O.value||I.value)}),D=(0,r.reactive)({editing:!1}),W=function(Y){var V,ee,P=(ee=(V=Y.target)===null||V===void 0?void 0:V.value)==="null"?null:ee==="undefined"?void 0:ee==="true"||ee!=="false"&&(ee[0]+ee[ee.length-1]==='""'||ee[0]+ee[ee.length-1]==="''"?ee.slice(1,-1):typeof Number(ee)=="number"&&!isNaN(Number(ee))||ee==="NaN"?Number(ee):ee);_("valueChange",P,y.node.path)},j=(0,r.computed)(function(){var Y,V=(Y=y.node)===null||Y===void 0?void 0:Y.content;return V===null?V="null":V===void 0&&(V="undefined"),w.value==="string"?'"'.concat(V,'"'):V+""}),H=function(){var Y=y.renderNodeValue;return Y?Y({node:y.node,defaultValue:j.value}):j.value},U=function(){_("bracketsClick",!y.collapsed,y.node.path)},K=function(){_("iconClick",!y.collapsed,y.node.path)},Z=function(){_("selectedChange",y.node)},z=function(){_("nodeClick",y.node),F.value&&y.selectOnClickNode&&_("selectedChange",y.node)},X=function(Y){if(y.editable&&!D.editing){D.editing=!0;var V=function ee(P){var B;P.target!==Y.target&&((B=P.target)===null||B===void 0?void 0:B.parentElement)!==Y.target&&(D.editing=!1,document.removeEventListener("click",ee))};document.removeEventListener("click",V),document.addEventListener("click",V)}};return function(){var Y,V=y.node;return(0,r.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":y.showSelectController,"has-carets":y.showIcon,"is-highlight":y.highlightSelectedNode&&y.checked},onClick:z,style:y.style},[y.showLineNumber&&(0,r.createVNode)("span",{class:"vjs-node-index"},[V.id+1]),y.showSelectController&&F.value&&V.type!=="objectEnd"&&V.type!=="arrayEnd"&&(0,r.createVNode)(c,{isMultiple:O.value,checked:y.checked,onChange:Z},null),(0,r.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(V.level)).map(function(ee,P){return(0,r.createVNode)("div",{key:P,class:{"vjs-indent-unit":!0,"has-line":y.showLine}},null)}),y.showIcon&&(0,r.createVNode)(a,{nodeType:V.type,onClick:K},null)]),V.key&&(0,r.createVNode)("span",{class:"vjs-key"},[(Y=y.renderNodeKey,Y?Y({node:y.node,defaultKey:T.value||""}):T.value),(0,r.createVNode)("span",{class:"vjs-colon"},[":".concat(y.showKeyValueSpace?" ":"")])]),(0,r.createVNode)("span",null,[V.type!=="content"&&V.content?(0,r.createVNode)(l,{data:V.content.toString(),onClick:U},null):(0,r.createVNode)("span",{class:E.value,onClick:!y.editable||y.editableTrigger&&y.editableTrigger!=="click"?void 0:X,onDblclick:y.editable&&y.editableTrigger==="dblclick"?X:void 0},[y.editable&&D.editing?(0,r.createVNode)("input",{value:j.value,onChange:W,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):H()]),V.showComma&&(0,r.createVNode)("span",null,[","]),y.showLength&&y.collapsed&&(0,r.createVNode)("span",{class:"vjs-comment"},[(0,r.createTextVNode)(" // "),V.length,(0,r.createTextVNode)(" items ")])])])}}});function R(y,A){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(y,E).enumerable})),_.push.apply(_,w)}return _}function k(y){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?R(Object(_),!0).forEach(function(w){o(y,w,_[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(_)):R(Object(_)).forEach(function(w){Object.defineProperty(y,w,Object.getOwnPropertyDescriptor(_,w))})}return y}var M=(0,r.defineComponent)({name:"Tree",props:k(k({},$),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},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}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(y,A){var _=A.emit,w=A.slots,E=(0,r.ref)(),T=(0,r.computed)(function(){return v(y.data,y.rootPath)}),O=function(V){return T.value.reduce(function(ee,P){var B,G=P.level>=V,Q=(B=y.pathCollapsible)===null||B===void 0?void 0:B.call(y,P);return P.type!=="objectStart"&&P.type!=="arrayStart"||!G&&!Q?ee:k(k({},ee),{},o({},P.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(y.deep)}),F=(0,r.computed)(function(){for(var V=null,ee=[],P=T.value.length,B=0;B<P;B++){var G=k(k({},T.value[B]),{},{id:B}),Q=I.hiddenPaths[G.path];if(V&&V.path===G.path){var te=V.type==="objectStart",ie=k(k(k({},G),V),{},{showComma:G.showComma,content:te?"{...}":"[...]",type:te?"objectCollapsed":"arrayCollapsed"});V=null,ee.push(ie)}else{if(Q&&!V){V=G;continue}if(V)continue;ee.push(G)}}return ee}),D=(0,r.computed)(function(){var V=y.selectedValue;return V&&y.selectableType==="multiple"&&Array.isArray(V)?V:[V]}),W=(0,r.computed)(function(){return!y.selectableType||y.selectOnClickNode||y.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),j=function(){var V=F.value;if(y.virtual){var ee,P=y.height/y.itemHeight,B=((ee=E.value)===null||ee===void 0?void 0:ee.scrollTop)||0,G=Math.floor(B/y.itemHeight),Q=G<0?0:G+P>V.length?V.length-P:G;Q<0&&(Q=0);var te=Q+P;I.translateY=Q*y.itemHeight,I.visibleData=V.filter(function(ie,le){return le>=Q&&le<te})}else I.visibleData=V},H=function(){j()},U=function(V){var ee,P,B=V.path,G=y.selectableType;if(G==="multiple"){var Q=D.value.findIndex(function(se){return se===B}),te=h(D.value);Q!==-1?te.splice(Q,1):te.push(B),_("update:selectedValue",te),_("selectedChange",te,h(D.value))}else if(G==="single"&&D.value[0]!==B){var ie=(ee=D.value,P=1,function(se){if(Array.isArray(se))return se}(ee)||function(se,ce){var re=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(re!=null){var ve,de,me=[],_e=!0,J=!1;try{for(re=re.call(se);!(_e=(ve=re.next()).done)&&(me.push(ve.value),!ce||me.length!==ce);_e=!0);}catch(ae){J=!0,de=ae}finally{try{_e||re.return==null||re.return()}finally{if(J)throw de}}return me}}(ee,P)||s(ee,P)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
771
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],le=B;_("update:selectedValue",le),_("selectedChange",le,ie)}},K=function(V){_("nodeClick",V)},Z=function(V,ee){if(V)I.hiddenPaths=k(k({},I.hiddenPaths),{},o({},ee,1));else{var P=k({},I.hiddenPaths);delete P[ee],I.hiddenPaths=P}},z=function(V,ee){y.collapsedOnClickBrackets&&Z(V,ee),_("bracketsClick",V)},X=function(V,ee){Z(V,ee),_("iconClick",V)},Y=function(V,ee){var P=x(y.data),B=y.rootPath;new Function("data","val","data".concat(ee.slice(B.length),"=val"))(P,V),_("update:data",P)};return(0,r.watchEffect)(function(){W.value&&function(V){throw new Error("[VueJSONPretty] ".concat(V))}(W.value)}),(0,r.watchEffect)(function(){F.value&&j()}),(0,r.watch)(function(){return y.deep},function(V){V&&(I.hiddenPaths=O(V))}),function(){var V,ee,P=(V=y.renderNodeKey)!==null&&V!==void 0?V:w.renderNodeKey,B=(ee=y.renderNodeValue)!==null&&ee!==void 0?ee:w.renderNodeValue,G=I.visibleData&&I.visibleData.map(function(Q){return(0,r.createVNode)(L,{key:Q.id,node:Q,collapsed:!!I.hiddenPaths[Q.path],showDoubleQuotes:y.showDoubleQuotes,showLength:y.showLength,checked:D.value.includes(Q.path),selectableType:y.selectableType,showLine:y.showLine,showLineNumber:y.showLineNumber,showSelectController:y.showSelectController,selectOnClickNode:y.selectOnClickNode,nodeSelectable:y.nodeSelectable,highlightSelectedNode:y.highlightSelectedNode,editable:y.editable,editableTrigger:y.editableTrigger,showIcon:y.showIcon,showKeyValueSpace:y.showKeyValueSpace,renderNodeKey:P,renderNodeValue:B,onNodeClick:K,onBracketsClick:z,onIconClick:X,onSelectedChange:U,onValueChange:Y,style:y.itemHeight&&y.itemHeight!==20?{lineHeight:"".concat(y.itemHeight,"px")}:{}},null)});return(0,r.createVNode)("div",{ref:E,class:{"vjs-tree":!0,"is-virtual":y.virtual},onScroll:y.virtual?H:void 0,style:y.showLineNumber?k({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},y.style):y.style},[y.virtual?(0,r.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(y.height,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*y.itemHeight,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[G])])]):G])}}})}(),d}()})})(Yd);var Z_=Yd.exports;const Xd=un(Z_),Q_=$e({name:"ErrorItem",props:{error:{type:Object,required:!0}},components:{VueJsonPretty:Xd}}),J_={class:"notification is-danger is-light"},q_={key:0},eC={key:1},tC={key:0,class:"message"},nC={class:"message-body"};function iC(e,t,n,i,p,u){var g,s;const d=fe("VueJsonPretty");return q(),oe(Se,null,[N("div",J_,[(g=e.error.response.data)!=null&&g.message?(q(),oe("p",q_,Ae(e.error.response.data.message),1)):(q(),oe("p",eC,Ae(e.error),1))]),(s=e.error.response.data)!=null&&s.details?(q(),oe("article",tC,[N("div",nC,[he(d,{data:e.error.response.data.details},null,8,["data"])])])):we("",!0)],64)}const hn=xe(Q_,[["render",iC]]),rC=$e({name:"LoadingItem"}),oC={class:"has-text-centered"},sC={class:"fa-3x"};function aC(e,t,n,i,p,u){const d=fe("font-awesome-icon");return q(),oe("div",oC,[N("div",sC,[he(d,{icon:"spinner",spin:""})])])}const fn=xe(rC,[["render",aC]]),lC=$e({name:"AlertsWrapper",components:{AlertsComponent:Kd,FormComponent:Y_,Loading:fn,ErrorMessage:hn},setup(){const e=Ie(1),t=Ie(void 0),n=Ie(),i=Sl(),p=Nd(),u=j1(),d=async()=>{var c;const l=(c=n.value)==null?void 0:c.getSearchParams();return await i.perform(l)},g=l=>{e.value=l},s=()=>{e.value=1},h=async()=>{s(),await d()},o=l=>{t.value===l?t.value=void 0:t.value=l,Vt(async()=>await h())},r=async()=>{await h()};return tt(async()=>{p.perform(),u.perform(),await d()}),Ye([e,t],async()=>{Vt(async()=>await d())}),{getAlertsTask:i,getRuleSetTask:u,getTagsTask:p,refreshPage:r,search:h,tag:t,updatePage:g,updateTag:o,form:n,page:e}}}),cC={class:"box mb-6"},uC=N("hr",null,null,-1),hC={class:"columns"},fC={class:"column"},dC={class:"field is-grouped is-grouped-centered"},pC={class:"control"},gC={class:"icon is-small"},mC=N("span",null,"Search",-1),vC={key:0},yC=N("hr",null,null,-1);function bC(e,t,n,i,p,u){var r,l,c,a;const d=fe("FormComponent"),g=fe("font-awesome-icon"),s=fe("Loading"),h=fe("ErrorMessage"),o=fe("AlertsComponent");return q(),oe(Se,null,[N("div",cC,[he(d,{ref:"form",ruleSet:((r=e.getRuleSetTask.last)==null?void 0:r.value)||[],tags:((l=e.getTagsTask.last)==null?void 0:l.value)||[],page:e.page,tag:e.tag},null,8,["ruleSet","tags","page","tag"]),uC,N("div",hC,[N("div",fC,[N("div",dC,[N("p",pC,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...f)=>e.search&&e.search(...f))},[N("span",gC,[he(g,{icon:"search"})]),mC])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",vC,[yC,e.getAlertsTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getAlertsTask.isError?(q(),Me(h,{key:1,error:(c=e.getAlertsTask.last)==null?void 0:c.error},null,8,["error"])):we("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(q(),Me(o,{key:2,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const wC=xe(lC,[["render",bC]]),$C=$e({name:"AlertsView",components:{Alerts:wC},setup(){ni("Alerts - Mihari")}});function _C(e,t,n,i,p,u){const d=fe("Alerts",!0);return q(),Me(d)}const CC=xe($C,[["render",_C]]),SC=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:Kd,Loading:fn},setup(e){const t=Ie(1),n=Ie(void 0),i=Sl(),p=async()=>{const h={artifact:e.artifact,page:t.value,ruleId:e.ruleId,tag:n.value,toAt:void 0,fromAt:void 0};return await i.perform(h)},u=h=>{t.value=h},d=()=>{t.value=1},g=async()=>{d(),await p()},s=h=>{n.value===h?n.value=void 0:n.value=h};return tt(async()=>{await p()}),Ye([e,t,n],async()=>{Vt(async()=>await p())}),{getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function AC(e,t,n,i,p,u){var s;const d=fe("Loading"),g=fe("Alerts");return q(),oe(Se,null,[e.getAlertsTask.isRunning?(q(),Me(d,{key:0})):we("",!0),(s=e.getAlertsTask.last)!=null&&s.value?(q(),Me(g,{key:1,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)],64)}const Zd=xe(SC,[["render",AC]]),xC=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),kC={class:"tags are-medium"},EC={class:"tag"};function RC(e,t,n,i,p,u){return q(),oe("div",kC,[N("span",EC,Ae(e.autonomousSystem.asn),1)])}const TC=xe(xC,[["render",RC]]),LC=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),MC={class:"tags are-medium"};function OC(e,t,n,i,p,u){return q(),oe("div",MC,[(q(!0),oe(Se,null,ct(e.cpes,d=>(q(),oe("span",{class:"tag",key:d.cpe},Ae(d.cpe),1))),128))])}const IC=xe(LC,[["render",OC]]);var Qd={exports:{}};(function(e){(function(t,n){var i="…",p=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function u(g,s,h){return h.length===g.length||!s.ellipsis||(h+=s.ellipsis),h}function d(g,s,h){var o="",r=!0,l=s,c,a;if(h=h||{},h.ellipsis=typeof h.ellipsis>"u"?i:h.ellipsis,!g||g.length===0)return"";for(r=!0;r;){if(p.lastIndex=o.length,r=p.exec(g),!r||r.index-o.length>=l||p.lastIndex>=s+3e3)return o+=g.substring(o.length,s),u(g,h,o);if(c=r[0],a=r.index,o+=g.substring(o.length,a+c.length),l-=a+c.length,l<=0)break}return u(g,h,o)}e.exports?e.exports=d:t.truncate=d})(String)})(Qd);var FC=Qd.exports;const NC=un(FC),PC=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:NC}}}),DC={class:"field is-grouped is-grouped-multiline"},BC={class:"tags has-addons are-medium"},WC={class:"tag is-dark"},HC={class:"tag"};function UC(e,t,n,i,p,u){return q(),oe("div",DC,[(q(!0),oe(Se,null,ct(e.dnsRecords,(d,g)=>(q(),oe("div",{class:"control",key:g},[N("div",BC,[N("span",WC,Ae(d.resource),1),N("span",HC,Ae(e.truncate(d.value,50)),1)])]))),128))])}const zC=xe(PC,[["render",UC]]),VC=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),jC={class:"tags are-medium"};function GC(e,t,n,i,p,u){return q(),oe("div",jC,[(q(!0),oe(Se,null,ct(e.ports,d=>(q(),oe("span",{class:"tag",key:d.port},Ae(d.port),1))),128))])}const KC=xe(VC,[["render",GC]]),YC=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),XC={class:"tags are-medium"};function ZC(e,t,n,i,p,u){return q(),oe("div",XC,[(q(!0),oe(Se,null,ct(e.reverseDnsNames,d=>(q(),oe("span",{class:"tag",key:d.name},Ae(d.name),1))),128))])}const QC=xe(YC,[["render",ZC]]),JC=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),qC={class:"tags are-medium"};function eS(e,t,n,i,p,u){const d=fe("router-link");return q(),oe("div",qC,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(d,{class:"tag is-info is-light",key:g.id,to:{name:"Alerts",query:{tag:g.name}}},{default:xt(()=>[at(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const tS=xe(JC,[["render",eS]]),nS=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),iS={class:"field is-grouped is-grouped-multiline"},rS={class:"control"},oS={class:"tags has-addons are-medium"},sS=N("span",{class:"tag is-dark"},"Registrar",-1),aS={class:"tag is-light"},lS={class:"control"},cS={class:"tags has-addons are-medium"},uS=N("span",{class:"tag is-dark"},"Created on",-1),hS={class:"tag is-light"},fS={class:"control"},dS={class:"tags has-addons are-medium"},pS=N("span",{class:"tag is-dark"},"Updated on",-1),gS={class:"tag is-light"},mS={class:"control"},vS={class:"tags has-addons are-medium"},yS=N("span",{class:"tag is-dark"},"Expires on",-1),bS={class:"tag is-light"};function wS(e,t,n,i,p,u){var d;return q(),oe("div",iS,[N("div",rS,[N("div",oS,[sS,N("span",aS,Ae(((d=e.whoisRecord.registrar)==null?void 0:d.name)||"N/A"),1)])]),N("div",lS,[N("div",cS,[uS,N("span",hS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),N("div",fS,[N("div",dS,[pS,N("span",gS,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),N("div",mS,[N("div",vS,[yS,N("span",bS,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const $S=xe(nS,[["render",wS]]),_S=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}});const CS=["href"],SS=["src"];function AS(e,t,n,i,p,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[N("img",{src:e.link.favicon(),alt:"favicon"},null,8,SS),N("span",null,Ae(e.link.name),1)],8,CS)}const xS=xe(_S,[["render",AS],["__scopeId","data-v-66270500"]]);class Tt{constructor(){Te(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 kS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class ES extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class RS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class TS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class LS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class MS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://www.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/viz/query?gnql=ip:${n}`}}class OS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Jd extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class IS extends Jd{constructor(){super();Te(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class qd extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class FS extends qd{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class NS extends qd{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class PS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Al extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class DS extends Al{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class BS extends Al{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class WS extends Al{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var ep={exports:{}};const HS={},US=Object.freeze(Object.defineProperty({__proto__:null,default:HS},Symbol.toStringTag,{value:"Module"})),wu=Qf(US);/**
772
- * [js-sha256]{@link https://github.com/emn178/js-sha256}
773
- *
774
- * @version 0.10.1
775
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
776
- * @copyright Chen, Yi-Cyuan 2014-2023
777
- * @license MIT
778
- */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var p=!n&&typeof self=="object",u=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;u?i=Fn:p&&(i=self);var d=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],o=[24,16,8,0],r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=["hex","array","digest","arrayBuffer"],c=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});var a=function($,L){return function(R){return new x(L,!0).update(R)[$]()}},f=function($){var L=a("hex",$);u&&(L=m(L,$)),L.create=function(){return new x($)},L.update=function(M){return L.create().update(M)};for(var R=0;R<l.length;++R){var k=l[R];L[k]=a(k,$)}return L},m=function($,L){var R=wu,k=wu.Buffer,M=L?"sha224":"sha256",y;k.from&&!i.JS_SHA256_NO_BUFFER_FROM?y=k.from:y=function(_){return new k(_)};var A=function(_){if(typeof _=="string")return R.createHash(M).update(_,"utf8").digest("hex");if(_==null)throw new Error(t);return _.constructor===ArrayBuffer&&(_=new Uint8Array(_)),Array.isArray(_)||ArrayBuffer.isView(_)||_.constructor===k?R.createHash(M).update(y(_)).digest("hex"):$(_)};return A},v=function($,L){return function(R,k){return new C(R,L,!0).update(k)[$]()}},b=function($){var L=v("hex",$);L.create=function(M){return new C(M,$)},L.update=function(M,y){return L.create(M).update(y)};for(var R=0;R<l.length;++R){var k=l[R];L[k]=v(k,$)}return L};function x($,L){L?(c[0]=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0,this.blocks=c):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],$?(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=$}x.prototype.update=function($){if(!this.finalized){var L,R=typeof $;if(R!=="string"){if(R==="object"){if($===null)throw new Error(t);if(g&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!g||!ArrayBuffer.isView($)))throw new Error(t)}else throw new Error(t);L=!0}for(var k,M=0,y,A=$.length,_=this.blocks;M<A;){if(this.hashed&&(this.hashed=!1,_[0]=this.block,_[16]=_[1]=_[2]=_[3]=_[4]=_[5]=_[6]=_[7]=_[8]=_[9]=_[10]=_[11]=_[12]=_[13]=_[14]=_[15]=0),L)for(y=this.start;M<A&&y<64;++M)_[y>>2]|=$[M]<<o[y++&3];else for(y=this.start;M<A&&y<64;++M)k=$.charCodeAt(M),k<128?_[y>>2]|=k<<o[y++&3]:k<2048?(_[y>>2]|=(192|k>>6)<<o[y++&3],_[y>>2]|=(128|k&63)<<o[y++&3]):k<55296||k>=57344?(_[y>>2]|=(224|k>>12)<<o[y++&3],_[y>>2]|=(128|k>>6&63)<<o[y++&3],_[y>>2]|=(128|k&63)<<o[y++&3]):(k=65536+((k&1023)<<10|$.charCodeAt(++M)&1023),_[y>>2]|=(240|k>>18)<<o[y++&3],_[y>>2]|=(128|k>>12&63)<<o[y++&3],_[y>>2]|=(128|k>>6&63)<<o[y++&3],_[y>>2]|=(128|k&63)<<o[y++&3]);this.lastByteIndex=y,this.bytes+=y-this.start,y>=64?(this.block=_[16],this.start=y-64,this.hash(),this.hashed=!0):this.start=y}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,L=this.lastByteIndex;$[16]=this.block,$[L>>2]|=h[L&3],this.block=$[16],L>=56&&(this.hashed||this.hash(),$[0]=this.block,$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),$[14]=this.hBytes<<3|this.bytes>>>29,$[15]=this.bytes<<3,this.hash()}},x.prototype.hash=function(){var $=this.h0,L=this.h1,R=this.h2,k=this.h3,M=this.h4,y=this.h5,A=this.h6,_=this.h7,w=this.blocks,E,T,O,I,F,D,W,j,H,U,K;for(E=16;E<64;++E)F=w[E-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[E-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[E]=w[E-16]+T+w[E-7]+O<<0;for(K=L&R,E=0;E<64;E+=4)this.first?(this.is224?(j=300032,F=w[0]-1413257819,_=F-150054599<<0,k=F+24177077<<0):(j=704751109,F=w[0]-210244248,_=F-1521486534<<0,k=F+143694565<<0),this.first=!1):(T=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=$&L,I=j^$&R^K,W=M&y^~M&A,F=_+O+W+r[E]+w[E],D=T+I,_=k+F<<0,k=F+D<<0),T=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),H=k&$,I=H^k&L^j,W=_&M^~_&y,F=A+O+W+r[E+1]+w[E+1],D=T+I,A=R+F<<0,R=F+D<<0,T=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),U=R&k,I=U^R&$^H,W=A&_^~A&M,F=y+O+W+r[E+2]+w[E+2],D=T+I,y=L+F<<0,L=F+D<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),K=L&R,I=K^L&k^U,W=y&A^~y&_,F=M+O+W+r[E+3]+w[E+3],D=T+I,M=$+F<<0,$=F+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+L<<0,this.h2=this.h2+R<<0,this.h3=this.h3+k<<0,this.h4=this.h4+M<<0,this.h5=this.h5+y<<0,this.h6=this.h6+A<<0,this.h7=this.h7+_<<0},x.prototype.hex=function(){this.finalize();var $=this.h0,L=this.h1,R=this.h2,k=this.h3,M=this.h4,y=this.h5,A=this.h6,_=this.h7,w=s[$>>28&15]+s[$>>24&15]+s[$>>20&15]+s[$>>16&15]+s[$>>12&15]+s[$>>8&15]+s[$>>4&15]+s[$&15]+s[L>>28&15]+s[L>>24&15]+s[L>>20&15]+s[L>>16&15]+s[L>>12&15]+s[L>>8&15]+s[L>>4&15]+s[L&15]+s[R>>28&15]+s[R>>24&15]+s[R>>20&15]+s[R>>16&15]+s[R>>12&15]+s[R>>8&15]+s[R>>4&15]+s[R&15]+s[k>>28&15]+s[k>>24&15]+s[k>>20&15]+s[k>>16&15]+s[k>>12&15]+s[k>>8&15]+s[k>>4&15]+s[k&15]+s[M>>28&15]+s[M>>24&15]+s[M>>20&15]+s[M>>16&15]+s[M>>12&15]+s[M>>8&15]+s[M>>4&15]+s[M&15]+s[y>>28&15]+s[y>>24&15]+s[y>>20&15]+s[y>>16&15]+s[y>>12&15]+s[y>>8&15]+s[y>>4&15]+s[y&15]+s[A>>28&15]+s[A>>24&15]+s[A>>20&15]+s[A>>16&15]+s[A>>12&15]+s[A>>8&15]+s[A>>4&15]+s[A&15];return this.is224||(w+=s[_>>28&15]+s[_>>24&15]+s[_>>20&15]+s[_>>16&15]+s[_>>12&15]+s[_>>8&15]+s[_>>4&15]+s[_&15]),w},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var $=this.h0,L=this.h1,R=this.h2,k=this.h3,M=this.h4,y=this.h5,A=this.h6,_=this.h7,w=[$>>24&255,$>>16&255,$>>8&255,$&255,L>>24&255,L>>16&255,L>>8&255,L&255,R>>24&255,R>>16&255,R>>8&255,R&255,k>>24&255,k>>16&255,k>>8&255,k&255,M>>24&255,M>>16&255,M>>8&255,M&255,y>>24&255,y>>16&255,y>>8&255,y&255,A>>24&255,A>>16&255,A>>8&255,A&255];return this.is224||w.push(_>>24&255,_>>16&255,_>>8&255,_&255),w},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var $=new ArrayBuffer(this.is224?28:32),L=new DataView($);return L.setUint32(0,this.h0),L.setUint32(4,this.h1),L.setUint32(8,this.h2),L.setUint32(12,this.h3),L.setUint32(16,this.h4),L.setUint32(20,this.h5),L.setUint32(24,this.h6),this.is224||L.setUint32(28,this.h7),$};function C($,L,R){var k,M=typeof $;if(M==="string"){var y=[],A=$.length,_=0,w;for(k=0;k<A;++k)w=$.charCodeAt(k),w<128?y[_++]=w:w<2048?(y[_++]=192|w>>6,y[_++]=128|w&63):w<55296||w>=57344?(y[_++]=224|w>>12,y[_++]=128|w>>6&63,y[_++]=128|w&63):(w=65536+((w&1023)<<10|$.charCodeAt(++k)&1023),y[_++]=240|w>>18,y[_++]=128|w>>12&63,y[_++]=128|w>>6&63,y[_++]=128|w&63);$=y}else if(M==="object"){if($===null)throw new Error(t);if(g&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!g||!ArrayBuffer.isView($)))throw new Error(t)}else throw new Error(t);$.length>64&&($=new x(L,!0).update($).array());var E=[],T=[];for(k=0;k<64;++k){var O=$[k]||0;E[k]=92^O,T[k]=54^O}x.call(this,L,R),this.update(T),this.oKeyPad=E,this.inner=!0,this.sharedMemory=R}C.prototype=new x,C.prototype.finalize=function(){if(x.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();x.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),x.prototype.finalize.call(this)}};var S=f();S.sha256=S,S.sha224=f(!0),S.sha256.hmac=b(),S.sha224.hmac=b(!0),d?e.exports=S:(i.sha256=S.sha256,i.sha224=S.sha224)})()})(ep);var zS=ep.exports,VS=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},xl={},jS=Object.prototype.hasOwnProperty,GS;function $u(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function _u(e){try{return encodeURIComponent(e)}catch{return null}}function KS(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var p=$u(i[1]),u=$u(i[2]);p===null||u===null||p in n||(n[p]=u)}return n}function YS(e,t){t=t||"";var n=[],i,p;typeof t!="string"&&(t="?");for(p in e)if(jS.call(e,p)){if(i=e[p],!i&&(i===null||i===GS||isNaN(i))&&(i=""),p=_u(p),i=_u(i),p===null||i===null)continue;n.push(p+"="+i)}return n.length?t+n.join("&"):""}xl.stringify=YS;xl.parse=KS;var tp=VS,cs=xl,XS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,np=/[\n\r\t]/g,ZS=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,ip=/:\d+$/,QS=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,JS=/^[a-zA-Z]:/;function kl(e){return(e||"").toString().replace(XS,"")}var wa=[["#","hash"],["?","query"],function(t,n){return zt(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]],Cu={hash:1,query:1};function rp(e){var t;typeof window<"u"?t=window:typeof Fn<"u"?t=Fn:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},p=typeof e,u;if(e.protocol==="blob:")i=new Gt(unescape(e.pathname),{});else if(p==="string"){i=new Gt(e,{});for(u in Cu)delete i[u]}else if(p==="object"){for(u in e)u in Cu||(i[u]=e[u]);i.slashes===void 0&&(i.slashes=ZS.test(e.href))}return i}function zt(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function op(e,t){e=kl(e),e=e.replace(np,""),t=t||{};var n=QS.exec(e),i=n[1]?n[1].toLowerCase():"",p=!!n[2],u=!!n[3],d=0,g;return p?u?(g=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(g=n[2]+n[4],d=n[2].length):u?(g=n[3]+n[4],d=n[3].length):g=n[4],i==="file:"?d>=2&&(g=g.slice(2)):zt(i)?g=n[4]:i?p&&(g=g.slice(2)):d>=2&&zt(t.protocol)&&(g=n[4]),{protocol:i,slashes:p||zt(i),slashesCount:d,rest:g}}function qS(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,p=n[i-1],u=!1,d=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),d++):d&&(i===0&&(u=!0),n.splice(i,1),d--);return u&&n.unshift(""),(p==="."||p==="..")&&n.push(""),n.join("/")}function Gt(e,t,n){if(e=kl(e),e=e.replace(np,""),!(this instanceof Gt))return new Gt(e,t,n);var i,p,u,d,g,s,h=wa.slice(),o=typeof t,r=this,l=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=cs.parse),t=rp(t),p=op(e||"",t),i=!p.protocol&&!p.slashes,r.slashes=p.slashes||i&&t.slashes,r.protocol=p.protocol||t.protocol||"",e=p.rest,(p.protocol==="file:"&&(p.slashesCount!==2||JS.test(e))||!p.slashes&&(p.protocol||p.slashesCount<2||!zt(r.protocol)))&&(h[3]=[/(.*)/,"pathname"]);l<h.length;l++){if(d=h[l],typeof d=="function"){e=d(e,r);continue}u=d[0],s=d[1],u!==u?r[s]=e:typeof u=="string"?(g=u==="@"?e.lastIndexOf(u):e.indexOf(u),~g&&(typeof d[2]=="number"?(r[s]=e.slice(0,g),e=e.slice(g+d[2])):(r[s]=e.slice(g),e=e.slice(0,g)))):(g=u.exec(e))&&(r[s]=g[1],e=e.slice(0,g.index)),r[s]=r[s]||i&&d[3]&&t[s]||"",d[4]&&(r[s]=r[s].toLowerCase())}n&&(r.query=n(r.query)),i&&t.slashes&&r.pathname.charAt(0)!=="/"&&(r.pathname!==""||t.pathname!=="")&&(r.pathname=qS(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&zt(r.protocol)&&(r.pathname="/"+r.pathname),tp(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:"&&zt(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||cs.parse)(t)),i[e]=t;break;case"port":i[e]=t,tp(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,ip.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 p=e==="pathname"?"/":"#";i[e]=t.charAt(0)!==p?p+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var u=t.indexOf(":");~u?(i.username=t.slice(0,u),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(u+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var d=0;d<wa.length;d++){var g=wa[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:"&&zt(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function tA(e){(!e||typeof e!="function")&&(e=cs.stringify);var t,n=this,i=n.host,p=n.protocol;p&&p.charAt(p.length-1)!==":"&&(p+=":");var u=p+(n.protocol&&n.slashes||zt(n.protocol)?"//":"");return n.username?(u+=n.username,n.password&&(u+=":"+n.password),u+="@"):n.password?(u+=":"+n.password,u+="@"):n.protocol!=="file:"&&zt(n.protocol)&&!i&&n.pathname!=="/"&&(u+="@"),(i[i.length-1]===":"||ip.test(n.hostname)&&!n.port)&&(i+=":"),u+=i+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(u+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(u+=n.hash),u}Gt.prototype={set:eA,toString:tA};Gt.extractProtocol=op;Gt.location=rp;Gt.trimLeft=kl;Gt.qs=cs;var nA=Gt;const iA=un(nA);class us extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class rA extends us{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class oA extends us{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class sA extends us{constructor(){super(),this.type="url"}href(t){const n=zS.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 us{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const lA=[new kS,new ES,new RS,new LS,new TS,new MS,new OS,new IS,new Jd,new FS,new NS,new PS,new DS,new BS,new WS,new rA,new aA,new oA,new sA],cA=$e({name:"LinksItem",components:{LinkComponent:xS},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=lA;return{selectedLinks:Ee(()=>e.type===void 0?t:t.filter(i=>i.type===e.type))}}}),uA={class:"tags are-medium"};function hA(e,t,n,i,p,u){const d=fe("LinkComponent");return q(),oe("div",uA,[(q(!0),oe(Se,null,ct(e.selectedLinks,g=>(q(),Me(d,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const fA=xe(cA,[["render",hA]]),dA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Zd,AS:TC,DnsRecords:zC,Links:fA,Loading:fn,ReverseDnsNames:QC,Tags:tS,VueJsonPretty:Xd,WhoisRecord:$S,CPEs:IC,Ports:KC},emits:["refresh"],setup(e,t){const n=Ie(void 0),i=Ie(void 0),p=Ie(!1),u=Ii(),d=Ee(()=>{if(e.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${e.artifact.data}`}`;if(e.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${e.artifact.data}`}),g=f=>{if(f!==void 0)return`https://maps.google.co.jp/maps?output=embed&q=${f.lat},${f.long}&z=3`},s=X1(),h=Sl(),o=Pd(),r=K1(),l=async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await o.perform(e.artifact.id),u.push("/"))},c=async()=>{await r.perform(e.artifact.id),t.emit("refresh")};return tt(async()=>{if(e.artifact.dataType==="ip"){let f;if(e.artifact.geolocation===null){const m=await s.perform(e.artifact.data);f=k$(m),i.value=m.countryCode}else f=Vd(e.artifact.geolocation.countryCode);n.value=g(f)}}),{countryCode:i,enrichArtifactTask:r,getAlertsTask:h,googleMapSrc:n,showMetadata:p,urlscanLiveshotSrc:d,deleteArtifact:l,enrichArtifact:c,flipShowMetadata:()=>{p.value=!p.value}}}});const Ze=e=>(Za("data-v-1a7db503"),e=e(),Qa(),e),pA={class:"column"},gA={key:0},mA=Ze(()=>N("hr",null,null,-1)),vA=Ze(()=>N("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),yA={class:"columns"},bA={key:0,class:"column is-half"},wA={key:0},$A={class:"is-size-4 mb-2"},_A={class:"has-text-grey"},CA=["src"],SA={key:1},AA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},[at(" Live screenshot "),N("span",{class:"has-text-grey"},"Hover to expand")],-1)),xA=["src"],kA={class:"column"},EA={class:"block"},RA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Information",-1)),TA={class:"table is-fullwidth is-completely-borderless"},LA=Ze(()=>N("th",null,"ID",-1)),MA={class:"buttons is-pulled-right"},OA=Ze(()=>N("span",null,"Enrich",-1)),IA={class:"icon is-small"},FA=Ze(()=>N("span",null,"Metadata",-1)),NA={class:"icon is-small"},PA=Ze(()=>N("span",null,"Delete",-1)),DA={class:"icon is-small"},BA=Ze(()=>N("th",null,"Data type",-1)),WA=Ze(()=>N("th",null,"Data",-1)),HA=Ze(()=>N("th",null,"Source",-1)),UA={key:0},zA=Ze(()=>N("th",null,"Tags",-1)),VA={key:0},jA={class:"modal is-active"},GA={class:"modal-card"},KA={class:"modal-card-head"},YA=Ze(()=>N("p",{class:"modal-card-title"},"Metadata",-1)),XA={class:"modal-card-body"},ZA={key:1,class:"block"},QA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"AS",-1)),JA={key:2,class:"block"},qA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),e2={key:3,class:"block"},t2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),n2={key:4,class:"block"},i2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),r2={key:5,class:"block"},o2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Ports",-1)),s2={key:6,class:"block"},a2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),l2={class:"block"},c2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Links",-1)),u2=Ze(()=>N("hr",null,null,-1)),h2={class:"column"},f2=Ze(()=>N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function d2(e,t,n,i,p,u){var b;const d=fe("Loading"),g=fe("font-awesome-icon"),s=fe("Tags"),h=fe("VueJsonPretty"),o=fe("AS"),r=fe("ReverseDnsNames"),l=fe("DnsRecords"),c=fe("CPEs"),a=fe("Ports"),f=fe("WhoisRecord"),m=fe("Links"),v=fe("Alerts");return q(),oe(Se,null,[N("div",pA,[e.enrichArtifactTask.isRunning?(q(),oe("div",gA,[he(d),mA])):we("",!0),vA,N("div",yA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",bA,[e.googleMapSrc?(q(),oe("div",wA,[N("h4",$A,[at(" Geolocation "),N("span",_A,Ae(e.countryCode||((b=e.artifact.geolocation)==null?void 0:b.countryCode)),1)]),N("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,CA)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",SA,[AA,N("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,xA)])):we("",!0)])):we("",!0),N("div",kA,[N("div",EA,[RA,N("table",TA,[N("tr",null,[LA,N("td",null,[at(Ae(e.artifact.id)+" ",1),N("span",MA,[N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...x)=>e.enrichArtifact&&e.enrichArtifact(...x))},[OA,N("span",IA,[he(g,{icon:"lightbulb"})])]),e.artifact.metadata?(q(),oe("button",{key:0,class:"button is-info is-light is-small",onClick:t[1]||(t[1]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))},[FA,N("span",NA,[he(g,{icon:"info-circle"})])])):we("",!0),N("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...x)=>e.deleteArtifact&&e.deleteArtifact(...x))},[PA,N("span",DA,[he(g,{icon:"times"})])])])])]),N("tr",null,[BA,N("td",null,Ae(e.artifact.dataType),1)]),N("tr",null,[WA,N("td",null,Ae(e.artifact.data),1)]),N("tr",null,[HA,N("td",null,Ae(e.artifact.source),1)]),e.artifact.tags.length>0?(q(),oe("tr",UA,[zA,N("td",null,[he(s,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",VA,[N("div",jA,[N("div",{class:"modal-background",onClick:t[3]||(t[3]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))}),N("div",GA,[N("header",KA,[YA,N("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))})]),N("section",XA,[he(h,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",ZA,[QA,he(o,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",JA,[qA,he(r,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",e2,[t2,he(l,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",n2,[i2,he(c,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",r2,[o2,he(a,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",s2,[a2,he(f,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),N("div",l2,[c2,he(m,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),u2,N("div",h2,[f2,he(v,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const p2=xe(dA,[["render",d2],["__scopeId","data-v-1a7db503"]]),g2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:p2,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=G1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function m2(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("ArtifactComponent");return q(),oe(Se,null,[e.getArtifactTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getArtifactTask.isError?(q(),Me(g,{key:1,error:(h=e.getArtifactTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(q(),Me(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.refresh},null,8,["artifact","onRefresh"])):we("",!0)],64)}const v2=xe(g2,[["render",m2]]),y2=$e({name:"ArtifactView",components:{Artifact:v2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ni(`Artifact:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function b2(e,t,n,i,p,u){const d=fe("Artifact",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const w2=xe(y2,[["render",b2]]),$2=$e({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),_2={class:"box"},C2={class:"table-container"},S2={class:"table is-fullwidth"},A2=N("thead",null,[N("tr",null,[N("th",null,"Name"),N("th",null,"Type"),N("th",null,"Configured"),N("th",null,"Key-value(s)")])],-1),x2={key:0,class:"button is-success is-small ml-1"},k2={class:"icon is-small"},E2=N("span",null,"Yes",-1),R2={key:1,class:"button is-warning is-small ml-1"},T2={class:"icon is-small"},L2=N("span",null,"No",-1),M2={key:0},O2={key:1};function I2(e,t,n,i,p,u){const d=fe("font-awesome-icon");return q(),oe("div",_2,[N("div",C2,[N("table",S2,[A2,N("tbody",null,[(q(!0),oe(Se,null,ct(e.configs,g=>(q(),oe("tr",{key:g.name},[N("td",null,Ae(g.name),1),N("td",null,Ae(g.type),1),N("td",null,[g.isConfigured?(q(),oe("button",x2,[N("span",k2,[he(d,{icon:"check"})]),E2])):(q(),oe("button",R2,[N("span",T2,[he(d,{icon:"exclamation"})]),L2]))]),N("td",null,[N("ul",null,[(q(!0),oe(Se,null,ct(g.values,(s,h)=>(q(),oe("li",{key:h},[N("strong",null,Ae(s.key),1),at(": "),s.value?(q(),oe("code",M2,Ae(s.value),1)):(q(),oe("span",O2,"N/A"))]))),128))])])]))),128))])])])])}const F2=xe($2,[["render",I2]]),N2=$e({name:"ConfigsWrapper",components:{Configs:F2,Loading:fn,ErrorMessage:hn},setup(){const e=Y1();return tt(async()=>{await e.perform()}),{getConfigsTask:e}}});function P2(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("Configs");return q(),oe(Se,null,[e.getConfigsTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getConfigsTask.isError?(q(),Me(g,{key:1,error:(h=e.getConfigsTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(q(),Me(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):we("",!0)],64)}const D2=xe(N2,[["render",P2]]),B2=$e({name:"ConfigView",components:{Configs:D2},setup(){ni("Config - Mihari")}});function W2(e,t,n,i,p,u){const d=fe("Configs",!0);return q(),Me(d)}const H2=xe(B2,[["render",W2]]);var sp={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var p=function(o,r,l){if(typeof o!="string"){p.original?p.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(l=r),p.modules[o]||(p.payloads[o]=l,p.modules[o]=null)};p.modules={},p.payloads={};var u=function(o,r,l){if(typeof r=="string"){var c=s(o,r);if(c!=null)return l&&l(),c}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var a=[],f=0,m=r.length;f<m;++f){var v=s(o,r[f]);if(v==null&&d.original)return;a.push(v)}return l&&l.apply(null,a)||!0}},d=function(o,r){var l=u("",o,r);return l==null&&d.original?d.original.apply(this,arguments):l},g=function(o,r){if(r.indexOf("!")!==-1){var l=r.split("!");return g(o,l[0])+"!"+g(o,l[1])}if(r.charAt(0)=="."){var c=o.split("/").slice(0,-1).join("/");for(r=c+"/"+r;r.indexOf(".")!==-1&&a!=r;){var a=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},s=function(o,r){r=g(o,r);var l=p.modules[r];if(!l){if(l=p.payloads[r],typeof l=="function"){var c={},a={id:r,uri:"",exports:c,packaged:!0},f=function(v,b){return u(r,v,b)},m=l(f,c,a);c=m||a.exports,p.modules[r]=c,delete p.payloads[r]}l=p.modules[r]=c||l}return l};function h(o){var r=i;o&&(i[o]||(i[o]={}),r=i[o]),(!r.define||!r.define.packaged)&&(p.original=r.define,r.define=p,r.define.packaged=!0),(!r.require||!r.require.packaged)&&(d.original=r.require,r.require=d,r.require.packaged=!0)}h(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,i,p){function u(d,g,s){Object.defineProperty(d,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||u(String.prototype,"startsWith",function(d,g){return g=g||0,this.lastIndexOf(d,g)===g}),String.prototype.endsWith||u(String.prototype,"endsWith",function(d,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=d.length;var h=s.indexOf(d,g);return h!==-1&&h===g}),String.prototype.repeat||u(String.prototype,"repeat",function(d){for(var g="",s=this;d>0;)d&1&&(g+=s),(d>>=1)&&(s+=s);return g}),String.prototype.includes||u(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),s=1;s<arguments.length;s++){var h=arguments[s];h!=null&&Object.keys(h).forEach(function(o){g[o]=h[o]})}return g}),Object.values||(Object.values=function(d){return Object.keys(d).map(function(g){return d[g]})}),Array.prototype.find||u(Array.prototype,"find",function(d){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(d.call(s,o,h,this))return o}}),Array.prototype.findIndex||u(Array.prototype,"findIndex",function(d){for(var g=this.length,s=arguments[1],h=0;h<g;h++){var o=this[h];if(d.call(s,o,h,this))return h}}),Array.prototype.includes||u(Array.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Array.prototype.fill||u(Array.prototype,"fill",function(d){for(var g=this,s=g.length>>>0,h=arguments[1],o=h>>0,r=o<0?Math.max(s+o,0):Math.min(o,s),l=arguments[2],c=l===void 0?s:l>>0,a=c<0?Math.max(s+c,0):Math.min(c,s);r<a;)g[r]=d,r++;return g}),Array.of||u(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,i,p){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,i,p){i.deepCopy=function u(d){if(typeof d!="object"||!d)return d;var g;if(Array.isArray(d)){g=[];for(var s=0;s<d.length;s++)g[s]=u(d[s]);return g}if(Object.prototype.toString.call(d)!=="[object Object]")return d;g={};for(var s in d)g[s]=u(d[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,i,p){i.last=function(g){return g[g.length-1]},i.stringReverse=function(g){return g.split("").reverse().join("")},i.stringRepeat=function(g,s){for(var h="";s>0;)s&1&&(h+=g),(s>>=1)&&(g+=g);return h};var u=/^\s\s*/,d=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(u,"")},i.stringTrimRight=function(g){return g.replace(d,"")},i.copyObject=function(g){var s={};for(var h in g)s[h]=g[h];return s},i.copyArray=function(g){for(var s=[],h=0,o=g.length;h<o;h++)g[h]&&typeof g[h]=="object"?s[h]=this.copyObject(g[h]):s[h]=g[h];return s},i.deepCopy=n("./deep_copy").deepCopy,i.arrayToMap=function(g){for(var s={},h=0;h<g.length;h++)s[g[h]]=1;return s},i.createMap=function(g){var s=Object.create(null);for(var h in g)s[h]=g[h];return s},i.arrayRemove=function(g,s){for(var h=0;h<=g.length;h++)s===g[h]&&g.splice(h,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,s){var h=[];return g.replace(s,function(o){h.push({offset:arguments[arguments.length-2],length:o.length})}),h},i.deferredCall=function(g){var s=null,h=function(){s=null,g()},o=function(r){return o.cancel(),s=setTimeout(h,r||0),o};return o.schedule=o,o.call=function(){return this.cancel(),g(),o},o.cancel=function(){return clearTimeout(s),s=null,o},o.isPending=function(){return s},o},i.delayedCall=function(g,s){var h=null,o=function(){h=null,g()},r=function(l){h==null&&(h=setTimeout(o,l||s))};return r.delay=function(l){h&&clearTimeout(h),h=setTimeout(o,l||s)},r.schedule=r,r.call=function(){this.cancel(),g()},r.cancel=function(){h&&clearTimeout(h),h=null},r.isPending=function(){return h},r},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.supportsUnicodeFlag=function(){try{new RegExp("^.$","u")}catch{return!1}return!0}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,p){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 u=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(u.platform)||["other"])[0].toLowerCase(),g=u.userAgent||"",s=u.appName||"";i.isWin=d=="win",i.isMac=d=="mac",i.isLinux=d=="linux",i.isIE=s=="Microsoft Internet Explorer"||s.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.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,p){var u=n("./useragent"),d="http://www.w3.org/1999/xhtml";i.buildDom=function l(c,a,f){if(typeof c=="string"&&c){var m=document.createTextNode(c);return a&&a.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&a&&a.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var v=[],b=0;b<c.length;b++){var x=l(c[b],a,f);x&&v.push(x)}return v}var C=document.createElement(c[0]),S=c[1],$=1;S&&typeof S=="object"&&!Array.isArray(S)&&($=2);for(var b=$;b<c.length;b++)l(c[b],C,f);return $==2&&Object.keys(S).forEach(function(L){var R=S[L];L==="class"?C.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||L=="value"||L[0]=="$"?C[L]=R:L==="ref"?f&&(f[R]=C):L==="style"?typeof R=="string"&&(C.style.cssText=R):R!=null&&C.setAttribute(L,R)}),a&&a.appendChild(C),C},i.getDocumentHead=function(l){return l||(l=document),l.head||l.getElementsByTagName("head")[0]||l.documentElement},i.createElement=function(l,c){return document.createElementNS?document.createElementNS(c||d,l):document.createElement(l)},i.removeChildren=function(l){l.innerHTML=""},i.createTextNode=function(l,c){var a=c?c.ownerDocument:document;return a.createTextNode(l)},i.createFragment=function(l){var c=l?l.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(l,c){var a=(l.className+"").split(/\s+/g);return a.indexOf(c)!==-1},i.addCssClass=function(l,c){i.hasCssClass(l,c)||(l.className+=" "+c)},i.removeCssClass=function(l,c){for(var a=l.className.split(/\s+/g);;){var f=a.indexOf(c);if(f==-1)break;a.splice(f,1)}l.className=a.join(" ")},i.toggleCssClass=function(l,c){for(var a=l.className.split(/\s+/g),f=!0;;){var m=a.indexOf(c);if(m==-1)break;f=!1,a.splice(m,1)}return f&&a.push(c),l.className=a.join(" "),f},i.setCssClass=function(l,c,a){a?i.addCssClass(l,c):i.removeCssClass(l,c)},i.hasCssString=function(l,c){var a=0,f;if(c=c||document,f=c.querySelectorAll("style")){for(;a<f.length;)if(f[a++].id===l)return!0}},i.removeElementById=function(l,c){c=c||document,c.getElementById(l)&&c.getElementById(l).remove()};var g,s=[];i.useStrictCSP=function(l){g=l,l==!1?h():s||(s=[])};function h(){var l=s;s=null,l&&l.forEach(function(c){o(c[0],c[1])})}function o(l,c,a){if(!(typeof document>"u")){if(s){if(a)h();else if(a===!1)return s.push([l,c])}if(!g){var f=a;!a||!a.getRootNode?f=document:(f=a.getRootNode(),(!f||f==a)&&(f=document));var m=f.ownerDocument||f;if(c&&i.hasCssString(c,f))return null;c&&(l+=`
779
- /*# sourceURL=ace/css/`+c+" */");var v=i.createElement("style");v.appendChild(m.createTextNode(l)),c&&(v.id=c),f==m&&(f=i.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(l,c){i.buildDom(["link",{rel:"stylesheet",href:l}],i.getDocumentHead(c))},i.scrollbarWidth=function(l){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var a=i.createElement("ace_outer"),f=a.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",a.appendChild(c);var m=l&&l.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(a);var v=c.offsetWidth;f.overflow="scroll";var b=c.offsetWidth;return v===b&&(b=a.clientWidth),m.removeChild(a),v-b},i.computedStyle=function(l,c){return window.getComputedStyle(l,"")||{}},i.setStyle=function(l,c,a){l[c]!==a&&(l[c]=a)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=u.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,u.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),!u.isEdge&&typeof r.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),r=null}i.HAS_CSS_TRANSFORMS?i.translate=function(l,c,a){l.style.transform="translate("+Math.round(c)+"px, "+Math.round(a)+"px)"}:i.translate=function(l,c,a){l.style.top=Math.round(a)+"px",l.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,p){/*
780
- * based on code from:
781
- *
782
- * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
783
- * Available via the MIT or new BSD license.
784
- * see: http://github.com/jrburke/requirejs for details
785
- */var u=n("./dom");i.get=function(d,g){var s=new XMLHttpRequest;s.open("GET",d,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},i.loadScript=function(d,g){var s=u.getDocumentHead(),h=document.createElement("script");h.src=d,s.appendChild(h),h.onload=h.onreadystatechange=function(o,r){(r||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.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,p){i.inherits=function(u,d){u.super_=d,u.prototype=Object.create(d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(u,d){for(var g in d)u[g]=d[g];return u},i.implement=function(u,d){i.mixin(u,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,p){var u={},d=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};u._emit=u._dispatchEvent=function(s,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],r=this._defaultHandlers[s];if(!(!o.length&&!r)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=s),h.stopPropagation||(h.stopPropagation=d),h.preventDefault||(h.preventDefault=g),o=o.slice();for(var l=0;l<o.length&&(o[l](h,this),!h.propagationStopped);l++);if(r&&!h.defaultPrevented)return r(h,this)}},u._signal=function(s,h){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var r=0;r<o.length;r++)o[r](h,this)}},u.once=function(s,h){var o=this;if(this.on(s,function r(){o.off(s,r),h.apply(null,arguments)}),!h)return new Promise(function(r){h=r})},u.setDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var r=o[s],l=o._disabled_[s];l||(o._disabled_[s]=l=[]),l.push(r);var c=l.indexOf(h);c!=-1&&l.splice(c,1)}o[s]=h},u.removeDefaultHandler=function(s,h){var o=this._defaultHandlers;if(o){var r=o._disabled_[s];if(o[s]==h)r&&this.setDefaultHandler(s,r.pop());else if(r){var l=r.indexOf(h);l!=-1&&r.splice(l,1)}}},u.on=u.addEventListener=function(s,h,o){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[s];return r||(r=this._eventRegistry[s]=[]),r.indexOf(h)==-1&&r[o?"unshift":"push"](h),h},u.off=u.removeListener=u.removeEventListener=function(s,h){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var r=o.indexOf(h);r!==-1&&o.splice(r,1)}},u.removeAllListeners=function(s){s||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[s]=void 0),this._defaultHandlers&&(this._defaultHandlers[s]=void 0)},i.EventEmitter=u}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,i,p){i.reportError=function(d,g){var s=new Error(d);s.data=g,typeof console=="object"&&console.error&&console.error(s),setTimeout(function(){throw s})}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(n,i,p){"no use strict";var u=n("./oop"),d=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s={setOptions:function(l){Object.keys(l).forEach(function(c){this.setOption(c,l[c])},this)},getOptions:function(l){var c={};if(l)Array.isArray(l)||(c=l,l=Object.keys(c));else{var a=this.$options;l=Object.keys(a).filter(function(f){return!a[f].hidden})}return l.forEach(function(f){c[f]=this.getOption(f)},this),c},setOption:function(l,c){if(this["$"+l]!==c){var a=this.$options[l];if(!a)return h('misspelled option "'+l+'"');if(a.forwardTo)return this[a.forwardTo]&&this[a.forwardTo].setOption(l,c);a.handlesSet||(this["$"+l]=c),a&&a.set&&a.set.call(this,c)}},getOption:function(l){var c=this.$options[l];return c?c.forwardTo?this[c.forwardTo]&&this[c.forwardTo].getOption(l):c&&c.get?c.get.call(this):this["$"+l]:h('misspelled option "'+l+'"')}};function h(l){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var o,r=function(){function l(){this.$defaultOptions={}}return l.prototype.defineOptions=function(c,a,f){return c.$options||(this.$defaultOptions[a]=c.$options={}),Object.keys(f).forEach(function(m){var v=f[m];typeof v=="string"&&(v={forwardTo:v}),v.name||(v.name=m),c.$options[v.name]=v,"initialValue"in v&&(c["$"+v.name]=v.initialValue)}),u.implement(c,s),this},l.prototype.resetOptions=function(c){Object.keys(c.$options).forEach(function(a){var f=c.$options[a];"value"in f&&c.setOption(a,f.value)})},l.prototype.setDefaultValue=function(c,a,f){if(!c){for(c in this.$defaultOptions)if(this.$defaultOptions[c][a])break;if(!this.$defaultOptions[c][a])return!1}var m=this.$defaultOptions[c]||(this.$defaultOptions[c]={});m[a]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,a,f):m[a].value=f)},l.prototype.setDefaultValues=function(c,a){Object.keys(a).forEach(function(f){this.setDefaultValue(c,f,a[f])},this)},l.prototype.setMessages=function(c){o=c},l.prototype.nls=function(c,a){o&&!o[c]&&h("No message found for '"+c+"' in the provided messages, falling back to default English message.");var f=o&&o[c]||c;return a&&(f=f.replace(/\$(\$|[\d]+)/g,function(m,v){return v=="$"?"$":a[v]})),f},l}();r.prototype.warn=h,r.prototype.reportError=g,u.implement(r.prototype,d),i.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,i,p){p.exports=`.ace-tm .ace_gutter {
786
- background: #f0f0f0;
787
- color: #333;
788
- }
789
-
790
- .ace-tm .ace_print-margin {
791
- width: 1px;
792
- background: #e8e8e8;
793
- }
794
-
795
- .ace-tm .ace_fold {
796
- background-color: #6B72E6;
797
- }
798
-
799
- .ace-tm {
800
- background-color: #FFFFFF;
801
- color: black;
802
- }
803
-
804
- .ace-tm .ace_cursor {
805
- color: black;
806
- }
807
-
808
- .ace-tm .ace_invisible {
809
- color: rgb(191, 191, 191);
810
- }
811
-
812
- .ace-tm .ace_storage,
813
- .ace-tm .ace_keyword {
814
- color: blue;
815
- }
816
-
817
- .ace-tm .ace_constant {
818
- color: rgb(197, 6, 11);
819
- }
820
-
821
- .ace-tm .ace_constant.ace_buildin {
822
- color: rgb(88, 72, 246);
823
- }
824
-
825
- .ace-tm .ace_constant.ace_language {
826
- color: rgb(88, 92, 246);
827
- }
828
-
829
- .ace-tm .ace_constant.ace_library {
830
- color: rgb(6, 150, 14);
831
- }
832
-
833
- .ace-tm .ace_invalid {
834
- background-color: rgba(255, 0, 0, 0.1);
835
- color: red;
836
- }
837
-
838
- .ace-tm .ace_support.ace_function {
839
- color: rgb(60, 76, 114);
840
- }
841
-
842
- .ace-tm .ace_support.ace_constant {
843
- color: rgb(6, 150, 14);
844
- }
845
-
846
- .ace-tm .ace_support.ace_type,
847
- .ace-tm .ace_support.ace_class {
848
- color: rgb(109, 121, 222);
849
- }
850
-
851
- .ace-tm .ace_keyword.ace_operator {
852
- color: rgb(104, 118, 135);
853
- }
854
-
855
- .ace-tm .ace_string {
856
- color: rgb(3, 106, 7);
857
- }
858
-
859
- .ace-tm .ace_comment {
860
- color: rgb(76, 136, 107);
861
- }
862
-
863
- .ace-tm .ace_comment.ace_doc {
864
- color: rgb(0, 102, 255);
865
- }
866
-
867
- .ace-tm .ace_comment.ace_doc.ace_tag {
868
- color: rgb(128, 159, 191);
869
- }
870
-
871
- .ace-tm .ace_constant.ace_numeric {
872
- color: rgb(0, 0, 205);
873
- }
874
-
875
- .ace-tm .ace_variable {
876
- color: rgb(49, 132, 149);
877
- }
878
-
879
- .ace-tm .ace_xml-pe {
880
- color: rgb(104, 104, 91);
881
- }
882
-
883
- .ace-tm .ace_entity.ace_name.ace_function {
884
- color: #0000A2;
885
- }
886
-
887
-
888
- .ace-tm .ace_heading {
889
- color: rgb(12, 7, 255);
890
- }
891
-
892
- .ace-tm .ace_list {
893
- color:rgb(185, 6, 144);
894
- }
895
-
896
- .ace-tm .ace_meta.ace_tag {
897
- color:rgb(0, 22, 142);
898
- }
899
-
900
- .ace-tm .ace_string.ace_regex {
901
- color: rgb(255, 0, 0)
902
- }
903
-
904
- .ace-tm .ace_marker-layer .ace_selection {
905
- background: rgb(181, 213, 255);
906
- }
907
- .ace-tm.ace_multiselect .ace_selection.ace_start {
908
- box-shadow: 0 0 3px 0px white;
909
- }
910
- .ace-tm .ace_marker-layer .ace_step {
911
- background: rgb(252, 255, 0);
912
- }
913
-
914
- .ace-tm .ace_marker-layer .ace_stack {
915
- background: rgb(164, 229, 101);
916
- }
917
-
918
- .ace-tm .ace_marker-layer .ace_bracket {
919
- margin: -1px 0 0 -1px;
920
- border: 1px solid rgb(192, 192, 192);
921
- }
922
-
923
- .ace-tm .ace_marker-layer .ace_active-line {
924
- background: rgba(0, 0, 0, 0.07);
925
- }
926
-
927
- .ace-tm .ace_gutter-active-line {
928
- background-color : #dcdcdc;
929
- }
930
-
931
- .ace-tm .ace_marker-layer .ace_selected-word {
932
- background: rgb(250, 250, 255);
933
- border: 1px solid rgb(200, 200, 250);
934
- }
935
-
936
- .ace-tm .ace_indent-guide {
937
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
938
- }
939
-
940
- .ace-tm .ace_indent-guide-active {
941
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
942
- }
943
- `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,i,p){i.isDark=!1,i.cssClass="ace-tm",i.cssText=n("./textmate-css"),i.$id="ace/theme/textmate";var u=n("../lib/dom");u.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,p){"no use strict";var u=n("./lib/lang"),d=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;p.exports=i=new s;var h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!h.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return h[c]},i.set=function(c,a){if(h.hasOwnProperty(c))h[c]=a;else if(this.setDefaultValue("",c,a)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&g.useStrictCSP(a)},i.all=function(){return u.copyObject(h)},i.$modes={},i.moduleUrl=function(c,a){if(h.$moduleUrls[c])return h.$moduleUrls[c];var f=c.split("/");a=a||f[f.length-2]||"";var m=a=="snippets"?"/":"-",v=f[f.length-1];if(a=="worker"&&m=="-"){var b=new RegExp("^"+a+"[\\-_]|[\\-_]"+a+"$","g");v=v.replace(b,"")}(!v||v==a)&&f.length>1&&(v=f[f.length-2]);var x=h[a+"Path"];return x==null?x=h.basePath:m=="/"&&(a=m=""),x&&x.slice(-1)!="/"&&(x+="/"),x+a+m+v+this.get("suffix")},i.setModuleUrl=function(c,a){return h.$moduleUrls[c]=a};var o=function(c,a){if(c==="ace/theme/textmate"||c==="./theme/textmate")return a(null,n("./theme/textmate"));if(r)return r(c,a);console.error("loader is not configured")},r;i.setLoader=function(c){r=c},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(c,a){var f,m;Array.isArray(c)&&(m=c[0],c=c[1]);var v=function(b){if(b&&!i.$loading[c])return a&&a(b);if(i.$loading[c]||(i.$loading[c]=[]),i.$loading[c].push(a),!(i.$loading[c].length>1)){var x=function(){o(c,function(C,S){S&&(i.$loaded[c]=S),i._emit("load.module",{name:c,module:S});var $=i.$loading[c];i.$loading[c]=null,$.forEach(function(L){L&&L(S)})})};if(!i.get("packaged"))return x();d.loadScript(i.moduleUrl(c,m),x),l()}};if(i.dynamicModules[c])i.dynamicModules[c]().then(function(b){b.default?v(b.default):v(b)});else{try{f=this.$require(c)}catch{}v(f||i.$loaded[c])}},i.$require=function(c){if(typeof p.require=="function"){var a="require";return p[a](c)}},i.setModuleLoader=function(c,a){i.dynamicModules[c]=a};var l=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$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"),l=function(){})};i.version="1.31.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,p){n("./lib/fixoldbrowsers");var u=n("./config");u.setLoader(function(h,o){n([h],function(r){o(null,r)})});var d=function(){return this||typeof window<"u"&&window}();p.exports=function(h){u.init=g,u.$require=n,h.require=n},g(!0);function g(h){if(!(!d||!d.document)){u.set("packaged",h||n.packaged||p.packaged||d.define&&(void 0).packaged);var o={},r="",l=document.currentScript||document._currentScript,c=l&&l.ownerDocument||document;l&&l.src&&(r=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var a=c.getElementsByTagName("script"),f=0;f<a.length;f++){var m=a[f],v=m.src||m.getAttribute("src");if(v){for(var b=m.attributes,x=0,C=b.length;x<C;x++){var S=b[x];S.name.indexOf("data-ace-")===0&&(o[s(S.name.replace(/^data-ace-/,""))]=S.value)}var $=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);$&&(r=$[1])}}r&&(o.base=o.base||r,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base;for(var L in o)typeof o[L]<"u"&&u.set(L,o[L])}}function s(h){return h.replace(/-(.)/g,function(o,r){return r.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,i,p){var u=function(g,s){return g.row-s.row||g.column-s.column},d=function(){function g(s,h,o,r){this.start={row:s,column:h},this.end={row:o,column:r}}return g.prototype.isEqual=function(s){return this.start.row===s.start.row&&this.end.row===s.end.row&&this.start.column===s.start.column&&this.end.column===s.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(s,h){return this.compare(s,h)==0},g.prototype.compareRange=function(s){var h,o=s.end,r=s.start;return h=this.compare(o.row,o.column),h==1?(h=this.compare(r.row,r.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(r.row,r.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(s){return this.compare(s.row,s.column)},g.prototype.containsRange=function(s){return this.comparePoint(s.start)==0&&this.comparePoint(s.end)==0},g.prototype.intersects=function(s){var h=this.compareRange(s);return h==-1||h==0||h==1},g.prototype.isEnd=function(s,h){return this.end.row==s&&this.end.column==h},g.prototype.isStart=function(s,h){return this.start.row==s&&this.start.column==h},g.prototype.setStart=function(s,h){typeof s=="object"?(this.start.column=s.column,this.start.row=s.row):(this.start.row=s,this.start.column=h)},g.prototype.setEnd=function(s,h){typeof s=="object"?(this.end.column=s.column,this.end.row=s.row):(this.end.row=s,this.end.column=h)},g.prototype.inside=function(s,h){return this.compare(s,h)==0?!(this.isEnd(s,h)||this.isStart(s,h)):!1},g.prototype.insideStart=function(s,h){return this.compare(s,h)==0?!this.isEnd(s,h):!1},g.prototype.insideEnd=function(s,h){return this.compare(s,h)==0?!this.isStart(s,h):!1},g.prototype.compare=function(s,h){return!this.isMultiLine()&&s===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:s<this.start.row?-1:s>this.end.row?1:this.start.row===s?h>=this.start.column?0:-1:this.end.row===s?h<=this.end.column?0:1:0},g.prototype.compareStart=function(s,h){return this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.compareEnd=function(s,h){return this.end.row==s&&this.end.column==h?1:this.compare(s,h)},g.prototype.compareInside=function(s,h){return this.end.row==s&&this.end.column==h?1:this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.clipRows=function(s,h){if(this.end.row>h)var o={row:h+1,column:0};else if(this.end.row<s)var o={row:s,column:0};if(this.start.row>h)var r={row:h+1,column:0};else if(this.start.row<s)var r={row:s,column:0};return g.fromPoints(r||this.start,o||this.end)},g.prototype.extend=function(s,h){var o=this.compare(s,h);if(o==0)return this;if(o==-1)var r={row:s,column:h};else var l={row:s,column:h};return g.fromPoints(r||this.start,l||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(s){var h=s.documentToScreenPosition(this.start),o=s.documentToScreenPosition(this.end);return new g(h.row,h.column,o.row,o.column)},g.prototype.moveBy=function(s,h){this.start.row+=s,this.start.column+=h,this.end.row+=s,this.end.column+=h},g}();d.fromPoints=function(g,s){return new d(g.row,g.column,s.row,s.column)},d.comparePoints=u,d.comparePoints=function(g,s){return g.row-s.row||g.column-s.column},i.Range=d}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,i,p){/*! @license
944
- ==========================================================================
945
- SproutCore -- JavaScript Application Framework
946
- copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
947
-
948
- Permission is hereby granted, free of charge, to any person obtaining a
949
- copy of this software and associated documentation files (the "Software"),
950
- to deal in the Software without restriction, including without limitation
951
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
952
- and/or sell copies of the Software, and to permit persons to whom the
953
- Software is furnished to do so, subject to the following conditions:
954
-
955
- The above copyright notice and this permission notice shall be included in
956
- all copies or substantial portions of the Software.
957
-
958
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
959
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
960
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
961
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
962
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
963
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
964
- DEALINGS IN THE SOFTWARE.
965
-
966
- SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
967
-
968
- For more information about SproutCore, visit http://www.sproutcore.com
969
-
970
-
971
- ==========================================================================
972
- @license */var u=n("./oop"),d=function(){var g={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",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};g.PRINTABLE_KEYS[173]="-";var s,h;for(h in g.FUNCTION_KEYS)s=g.FUNCTION_KEYS[h].toLowerCase(),g[s]=parseInt(h,10);for(h in g.PRINTABLE_KEYS)s=g.PRINTABLE_KEYS[h].toLowerCase(),g[s]=parseInt(h,10);return u.mixin(g,g.MODIFIER_KEYS),u.mixin(g,g.PRINTABLE_KEYS),u.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,function(){for(var o=["cmd","ctrl","alt","shift"],r=Math.pow(2,o.length);r--;)g.KEY_MODS[r]=o.filter(function(l){return r&g.KEY_MODS[l]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",g}();u.mixin(i,d),i.default=i,i.keyCodeToString=function(g){var s=d[g];return typeof s!="string"&&(s=String.fromCharCode(g)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,p){var u=n("./keys"),d=n("./useragent"),g=null,s=0,h;function o(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch{}}function r(){return h==null&&o(),h}function l(x,C,S){this.elem=x,this.type=C,this.callback=S}l.prototype.destroy=function(){a(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(x,C,S,$){x.addEventListener(C,S,r()),$&&$.$toDestroy.push(new l(x,C,S))},a=i.removeListener=function(x,C,S){x.removeEventListener(C,S,r())};i.stopEvent=function(x){return i.stopPropagation(x),i.preventDefault(x),!1},i.stopPropagation=function(x){x.stopPropagation&&x.stopPropagation()},i.preventDefault=function(x){x.preventDefault&&x.preventDefault()},i.getButton=function(x){return x.type=="dblclick"?0:x.type=="contextmenu"||d.isMac&&x.ctrlKey&&!x.altKey&&!x.shiftKey?2:x.button},i.capture=function(x,C,S){var $=x&&x.ownerDocument||document;function L(R){C&&C(R),S&&S(R),a($,"mousemove",C),a($,"mouseup",L),a($,"dragstart",L)}return c($,"mousemove",C),c($,"mouseup",L),c($,"dragstart",L),L},i.addMouseWheelListener=function(x,C,S){c(x,"wheel",function($){var L=.15,R=$.deltaX||0,k=$.deltaY||0;switch($.deltaMode){case $.DOM_DELTA_PIXEL:$.wheelX=R*L,$.wheelY=k*L;break;case $.DOM_DELTA_LINE:var M=15;$.wheelX=R*M,$.wheelY=k*M;break;case $.DOM_DELTA_PAGE:var y=150;$.wheelX=R*y,$.wheelY=k*y;break}C($)},S)},i.addMultiMouseDownListener=function(x,C,S,$,L){var R=0,k,M,y,A={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(w){if(i.getButton(w)!==0?R=0:w.detail>1?(R++,R>4&&(R=1)):R=1,d.isIE){var E=Math.abs(w.clientX-k)>5||Math.abs(w.clientY-M)>5;(!y||E)&&(R=1),y&&clearTimeout(y),y=setTimeout(function(){y=null},C[R-1]||600),R==1&&(k=w.clientX,M=w.clientY)}if(w._clicks=R,S[$]("mousedown",w),R>4)R=0;else if(R>1)return S[$](A[R],w)}Array.isArray(x)||(x=[x]),x.forEach(function(w){c(w,"mousedown",_,L)})};var f=function(x){return 0|(x.ctrlKey?1:0)|(x.altKey?2:0)|(x.shiftKey?4:0)|(x.metaKey?8:0)};i.getModifierString=function(x){return u.KEY_MODS[f(x)]};function m(x,C,S){var $=f(C);if(!d.isMac&&g){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&($|=8),g.altGr)if((3&$)!=3)g.altGr=0;else return;if(S===18||S===17){var L="location"in C?C.location:C.keyLocation;if(S===17&&L===1)g[S]==1&&(s=C.timeStamp);else if(S===18&&$===3&&L===2){var R=C.timeStamp-s;R<50&&(g.altGr=!0)}}}if(S in u.MODIFIER_KEYS&&(S=-1),!$&&S===13){var L="location"in C?C.location:C.keyLocation;if(L===3&&(x(C,$,-S),C.defaultPrevented))return}if(d.isChromeOS&&$&8){if(x(C,$,S),C.defaultPrevented)return;$&=-9}return!$&&!(S in u.FUNCTION_KEYS)&&!(S in u.PRINTABLE_KEYS)?!1:x(C,$,S)}i.addCommandKeyListener=function(x,C,S){if(d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)){var $=null;c(x,"keydown",function(R){$=R.keyCode},S),c(x,"keypress",function(R){return m(C,R,$)},S)}else{var L=null;c(x,"keydown",function(R){g[R.keyCode]=(g[R.keyCode]||0)+1;var k=m(C,R,R.keyCode);return L=R.defaultPrevented,k},S),c(x,"keypress",function(R){L&&(R.ctrlKey||R.altKey||R.shiftKey||R.metaKey)&&(i.stopEvent(R),L=null)},S),c(x,"keyup",function(R){g[R.keyCode]=null},S),g||(v(),c(window,"focus",v))}};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var b=1;i.nextTick=function(x,C){C=C||window;var S="zero-timeout-message-"+b++,$=function(L){L.data==S&&(i.stopPropagation(L),a(C,"message",$),x())};c(C,"message",$),C.postMessage(S,"*")}}i.$idleBlocked=!1,i.onIdle=function(x,C){return setTimeout(function S(){i.$idleBlocked?setTimeout(S,100):x()},C)},i.$idleBlockId=null,i.blockIdle=function(x){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},x||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(x){setTimeout(x,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,p){var u;p.exports={lineMode:!1,pasteCancelled:function(){return u&&u>Date.now()-50?!0:u=!1},cancel:function(){u=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,p){var u=n("../lib/event"),d=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),h=n("../lib/lang"),o=n("../clipboard"),r=g.isChrome<18,l=g.isIE,c=g.isChrome>63,a=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,b=v?/\s/:/\n/,x=g.isMobile,C=function(S,$){var L=s.createElement("textarea");L.className="ace_text-input",L.setAttribute("wrap","off"),L.setAttribute("autocorrect","off"),L.setAttribute("autocapitalize","off"),L.setAttribute("spellcheck",!1),L.style.opacity="0",S.insertBefore(L,S.firstChild);var R=!1,k=!1,M=!1,y=!1,A="";x||(L.style.fontSize="1px");var _=!1,w=!1,E="",T=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===L}catch{}this.setNumberOfExtraLines=function(J){if(F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,J<0){W=0;return}W=J},this.setAriaOptions=function(J){if(J.activeDescendant?(L.setAttribute("aria-haspopup","true"),L.setAttribute("aria-autocomplete",J.inline?"both":"list"),L.setAttribute("aria-activedescendant",J.activeDescendant)):(L.setAttribute("aria-haspopup","false"),L.setAttribute("aria-autocomplete","both"),L.removeAttribute("aria-activedescendant")),J.role&&L.setAttribute("role",J.role),J.setLabel&&(L.setAttribute("aria-roledescription",d("editor")),$.session)){var ae=$.session.selection.cursor.row;L.setAttribute("aria-label",d("Cursor at row $0",[ae+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(L,"blur",function(J){w||($.onBlur(J),j=!1)},$),u.addListener(L,"focus",function(J){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}$.onFocus(J),g.isEdge?setTimeout(U):U()}},$),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:$.renderer.enableKeyboardAccessibility}),A||c||this.$focusScroll=="browser")return L.focus({preventScroll:!0});var J=L.style.top;L.style.position="fixed",L.style.top="0px";try{var ae=L.getBoundingClientRect().top!=0}catch{return}var ue=[];if(ae)for(var be=L.parentElement;be&&be.nodeType==1;)ue.push(be),be.setAttribute("ace_nocontext",!0),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;L.focus({preventScroll:!0}),ae&&ue.forEach(function(Re){Re.removeAttribute("ace_nocontext")}),setTimeout(function(){L.style.position="",L.style.top=="0px"&&(L.style.top=J)},0)},this.blur=function(){L.blur()},this.isFocused=function(){return j},$.on("beforeEndOperation",function(){var J=$.curOp,ae=J&&J.command&&J.command.name;if(ae!="insertstring"){var ue=ae&&(J.docChanged||J.selectionChanged);M&&ue&&(E=L.value="",le()),U()}});var H=function(J,ae){for(var ue=ae,be=1;be<=J-F&&be<2*W+1;be++)ue+=$.session.getLine(J-be).length+1;return ue},U=v?function(J){if(!(!j||R&&!J||y)){J||(J="");var ae=`
973
- ab`+J+`cde fg
974
- `;ae!=L.value&&(L.value=E=ae);var ue=4,be=4+(J.length||($.selection.isEmpty()?0:1));(T!=ue||O!=be)&&L.setSelectionRange(ue,be),T=ue,O=be}}:function(){if(!(M||y)&&!(!j&&!X)){M=!0;var J=0,ae=0,ue="";if($.session){var be=$.selection,Re=be.getRange(),Ne=be.cursor.row;Ne===D+1?(F=D+1,D=F+2*W):Ne===F-1?(D=F-1,F=D-2*W):(Ne<F-1||Ne>D+1)&&(F=Ne>W?Ne-W:0,D=Ne>W?Ne+W:2*W);for(var Ke=[],De=F;De<=D;De++)Ke.push($.session.getLine(De));if(ue=Ke.join(`
975
- `),J=H(Re.start.row,Re.start.column),ae=H(Re.end.row,Re.end.column),Re.start.row<F){var He=$.session.getLine(F-1);J=Re.start.row<F-1?0:J,ae+=He.length+1,ue=He+`
976
- `+ue}else if(Re.end.row>D){var ke=$.session.getLine(D+1);ae=Re.end.row>D+1?ke.length:Re.end.column,ae+=ue.length+1,ue=ue+`
977
- `+ke}else x&&Ne>0&&(ue=`
978
- `+ue,ae+=1,J+=1);ue.length>a&&(J<a&&ae<a?ue=ue.slice(0,a):(ue=`
979
- `,J==ae?J=ae=0:(J=0,ae=1)));var Ue=ue+`
980
-
981
- `;Ue!=E&&(L.value=E=Ue,T=O=Ue.length)}if(X&&(T=L.selectionStart,O=L.selectionEnd),O!=ae||T!=J||L.selectionEnd!=O)try{L.setSelectionRange(J,ae),T=J,O=ae}catch{}M=!1}};this.resetSelection=U,j&&$.onFocus();var K=function(J){return J.selectionStart===0&&J.selectionEnd>=E.length&&J.value===E&&E&&J.selectionEnd!==O},Z=function(J){M||(R?R=!1:K(L)?($.selectAll(),U()):x&&L.selectionStart!=T&&U())},z=null;this.setInputHandler=function(J){z=J},this.getInputHandler=function(){return z};var X=!1,Y=function(J,ae){if(X&&(X=!1),k)return U(),J&&$.onPaste(J),k=!1,"";for(var ue=L.selectionStart,be=L.selectionEnd,Re=T,Ne=E.length-O,Ke=J,De=J.length-ue,He=J.length-be,ke=0;Re>0&&E[ke]==J[ke];)ke++,Re--;for(Ke=Ke.slice(ke),ke=1;Ne>0&&E.length-ke>T-1&&E[E.length-ke]==J[J.length-ke];)ke++,Ne--;De-=ke-1,He-=ke-1;var Ue=Ke.length-ke+1;if(Ue<0&&(Re=-Ue,Ue=0),Ke=Ke.slice(0,Ue),!ae&&!Ke&&!De&&!Re&&!Ne&&!He)return"";y=!0;var dn=!1;return g.isAndroid&&Ke==". "&&(Ke=" ",dn=!0),Ke&&!Re&&!Ne&&!De&&!He||_?$.onTextInput(Ke):$.onTextInput(Ke,{extendLeft:Re,extendRight:Ne,restoreStart:De,restoreEnd:He}),y=!1,E=J,T=ue,O=be,I=He,dn?`
982
- `:Ke},V=function(J){if(M)return ie();if(J&&J.inputType){if(J.inputType=="historyUndo")return $.execCommand("undo");if(J.inputType=="historyRedo")return $.execCommand("redo")}var ae=L.value,ue=Y(ae,!0);(ae.length>a+100||b.test(ue)||x&&T<1&&T==O)&&U()},ee=function(J,ae,ue){var be=J.clipboardData||window.clipboardData;if(!(!be||r)){var Re=l||ue?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Ne){if(!ue)return ee(Ne,ae,!0)}}},P=function(J,ae){var ue=$.getCopyText();if(!ue)return u.preventDefault(J);ee(J,ue)?(v&&(U(ue),R=ue,setTimeout(function(){R=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(J)):(R=!0,L.value=ue,L.select(),setTimeout(function(){R=!1,U(),ae?$.onCut():$.onCopy()}))},B=function(J){P(J,!0)},G=function(J){P(J,!1)},Q=function(J){var ae=ee(J);o.pasteCancelled()||(typeof ae=="string"?(ae&&$.onPaste(ae,J),g.isIE&&setTimeout(U),u.preventDefault(J)):(L.value="",k=!0))};u.addCommandKeyListener(L,$.onCommandKey.bind($),$),u.addListener(L,"select",Z,$),u.addListener(L,"input",V,$),u.addListener(L,"cut",B,$),u.addListener(L,"copy",G,$),u.addListener(L,"paste",Q,$),(!("oncut"in L)||!("oncopy"in L)||!("onpaste"in L))&&u.addListener(S,"keydown",function(J){if(!(g.isMac&&!J.metaKey||!J.ctrlKey))switch(J.keyCode){case 67:G(J);break;case 86:Q(J);break;case 88:B(J);break}},$);var te=function(J){if(!(M||!$.onCompositionStart||$.$readOnly)&&(M={},!_)){J.data&&(M.useTextareaForIME=!1),setTimeout(ie,0),$._signal("compositionStart"),$.on("mousedown",se);var ae=$.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,M.markerRange=ae,M.selectionStart=T,$.onCompositionStart(M),M.useTextareaForIME?(E=L.value="",T=0,O=0):(L.msGetInputContext&&(M.context=L.msGetInputContext()),L.getInputContext&&(M.context=L.getInputContext()))}},ie=function(){if(!(!M||!$.onCompositionUpdate||$.$readOnly)){if(_)return se();if(M.useTextareaForIME)$.onCompositionUpdate(L.value);else{var J=L.value;Y(J),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+O-M.selectionStart+I)}}},le=function(J){!$.onCompositionEnd||$.$readOnly||(M=!1,$.onCompositionEnd(),$.off("mousedown",se),J&&V())};function se(){w=!0,L.blur(),L.focus(),w=!1}var ce=h.delayedCall(ie,50).schedule.bind(null,null);function re(J){J.keyCode==27&&L.value.length<L.selectionStart&&(M||(E=L.value),T=O=-1,U()),ce()}u.addListener(L,"compositionstart",te,$),u.addListener(L,"compositionupdate",ie,$),u.addListener(L,"keyup",re,$),u.addListener(L,"keydown",ce,$),u.addListener(L,"compositionend",le,$),this.getElement=function(){return L},this.setCommandMode=function(J){_=J,L.readOnly=!1},this.setReadOnly=function(J){_||(L.readOnly=J)},this.setCopyWithEmptySelection=function(J){},this.onContextMenu=function(J){X=!0,U(),$._emit("nativecontextmenu",{target:$,domEvent:J}),this.moveToMouse(J,!0)},this.moveToMouse=function(J,ae){A||(A=L.style.cssText),L.style.cssText=(ae?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+O)*$.renderer.characterWidth*.5+"px;";var ue=$.container.getBoundingClientRect(),be=s.computedStyle($.container),Re=ue.top+(parseInt(be.borderTopWidth)||0),Ne=ue.left+(parseInt(ue.borderLeftWidth)||0),Ke=ue.bottom-Re-L.clientHeight-2,De=function(He){s.translate(L,He.clientX-Ne-2,Math.min(He.clientY-Re-2,Ke))};De(J),J.type=="mousedown"&&($.renderer.$isMousePressed=!0,clearTimeout(ve),g.isWin&&u.capture($.container,De,de))},this.onContextMenuClose=de;var ve;function de(){clearTimeout(ve),ve=setTimeout(function(){A&&(L.style.cssText=A,A=""),$.renderer.$isMousePressed=!1,$.renderer.$keepTextAreaAtCursor&&$.renderer.$moveTextAreaToCursor()},0)}var me=function(J){$.textInput.onContextMenu(J),de()};u.addListener(L,"mouseup",me,$),u.addListener(L,"mousedown",function(J){J.preventDefault(),de()},$),u.addListener($.renderer.scroller,"contextmenu",me,$),u.addListener(L,"contextmenu",me,$),v&&_e(S,$,L);function _e(J,ae,ue){var be=null,Re=!1;ue.addEventListener("keydown",function(Ke){be&&clearTimeout(be),Re=!0},!0),ue.addEventListener("keyup",function(Ke){be=setTimeout(function(){Re=!1},100)},!0);var Ne=function(Ke){if(document.activeElement===ue&&!(Re||M||ae.$mouseHandler.isMousePressed)&&!R){var De=ue.selectionStart,He=ue.selectionEnd,ke=null,Ue=0;if(De==0?ke=f.up:De==1?ke=f.home:He>O&&E[He]==`
983
- `?ke=f.end:De<T&&E[De-1]==" "?(ke=f.left,Ue=m.option):De<T||De==T&&O!=T&&De==He?ke=f.left:He>O&&E.slice(0,He).split(`
984
- `).length>2?ke=f.down:He>O&&E[He-1]==" "?(ke=f.right,Ue=m.option):(He>O||He==O&&O!=T&&De==He)&&(ke=f.right),De!==He&&(Ue|=m.shift),ke){var dn=ae.onCommandKey({},Ue,ke);if(!dn&&ae.commands){ke=f.keyCodeToString(ke);var Rl=ae.commands.findKeyCommand(Ue,ke);Rl&&ae.execCommand(Rl)}T=De,O=He,U("")}}};document.addEventListener("selectionchange",Ne),ae.on("destroy",function(){document.removeEventListener("selectionchange",Ne)})}this.destroy=function(){L.parentElement&&L.parentElement.removeChild(L)}};i.TextInput=C,i.$setUserAgentForTests=function(S,$){x=S,v=$}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,p){var u=n("../lib/useragent"),d=0,g=550,s=function(){function r(l){l.$clickSelection=null;var c=l.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l));var a=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];a.forEach(function(f){l[f]=this[f]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}return r.prototype.onMouseDown=function(l){var c=l.inSelection(),a=l.getDocumentPosition();this.mousedownEvent=l;var f=this.editor,m=l.getButton();if(m!==0){var v=f.getSelectionRange(),b=v.isEmpty();(b||m==1)&&f.selection.moveToPosition(a),m==2&&(f.textInput.onContextMenu(l.domEvent),u.isMozilla||l.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(l);return}return this.captureMouse(l),this.startSelect(a,l.domEvent._clicks>1),l.preventDefault()},r.prototype.startSelect=function(l,c){l=l||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var a=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?a.selection.selectToPosition(l):c||a.selection.moveToPosition(l),c||this.select(),a.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var l,c=this.editor,a=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(a);if(f==-1)l=this.$clickSelection.end;else if(f==1)l=this.$clickSelection.start;else{var m=o(this.$clickSelection,a);a=m.cursor,l=m.anchor}c.selection.setSelectionAnchor(l.row,l.column)}c.selection.selectToPosition(a),c.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(l){var c,a=this.editor,f=a.renderer.screenToTextCoordinates(this.x,this.y),m=a.selection[l](f.row,f.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),b=this.$clickSelection.comparePoint(m.end);if(v==-1&&b<=0)c=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(b==1&&v>=0)c=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&b==1)f=m.end,c=m.start;else{var x=o(this.$clickSelection,f);f=x.cursor,c=x.anchor}a.selection.setSelectionAnchor(c.row,c.column)}a.selection.selectToPosition(f),a.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var l=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(l>d||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(l){var c=l.getDocumentPosition(),a=this.editor,f=a.session,m=f.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=a.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(l){var c=l.getDocumentPosition(),a=this.editor;this.setState("selectByLines");var f=a.getSelectionRange();f.isMultiLine()&&f.contains(c.row,c.column)?(this.$clickSelection=a.selection.getLineRange(f.start.row),this.$clickSelection.end=a.selection.getLineRange(f.end.row).end):this.$clickSelection=a.selection.getLineRange(c.row),this.select()},r.prototype.onQuadClick=function(l){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(l){if(!l.getAccelKey()){l.getShiftKey()&&l.wheelY&&!l.wheelX&&(l.wheelX=l.wheelY,l.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var a=this.$lastScroll,f=l.domEvent.timeStamp,m=f-a.t,v=m?l.wheelX/m:a.vx,b=m?l.wheelY/m:a.vy;m<g&&(v=(v+a.vx)/2,b=(b+a.vy)/2);var x=Math.abs(v/b),C=!1;if(x>=1&&c.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(C=!0),x<=1&&c.renderer.isScrollableBy(0,l.wheelY*l.speed)&&(C=!0),C)a.allowed=f;else if(f-a.allowed<g){var S=Math.abs(v)<=1.5*Math.abs(a.vx)&&Math.abs(b)<=1.5*Math.abs(a.vy);S?(C=!0,a.allowed=f):a.allowed=0}if(a.t=f,a.vx=v,a.vy=b,C)return c.renderer.scrollBy(l.wheelX*l.speed,l.wheelY*l.speed),l.stop()}},r}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,i.DefaultHandlers=s;function h(r,l,c,a){return Math.sqrt(Math.pow(c-r,2)+Math.pow(a-l,2))}function o(r,l){if(r.start.row==r.end.row)var c=2*l.column-r.start.column-r.end.column;else if(r.start.row==r.end.row-1&&!r.start.column&&!r.end.column)var c=l.column-4;else var c=2*l.row-r.start.row-r.end.row;return c<0?{cursor:r.start,anchor:r.end}:{cursor:r.end,anchor:r.start}}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/range"],function(n,i,p){var u=this&&this.__extends||function(){var a=function(f,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(v[x]=b[x])},a(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");a(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),d=this&&this.__values||function(a){var f=typeof Symbol=="function"&&Symbol.iterator,m=f&&a[f],v=0;if(m)return m.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&v>=a.length&&(a=void 0),{value:a&&a[v++],done:!a}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom"),s=n("./range").Range,h="ace_tooltip",o=function(){function a(f){this.isOpen=!1,this.$element=null,this.$parentNode=f}return a.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=h,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(f){this.getElement().textContent=f},a.prototype.setHtml=function(f){this.getElement().innerHTML=f},a.prototype.setPosition=function(f,m){this.getElement().style.left=f+"px",this.getElement().style.top=m+"px"},a.prototype.setClassName=function(f){g.addCssClass(this.getElement(),f)},a.prototype.setTheme=function(f){this.$element.className=h+" "+(f.isDark?"ace_dark ":"")+(f.cssClass||"")},a.prototype.show=function(f,m,v){f!=null&&this.setText(f),m!=null&&v!=null&&this.setPosition(m,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=h,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),r=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(f){this.popups.push(f),this.updatePopups()},a.prototype.removePopup=function(f){var m=this.popups.indexOf(f);m!==-1&&(this.popups.splice(m,1),this.updatePopups())},a.prototype.updatePopups=function(){var f,m,v,b;this.popups.sort(function(y,A){return A.priority-y.priority});var x=[];try{for(var C=d(this.popups),S=C.next();!S.done;S=C.next()){var $=S.value,L=!0;try{for(var R=(v=void 0,d(x)),k=R.next();!k.done;k=R.next()){var M=k.value;if(this.doPopupsOverlap(M,$)){L=!1;break}}}catch(y){v={error:y}}finally{try{k&&!k.done&&(b=R.return)&&b.call(R)}finally{if(v)throw v.error}}L?x.push($):$.hide()}}catch(y){f={error:y}}finally{try{S&&!S.done&&(m=C.return)&&m.call(C)}finally{if(f)throw f.error}}},a.prototype.doPopupsOverlap=function(f,m){var v=f.getElement().getBoundingClientRect(),b=m.getElement().getBoundingClientRect();return v.left<b.right&&v.right>b.left&&v.top<b.bottom&&v.bottom>b.top},a}(),l=new r;i.popupManager=l,i.Tooltip=o;var c=function(a){u(f,a);function f(m){m===void 0&&(m=document.body);var v=a.call(this,m)||this;v.timeout=void 0,v.lastT=0,v.idleTime=350,v.lastEvent=void 0,v.onMouseOut=v.onMouseOut.bind(v),v.onMouseMove=v.onMouseMove.bind(v),v.waitForHover=v.waitForHover.bind(v),v.hide=v.hide.bind(v);var b=v.getElement();return b.style.whiteSpace="pre-wrap",b.style.pointerEvents="auto",b.addEventListener("mouseout",v.onMouseOut),b.tabIndex=-1,b.addEventListener("blur",(function(){b.contains(document.activeElement)||this.hide()}).bind(v)),v}return f.prototype.addToEditor=function(m){m.on("mousemove",this.onMouseMove),m.on("mousedown",this.hide),m.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(m){m.off("mousemove",this.onMouseMove),m.off("mousedown",this.hide),m.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(m,v){this.lastEvent=m,this.lastT=Date.now();var b=v.$mouseHandler.isMousePressed;if(this.isOpen){var x=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(x.row,x.column)||b||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||b||(this.lastEvent=m,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var m=Date.now()-this.lastT;if(this.idleTime-m>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-m);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},f.prototype.isOutsideOfText=function(m){var v=m.editor,b=m.getDocumentPosition(),x=v.session.getLine(b.row);if(b.column==x.length){var C=v.renderer.pixelToScreenCoordinates(m.clientX,m.clientY),S=v.session.documentToScreenPosition(b.row,b.column);if(S.column!=C.column||S.row!=C.row)return!0}return!1},f.prototype.setDataProvider=function(m){this.$gatherData=m},f.prototype.showForRange=function(m,v,b,x){if(!(x&&x!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var C=m.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(C.theme)),this.isOpen=!0,this.addMarker(v,m.session),this.range=s.fromPoints(v.start,v.end);var S=this.getElement();S.innerHTML="",S.appendChild(b),S.style.display="block";var $=C.textToScreenCoordinates(v.start.row,v.start.column),L=S.clientHeight,R=C.scroller.getBoundingClientRect(),k=!0;$.pageY-L<0&&(k=!1),k?$.pageY-=L:$.pageY+=C.lineHeight,S.style.maxWidth=R.width-($.pageX-R.left)+"px",this.setPosition($.pageX,$.pageY)}},f.prototype.addMarker=function(m,v){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=v,this.marker=v&&v.addMarker(m,"ace_highlight-marker","text")},f.prototype.hide=function(m){!m&&document.activeElement==this.getElement()||m&&m.target&&(m.type!="keydown"||m.ctrlKey||m.metaKey)&&this.$element.contains(m.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,l.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(m){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!m.relatedTarget||m.relatedTarget==this.getElement()||m&&m.currentTarget.contains(m.relatedTarget)||m.relatedTarget.classList.contains("ace_content")||this.hide())},f}(o);i.HoverTooltip=c}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,i,p){var u=this&&this.__extends||function(){var c=function(a,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},c(a,f)};return function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(a,f);function m(){this.constructor=a}a.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,f=a&&c[a],m=0;if(f)return f.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),h=n("../tooltip").Tooltip,o=n("../config").nls;function r(c){var a=c.editor,f=a.renderer.$gutterLayer,m=new l(a);c.editor.setDefaultHandler("guttermousedown",function($){if(!(!a.isFocused()||$.getButton()!=0)){var L=f.getRegion($);if(L!="foldWidgets"){var R=$.getDocumentPosition().row,k=a.session.selection;if($.getShiftKey())k.selectTo(R,0);else{if($.domEvent.detail==2)return a.selectAll(),$.preventDefault();c.$clickSelection=a.selection.getLineRange(R)}return c.setState("selectByLines"),c.captureMouse($),$.preventDefault()}}});var v,b;function x(){var $=b.getDocumentPosition().row,L=a.session.getLength();if($==L){var R=a.renderer.pixelToScreenCoordinates(0,b.y).row,k=b.$pos;if(R>a.session.documentToScreenRow(k.row,k.column))return C()}if(m.showTooltip($),!!m.isOpen)if(a.on("mousewheel",C),c.$tooltipFollowsMouse)S(b);else{var M=b.getGutterRow(),y=f.$lines.get(M);if(y){var A=y.element.querySelector(".ace_gutter_annotation"),_=A.getBoundingClientRect(),w=m.getElement().style;w.left=_.right+"px",w.top=_.bottom+"px"}else S(b)}}function C(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),a.off("mousewheel",C))}function S($){m.setPosition($.x,$.y)}c.editor.setDefaultHandler("guttermousemove",function($){var L=$.domEvent.target||$.domEvent.srcElement;if(g.hasCssClass(L,"ace_fold-widget"))return C();m.isOpen&&c.$tooltipFollowsMouse&&S($),b=$,!v&&(v=setTimeout(function(){v=null,b&&!c.isMousePressed?x():C()},50))}),s.addListener(a.renderer.$gutter,"mouseout",function($){b=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,C()},50))},a),a.on("changeSession",C),a.on("input",C)}i.GutterHandler=r;var l=function(c){u(a,c);function a(f){var m=c.call(this,f.container)||this;return m.editor=f,m}return a.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,x=this.getWidth(),C=this.getHeight();f+=15,m+=15,f+x>v&&(f-=f+x-v),m+C>b&&(m-=20+C),h.prototype.setPosition.call(this,f,m)},Object.defineProperty(a,"annotationLabels",{get:function(){return{error:{singular:o("error"),plural:o("errors")},warning:{singular:o("warning"),plural:o("warnings")},info:{singular:o("information message"),plural:o("information messages")}}},enumerable:!1,configurable:!0}),a.prototype.showTooltip=function(f){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[f],b;v?b={text:Array.from(v.text),type:Array.from(v.type)}:b={text:[],type:[]};var x=m.session.getFoldLine(f);if(x&&m.$showFoldedAnnotations){for(var C={error:[],warning:[],info:[]},S,$=f+1;$<=x.end.row;$++)if(m.$annotations[$])for(var L=0;L<m.$annotations[$].text.length;L++){var R=m.$annotations[$].type[L];if(C[R].push(m.$annotations[$].text[L]),R==="error"){S="error_fold";continue}if(R==="warning"){S="warning_fold";continue}}if(S==="error_fold"||S==="warning_fold"){var k="".concat(a.annotationsToSummaryString(C)," in folded code.");b.text.push(k),b.type.push(S)}}if(b.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},y=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",$=0;$<b.text.length;$++){var A="<span class='ace_".concat(b.type[$]," ").concat(y,"' aria-label='").concat(a.annotationLabels[b.type[$].replace("_fold","")].singular,"' role=img> </span> ").concat(b.text[$]);M[b.type[$].replace("_fold","")].push(A)}var _=[].concat(M.error,M.warning,M.info).join("<br>");this.setHtml(_),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},a.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},a.annotationsToSummaryString=function(f){var m,v,b=[],x=["error","warning","info"];try{for(var C=d(x),S=C.next();!S.done;S=C.next()){var $=S.value;if(f[$].length){var L=f[$].length===1?a.annotationLabels[$].singular:a.annotationLabels[$].plural;b.push("".concat(f[$].length," ").concat(L))}}}catch(R){m={error:R}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(m)throw m.error}}return b.join(", ")},a}(h);i.GutterTooltip=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/event"),d=n("../lib/useragent"),g=function(){function s(h,o){this.domEvent=h,this.editor=o,this.x=this.clientX=h.clientX,this.y=this.clientY=h.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){u.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){u.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},s.prototype.getGutterRow=function(){var h=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(h,0),r=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-r},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var h=this.editor,o=h.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var r=this.getDocumentPosition();this.$inSelection=o.contains(r.row,r.column)}return this.$inSelection},s.prototype.getButton=function(){return u.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return d.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/dom"),d=n("../lib/event"),g=n("../lib/useragent"),s=200,h=200,o=5;function r(c){var a=c.editor,f=u.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(H){c[H]=this[H]},this),a.on("mousedown",this.onMouseDown.bind(c));var v=a.container,b,x,C,S,$,L,R=0,k,M,y,A,_;this.onDragStart=function(H){if(this.cancelDrag||!v.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(H)},0),H.preventDefault()}$=a.getSelectionRange();var K=H.dataTransfer;K.effectAllowed=a.getReadOnly()?"copy":"copyMove",a.container.appendChild(f),K.setDragImage&&K.setDragImage(f,0,0),setTimeout(function(){a.container.removeChild(f)}),K.clearData(),K.setData("Text",a.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(H){if(v.draggable=!1,M=!1,this.setState(null),!a.getReadOnly()){var U=H.dataTransfer.dropEffect;!k&&U=="move"&&a.session.remove(a.getSelectionRange()),a.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(a.getReadOnly()||!W(H.dataTransfer)))return x=H.clientX,C=H.clientY,b||O(),R++,H.dataTransfer.dropEffect=k=j(H),d.preventDefault(H)},this.onDragOver=function(H){if(!(a.getReadOnly()||!W(H.dataTransfer)))return x=H.clientX,C=H.clientY,b||(O(),R++),F!==null&&(F=null),H.dataTransfer.dropEffect=k=j(H),d.preventDefault(H)},this.onDragLeave=function(H){if(R--,R<=0&&b)return I(),k=null,d.preventDefault(H)},this.onDrop=function(H){if(L){var U=H.dataTransfer;if(M)switch(k){case"move":$.contains(L.row,L.column)?$={start:L,end:L}:$=a.moveText($,L);break;case"copy":$=a.moveText($,L,!0);break}else{var K=U.getData("Text");$={start:L,end:a.session.insert(L,K)},a.focus(),k=null}return I(),d.preventDefault(H)}},d.addListener(v,"dragstart",this.onDragStart.bind(c),a),d.addListener(v,"dragend",this.onDragEnd.bind(c),a),d.addListener(v,"dragenter",this.onDragEnter.bind(c),a),d.addListener(v,"dragover",this.onDragOver.bind(c),a),d.addListener(v,"dragleave",this.onDragLeave.bind(c),a),d.addListener(v,"drop",this.onDrop.bind(c),a);function w(H,U){var K=Date.now(),Z=!U||H.row!=U.row,z=!U||H.column!=U.column;if(!A||Z||z)a.moveCursorToPosition(H),A=K,_={x,y:C};else{var X=l(_.x,_.y,x,C);X>o?A=null:K-A>=h&&(a.renderer.scrollCursorIntoView(),A=null)}}function E(H,U){var K=Date.now(),Z=a.renderer.layerConfig.lineHeight,z=a.renderer.layerConfig.characterWidth,X=a.renderer.scroller.getBoundingClientRect(),Y={x:{left:x-X.left,right:X.right-x},y:{top:C-X.top,bottom:X.bottom-C}},V=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),P={row:H.row,column:H.column};V/z<=2&&(P.column+=Y.x.left<Y.x.right?-3:2),ee/Z<=1&&(P.row+=Y.y.top<Y.y.bottom?-1:1);var B=H.row!=P.row,G=H.column!=P.column,Q=!U||H.row!=U.row;B||G&&!Q?y?K-y>=s&&a.renderer.scrollCursorIntoView(P):y=K:y=null}function T(){var H=L;L=a.renderer.screenToTextCoordinates(x,C),w(L,H),E(L,H)}function O(){$=a.selection.toOrientedRange(),b=a.session.addMarker($,"ace_selection",a.getSelectionStyle()),a.clearSelection(),a.isFocused()&&a.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),R=0,d.addListener(document,"mousemove",D)}function I(){clearInterval(S),a.session.removeMarker(b),b=null,a.selection.fromOrientedRange($),a.isFocused()&&!M&&a.$resetCursorStyle(),$=null,L=null,R=0,y=null,A=null,d.removeListener(document,"mousemove",D)}var F=null;function D(){F==null&&(F=setTimeout(function(){F!=null&&b&&I()},20))}function W(H){var U=H.types;return!U||Array.prototype.some.call(U,function(K){return K=="text/plain"||K=="Text"})}function j(H){var U=["copy","copymove","all","uninitialized"],K=["move","copymove","linkmove","all","uninitialized"],Z=g.isMac?H.altKey:H.ctrlKey,z="uninitialized";try{z=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return Z&&U.indexOf(z)>=0?X="copy":K.indexOf(z)>=0?X="move":U.indexOf(z)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,a=c.container;a.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var f=g.isWin?"default":"move";c.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(c){var a=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&a.dragDrop()}if(this.state==="dragWait"){var f=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var a=this.editor,f=c.inSelection(),m=c.getButton(),v=c.domEvent.detail||1;if(v===1&&m===0&&f){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),a.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var x=a.container;x.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(r.prototype);function l(c,a,f,m){return Math.sqrt(Math.pow(f-c,2)+Math.pow(m-a,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,p){var u=n("./mouse_event").MouseEvent,d=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(s,h){var o="scroll",r,l,c,a,f,m,v=0,b,x=0,C=0,S=0,$,L;function R(){var w=window.navigator&&window.navigator.clipboard,E=!1,T=function(){var I=h.getCopyText(),F=h.session.getUndoManager().hasUndo();L.replaceChild(g.buildDom(E?["span",!I&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],I&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],I&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!E)return E=!E,T();F=="paste"?w.readText().then(function(D){h.execCommand(F,D)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(F)),L.firstChild.style.display="none",E=!1,F!="openCommandPalette"&&h.focus()};L=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),h.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function k(){L||R();var w=h.selection.cursor,E=h.renderer.textToScreenCoordinates(w.row,w.column),T=h.renderer.textToScreenCoordinates(0,0).pageX,O=h.renderer.scrollLeft,I=h.container.getBoundingClientRect();L.style.top=E.pageY-I.top-3+"px",E.pageX-I.left<I.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=T+O-I.left+"px"),L.style.display="",L.firstChild.style.display="none",h.on("input",M)}function M(w){L&&(L.style.display="none"),h.off("input",M)}function y(){f=null,clearTimeout(f);var w=h.selection.getRange(),E=w.contains(b.row,b.column);(w.isEmpty()||!E)&&(h.selection.moveToPosition(b),h.selection.selectWord()),o="wait",k()}function A(){f=null,clearTimeout(f),h.selection.moveToPosition(b);var w=x>=2?h.selection.getLineRange(b.row):h.session.getBracketRange(b);w&&!w.isEmpty()?h.selection.setRange(w):h.selection.selectWord(),o="wait"}d.addListener(s,"contextmenu",function(w){if($){var E=h.textInput.getElement();E.focus()}},h),d.addListener(s,"touchstart",function(w){var E=w.touches;if(f||E.length>1){clearTimeout(f),f=null,c=-1,o="zoom";return}$=h.$mouseHandler.isMousePressed=!0;var T=h.renderer.layerConfig.lineHeight,O=h.renderer.layerConfig.lineHeight,I=w.timeStamp;a=I;var F=E[0],D=F.clientX,W=F.clientY;Math.abs(r-D)+Math.abs(l-W)>T&&(c=-1),r=w.clientX=D,l=w.clientY=W,C=S=0;var j=new u(w,h);if(b=j.getDocumentPosition(),I-c<500&&E.length==1&&!v)x++,w.preventDefault(),w.button=0,A();else{x=0;var H=h.selection.cursor,U=h.selection.isEmpty()?H:h.selection.anchor,K=h.renderer.$cursorLayer.getPixelPosition(H,!0),Z=h.renderer.$cursorLayer.getPixelPosition(U,!0),z=h.renderer.scroller.getBoundingClientRect(),X=h.renderer.layerConfig.offset,Y=h.renderer.scrollLeft,V=function(B,G){return B=B/O,G=G/T-.75,B*B+G*G};if(w.clientX<z.left){o="zoom";return}var ee=V(w.clientX-z.left-K.left+Y,w.clientY-z.top-K.top+X),P=V(w.clientX-z.left-Z.left+Y,w.clientY-z.top-Z.top+X);ee<3.5&&P<3.5&&(o=ee>P?"cursor":"anchor"),P<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",f=setTimeout(y,450)}c=I},h),d.addListener(s,"touchend",function(w){$=h.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):f?(h.selection.moveToPosition(b),v=0,k()):o=="scroll"?(_(),M()):k(),clearTimeout(f),f=null},h),d.addListener(s,"touchmove",function(w){f&&(clearTimeout(f),f=null);var E=w.touches;if(!(E.length>1||o=="zoom")){var T=E[0],O=r-T.clientX,I=l-T.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();r=T.clientX,l=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var F=w.timeStamp,D=F-a;if(a=F,o=="scroll"){var W=new u(w,h);W.speed=1,W.wheelX=O,W.wheelY=I,10*Math.abs(O)<Math.abs(I)&&(O=0),10*Math.abs(I)<Math.abs(O)&&(I=0),D!=0&&(C=O/D,S=I/D),h._emit("mousewheel",W),W.propagationStopped||(C=S=0)}else{var j=new u(w,h),H=j.getDocumentPosition();o=="cursor"?h.selection.moveCursorToPosition(H):o=="anchor"&&h.selection.setSelectionAnchor(H.row,H.column),h.renderer.scrollCursorIntoView(H),w.preventDefault()}}},h);function _(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs(C)<.01&&(C=0),Math.abs(S)<.01&&(S=0),v<20&&(C=.9*C),v<20&&(S=.9*S);var w=h.session.getScrollTop();h.renderer.scrollBy(10*C,10*S),w==h.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,p){var u=n("../lib/event"),d=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,h=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,r=n("./touch_handler").addTouchListeners,l=n("../config"),c=function(){function a(f){var m=this;this.editor=f,new g(this),new s(this),new o(this);var v=function(C){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()})},b=f.renderer.getMouseEventTarget();u.addListener(b,"click",this.onMouseEvent.bind(this,"click"),f),u.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),u.addMultiMouseDownListener([b,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),u.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),r(f.container,f);var x=f.renderer.$gutter;u.addListener(x,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),u.addListener(x,"click",this.onMouseEvent.bind(this,"gutterclick"),f),u.addListener(x,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),u.addListener(x,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),u.addListener(b,"mousedown",v,f),u.addListener(x,"mousedown",v,f),d.isIE&&f.renderer.scrollBarV&&(u.addListener(f.renderer.scrollBarV.element,"mousedown",v,f),u.addListener(f.renderer.scrollBarH.element,"mousedown",v,f)),f.on("mousemove",function(C){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var S=f.renderer.screenToTextCoordinates(C.x,C.y),$=f.session.selection.getRange(),L=f.renderer;!$.isEmpty()&&$.insideStart(S.row,S.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},f)}return a.prototype.onMouseEvent=function(f,m){this.editor.session&&this.editor._emit(f,new h(m,this.editor))},a.prototype.onMouseMove=function(f,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(f,new h(m,this.editor))},a.prototype.onMouseWheel=function(f,m){var v=new h(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(f,v)},a.prototype.setState=function(f){this.state=f},a.prototype.captureMouse=function(f,m){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var v=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var x=this,C=function(k){if(k){if(d.isWebKit&&!k.which&&x.releaseMouse)return x.releaseMouse();x.x=k.clientX,x.y=k.clientY,m&&m(k),x.mouseEvent=new h(k,x.editor),x.$mouseMoved=!0}},S=function(k){v.off("beforeEndOperation",L),clearInterval(R),v.session&&$(),x[x.state+"End"]&&x[x.state+"End"](k),x.state="",x.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),x.$onCaptureMouseMove=x.releaseMouse=null,k&&x.onMouseEvent("mouseup",k),v.endOperation()},$=function(){x[x.state]&&x[x.state](),x.$mouseMoved=!1};if(d.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){S(f)});var L=function(k){x.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(x[x.state+"End"]&&x[x.state+"End"](),x.state="",x.releaseMouse())};v.on("beforeEndOperation",L),v.startOperation({command:{name:"mouse"}}),x.$onCaptureMouseMove=C,x.releaseMouse=u.capture(this.editor.container,C,S);var R=setInterval($,20)},a.prototype.cancelContextMenu=function(){var f=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),m&&m.domEvent&&u.stopEvent(m.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},a.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},a}();c.prototype.releaseMouse=null,l.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),d=function(){function g(s){s.on("click",function(h){var o=h.getDocumentPosition(),r=s.session,l=r.getFoldAt(o.row,o.column,1);l&&(h.getAccelKey()?r.removeFold(l):r.expandFold(l),h.stop());var c=h.domEvent&&h.domEvent.target;c&&u.hasCssClass(c,"ace_inline_button")&&u.hasCssClass(c,"ace_toggle_wrap")&&(r.setOption("wrap",!r.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,l=s.session;l.foldWidgets&&l.foldWidgets[r]&&s.session.onFoldWidgetClick(r,h),s.isFocused()||s.focus(),h.stop()}}),s.on("gutterdblclick",function(h){var o=s.renderer.$gutterLayer.getRegion(h);if(o=="foldWidgets"){var r=h.getDocumentPosition().row,l=s.session,c=l.getParentFoldRangeData(r,!0),a=c.range||c.firstRange;if(a){r=a.start.row;var f=l.getFoldAt(r,l.getLine(r).length,1);f?l.removeFold(f):(l.addFold("...",a),s.renderer.scrollCursorIntoView({row:a.start.row,column:0}))}h.stop()}})}return g}();i.FoldHandler=d}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,i,p){var u=n("../lib/keys"),d=n("../lib/event"),g=function(){function s(h){this.$editor=h,this.$data={editor:h},this.$handlers=[],this.setDefaultHandler(h.commands)}return s.prototype.setDefaultHandler=function(h){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=h,this.addKeyboardHandler(h,0)},s.prototype.setKeyboardHandler=function(h){var o=this.$handlers;if(o[o.length-1]!=h){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(h,1)}},s.prototype.addKeyboardHandler=function(h,o){if(h){typeof h=="function"&&!h.handleKeyboard&&(h.handleKeyboard=h);var r=this.$handlers.indexOf(h);r!=-1&&this.$handlers.splice(r,1),o==null?this.$handlers.push(h):this.$handlers.splice(o,0,h),r==-1&&h.attach&&h.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(h){var o=this.$handlers.indexOf(h);return o==-1?!1:(this.$handlers.splice(o,1),h.detach&&h.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var h=this.$data,o=h.editor;return this.$handlers.map(function(r){return r.getStatusText&&r.getStatusText(o,h)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(h,o,r,l){for(var c,a=!1,f=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,h,o,r,l),!(!(!c||!c.command)&&(c.command=="null"?a=!0:a=f.exec(c.command,this.$editor,c.args,l),a&&l&&h!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&d.stopEvent(l),a))););return!a&&h==-1&&(c={command:"insertstring"},a=f.exec("insertstring",this.$editor,o)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),a},s.prototype.onCommandKey=function(h,o,r){var l=u.keyCodeToString(r);return this.$callKeyboardHandlers(o,l,r,h)},s.prototype.onTextInput=function(h){return this.$callKeyboardHandlers(-1,h)},s}();i.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,i,p){var u=0,d=0,g=!1,s=!1,h=!1,o=[[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]],l=0,c=1,a=0,f=1,m=2,v=3,b=4,x=5,C=6,S=7,$=8,L=9,R=10,k=11,M=12,y=13,A=14,_=15,w=16,E=17,T=18,O=[T,T,T,T,T,T,T,T,T,C,x,C,$,x,T,T,T,T,T,T,T,T,T,T,T,T,T,T,x,x,x,C,$,b,b,k,k,k,b,b,b,b,b,R,L,R,L,L,m,m,m,m,m,m,m,m,m,m,L,b,b,b,b,b,b,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,b,b,b,b,b,b,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,b,b,b,b,T,T,T,T,T,T,x,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,L,b,k,k,k,k,b,b,b,b,a,b,b,T,b,b,k,k,m,m,b,a,b,b,b,m,a,b,b,b,b,b],I=[$,$,$,$,$,$,$,$,$,$,$,T,T,T,a,f,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,$,x,y,A,_,w,E,L,k,k,k,k,k,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,L,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,$];function F(H,U,K,Z){var z=u?r:o,X=null,Y=null,V=null,ee=0,P=null,B=null,G=-1,Q=null,te=null,ie=[];if(!Z)for(Q=0,Z=[];Q<K;Q++)Z[Q]=j(H[Q]);for(d=u,g=!1,s=!1,h=!1,te=0;te<K;te++){if(X=ee,ie[te]=Y=W(H,Z,ie,te),ee=z[X][Y],P=ee&240,ee&=15,U[te]=V=z[ee][5],P>0)if(P==16){for(Q=G;Q<te;Q++)U[Q]=1;G=-1}else G=-1;if(B=z[ee][6],B)G==-1&&(G=te);else if(G>-1){for(Q=G;Q<te;Q++)U[Q]=V;G=-1}Z[te]==x&&(U[te]=0),d|=V}if(h){for(Q=0;Q<K;Q++)if(Z[Q]==C){U[Q]=u;for(var le=Q-1;le>=0&&Z[le]==$;le--)U[le]=u}}}function D(H,U,K){if(!(d<H)){if(H==1&&u==c&&!s){K.reverse();return}for(var Z=K.length,z=0,X,Y,V,ee;z<Z;){if(U[z]>=H){for(X=z+1;X<Z&&U[X]>=H;)X++;for(Y=z,V=X-1;Y<V;Y++,V--)ee=K[Y],K[Y]=K[V],K[V]=ee;z=X}z++}}}function W(H,U,K,Z){var z=U[Z],X,Y,V,ee;switch(z){case a:case f:g=!1;case b:case v:return z;case m:return g?v:m;case S:return g=!0,f;case $:return b;case L:return Z<1||Z+1>=U.length||(X=K[Z-1])!=m&&X!=v||(Y=U[Z+1])!=m&&Y!=v?b:(g&&(Y=v),Y==X?Y:b);case R:return X=Z>0?K[Z-1]:x,X==m&&Z+1<U.length&&U[Z+1]==m?m:b;case k:if(Z>0&&K[Z-1]==m)return m;if(g)return b;for(ee=Z+1,V=U.length;ee<V&&U[ee]==k;)ee++;return ee<V&&U[ee]==m?m:b;case M:for(V=U.length,ee=Z+1;ee<V&&U[ee]==M;)ee++;if(ee<V){var P=H[Z],B=P>=1425&&P<=2303||P==64286;if(X=U[ee],B&&(X==f||X==S))return f}return Z<1||(X=U[Z-1])==x?b:K[Z-1];case x:return g=!1,s=!0,u;case C:return h=!0,b;case y:case A:case w:case E:case _:g=!1;case T:return b}}function j(H){var U=H.charCodeAt(0),K=U>>8;return K==0?U>191?a:O[U]:K==5?/[\u0591-\u05f4]/.test(H)?f:a:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?M:/[\u0660-\u0669\u066b-\u066c]/.test(H)?v:U==1642?k:/[\u06f0-\u06f9]/.test(H)?m:S:K==32&&U<=8287?I[U&255]:K==254&&U>=65136?S:b}i.L=a,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(H,U,K){if(H.length<2)return{};var Z=H.split(""),z=new Array(Z.length),X=new Array(Z.length),Y=[];u=K?c:l,F(Z,Y,Z.length,U);for(var V=0;V<z.length;z[V]=V,V++);D(2,Y,z),D(1,Y,z);for(var V=0;V<z.length-1;V++)U[V]===v?Y[V]=i.AN:Y[V]===f&&(U[V]>S&&U[V]<y||U[V]===b||U[V]===T)?Y[V]=i.ON_R:V>0&&Z[V-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Z[V])&&(Y[V-1]=Y[V]=i.R_H,V++);Z[Z.length-1]===i.DOT&&(Y[Z.length-1]=i.B),Z[0]==="‫"&&(Y[0]=i.RLE);for(var V=0;V<z.length;V++)X[V]=Y[z[V]];return{logicalFromVisual:z,bidiLevels:X}},i.hasBidiCharacters=function(H,U){for(var K=!1,Z=0;Z<H.length;Z++)U[Z]=j(H.charAt(Z)),!K&&(U[Z]==f||U[Z]==S||U[Z]==v)&&(K=!0);return K},i.getVisualFromLogicalIdx=function(H,U){for(var K=0;K<U.logicalFromVisual.length;K++)if(U.logicalFromVisual[K]==H)return K;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,i,p){var u=n("./lib/bidiutil"),d=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function h(o){this.session=o,this.bidiMap={},this.currentRow=null,this.bidiUtil=u,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(o.getValue())}return h.prototype.isBidiRow=function(o,r,l){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(r,l),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},h.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
985
- `))&&(this.seenBidi=!0,this.currentRow=null)},h.prototype.getDocumentRow=function(){var o=0,r=this.session.$screenRowCache;if(r.length){var l=this.session.$getRowCacheIndex(r,this.currentRow);l>=0&&(o=this.session.$docRowCache[l])}return o},h.prototype.getSplitIndex=function(){var o=0,r=this.session.$screenRowCache;if(r.length)for(var l,c=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-o>0&&(l=this.session.$getRowCacheIndex(r,this.currentRow-o-1),l===c);)c=l,o++;else o=this.currentRow;return o},h.prototype.updateRowLine=function(o,r){o===void 0&&(o=this.getDocumentRow());var l=o===this.session.getLength()-1,c=l?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(o),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var a=this.session.$wrapData[o];a&&(r===void 0&&(r=this.getSplitIndex()),r>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=r<a.length?this.line.substring(a[r-1],a[r]):this.line.substring(a[a.length-1])):this.line=this.line.substring(0,a[r]),r==a.length&&(this.line+=this.showInvisibles?c:u.DOT))}else this.line+=this.showInvisibles?c:u.DOT;var f=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,x){return b===" "||f.isFullWidth(b.charCodeAt(0))?(v=b===" "?f.getScreenTabSize(x+m):2,m+=v-1,d.stringRepeat(u.DOT,v)):b}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==u.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},h.prototype.updateBidiMap=function(){var o=[];u.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=u.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},h.prototype.markAsDirty=function(){this.currentRow=null},h.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var r=this.characterWidth=o.$characterSize.width,l=o.$measureCharWidth("ה");this.charWidths[u.L]=this.charWidths[u.EN]=this.charWidths[u.ON_R]=r,this.charWidths[u.R]=this.charWidths[u.AN]=l,this.charWidths[u.R_H]=l*.45,this.charWidths[u.B]=this.charWidths[u.RLE]=0,this.currentRow=null}},h.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},h.prototype.setEolChar=function(o){this.EOL=o},h.prototype.setContentWidth=function(o){this.contentWidth=o},h.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},h.prototype.setRtlDirection=function(o,r){for(var l=o.getCursorPosition(),c=o.selection.getSelectionAnchor().row;c<=l.row;c++)!r&&o.session.getLine(c).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(c,0,1):r&&o.session.getLine(c).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:c},o.session.$bidiHandler.RLE)},h.prototype.getPosLeft=function(o){o-=this.wrapIndent;var r=this.line.charAt(0)===this.RLE?1:0,l=o>r?this.session.getOverwrite()?o:o-1:r,c=u.getVisualFromLogicalIdx(l,this.bidiMap),a=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&o<=r&&a[c]%2!==0&&c++;for(var m=0;m<c;m++)f+=this.charWidths[a[m]];return!this.session.getOverwrite()&&o>r&&a[c]%2===0&&(f+=this.charWidths[a[c]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},h.prototype.getSelections=function(o,r){var l=this.bidiMap,c=l.bidiLevels,a,f=[],m=0,v=Math.min(o,r)-this.wrapIndent,b=Math.max(o,r)-this.wrapIndent,x=!1,C=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $,L=0;L<c.length;L++)$=l.logicalFromVisual[L],a=c[L],x=$>=v&&$<b,x&&!C?S=m:!x&&C&&f.push({left:S,width:m-S}),m+=this.charWidths[a],C=x;if(x&&L===c.length&&f.push({left:S,width:m-S}),this.isRtlDir)for(var R=0;R<f.length;R++)f[R].left+=this.rtlLineOffset;return f},h.prototype.offsetToCol=function(l){this.isRtlDir&&(l-=this.rtlLineOffset);var r=0,l=Math.max(l,0),c=0,a=0,f=this.bidiMap.bidiLevels,m=this.charWidths[f[a]];for(this.wrapIndent&&(l-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);l>c+m/2;){if(c+=m,a===f.length-1){m=0;break}m=this.charWidths[f[++a]]}return a>0&&f[a-1]%2!==0&&f[a]%2===0?(l<c&&a--,r=this.bidiMap.logicalFromVisual[a]):a>0&&f[a-1]%2===0&&f[a]%2!==0?r=1+(l>c?this.bidiMap.logicalFromVisual[a]:this.bidiMap.logicalFromVisual[a-1]):this.isRtlDir&&a===f.length-1&&m===0&&f[a-1]%2===0||!this.isRtlDir&&a===0&&f[a]%2!==0?r=1+this.bidiMap.logicalFromVisual[a]:(a>0&&f[a-1]%2!==0&&m!==0&&a--,r=this.bidiMap.logicalFromVisual[a]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},h}();i.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,p){var u=n("./lib/oop"),d=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=function(){function o(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var l=this;this.cursor.on("change",function(c){l.$cursorChanged=!0,l.$silent||l._emit("changeCursor"),!l.$isEmpty&&!l.$silent&&l._emit("changeSelection"),!l.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(l.$desiredColumn=null)}),this.anchor.on("change",function(){l.$anchorChanged=!0,!l.$isEmpty&&!l.$silent&&l._emit("changeSelection")})}return o.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},o.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},o.prototype.getCursor=function(){return this.lead.getPosition()},o.prototype.setAnchor=function(r,l){this.$isEmpty=!1,this.anchor.setPosition(r,l)},o.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},o.prototype.getSelectionLead=function(){return this.lead.getPosition()},o.prototype.isBackwards=function(){var r=this.anchor,l=this.lead;return r.row>l.row||r.row==l.row&&r.column>l.column},o.prototype.getRange=function(){var r=this.anchor,l=this.lead;return this.$isEmpty?s.fromPoints(l,l):this.isBackwards()?s.fromPoints(l,r):s.fromPoints(r,l)},o.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},o.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},o.prototype.setRange=function(r,l){var c=l?r.end:r.start,a=l?r.start:r.end;this.$setSelection(c.row,c.column,a.row,a.column)},o.prototype.$setSelection=function(r,l,c,a){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,l),this.cursor.setPosition(c,a),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(r){var l=this.lead;this.$isEmpty&&this.setSelectionAnchor(l.row,l.column),r.call(this)},o.prototype.selectTo=function(r,l){this.$moveSelection(function(){this.moveCursorTo(r,l)})},o.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},o.prototype.moveTo=function(r,l){this.clearSelection(),this.moveCursorTo(r,l)},o.prototype.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},o.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},o.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},o.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},o.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},o.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},o.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},o.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},o.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},o.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},o.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},o.prototype.getWordRange=function(r,l){if(typeof l>"u"){var c=r||this.lead;r=c.row,l=c.column}return this.session.getWordRange(r,l)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var r=this.getCursor(),l=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(l)},o.prototype.getLineRange=function(r,l){var c=typeof r=="number"?r:this.lead.row,a,f=this.session.getFoldLine(c);return f?(c=f.start.row,a=f.end.row):a=c,l===!0?new s(c,0,a,this.session.getLine(a).length):new s(c,0,a+1,0)},o.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},o.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},o.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},o.prototype.wouldMoveIntoSoftTab=function(r,l,c){var a=r.column,f=r.column+l;return c<0&&(a=r.column-l,f=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(a,f).split(" ").length-1==l},o.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),l;if(l=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(l.start.row,l.start.column);else if(r.column===0)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var r=this.lead.getPosition(),l;if(l=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(l.end.row,l.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),r=this.lead;this.wouldMoveIntoSoftTab(r,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var r=this.lead.row,l=this.lead.column,c=this.session.documentToScreenRow(r,l),a=this.session.screenToDocumentPosition(c,0),f=this.session.getDisplayLine(r,null,a.row,a.column),m=f.match(/^\s*/);m[0].length!=l&&!this.session.$useEmacsStyleLineStart&&(a.column+=m[0].length),this.moveCursorToPosition(a)},o.prototype.moveCursorLineEnd=function(){var r=this.lead,l=this.session.getDocumentLastRowColumnPosition(r.row,r.column);if(this.lead.column==l.column){var c=this.session.getLine(l.row);if(l.column==c.length){var a=c.search(/\s+$/);a>0&&(l.column=a)}}this.moveCursorTo(l.row,l.column)},o.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,l=this.doc.getLine(r).length;this.moveCursorTo(r,l)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(r,l,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(a)&&(l+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,a=c.substring(l)),l>=c.length){this.moveCursorTo(r,c.length),this.moveCursorRight(),r<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(a)&&(l+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,l)},o.prototype.moveCursorLongWordLeft=function(){var r=this.lead.row,l=this.lead.column,c;if(c=this.session.getFoldAt(r,l,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var a=this.session.getFoldStringAt(r,l,-1);a==null&&(a=this.doc.getLine(r).substring(0,l));var f=d.stringReverse(a);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(l-=this.session.nonTokenRe.lastIndex,f=f.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),l<=0){this.moveCursorTo(r,0),this.moveCursorLeft(),r>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(l-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,l)},o.prototype.$shortWordEndIndex=function(r){var l=0,c,a=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(r))l=this.session.tokenRe.lastIndex;else{for(;(c=r[l])&&a.test(c);)l++;if(l<1){for(f.lastIndex=0;(c=r[l])&&!f.test(c);)if(f.lastIndex=0,l++,a.test(c))if(l>2){l--;break}else{for(;(c=r[l])&&a.test(c);)l++;if(l>2)break}}}return f.lastIndex=0,l},o.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l),f=this.session.getFoldAt(r,l,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(l==c.length){var m=this.doc.getLength();do r++,a=this.doc.getLine(r);while(r<m&&/^\s*$/.test(a));/^\s+/.test(a)||(a=""),l=0}var v=this.$shortWordEndIndex(a);this.moveCursorTo(r,l+v)},o.prototype.moveCursorShortWordLeft=function(){var r=this.lead.row,l=this.lead.column,c;if(c=this.session.getFoldAt(r,l,-1))return this.moveCursorTo(c.start.row,c.start.column);var a=this.session.getLine(r).substring(0,l);if(l===0){do r--,a=this.doc.getLine(r);while(r>0&&/^\s*$/.test(a));l=a.length,/\s+$/.test(a)||(a="")}var f=d.stringReverse(a),m=this.$shortWordEndIndex(f);return this.moveCursorTo(r,l-m)},o.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},o.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},o.prototype.moveCursorBy=function(r,l){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),a;if(l===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(a=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(a/this.session.$bidiHandler.charWidths[0])):a=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.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(c.row+r,c.column,a);r!==0&&l===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+l,l===0)},o.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},o.prototype.moveCursorTo=function(r,l,c){var a=this.session.getFoldAt(r,l,1);a&&(r=a.start.row,l=a.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(f.charAt(l))&&f.charAt(l-1)&&(this.lead.row==r&&this.lead.column==l+1?l=l-1:l=l+1),this.lead.setPosition(r,l),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(r,l,c){var a=this.session.screenToDocumentPosition(r,l);this.moveCursorTo(a.row,a.column,c)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(r){var l=this.getRange();return r?(r.start.column=l.start.column,r.start.row=l.start.row,r.end.column=l.end.column,r.end.row=l.end.row):r=l,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},o.prototype.getRangeOfMovements=function(r){var l=this.getCursor();try{r(this);var c=this.getCursor();return s.fromPoints(l,c)}catch{return s.fromPoints(l,l)}finally{this.moveCursorToPosition(l)}},o.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(l){var c=l.clone();return c.isBackwards=l.cursor==l.start,c});else{var r=this.getRange();r.isBackwards=this.isBackwards()}return r},o.prototype.fromJSON=function(r){if(r.start==null)if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var l=r.length;l--;){var c=s.fromPoints(r[l].start,r[l].end);r[l].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else r=r[0];this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},o.prototype.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var l=this.ranges.length;l--;)if(!this.ranges[l].isEqual(r[l]))return!1;return!0},o}();h.prototype.setSelectionAnchor=h.prototype.setAnchor,h.prototype.getSelectionAnchor=h.prototype.getAnchor,h.prototype.setSelectionRange=h.prototype.setRange,u.implement(h.prototype,g),i.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,p){var u=n("./lib/report_error").reportError,d=2e3,g=function(){function s(h){this.states=h,this.regExps={},this.matchMappings={};for(var o in this.states){for(var r=this.states[o],l=[],c=0,a=this.matchMappings[o]={defaultToken:"text"},f="g",m=[],v=0;v<r.length;v++){var b=r[v];if(b.defaultToken&&(a.defaultToken=b.defaultToken),b.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),b.unicode&&f.indexOf("u")===-1&&(f+="u"),b.regex!=null){b.regex instanceof RegExp&&(b.regex=b.regex.toString().slice(1,-1));var x=b.regex,C=new RegExp("(?:("+x+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||C==1?b.token=b.token[0]:C-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:C-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&(C>1?b.onMatch=this.$applyToken:b.onMatch=b.token),C>1&&(/\\\d/.test(b.regex)?x=b.regex.replace(/\\([0-9]+)/g,function(S,$){return"\\"+(parseInt($,10)+c+1)}):(C=1,x=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&m.push(b)),a[c]=v,c+=C,l.push(x),b.onMatch||(b.onMatch=null)}}l.length||(a[0]=0,l.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,f)},this),this.regExps[o]=new RegExp("("+l.join(")|(")+")|($)",f)}}return s.prototype.$setMaxTokenCount=function(h){d=h|0},s.prototype.$applyToken=function(h){var o=this.splitRegex.exec(h).slice(1),r=this.token.apply(this,o);if(typeof r=="string")return[{type:r,value:h}];for(var l=[],c=0,a=r.length;c<a;c++)o[c]&&(l[l.length]={type:r[c],value:o[c]});return l},s.prototype.$arrayTokens=function(h){if(!h)return[];var o=this.splitRegex.exec(h);if(!o)return"text";for(var r=[],l=this.tokenArray,c=0,a=l.length;c<a;c++)o[c+1]&&(r[r.length]={type:l[c],value:o[c+1]});return r},s.prototype.removeCapturingGroups=function(h){var o=h.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(r,l){return l?"(?:":r});return o},s.prototype.createSplitterRegexp=function(h,o){if(h.indexOf("(?=")!=-1){var r=0,l=!1,c={};h.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(a,f,m,v,b,x){return l?l=b!="]":b?l=!0:v?(r==c.stack&&(c.end=x+1,c.stack=-1),r--):m&&(r++,m.length!=1&&(c.stack=r,c.start=x)),a}),c.end!=null&&/^\)*$/.test(h.substr(c.end))&&(h=h.substring(0,c.start)+h.substr(c.end))}return h.charAt(0)!="^"&&(h="^"+h),h.charAt(h.length-1)!="$"&&(h+="$"),new RegExp(h,(o||"").replace("g",""))},s.prototype.getLineTokens=function(h,o){if(o&&typeof o!="string"){var r=o.slice(0);o=r[0],o==="#tmp"&&(r.shift(),o=r.shift())}else var r=[];var l=o||"start",c=this.states[l];c||(l="start",c=this.states[l]);var a=this.matchMappings[l],f=this.regExps[l];f.lastIndex=0;for(var m,v=[],b=0,x=0,C={type:null,value:""};m=f.exec(h);){var S=a.defaultToken,$=null,L=m[0],R=f.lastIndex;if(R-L.length>b){var k=h.substring(b,R-L.length);C.type==S?C.value+=k:(C.type&&v.push(C),C={type:S,value:k})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){$=c[a[M]],$.onMatch?S=$.onMatch(L,l,r,h):S=$.token,$.next&&(typeof $.next=="string"?l=$.next:l=$.next(l,r),c=this.states[l],c||(this.reportError("state doesn't exist",l),l="start",c=this.states[l]),a=this.matchMappings[l],b=R,f=this.regExps[l],f.lastIndex=R),$.consumeLineEnd&&(b=R);break}if(L){if(typeof S=="string")(!$||$.merge!==!1)&&C.type===S?C.value+=L:(C.type&&v.push(C),C={type:S,value:L});else if(S){C.type&&v.push(C),C={type:null,value:""};for(var M=0;M<S.length;M++)v.push(S[M])}}if(b==h.length)break;if(b=R,x++>d){for(x>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:h});b<h.length;)C.type&&v.push(C),C={value:h.substring(b,b+=500),type:"overflow"};l="start",r=[];break}}return C.type&&v.push(C),r.length>1&&r[0]!==l&&r.unshift("#tmp",l),{tokens:v,state:r.length?r:l}},s}();g.prototype.reportError=u,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,p){var u=n("../lib/deep_copy").deepCopy,d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,o){if(!o){for(var r in h)this.$rules[r]=h[r];return}for(var r in h){for(var l=h[r],c=0;c<l.length;c++){var a=l[c];(a.next||a.onMatch)&&(typeof a.next=="string"&&a.next.indexOf(o)!==0&&(a.next=o+a.next),a.nextState&&a.nextState.indexOf(o)!==0&&(a.nextState=o+a.nextState))}this.$rules[o+r]=l}},this.getRules=function(){return this.$rules},this.embedRules=function(h,o,r,l,c){var a=typeof h=="function"?new h().getRules():h;if(l)for(var f=0;f<l.length;f++)l[f]=o+l[f];else{l=[];for(var m in a)l.push(o+m)}if(this.addRules(a,o),r)for(var v=Array.prototype[c?"push":"unshift"],f=0;f<l.length;f++)v.apply(this.$rules[l[f]],u(r));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(h,o){return(h!="start"||o.length)&&o.unshift(this.nextState,h),this.nextState},s=function(h,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var h=0,o=this.$rules;function r(l){var c=o[l];c.processed=!0;for(var a=0;a<c.length;a++){var f=c[a],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 b=f.stateName;b||(b=f.token,typeof b!="string"&&(b=b[0]||""),o[b]&&(b+=h++)),o[b]=v,f.next=b,r(b)}else v=="pop"&&(f.next=s);if(f.push&&(f.nextState=f.next||f.push,f.next=g,delete f.push),f.rules)for(var x in f.rules)o[x]?o[x].push&&o[x].push.apply(o[x],f.rules[x]):o[x]=f.rules[x];var C=typeof f=="string"?f:f.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?m=C.map(function($){return o[$]}):m=o[C]),m){var S=[a,1].concat(m);f.noEscape&&(S=S.filter(function($){return!$.next})),c.splice.apply(c,S),a--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(o).forEach(r,this)},this.createKeywordMapper=function(h,o,r,l){var c=Object.create(null);return this.$keywordList=[],Object.keys(h).forEach(function(a){for(var f=h[a],m=f.split(l||"|"),v=m.length;v--;){var b=m[v];this.$keywordList.push(b),r&&(b=b.toLowerCase()),c[b]=a}},this),h=null,r?function(a){return c[a.toLowerCase()]||o}:function(a){return c[a]||o}},this.getKeywords=function(){return this.$keywords}}).call(d.prototype),i.TextHighlightRules=d}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,i,p){var u=function(){this.$behaviours={}};(function(){this.add=function(d,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[d]:this.$behaviours[d]={}}this.$behaviours[d][g]=s},this.addBehaviours=function(d){for(var g in d)for(var s in d[g])this.add(g,s,d[g][s])},this.remove=function(d){this.$behaviours&&this.$behaviours[d]&&delete this.$behaviours[d]},this.inherit=function(d,g){if(typeof d=="function")var s=new d().getBehaviours(g);else var s=d.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(d){if(d){for(var g={},s=0;s<d.length;s++)this.$behaviours[d[s]]&&(g[d[s]]=this.$behaviours[d[s]]);return g}else return this.$behaviours}}).call(u.prototype),i.Behaviour=u}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,i,p){var u=n("./range").Range,d=function(){function g(s,h,o){this.$session=s,this.$row=h,this.$rowTokens=s.getTokens(h);var r=s.getTokenAt(h,o);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 s;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-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 s=this.$rowTokens,h=this.$tokenIndex,o=s[h].start;if(o!==void 0)return o;for(o=0;h>0;)h-=1,o+=s[h].value.length;return o},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],h=this.getCurrentTokenColumn();return new u(this.$row,h,this.$row,h+s.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,p){var u=n("../../lib/oop"),d=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,l={},c={'"':'"',"'":"'"},a=function(v){var b=-1;if(v.multiSelect&&(b=v.selection.index,l.rangeCount!=v.multiSelect.rangeCount&&(l={rangeCount:v.multiSelect.rangeCount})),l[b])return r=l[b];r=l[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,b,x,C){var S=v.end.row-v.start.row;return{text:x+b+C,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m=function(v){v=v||{},this.add("braces","insertion",function(b,x,C,S,$){var L=C.getCursorPosition(),R=S.doc.getLine(L.row);if($=="{"){a(C);var k=C.getSelectionRange(),M=S.doc.getTextRange(k);if(M!==""&&M!=="{"&&C.getWrapBehavioursEnabled())return f(k,M,"{","}");if(m.isSaneInsertion(C,S))return/[\]\}\)]/.test(R[L.column])||C.inMultiSelectMode||v.braces?(m.recordAutoInsert(C,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(C,S,"{"),{text:"{",selection:[1,1]})}else if($=="}"){a(C);var y=R.substring(L.column,L.column+1);if(y=="}"){var A=S.$findOpeningBracket("}",{column:L.column+1,row:L.row});if(A!==null&&m.isAutoInsertedClosing(L,R,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==`
986
- `||$==`\r
987
- `){a(C);var _="";m.isMaybeInsertedClosing(L,R)&&(_=s.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var y=R.substring(L.column,L.column+1);if(y==="}"){var w=S.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!w)return null;var E=this.$getIndent(S.getLine(w.row))}else if(_)var E=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var T=E+S.getTabString();return{text:`
988
- `+T+`
989
- `+E+_,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,x,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="{"){a(C);var R=S.doc.getLine($.start.row),k=R.substring($.end.column,$.end.column+1);if(k=="}")return $.end.column++,$;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,x,C,S,$){if($=="("){a(C);var L=C.getSelectionRange(),R=S.doc.getTextRange(L);if(R!==""&&C.getWrapBehavioursEnabled())return f(L,R,"(",")");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,")"),{text:"()",selection:[1,1]}}else if($==")"){a(C);var k=C.getCursorPosition(),M=S.doc.getLine(k.row),y=M.substring(k.column,k.column+1);if(y==")"){var A=S.$findOpeningBracket(")",{column:k.column+1,row:k.row});if(A!==null&&m.isAutoInsertedClosing(k,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,x,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="("){a(C);var R=S.doc.getLine($.start.row),k=R.substring($.start.column+1,$.start.column+2);if(k==")")return $.end.column++,$}}),this.add("brackets","insertion",function(b,x,C,S,$){if($=="["){a(C);var L=C.getSelectionRange(),R=S.doc.getTextRange(L);if(R!==""&&C.getWrapBehavioursEnabled())return f(L,R,"[","]");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,"]"),{text:"[]",selection:[1,1]}}else if($=="]"){a(C);var k=C.getCursorPosition(),M=S.doc.getLine(k.row),y=M.substring(k.column,k.column+1);if(y=="]"){var A=S.$findOpeningBracket("]",{column:k.column+1,row:k.row});if(A!==null&&m.isAutoInsertedClosing(k,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,x,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="["){a(C);var R=S.doc.getLine($.start.row),k=R.substring($.start.column+1,$.start.column+2);if(k=="]")return $.end.column++,$}}),this.add("string_dquotes","insertion",function(b,x,C,S,$){var L=S.$mode.$quotes||c;if($.length==1&&L[$]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($)!=-1)return;a(C);var R=$,k=C.getSelectionRange(),M=S.doc.getTextRange(k);if(M!==""&&(M.length!=1||!L[M])&&C.getWrapBehavioursEnabled())return f(k,M,R,R);if(!M){var y=C.getCursorPosition(),A=S.doc.getLine(y.row),_=A.substring(y.column-1,y.column),w=A.substring(y.column,y.column+1),E=S.getTokenAt(y.row,y.column),T=S.getTokenAt(y.row,y.column+1);if(_=="\\"&&E&&/escape/.test(E.type))return null;var O=E&&/string|escape/.test(E.type),I=!T||/string|escape/.test(T.type),F;if(w==R)F=O!==I,F&&/string\.end/.test(T.type)&&(F=!1);else{if(O&&!I||O&&I)return null;var D=S.$mode.tokenRe;D.lastIndex=0;var W=D.test(_);D.lastIndex=0;var j=D.test(w),H=S.$mode.$pairQuotesAfter,U=H&&H[R]&&H[R].test(_);if(!U&&W||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var K=A[y.column-2];if(_==R&&(K==R||D.test(K)))return null;F=!0}return{text:F?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,x,C,S,$){var L=S.$mode.$quotes||c,R=S.doc.getTextRange($);if(!$.isMultiLine()&&L.hasOwnProperty(R)){a(C);var k=S.doc.getLine($.start.row),M=k.substring($.start.column+1,$.start.column+2);if(M==R)return $.end.column++,$}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,x,C,S,$){if(b==="doc-start"&&($===`
990
- `||$===`\r
991
- `)&&C.selection.isEmpty()){var L=C.getCursorPosition(),R=S.doc.getLine(L.row),k=S.doc.getLine(L.row+1),M=this.$getIndent(R);if(/\s*\*/.test(k))return/^\s*\*/.test(R)?{text:$+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:$+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(R.substring(0,L.column)))return{text:$+M+" * "+$+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})};m.isSaneInsertion=function(v,b){var x=v.getCursorPosition(),C=new g(b,x.row,x.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",h)){if(/[)}\]]/.test(v.session.getLine(x.row)[x.column]))return!0;var S=new g(b,x.row,x.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",h))return!1}return C.stepForward(),C.getCurrentTokenRow()!==x.row||this.$matchTokenType(C.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,b){return b.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,b,x){var C=v.getCursorPosition(),S=b.doc.getLine(C.row);this.isAutoInsertedClosing(C,S,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=C.row,r.autoInsertedLineEnd=x+S.substr(C.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(v,b,x){var C=v.getCursorPosition(),S=b.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=C.row,r.maybeInsertedLineStart=S.substr(0,C.column)+x,r.maybeInsertedLineEnd=S.substr(C.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,b,x){return r.autoInsertedBrackets>0&&v.row===r.autoInsertedRow&&x===r.autoInsertedLineEnd[0]&&b.substr(v.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,b){return r.maybeInsertedBrackets>0&&v.row===r.maybeInsertedRow&&b.substr(v.column)===r.maybeInsertedLineEnd&&b.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)},u.inherits(m,d),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,p){for(var u=[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=[],s=0;s<u.length;s+=2)g.push(d+=u[s]),u[s+1]&&g.push(45,d+=u[s+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,p){var u=n("../config"),d=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,h=n("../unicode"),o=n("../lib/lang"),r=n("../token_iterator").TokenIterator,l=n("../range").Range,c=function(){this.HighlightRules=g};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+h.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+h.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(a,f,m,v){var b=f.doc,x=!0,C=!0,S=1/0,$=f.getTabSize(),L=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var M=this.lineCommentStart.map(o.escapeRegExp).join("|"),R=this.lineCommentStart[0];else var M=o.escapeRegExp(this.lineCommentStart),R=this.lineCommentStart;M=new RegExp("^(\\s*)(?:"+M+") ?"),L=f.getUseSoftTabs();var _=function(j,H){var U=j.match(M);if(U){var K=U[1].length,Z=U[0].length;!T(j,K,Z)&&U[0][Z-1]==" "&&Z--,b.removeInLine(H,K,Z)}},E=R+" ",A=function(j,H){(!x||/\S/.test(j))&&(T(j,S,S)?b.insertInLine({row:H,column:S},E):b.insertInLine({row:H,column:S},R))},w=function(j,H){return M.test(j)},T=function(j,H,U){for(var K=0;H--&&j.charAt(H)==" ";)K++;if(K%$!=0)return!1;for(var K=0;j.charAt(U++)==" ";)K++;return $>2?K%$!=$-1:K%$==0}}else{if(!this.blockComment)return!1;var R=this.blockComment.start,k=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(R)+")"),y=new RegExp("(?:"+o.escapeRegExp(k)+")\\s*$"),A=function(F,D){w(F,D)||(!x||/\S/.test(F))&&(b.insertInLine({row:D,column:F.length},k),b.insertInLine({row:D,column:S},R))},_=function(F,D){var W;(W=F.match(y))&&b.removeInLine(D,F.length-W[0].length,F.length),(W=F.match(M))&&b.removeInLine(D,W[1].length,W[0].length)},w=function(F,D){if(M.test(F))return!0;for(var W=f.getTokens(D),j=0;j<W.length;j++)if(W[j].type==="comment")return!0}}function O(F){for(var D=m;D<=v;D++)F(b.getLine(D),D)}var I=1/0;O(function(F,D){var W=F.search(/\S/);W!==-1?(W<S&&(S=W),C&&!w(F,D)&&(C=!1)):I>F.length&&(I=F.length)}),S==1/0&&(S=I,x=!1,C=!1),L&&S%$!=0&&(S=Math.floor(S/$)*$),O(C?_:A)},this.toggleBlockComment=function(a,f,m,v){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var x=new r(f,v.row,v.column),C=x.getCurrentToken();f.selection;var S=f.selection.toOrientedRange(),$,L;if(C&&/comment/.test(C.type)){for(var R,k;C&&/comment/.test(C.type);){var M=C.value.indexOf(b.start);if(M!=-1){var y=x.getCurrentTokenRow(),A=x.getCurrentTokenColumn()+M;R=new l(y,A,y,A+b.start.length);break}C=x.stepBackward()}for(var x=new r(f,v.row,v.column),C=x.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(b.end);if(M!=-1){var y=x.getCurrentTokenRow(),A=x.getCurrentTokenColumn()+M;k=new l(y,A,y,A+b.end.length);break}C=x.stepForward()}k&&f.remove(k),R&&(f.remove(R),$=R.start.row,L=-b.start.length)}else L=b.start.length,$=m.start.row,f.insert(m.end,b.end),f.insert(m.start,b.start);S.start.row==$&&(S.start.column+=L),S.end.row==$&&(S.end.column+=L),f.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(a,f,m){return this.$getIndent(f)},this.checkOutdent=function(a,f,m){return!1},this.autoOutdent=function(a,f,m){},this.$getIndent=function(a){return a.match(/^\s*/)[0]},this.createWorker=function(a){return null},this.createModeDelegates=function(a){this.$embeds=[],this.$modes={};for(var f in a)if(a[f]){var m=a[f],v=m.prototype.$id,b=u.$modes[v];b||(u.$modes[v]=b=new m),u.$modes[f]||(u.$modes[f]=b),this.$embeds.push(f),this.$modes[f]=b}for(var x=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],f=0;f<x.length;f++)(function(S){var $=x[f],L=S[$];S[x[f]]=function(){return this.$delegator($,arguments,L)}})(this)},this.$delegator=function(a,f,m){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var b=v[2][v[2].length-1],x=this.$modes[b];if(x)return x[a].apply(x,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var S=v.split(this.$embeds[C]);if(!S[0]&&S[1]){f[0]=S[1];var x=this.$modes[this.$embeds[C]];return x[a].apply(x,f)}}var $=m.apply(this,f);return m?$:void 0},this.transformAction=function(a,f,m,v,b){if(this.$behaviour){var x=this.$behaviour.getBehaviours();for(var C in x)if(x[C][f]){var S=x[C][f].apply(this,arguments);if(S)return S}}},this.getKeywords=function(a){if(!this.completionKeywords){var f=this.$tokenizer.rules,m=[];for(var v in f)for(var b=f[v],x=0,C=b.length;x<C;x++)if(typeof b[x].token=="string")/keyword|support|storage/.test(b[x].token)&&m.push(b[x].regex);else if(typeof b[x].token=="object"){for(var S=0,$=b[x].token.length;S<$;S++)if(/keyword|support|storage/.test(b[x].token[S])){var v=b[x].regex.match(/\(.+?\)/g)[S];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return a?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(a,f,m,v){var b=this.$keywordList||this.$createKeywordList();return b.map(function(x){return{name:x,value:x,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),i.Mode=c}),ace.define("ace/apply_delta",["require","exports","module"],function(n,i,p){i.applyDelta=function(u,d,g){var s=d.start.row,h=d.start.column,o=u[s]||"";switch(d.action){case"insert":var r=d.lines;if(r.length===1)u[s]=o.substring(0,h)+d.lines[0]+o.substring(h);else{var l=[s,1].concat(d.lines);u.splice.apply(u,l),u[s]=o.substring(0,h)+u[s],u[s+d.lines.length-1]+=o.substring(h)}break;case"remove":var c=d.end.column,a=d.end.row;s===a?u[s]=o.substring(0,h)+o.substring(c):u.splice(s,a-s+1,o.substring(0,h)+u[a].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function o(r,l,c){this.$onChange=this.onChange.bind(this),this.attach(r),typeof c>"u"?this.setPosition(l.row,l.column):this.setPosition(l,c)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(r){if(!(r.start.row==r.end.row&&r.start.row!=this.row)&&!(r.start.row>this.row)){var l=h(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(l.row,l.column,!0)}},o.prototype.setPosition=function(r,l,c){var a;if(c?a={row:r,column:l}:a=this.$clipPositionToDocument(r,l),!(this.row==a.row&&this.column==a.column)){var f={row:this.row,column:this.column};this.row=a.row,this.column=a.column,this._signal("change",{old:f,value:a})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(r,l){var c={};return r>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):r<0?(c.row=0,c.column=0):(c.row=r,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,l))),l<0&&(c.column=0),c},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,d);function s(o,r,l){var c=l?o.column<=r.column:o.column<r.column;return o.row<r.row||o.row==r.row&&c}function h(o,r,l){var c=o.action=="insert",a=(c?1:-1)*(o.end.row-o.start.row),f=(c?1:-1)*(o.end.column-o.start.column),m=o.start,v=c?m:o.end;return s(r,m,l)?{row:r.row,column:r.column}:s(v,r,!l)?{row:r.row+a,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,p){var u=n("./lib/oop"),d=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=n("./anchor").Anchor,o=function(){function r(l){this.$lines=[""],l.length===0?this.$lines=[""]:Array.isArray(l)?this.insertMergedLines({row:0,column:0},l):this.insert({row:0,column:0},l)}return r.prototype.setValue=function(l){var c=this.getLength()-1;this.remove(new s(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},l||"")},r.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},r.prototype.createAnchor=function(l,c){return new h(this,l,c)},r.prototype.$detectNewLine=function(l){var c=l.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
992
- `,this._signal("changeNewLineMode")},r.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
993
- `;case"unix":return`
994
- `;default:return this.$autoNewLine||`
995
- `}},r.prototype.setNewLineMode=function(l){this.$newLineMode!==l&&(this.$newLineMode=l,this._signal("changeNewLineMode"))},r.prototype.getNewLineMode=function(){return this.$newLineMode},r.prototype.isNewLine=function(l){return l==`\r
996
- `||l=="\r"||l==`
997
- `},r.prototype.getLine=function(l){return this.$lines[l]||""},r.prototype.getLines=function(l,c){return this.$lines.slice(l,c+1)},r.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},r.prototype.getLength=function(){return this.$lines.length},r.prototype.getTextRange=function(l){return this.getLinesForRange(l).join(this.getNewLineCharacter())},r.prototype.getLinesForRange=function(l){var c;if(l.start.row===l.end.row)c=[this.getLine(l.start.row).substring(l.start.column,l.end.column)];else{c=this.getLines(l.start.row,l.end.row),c[0]=(c[0]||"").substring(l.start.column);var a=c.length-1;l.end.row-l.start.row==a&&(c[a]=c[a].substring(0,l.end.column))}return c},r.prototype.insertLines=function(l,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(l,c)},r.prototype.removeLines=function(l,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(l,c)},r.prototype.insertNewLine=function(l){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(l,["",""])},r.prototype.insert=function(l,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(l,this.$split(c))},r.prototype.insertInLine=function(l,c){var a=this.clippedPos(l.row,l.column),f=this.pos(l.row,l.column+c.length);return this.applyDelta({start:a,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},r.prototype.clippedPos=function(l,c){var a=this.getLength();l===void 0?l=a:l<0?l=0:l>=a&&(l=a-1,c=void 0);var f=this.getLine(l);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:l,column:c}},r.prototype.clonePos=function(l){return{row:l.row,column:l.column}},r.prototype.pos=function(l,c){return{row:l,column:c}},r.prototype.$clipPosition=function(l){var c=this.getLength();return l.row>=c?(l.row=Math.max(0,c-1),l.column=this.getLine(c-1).length):(l.row=Math.max(0,l.row),l.column=Math.min(Math.max(l.column,0),this.getLine(l.row).length)),l},r.prototype.insertFullLines=function(l,c){l=Math.min(Math.max(l,0),this.getLength());var a=0;l<this.getLength()?(c=c.concat([""]),a=0):(c=[""].concat(c),l--,a=this.$lines[l].length),this.insertMergedLines({row:l,column:a},c)},r.prototype.insertMergedLines=function(l,c){var a=this.clippedPos(l.row,l.column),f={row:a.row+c.length-1,column:(c.length==1?a.column:0)+c[c.length-1].length};return this.applyDelta({start:a,end:f,action:"insert",lines:c}),this.clonePos(f)},r.prototype.remove=function(l){var c=this.clippedPos(l.start.row,l.start.column),a=this.clippedPos(l.end.row,l.end.column);return this.applyDelta({start:c,end:a,action:"remove",lines:this.getLinesForRange({start:c,end:a})}),this.clonePos(c)},r.prototype.removeInLine=function(l,c,a){var f=this.clippedPos(l,c),m=this.clippedPos(l,a);return this.applyDelta({start:f,end:m,action:"remove",lines:this.getLinesForRange({start:f,end:m})},!0),this.clonePos(f)},r.prototype.removeFullLines=function(l,c){l=Math.min(Math.max(0,l),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var a=c==this.getLength()-1&&l>0,f=c<this.getLength()-1,m=a?l-1:l,v=a?this.getLine(m).length:0,b=f?c+1:c,x=f?0:this.getLine(b).length,C=new s(m,v,b,x),S=this.$lines.slice(l,c+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),S},r.prototype.removeNewLine=function(l){l<this.getLength()-1&&l>=0&&this.applyDelta({start:this.pos(l,this.getLine(l).length),end:this.pos(l+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(l,c){if(l instanceof s||(l=s.fromPoints(l.start,l.end)),c.length===0&&l.isEmpty())return l.start;if(c==this.getTextRange(l))return l.end;this.remove(l);var a;return c?a=this.insert(l.start,c):a=l.start,a},r.prototype.applyDeltas=function(l){for(var c=0;c<l.length;c++)this.applyDelta(l[c])},r.prototype.revertDeltas=function(l){for(var c=l.length-1;c>=0;c--)this.revertDelta(l[c])},r.prototype.applyDelta=function(l,c){var a=l.action=="insert";(a?l.lines.length<=1&&!l.lines[0]:!s.comparePoints(l.start,l.end))||(a&&l.lines.length>2e4?this.$splitAndapplyLargeDelta(l,2e4):(d(this.$lines,l,c),this._signal("change",l)))},r.prototype.$safeApplyDelta=function(l){var c=this.$lines.length;(l.action=="remove"&&l.start.row<c&&l.end.row<c||l.action=="insert"&&l.start.row<=c)&&this.applyDelta(l)},r.prototype.$splitAndapplyLargeDelta=function(l,c){for(var a=l.lines,f=a.length-c+1,m=l.start.row,v=l.start.column,b=0,x=0;b<f;b=x){x+=c-1;var C=a.slice(b,x);C.push(""),this.applyDelta({start:this.pos(m+b,v),end:this.pos(m+x,v=0),action:l.action,lines:C},!0)}l.lines=a.slice(b),l.start.row=m+b,l.start.column=v,this.applyDelta(l,!0)},r.prototype.revertDelta=function(l){this.$safeApplyDelta({start:this.clonePos(l.start),end:this.clonePos(l.end),action:l.action=="insert"?"remove":"insert",lines:l.lines.slice()})},r.prototype.indexToPosition=function(l,c){for(var a=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=c||0,v=a.length;m<v;m++)if(l-=a[m].length+f,l<0)return{row:m,column:l+a[m].length+f};return{row:v-1,column:l+a[v-1].length+f}},r.prototype.positionToIndex=function(l,c){for(var a=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,m=0,v=Math.min(l.row,a.length),b=c||0;b<v;++b)m+=a[b].length+f;return m+l.column},r.prototype.$split=function(l){return l.split(/\r\n|\r|\n/)},r}();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",u.implement(o.prototype,g),i.Document=o}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("./lib/oop"),d=n("./lib/event_emitter").EventEmitter,g=function(){function s(h,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=h;var r=this;this.$worker=function(){if(r.running){for(var l=new Date,c=r.currentLine,a=-1,f=r.doc,m=c;r.lines[c];)c++;var v=f.getLength(),b=0;for(r.running=!1;c<v;){r.$tokenizeRow(c),a=c;do c++;while(r.lines[c]);if(b++,b%5===0&&new Date-l>20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=c,a==-1&&(a=c),m<=a&&r.fireUpdateEvent(m,a)}}}return s.prototype.setTokenizer=function(h){this.tokenizer=h,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(h){this.doc=h,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(h,o){var r={first:h,last:o};this._signal("update",{data:r})},s.prototype.start=function(h){this.currentLine=Math.min(h||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)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(h){var o=h.start.row,r=h.end.row-o;if(r===0)this.lines[o]=null;else if(h.action=="remove")this.lines.splice(o,r+1,null),this.states.splice(o,r+1,null);else{var l=Array(r+1);l.unshift(o,1),this.lines.splice.apply(this.lines,l),this.states.splice.apply(this.states,l)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(h){return this.lines[h]||this.$tokenizeRow(h)},s.prototype.getState=function(h){return this.currentLine==h&&this.$tokenizeRow(h),this.states[h]||"start"},s.prototype.$tokenizeRow=function(h){var o=this.doc.getLine(h),r=this.states[h-1],l=this.tokenizer.getLineTokens(o,r,h);return this.states[h]+""!=l.state+""?(this.states[h]=l.state,this.lines[h+1]=null,this.currentLine>h+1&&(this.currentLine=h+1)):this.currentLine==h&&(this.currentLine=h+1),this.lines[h]=l.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();u.implement(g.prototype,d),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,p){var u=n("./lib/lang"),d=n("./range").Range,g=function(){function s(h,o,r){r===void 0&&(r="text"),this.setRegexp(h),this.clazz=o,this.type=r}return s.prototype.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},s.prototype.update=function(h,o,r,l){if(this.regExp)for(var c=l.firstRow,a=l.lastRow,f={},m=c;m<=a;m++){var v=this.cache[m];v==null&&(v=u.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 b=v.length;b--;){var x=v[b].toScreenRange(r),C=x.toString();f[C]||(f[C]=!0,o.drawSingleLineMarker(h,x,this.clazz,l))}}},s}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,p){var u=function(){function S(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function($){this.$session=$},S.prototype.add=function($,L,R){if(!this.$fromUndo&&$!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),L===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$.id=this.$rev=++this.$maxRev}($.action=="remove"||$.action=="insert")&&(this.$lastDelta=$),this.lastDeltas.push($)}},S.prototype.addSelection=function($,L){this.selections.push({value:$,rev:L||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function($,L){L==null&&(L=this.$rev+1);for(var R=this.$undoStack,k=R.length;k--;){var M=R[k][0];if(M.id<=$)break;M.id<L&&(M.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function($,L){for(var R=this.selections,k=R.length;k--;){var M=R[k];if(M.rev<$)return L&&(M=R[k+1]),M}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function($,L){L==null&&(L=this.$rev+1);for(var R=this.$undoStack,k=null,M=0,y=R.length;y--;){var A=R[y][0];if(A.id<L&&!k&&(k=y+1),A.id<=$){M=y+1;break}}return R.slice(M,k)},S.prototype.getChangedRanges=function($,L){L==null&&(L=this.$rev+1)},S.prototype.getChangedLines=function($,L){L==null&&(L=this.$rev+1)},S.prototype.undo=function($,L){this.lastDeltas=null;var R=this.$undoStack;if(d(R,R.length)){$||($=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=R.pop(),M=null;return k&&(M=$.undoChanges(k,L),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M}},S.prototype.redo=function($,L){if(this.lastDeltas=null,$||($=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(y){y[0].id=++this.$maxRev},this)}var k=this.$redoStack.pop(),M=null;return k&&(M=$.redoChanges(k,L),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M},S.prototype.$syncRev=function(){var $=this.$undoStack,L=$[$.length-1],R=L&&L[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},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($){$==null&&($=this.$rev),this.mark=$},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function($){this.reset(),this.$undoStack=$.$undoStack,this.$redoStack=$.$redoStack},S.prototype.$prettyPrint=function($){return $?r($):r(this.$undoStack)+`
998
- ---
999
- `+r(this.$redoStack)},S}();u.prototype.hasUndo=u.prototype.canUndo,u.prototype.hasRedo=u.prototype.canRedo,u.prototype.isClean=u.prototype.isAtBookmark,u.prototype.markClean=u.prototype.bookmark;function d(S,$){for(var L=$;L--;){var R=S[L];if(R&&!R[0].ignore){for(;L<$-1;){var k=a(S[L],S[L+1]);S[L]=k[0],S[L+1]=k[1],L++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function h(S){return{row:S.row,column:S.column}}function o(S){return{start:h(S.start),end:h(S.end),action:S.action,lines:S.lines.slice()}}function r(S){if(S=S||this,Array.isArray(S))return S.map(r).join(`
1000
- `);var $="";return S.action?($=S.action=="insert"?"+":"-",$+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?$=S.value.map(l).join(`
1001
- `):$=l(S.value)),S.start&&($+=l(S)),(S.id||S.rev)&&($+=" ("+(S.id||S.rev)+")"),$}function l(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function c(S,$){var L=S.action=="insert",R=$.action=="insert";if(L&&R)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.start,S.start)<=0)m(S,$,1);else return null;else if(L&&!R)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.end,S.start)<=0)m(S,$,-1);else return null;else if(!L&&R)if(s($.start,S.start)>=0)m($,S,1);else if(s($.start,S.start)<=0)m(S,$,1);else return null;else if(!L&&!R)if(s($.start,S.start)>=0)m($,S,1);else if(s($.end,S.start)<=0)m(S,$,-1);else return null;return[$,S]}function a(S,$){for(var L=S.length;L--;)for(var R=0;R<$.length;R++)if(!c(S[L],$[R])){for(;L<S.length;){for(;R--;)c($[R],S[L]);R=$.length,L++}return[S,$]}return S.selectionBefore=$.selectionBefore=S.selectionAfter=$.selectionAfter=null,[$,S]}function f(S,$){var L=S.action=="insert",R=$.action=="insert";if(L&&R)s(S.start,$.start)<0?m($,S,1):m(S,$,1);else if(L&&!R)s(S.start,$.end)>=0?m(S,$,-1):(s(S.start,$.start)<=0||m(S,g.fromPoints($.start,S.start),-1),m($,S,1));else if(!L&&R)s($.start,S.end)>=0?m($,S,-1):(s($.start,S.start)<=0||m($,g.fromPoints(S.start,$.start),-1),m(S,$,1));else if(!L&&!R)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.end,S.start)<=0)m(S,$,-1);else{var k,M;return s(S.start,$.start)<0&&(k=S,S=b(S,$.start)),s(S.end,$.end)>0&&(M=b(S,$.end)),v($.end,S.start,S.end,-1),M&&!k&&(S.lines=M.lines,S.start=M.start,S.end=M.end,M=S),[$,k,M].filter(Boolean)}return[$,S]}function m(S,$,L){v(S.start,$.start,$.end,L),v(S.end,$.start,$.end,L)}function v(S,$,L,R){S.row==(R==1?$:L).row&&(S.column+=R*(L.column-$.column)),S.row+=R*(L.row-$.row)}function b(S,$){var L=S.lines,R=S.end;S.end=h($);var k=S.end.row-S.start.row,M=L.splice(k,L.length),y=k?$.column:$.column-S.start.column;L.push(M[0].substring(0,y)),M[0]=M[0].substr(y);var A={start:h($),end:R,lines:M,action:S.action};return A}function x(S,$){$=o($);for(var L=S.length;L--;){for(var R=S[L],k=0;k<R.length;k++){var M=R[k],y=f(M,$);$=y[0],y.length!=2&&(y[2]?(R.splice(k+1,1,y[1],y[2]),k++):y[1]||(R.splice(k,1),k--))}R.length||S.splice(L,1)}return S}function C(S,$){for(var L=0;L<$.length;L++)for(var R=$[L],k=0;k<R.length;k++)x(S,R[k])}i.UndoManager=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,i,p){var u=n("../range").Range,d=function(){function g(s,h){this.foldData=s,Array.isArray(h)?this.folds=h:h=this.folds=[h];var o=h[h.length-1];this.range=new u(h[0].start.row,h[0].start.column,o.end.row,o.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(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(h){h.start.row+=s,h.end.row+=s})},g.prototype.addFold=function(s){if(s.sameRow){if(s.start.row<this.startRow||s.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(h,o){return-h.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else if(s.end.row==this.start.row)this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");s.foldLine=this},g.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},g.prototype.walk=function(s,h,o){var r=0,l=this.folds,c,a,f,m=!0;h==null&&(h=this.end.row,o=this.end.column);for(var v=0;v<l.length;v++){if(c=l[v],a=c.range.compareStart(h,o),a==-1){s(null,h,o,r,m);return}if(f=s(null,c.start.row,c.start.column,r,m),f=!f&&s(c.placeholder,c.start.row,c.start.column,r),f||a===0)return;m=!c.sameRow,r=c.end.column}s(null,h,o,r,m)},g.prototype.getNextFoldTo=function(s,h){for(var o,r,l=0;l<this.folds.length;l++){if(o=this.folds[l],r=o.range.compareEnd(s,h),r==-1)return{fold:o,kind:"after"};if(r===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,h,o){var r=this.getNextFoldTo(s,h),l,c;if(r){if(l=r.fold,r.kind=="inside"&&l.start.column!=h&&l.start.row!=s)window.console&&window.console.log(s,h,l);else if(l.start.row==s){c=this.folds;var a=c.indexOf(l);for(a===0&&(this.start.column+=o),a;a<c.length;a++){if(l=c[a],l.start.column+=o,!l.sameRow)return;l.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,h){var o=this.getNextFoldTo(s,h);if(!o||o.kind=="inside")return null;var r=o.fold,l=this.folds,c=this.foldData,a=l.indexOf(r),f=l[a-1];this.end.row=f.end.row,this.end.column=f.end.column,l=l.splice(a,l.length-a);var m=new g(c,l);return c.splice(c.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var h=s.folds,o=0;o<h.length;o++)this.addFold(h[o]);var r=this.foldData;r.splice(r.indexOf(s),1)},g.prototype.toString=function(){var s=[this.range.toString()+": ["];return this.folds.forEach(function(h){s.push(" "+h.toString())}),s.push("]"),s.join(`
1002
- `)},g.prototype.idxToPosition=function(s){for(var h=0,o=0;o<this.folds.length;o++){var r=this.folds[o];if(s-=r.start.column-h,s<0)return{row:r.start.row,column:r.start.column+s};if(s-=r.placeholder.length,s<0)return r.start;h=r.end.column}return{row:this.end.row,column:this.end.column+s}},g}();i.FoldLine=d}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,i,p){var u=n("./range").Range,d=u.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(h,o,r){for(var l=this.ranges,c=r||0;c<l.length;c++){var a=l[c],f=d(h,a.end);if(!(f>0)){var m=d(h,a.start);return f===0?o&&m!==0?-c-2:c:m>0||m===0&&!o?c:-c-1}}return-c-1},s.prototype.add=function(h){var o=!h.isEmpty(),r=this.pointIndex(h.start,o);r<0&&(r=-r-1);var l=this.pointIndex(h.end,o,r);return l<0?l=-l-1:l++,this.ranges.splice(r,l-r,h)},s.prototype.addList=function(h){for(var o=[],r=h.length;r--;)o.push.apply(o,this.add(h[r]));return o},s.prototype.substractPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var h=[],o=this.ranges;o=o.sort(function(f,m){return d(f.start,m.start)});for(var r=o[0],l,c=1;c<o.length;c++){l=r,r=o[c];var a=d(l.end,r.start);a<0||a==0&&!l.isEmpty()&&!r.isEmpty()||(d(l.end,r.end)<0&&(l.end.row=r.end.row,l.end.column=r.end.column),o.splice(c,1),h.push(r),r=l,c--)}return this.ranges=o,h},s.prototype.contains=function(h,o){return this.pointIndex({row:h,column:o})>=0},s.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},s.prototype.rangeAtPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(h,o){var r=this.ranges;if(r[0].start.row>o||r[r.length-1].start.row<h)return[];var l=this.pointIndex({row:h,column:0});l<0&&(l=-l-1);var c=this.pointIndex({row:o,column:0},l);c<0&&(c=-c-1);for(var a=[],f=l;f<c;f++)a.push(r[f]);return a},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(h){this.session&&this.detach(),this.session=h,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},s.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},s.prototype.$onChange=function(h){for(var o=h.start,r=h.end,l=o.row,c=r.row,a=this.ranges,f=0,m=a.length;f<m;f++){var v=a[f];if(v.end.row>=l)break}if(h.action=="insert")for(var b=c-l,x=-o.column+r.column;f<m;f++){var v=a[f];if(v.start.row>l)break;if(v.start.row==l&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=x,v.start.row+=b)),v.end.row==l&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&x>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==a[f+1].start.column&&(v.end.column-=x),v.end.column+=x,v.end.row+=b}}else for(var b=l-c,x=o.column-r.column;f<m;f++){var v=a[f];if(v.start.row>c)break;v.end.row<c&&(l<v.end.row||l==v.end.row&&o.column<v.end.column)?(v.end.row=l,v.end.column=o.column):v.end.row==c?v.end.column<=r.column?(b||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=x,v.end.row+=b):v.end.row>c&&(v.end.row+=b),v.start.row<c&&(l<v.start.row||l==v.start.row&&o.column<v.start.column)?(v.start.row=l,v.start.column=o.column):v.start.row==c?v.start.column<=r.column?(b||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=x,v.start.row+=b):v.start.row>c&&(v.start.row+=b)}if(b!=0&&f<m)for(;f<m;f++){var v=a[f];v.start.row+=b,v.end.row+=b}},s}();g.prototype.comparePoints=d,i.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,i,p){var u=this&&this.__extends||function(){var l=function(c,a){return l=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])},l(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(c,a);function f(){this.constructor=c}c.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),d=n("../range_list").RangeList,g=function(l){u(c,l);function c(a,f){var m=l.call(this)||this;return m.foldLine=null,m.placeholder=f,m.range=a,m.start=a.start,m.end=a.end,m.sameRow=a.start.row==a.end.row,m.subFolds=m.ranges=[],m}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(a){this.foldLine=a,this.subFolds.forEach(function(f){f.setFoldLine(a)})},c.prototype.clone=function(){var a=this.range.clone(),f=new c(a,this.placeholder);return this.subFolds.forEach(function(m){f.subFolds.push(m.clone())}),f.collapseChildren=this.collapseChildren,f},c.prototype.addSubFold=function(a){if(!this.range.isEqual(a)){h(a,this.start);for(var x=a.start.row,C=a.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare(x,C),m==1);f++);var v=this.subFolds[f],b=0;if(m==0){if(v.range.containsRange(a))return v.addSubFold(a);b=1}for(var x=a.range.end.row,C=a.range.end.column,S=f,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare(x,C),m==1);S++);m==0&&S++;for(var $=this.subFolds.splice(f,S-f,a),L=m==0?$.length-1:$.length,R=b;R<L;R++)a.addSubFold($[R]);return a.setFoldLine(this.foldLine),a}},c.prototype.restoreRange=function(a){return r(a,this.start)},c}(d);function s(l,c){l.row-=c.row,l.row==0&&(l.column-=c.column)}function h(l,c){s(l.start,c),s(l.end,c)}function o(l,c){l.row==0&&(l.column+=c.column),l.row+=c.row}function r(l,c){o(l.start,c),o(l.end,c)}i.Fold=g}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,i,p){var u=n("../range").Range,d=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,h=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(r,l,c){var a=this.getFoldLine(r);if(!a)return null;for(var f=a.folds,m=0;m<f.length;m++){var v=f[m].range;if(v.contains(r,l)){if(c==1&&v.isEnd(r,l)&&!v.isEmpty())continue;if(c==-1&&v.isStart(r,l)&&!v.isEmpty())continue;return f[m]}}},this.getFoldsInRange=function(r){var l=r.start,c=r.end,a=this.$foldData,f=[];l.column+=1,c.column-=1;for(var m=0;m<a.length;m++){var v=a[m].range.compareRange(r);if(v!=2){if(v==-2)break;for(var b=a[m].folds,x=0;x<b.length;x++){var C=b[x];if(v=C.range.compareRange(r),v==-2)break;if(v==2)continue;if(v==42)break;f.push(C)}}}return l.column-=1,c.column+=1,f},this.getFoldsInRangeList=function(r){if(Array.isArray(r)){var l=[];r.forEach(function(c){l=l.concat(this.getFoldsInRange(c))},this)}else var l=this.getFoldsInRange(r);return l},this.getAllFolds=function(){for(var r=[],l=this.$foldData,c=0;c<l.length;c++)for(var a=0;a<l[c].folds.length;a++)r.push(l[c].folds[a]);return r},this.getFoldStringAt=function(r,l,c,a){if(a=a||this.getFoldLine(r),!a)return null;for(var f={end:{column:0}},m,v,b=0;b<a.folds.length;b++){v=a.folds[b];var x=v.range.compareEnd(r,l);if(x==-1){m=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if(x===0)return null;f=v}return m||(m=this.getLine(v.start.row).substring(f.end.column)),c==-1?m.substring(0,l-f.end.column):c==1?m.substring(l-f.end.column):m},this.getFoldLine=function(r,l){var c=this.$foldData,a=0;for(l&&(a=c.indexOf(l)),a==-1&&(a=0),a;a<c.length;a++){var f=c[a];if(f.start.row<=r&&f.end.row>=r)return f;if(f.end.row>r)return null}return null},this.getNextFoldLine=function(r,l){var c=this.$foldData,a=0;for(l&&(a=c.indexOf(l)),a==-1&&(a=0),a;a<c.length;a++){var f=c[a];if(f.end.row>=r)return f}return null},this.getFoldedRowCount=function(r,l){for(var c=this.$foldData,a=l-r+1,f=0;f<c.length;f++){var m=c[f],v=m.end.row,b=m.start.row;if(v>=l){b<l&&(b>=r?a-=l-b:a=0);break}else v>=r&&(b>=r?a-=v-b:a-=v-r+1)}return a},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(l,c){return l.start.row-c.start.row}),r},this.addFold=function(r,l){var c=this.$foldData,a=!1,f;r instanceof g?f=r:(f=new g(l,r),f.collapseChildren=l.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,b=f.end.row,x=f.end.column,C=this.getFoldAt(m,v,1),S=this.getFoldAt(b,x,-1);if(C&&S==C)return C.addSubFold(f);C&&!C.range.isStart(m,v)&&this.removeFold(C),S&&!S.range.isEnd(b,x)&&this.removeFold(S);var $=this.getFoldsInRange(f.range);$.length>0&&(this.removeFolds($),f.collapseChildren||$.forEach(function(M){f.addSubFold(M)}));for(var L=0;L<c.length;L++){var R=c[L];if(b==R.start.row){R.addFold(f),a=!0;break}else if(m==R.end.row){if(R.addFold(f),a=!0,!f.sameRow){var k=c[L+1];if(k&&k.start.row==b){R.merge(k);break}}break}else if(b<=R.start.row)break}return a||(R=this.$addFoldLine(new d(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},this.addFolds=function(r){r.forEach(function(l){this.addFold(l)},this)},this.removeFold=function(r){var l=r.foldLine,c=l.start.row,a=l.end.row,f=this.$foldData,m=l.folds;if(m.length==1)f.splice(f.indexOf(l),1);else if(l.range.isEnd(r.end.row,r.end.column))m.pop(),l.end.row=m[m.length-1].end.row,l.end.column=m[m.length-1].end.column;else if(l.range.isStart(r.start.row,r.start.column))m.shift(),l.start.row=m[0].start.row,l.start.column=m[0].start.column;else if(r.sameRow)m.splice(m.indexOf(r),1);else{var v=l.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(c,a):this.$updateRowLengthCache(c,a)),this.$modified=!0,this._signal("changeFold",{data:r,action:"remove"})},this.removeFolds=function(r){for(var l=[],c=0;c<r.length;c++)l.push(r[c]);l.forEach(function(a){this.removeFold(a)},this),this.$modified=!0},this.expandFold=function(r){this.removeFold(r),r.subFolds.forEach(function(l){r.restoreRange(l),this.addFold(l)},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(l){this.expandFold(l)},this)},this.unfold=function(r,l){var c,a;if(r==null)c=new u(0,0,this.getLength(),0),l==null&&(l=!0);else if(typeof r=="number")c=new u(r,0,r,this.getLine(r).length);else if("row"in r)c=u.fromPoints(r,r);else{if(Array.isArray(r))return a=[],r.forEach(function(m){a=a.concat(this.unfold(m))},this),a;c=r}a=this.getFoldsInRangeList(c);for(var f=a;a.length==1&&u.comparePoints(a[0].start,c.start)<0&&u.comparePoints(a[0].end,c.end)>0;)this.expandFolds(a),a=this.getFoldsInRangeList(c);if(l!=!1?this.removeFolds(a):this.expandFolds(a),f.length)return f},this.isRowFolded=function(r,l){return!!this.getFoldLine(r,l)},this.getRowFoldEnd=function(r,l){var c=this.getFoldLine(r,l);return c?c.end.row:r},this.getRowFoldStart=function(r,l){var c=this.getFoldLine(r,l);return c?c.start.row:r},this.getFoldDisplayLine=function(r,l,c,a,f){a==null&&(a=r.start.row),f==null&&(f=0),l==null&&(l=r.end.row),c==null&&(c=this.getLine(l).length);var m=this.doc,v="";return r.walk(function(b,x,C,S){if(!(x<a)){if(x==a){if(C<f)return;S=Math.max(f,S)}b!=null?v+=b:v+=m.getLine(x).substring(S,C)}},l,c),v},this.getDisplayLine=function(r,l,c,a){var f=this.getFoldLine(r);if(f)return this.getFoldDisplayLine(f,r,l,c,a);var m;return m=this.doc.getLine(r),m.substring(a||0,l||m.length)},this.$cloneFoldData=function(){var r=[];return r=this.$foldData.map(function(l){var c=l.folds.map(function(a){return a.clone()});return new d(r,c)}),r},this.toggleFold=function(r){var l=this.selection,c=l.getRange(),a,f;if(c.isEmpty()){var m=c.start;if(a=this.getFoldAt(m.row,m.column),a){this.expandFold(a);return}else(f=this.findMatchingBracket(m))?c.comparePoint(f)==1?c.end=f:(c.start=f,c.start.column++,c.end.column--):(f=this.findMatchingBracket({row:m.row,column:m.column+1}))?(c.comparePoint(f)==1?c.end=f:c.start=f,c.start.column++):c=this.getCommentFoldRange(m.row,m.column)||c}else{var v=this.getFoldsInRange(c);if(r&&v.length){this.expandFolds(v);return}else v.length==1&&(a=v[0])}if(a||(a=this.getFoldAt(c.start.row,c.start.column)),a&&a.range.toString()==c.toString()){this.expandFold(a);return}var b="...";if(!c.isMultiLine()){if(b=this.getTextRange(c),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,c)},this.getCommentFoldRange=function(r,l,c){var a=new s(this,r,l),f=a.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),b=new u;if(c!=1){do f=a.stepBackward();while(f&&v.test(f.type)&&!/^comment.end/.test(f.type));f=a.stepForward()}if(b.start.row=a.getCurrentTokenRow(),b.start.column=a.getCurrentTokenColumn()+(/^comment.start/.test(f.type)?f.value.length:2),a=new s(this,r,l),c!=-1){var x=-1;do if(f=a.stepForward(),x==-1){var C=this.getState(a.$row);v.test(C)||(x=a.$row)}else if(a.$row>x)break;while(f&&v.test(f.type)&&!/^comment.start/.test(f.type));f=a.stepBackward()}else f=a.getCurrentToken();return b.end.row=a.getCurrentTokenRow(),b.end.column=a.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(b.end.column+=f.value.length-2),b}},this.foldAll=function(r,l,c,a){c==null&&(c=1e5);var f=this.foldWidgets;if(f){l=l||this.getLength(),r=r||0;for(var m=r;m<l;m++)if(f[m]==null&&(f[m]=this.getFoldWidget(m)),f[m]=="start"&&!(a&&!a(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=l&&v.start.row>=r&&(m=v.end.row,v.collapseChildren=c,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(l){for(var c=r.getTokens(l),a=0;a<c.length;a++){var f=c[a];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 l=this.$foldMode;this.$setFolding(null),this.$setFolding(l)}},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,l){var c=this.foldWidgets;if(!c||l&&c[r])return{};for(var a=r-1,f;a>=0;){var m=c[a];if(m==null&&(m=c[a]=this.getFoldWidget(a)),m=="start"){var v=this.getFoldWidgetRange(a);if(f||(f=v),v&&v.end.row>=r)break}a--}return{range:a!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(r,l){l instanceof h&&(l=l.domEvent);var c={children:l.shiftKey,all:l.ctrlKey||l.metaKey,siblings:l.altKey},a=this.$toggleFoldWidget(r,c);if(!a){var f=l.target||l.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,l){if(this.getFoldWidget){var c=this.getFoldWidget(r),a=this.getLine(r),f=c==="end"?-1:1,m=this.getFoldAt(r,f===-1?0:a.length,f);if(m)return l.children||l.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(l.siblings){var b=this.getParentFoldRangeData(r);if(b.range)var x=b.range.start.row+1,C=b.range.end.row;this.foldAll(x,C,l.all?1e4:0)}else l.children?(C=v?v.end.row:this.getLength(),this.foldAll(r+1,C,l.all?1e4:0)):v&&(l.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(r){var l=this.selection.getCursor().row;l=this.getRowFoldStart(l);var c=this.$toggleFoldWidget(l,{});if(!c){var a=this.getParentFoldRangeData(l,!0);if(c=a.range||a.firstRange,c){l=c.start.row;var f=this.getFoldAt(l,this.getLine(l).length,1);f?this.removeFold(f):this.addFold("...",c)}}},this.updateFoldWidgets=function(r){var l=r.start.row,c=r.end.row-l;if(c===0)this.foldWidgets[l]=null;else if(r.action=="remove")this.foldWidgets.splice(l,c+1,null);else{var a=Array(c+1);a.unshift(l,1),this.foldWidgets.splice.apply(this.foldWidgets,a)}},this.tokenizerUpdateFoldWidgets=function(r){var l=r.data;l.first!=l.last&&this.foldWidgets.length>l.first&&this.foldWidgets.splice(l.first,this.foldWidgets.length)}}i.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,p){var u=n("../token_iterator").TokenIterator,d=n("../range").Range;function g(){this.findMatchingBracket=function(s,h){if(s.column==0)return null;var o=h||this.getLine(s.row).charAt(s.column-1);if(o=="")return null;var r=o.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],s):this.$findOpeningBracket(r[2],s):null},this.getBracketRange=function(s){var h=this.getLine(s.row),o=!0,r,l=h.charAt(s.column-1),c=l&&l.match(/([\(\[\{])|([\)\]\}])/);if(c||(l=h.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(/([\(\[\{])|([\)\]\}])/),o=!1),!c)return null;if(c[1]){var a=this.$findClosingBracket(c[1],s);if(!a)return null;r=d.fromPoints(s,a),o||(r.end.column++,r.start.column--),r.cursor=r.end}else{var a=this.$findOpeningBracket(c[2],s);if(!a)return null;r=d.fromPoints(a,s),o||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(s,h){var o=this.getLine(s.row),r=/([\(\[\{])|([\)\]\}])/,l=!h&&o.charAt(s.column-1),c=l&&l.match(r);if(c||(l=(h===void 0||h)&&o.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(r)),!c)return null;var a=new d(s.row,s.column-1,s.row,s.column),f=c[1]?this.$findClosingBracket(c[1],s):this.$findOpeningBracket(c[2],s);if(!f)return[a];var m=new d(f.row,f.column,f.row,f.column+1);return[a,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=h.column-c.getCurrentTokenColumn()-2,m=a.value;;){for(;f>=0;){var v=m.charAt(f);if(v==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else v==s&&(l+=1);f-=1}do a=c.stepBackward();while(a&&!o.test(a.type));if(a==null)break;m=a.value,f=m.length-1}return null}},this.$findClosingBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=h.column-c.getCurrentTokenColumn();;){for(var m=a.value,v=m.length;f<v;){var b=m.charAt(f);if(b==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else b==s&&(l+=1);f+=1}do a=c.stepForward();while(a&&!o.test(a.type));if(a==null)break;f=0}return null}},this.getMatchingTags=function(s){var h=new u(this,s.row,s.column),o=this.$findTagName(h);if(o){var r=h.stepBackward();return r.value==="<"?this.$findClosingTag(h,o):this.$findOpeningTag(h,o)}},this.$findTagName=function(s){var h=s.getCurrentToken(),o=!1,r=!1;if(h&&h.type.indexOf("tag-name")===-1)do r?h=s.stepBackward():h=s.stepForward(),h&&(h.value==="/>"?r=!0:h.type.indexOf("tag-name")!==-1&&(o=!0));while(h&&!o);return h},this.$findClosingTag=function(s,h){var o,r=h.value,l=h.value,c=0,a=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);h=s.stepForward();var f=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length),m=!1;do if(o=h,h=s.stepForward(),h){if(h.value===">"&&!m){var v=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(h.type.indexOf("tag-name")!==-1){if(r=h.value,l===r){if(o.value==="<")c++;else if(o.value==="</"&&(c--,c<0)){s.stepBackward();var b=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);h=s.stepForward();var x=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),h&&h.value===">")var C=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(l===r&&h.value==="/>"&&(c--,c<0))var b=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),x=b,C=x,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}while(h&&c>=0);if(a&&v&&b&&C&&f&&x)return{openTag:new d(a.start.row,a.start.column,v.end.row,v.end.column),closeTag:new d(b.start.row,b.start.column,C.end.row,C.end.column),openTagName:f,closeTagName:x}},this.$findOpeningTag=function(s,h){var o=s.getCurrentToken(),r=h.value,l=0,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),f=a+2,m=new d(c,a,c,f);s.stepForward();var v=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),!(!h||h.value!==">")){var b=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(h=o,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),f=a+h.value.length,o=s.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(r===h.value)if(o.value==="<"){if(l++,l>0){var x=new d(c,a,c,f),C=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do h=s.stepForward();while(h&&h.value!==">");var S=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&l--}else if(h.value==="/>"){for(var $=0,L=o;L;){if(L.type.indexOf("tag-name")!==-1&&L.value===r){l--;break}else if(L.value==="<")break;L=s.stepBackward(),$++}for(var R=0;R<$;R++)s.stepForward()}}while(o&&l<=0);if(C&&S&&m&&b&&x&&v)return{openTag:new d(C.start.row,C.start.column,S.end.row,S.end.column),closeTag:new d(m.start.row,m.start.column,b.end.row,b.end.column),openTagName:x,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,p){var u=n("./lib/oop"),d=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),h=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,r=n("./mode/text").Mode,l=n("./range").Range,c=n("./document").Document,a=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function y(A,_){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++y.$uid,this.$foldData.toString=function(){return this.join(`
1003
- `)},this.bgTokenizer=new a(new r().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(E){w._signal("tokenizerUpdate",E)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new c(A)),this.setDocument(A),this.selection=new o(this),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(_),s._signal("session",this),this.destroyed=!1}return y.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),this.doc=A,A.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},y.prototype.getDocument=function(){return this.doc},y.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var _=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,A)+1;_>w&&(this.$docRowCache.splice(w,_),this.$screenRowCache.splice(w,_))},y.prototype.$getRowCacheIndex=function(A,_){for(var w=0,E=A.length-1;w<=E;){var T=w+E>>1,O=A[T];if(_>O)w=T+1;else if(_<O)E=T-1;else return T}return w-1},y.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},y.prototype.onChangeFold=function(A){var _=A.data;this.$resetRowCache(_.start.row)},y.prototype.onChange=function(A){this.$modified=!0,this.$bidiHandler.onChange(A),this.$resetRowCache(A.start.row);var _=this.$updateInternalDataOnChange(A);!this.$fromUndo&&this.$undoManager&&(_&&_.length&&(this.$undoManager.add({action:"removeFolds",folds:_},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(A,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(A),this._signal("change",A)},y.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},y.fromJSON=function(A){A=JSON.parse(A);var _=new m;_.$undoStack=A.history.undo,_.$redoStack=A.history.redo,_.mark=A.history.mark,_.$rev=A.history.rev;var w=new y(A.value);return A.folds.forEach(function(E){w.addFold("...",l.fromPoints(E.start,E.end))}),w.setAnnotations(A.annotations),w.setBreakpoints(A.breakpoints),w.setMode(A.mode),w.setScrollLeft(A.scrollLeft),w.setScrollTop(A.scrollTop),w.setUndoManager(_),w.selection.fromJSON(A.selection),w},y.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(A){return A.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},y.prototype.toString=function(){return this.doc.getValue()},y.prototype.getSelection=function(){return this.selection},y.prototype.getState=function(A){return this.bgTokenizer.getState(A)},y.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},y.prototype.getTokenAt=function(A,_){var w=this.bgTokenizer.getTokens(A),E,T=0;if(_==null){var O=w.length-1;T=this.getLine(A).length}else for(var O=0;O<w.length&&(T+=w[O].value.length,!(T>=_));O++);return E=w[O],E?(E.index=O,E.start=T-E.value.length,E):null},y.prototype.setUndoManager=function(A){if(this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A){var _=this;A.addSession(this),this.$syncInformUndoManager=function(){_.$informUndoManager.cancel(),_.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},y.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},y.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},y.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},y.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},y.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},y.prototype.setTabSize=function(A){this.setOption("tabSize",A)},y.prototype.getTabSize=function(){return this.$tabSize},y.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},y.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},y.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},y.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},y.prototype.getOverwrite=function(){return this.$overwrite},y.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},y.prototype.addGutterDecoration=function(A,_){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+_,this._signal("changeBreakpoint",{})},y.prototype.removeGutterDecoration=function(A,_){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+_,""),this._signal("changeBreakpoint",{})},y.prototype.getBreakpoints=function(){return this.$breakpoints},y.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var _=0;_<A.length;_++)this.$breakpoints[A[_]]="ace_breakpoint";this._signal("changeBreakpoint",{})},y.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},y.prototype.setBreakpoint=function(A,_){_===void 0&&(_="ace_breakpoint"),_?this.$breakpoints[A]=_:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},y.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},y.prototype.addMarker=function(A,_,w,E){var T=this.$markerId++,O={range:A,type:w||"line",renderer:typeof w=="function"?w:null,clazz:_,inFront:!!E,id:T};return E?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},y.prototype.addDynamicMarker=function(A,_){if(A.update){var w=this.$markerId++;return A.id=w,A.inFront=!!_,_?(this.$frontMarkers[w]=A,this._signal("changeFrontMarker")):(this.$backMarkers[w]=A,this._signal("changeBackMarker")),A}},y.prototype.removeMarker=function(A){var _=this.$frontMarkers[A]||this.$backMarkers[A];if(_){var w=_.inFront?this.$frontMarkers:this.$backMarkers;delete w[A],this._signal(_.inFront?"changeFrontMarker":"changeBackMarker")}},y.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},y.prototype.highlight=function(A){if(!this.$searchHighlight){var _=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(_)}this.$searchHighlight.setRegexp(A)},y.prototype.highlightLines=function(A,_,w,E){typeof _!="number"&&(w=_,_=A),w||(w="ace_step");var T=new l(A,0,_,1/0);return T.id=this.addMarker(T,w,"fullLine",E),T},y.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},y.prototype.getAnnotations=function(){return this.$annotations||[]},y.prototype.clearAnnotations=function(){this.setAnnotations([])},y.prototype.$detectNewLine=function(A){var _=A.match(/^.*?(\r?\n)/m);_?this.$autoNewLine=_[1]:this.$autoNewLine=`
1004
- `},y.prototype.getWordRange=function(A,_){var w=this.getLine(A),E=!1;if(_>0&&(E=!!w.charAt(_-1).match(this.tokenRe)),E||(E=!!w.charAt(_).match(this.tokenRe)),E)var T=this.tokenRe;else if(/^\s+$/.test(w.slice(_-1,_+1)))var T=/\s/;else var T=this.nonTokenRe;var O=_;if(O>0){do O--;while(O>=0&&w.charAt(O).match(T));O++}for(var I=_;I<w.length&&w.charAt(I).match(T);)I++;return new l(A,O,A,I)},y.prototype.getAWordRange=function(A,_){for(var w=this.getWordRange(A,_),E=this.getLine(w.end.row);E.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},y.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},y.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},y.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},y.prototype.getUseWorker=function(){return this.$useWorker},y.prototype.onReloadTokenizer=function(A){var _=A.data;this.bgTokenizer.start(_.first),this._signal("tokenizerUpdate",A)},y.prototype.setMode=function(A,_){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var w=A,E=w.path}else E=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new r),this.$modes[E]&&!w){this.$onChangeMode(this.$modes[E]),_&&_();return}this.$modeId=E,s.loadModule(["mode",E],(function(T){if(this.$modeId!==E)return _&&_();this.$modes[E]&&!w?this.$onChangeMode(this.$modes[E]):T&&T.Mode&&(T=new T.Mode(w),w||(this.$modes[E]=T,T.$id=E),this.$onChangeMode(T)),_&&_()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},y.prototype.$onChangeMode=function(A,_){if(_||(this.$modeId=A.$id),this.$mode!==A){var w=this.$mode;this.$mode=A,this.$stopWorker(),this.$useWorker&&this.$startWorker();var E=A.getTokenizer();if(E.on!==void 0){var T=this.onReloadTokenizer.bind(this);E.on("update",T)}this.bgTokenizer.setTokenizer(E),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=A.tokenRe,this.nonTokenRe=A.nonTokenRe,_||(A.attachToSession&&A.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(A.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:A}))}},y.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},y.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){s.warn("Could not load worker",A),this.$worker=null}},y.prototype.getMode=function(){return this.$mode},y.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},y.prototype.getScrollTop=function(){return this.$scrollTop},y.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},y.prototype.getScrollLeft=function(){return this.$scrollLeft},y.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},y.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var A=0;return this.lineWidgets.forEach(function(_){_&&_.screenWidth>A&&(A=_.screenWidth)}),this.lineWidgetWidth=A},y.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _=this.doc.getAllLines(),w=this.$rowLengthCache,E=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,F=_.length,D=0;D<F;D++){if(D>I){if(D=O.end.row+1,D>=F)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[D]==null&&(w[D]=this.$getStringScreenWidth(_[D])[0]),w[D]>E&&(E=w[D])}this.screenWidth=E}},y.prototype.getLine=function(A){return this.doc.getLine(A)},y.prototype.getLines=function(A,_){return this.doc.getLines(A,_)},y.prototype.getLength=function(){return this.doc.getLength()},y.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},y.prototype.insert=function(A,_){return this.doc.insert(A,_)},y.prototype.remove=function(A){return this.doc.remove(A)},y.prototype.removeFullLines=function(A,_){return this.doc.removeFullLines(A,_)},y.prototype.undoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var E=A[w];E.action=="insert"||E.action=="remove"?this.doc.revertDelta(E):E.folds&&this.addFolds(E.folds)}!_&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},y.prototype.redoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=0;w<A.length;w++){var E=A[w];(E.action=="insert"||E.action=="remove")&&this.doc.$safeApplyDelta(E)}!_&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},y.prototype.setUndoSelect=function(A){this.$undoSelect=A},y.prototype.$getUndoSelection=function(A,_){function w(F){return _?F.action!=="insert":F.action==="insert"}for(var E,T,O=0;O<A.length;O++){var I=A[O];if(I.start){if(!E){w(I)?E=l.fromPoints(I.start,I.end):E=l.fromPoints(I.start,I.start);continue}w(I)?(T=I.start,E.compare(T.row,T.column)==-1&&E.setStart(T),T=I.end,E.compare(T.row,T.column)==1&&E.setEnd(T)):(T=I.start,E.compare(T.row,T.column)==-1&&(E=l.fromPoints(I.start,I.start)))}}return E},y.prototype.replace=function(A,_){return this.doc.replace(A,_)},y.prototype.moveText=function(A,_,w){var E=this.getTextRange(A),T=this.getFoldsInRange(A),O=l.fromPoints(_,_);if(!w){this.remove(A);var I=A.start.row-A.end.row,F=I?-A.end.column:A.start.column-A.end.column;F&&(O.start.row==A.end.row&&O.start.column>A.end.column&&(O.start.column+=F),O.end.row==A.end.row&&O.end.column>A.end.column&&(O.end.column+=F)),I&&O.start.row>=A.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,E),T.length){var D=A.start,W=O.start,I=W.row-D.row,F=W.column-D.column;this.addFolds(T.map(function(U){return U=U.clone(),U.start.row==D.row&&(U.start.column+=F),U.end.row==D.row&&(U.end.column+=F),U.start.row+=I,U.end.row+=I,U}))}return O},y.prototype.indentRows=function(A,_,w){w=w.replace(/\t/g,this.getTabString());for(var E=A;E<=_;E++)this.doc.insertInLine({row:E,column:0},w)},y.prototype.outdentRows=function(A){for(var _=A.collapseRows(),w=new l(0,0,0,0),E=this.getTabSize(),T=_.start.row;T<=_.end.row;++T){var O=this.getLine(T);w.start.row=T,w.end.row=T;for(var I=0;I<E&&O.charAt(I)==" ";++I);I<E&&O.charAt(I)==" "?(w.start.column=I,w.end.column=I+1):(w.start.column=0,w.end.column=I),this.remove(w)}},y.prototype.$moveLines=function(A,_,w){if(A=this.getRowFoldStart(A),_=this.getRowFoldEnd(_),w<0){var E=this.getRowFoldStart(A+w);if(E<0)return 0;var T=E-A}else if(w>0){var E=this.getRowFoldEnd(_+w);if(E>this.doc.getLength()-1)return 0;var T=E-_}else{A=this.$clipRowToDocument(A),_=this.$clipRowToDocument(_);var T=_-A+1}var O=new l(A,0,_,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(D){return D=D.clone(),D.start.row+=T,D.end.row+=T,D}),F=w==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+T,F),I.length&&this.addFolds(I),T},y.prototype.moveLinesUp=function(A,_){return this.$moveLines(A,_,-1)},y.prototype.moveLinesDown=function(A,_){return this.$moveLines(A,_,1)},y.prototype.duplicateLines=function(A,_){return this.$moveLines(A,_,0)},y.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},y.prototype.$clipColumnToRow=function(A,_){return _<0?0:Math.min(this.doc.getLine(A).length,_)},y.prototype.$clipPositionToDocument=function(A,_){if(_=Math.max(0,_),A<0)A=0,_=0;else{var w=this.doc.getLength();A>=w?(A=w-1,_=this.doc.getLine(w-1).length):_=Math.min(this.doc.getLine(A).length,_)}return{row:A,column:_}},y.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var _=this.doc.getLength()-1;return A.end.row>_?(A.end.row=_,A.end.column=this.doc.getLine(_).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},y.prototype.setUseWrapMode=function(A){if(A!=this.$useWrapMode){if(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A){var _=this.getLength();this.$wrapData=Array(_),this.$updateWrapData(0,_-1)}this._signal("changeWrapMode")}},y.prototype.getUseWrapMode=function(){return this.$useWrapMode},y.prototype.setWrapLimitRange=function(A,_){(this.$wrapLimitRange.min!==A||this.$wrapLimitRange.max!==_)&&(this.$wrapLimitRange={min:A,max:_},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},y.prototype.adjustWrapLimit=function(A,_){var w=this.$wrapLimitRange;w.max<0&&(w={min:_,max:_});var E=this.$constrainWrapLimit(A,w.min,w.max);return E!=this.$wrapLimit&&E>1?(this.$wrapLimit=E,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},y.prototype.$constrainWrapLimit=function(A,_,w){return _&&(A=Math.max(_,A)),w&&(A=Math.min(w,A)),A},y.prototype.getWrapLimit=function(){return this.$wrapLimit},y.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},y.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},y.prototype.$updateInternalDataOnChange=function(A){var _=this.$useWrapMode,w=A.action,E=A.start,T=A.end,O=E.row,I=T.row,F=I-O,D=null;if(this.$updating=!0,F!=0)if(w==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(O,F);var W=this.$foldData;D=this.getFoldsInRange(A),this.removeFolds(D);var j=this.getFoldLine(T.row),H=0;if(j){j.addRemoveChars(T.row,T.column,E.column-T.column),j.shiftRow(-F);var U=this.getFoldLine(O);U&&U!==j&&(U.merge(j),j=U),H=W.indexOf(j)+1}for(H;H<W.length;H++){var j=W[H];j.start.row>=T.row&&j.shiftRow(-F)}I=O}else{var K=Array(F);K.unshift(O,0);var Z=_?this.$wrapData:this.$rowLengthCache;Z.splice.apply(Z,K);var W=this.$foldData,j=this.getFoldLine(O),H=0;if(j){var z=j.range.compareInside(E.row,E.column);z==0?(j=j.split(E.row,E.column),j&&(j.shiftRow(F),j.addRemoveChars(I,0,T.column-E.column))):z==-1&&(j.addRemoveChars(O,0,T.column-E.column),j.shiftRow(F)),H=W.indexOf(j)+1}for(H;H<W.length;H++){var j=W[H];j.start.row>=O&&j.shiftRow(F)}}else{F=Math.abs(A.start.column-A.end.column),w==="remove"&&(D=this.getFoldsInRange(A),this.removeFolds(D),F=-F);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,E.column,F)}return _&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,_?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),D},y.prototype.$updateRowLengthCache=function(A,_,w){this.$rowLengthCache[A]=null,this.$rowLengthCache[_]=null},y.prototype.$updateWrapData=function(A,_){var w=this.doc.getAllLines(),E=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,F,D=A;for(_=Math.min(_,w.length-1);D<=_;)F=this.getFoldLine(D,F),F?(I=[],F.walk((function(W,j,H,U){var K;if(W!=null){K=this.$getDisplayTokens(W,I.length),K[0]=C;for(var Z=1;Z<K.length;Z++)K[Z]=S}else K=this.$getDisplayTokens(w[j].substring(U,H),I.length);I=I.concat(K)}).bind(this),F.end.row,w[F.end.row].length+1),T[F.start.row]=this.$computeWrapSplits(I,O,E),D=F.end.row+1):(I=this.$getDisplayTokens(w[D]),T[D]=this.$computeWrapSplits(I,O,E),D++)},y.prototype.$computeWrapSplits=function(A,_,w){if(A.length==0)return[];var E=[],T=A.length,O=0,I=0,F=this.$wrapAsCode,D=this.$indentedSoftWrap,W=_<=Math.max(2*w,8)||D===!1?0:Math.floor(_/2);function j(){var z=0;if(W===0)return z;if(D)for(var X=0;X<A.length;X++){var Y=A[X];if(Y==L)z+=1;else if(Y==R)z+=w;else{if(Y==k)continue;break}}return F&&D!==!1&&(z+=w),Math.min(z,W)}function H(z){for(var X=z-O,Y=O;Y<z;Y++){var V=A[Y];(V===12||V===2)&&(X-=1)}E.length||(U=j(),E.indent=U),I+=X,E.push(I),O=z}for(var U=0;T-O>_-U;){var K=O+_-U;if(A[K-1]>=L&&A[K]>=L){H(K);continue}if(A[K]==C||A[K]==S){for(K;K!=O-1&&A[K]!=C;K--);if(K>O){H(K);continue}for(K=O+_,K;K<A.length&&A[K]==S;K++);if(K==A.length)break;H(K);continue}for(var Z=Math.max(K-(_-(_>>2)),O-1);K>Z&&A[K]<C;)K--;if(F){for(;K>Z&&A[K]<C;)K--;for(;K>Z&&A[K]==$;)K--}else for(;K>Z&&A[K]<L;)K--;if(K>Z){H(++K);continue}K=O+_,A[K]==x&&K--,H(K-U)}return E},y.prototype.$getDisplayTokens=function(A,_){var w=[],E;_=_||0;for(var T=0;T<A.length;T++){var O=A.charCodeAt(T);if(O==9){E=this.getScreenTabSize(w.length+_),w.push(R);for(var I=1;I<E;I++)w.push(k)}else O==32?w.push(L):O>39&&O<48||O>57&&O<64?w.push($):O>=4352&&M(O)?w.push(b,x):w.push(b)}return w},y.prototype.$getStringScreenWidth=function(A,_,w){if(_==0)return[0,0];_==null&&(_=1/0),w=w||0;var E,T;for(T=0;T<A.length&&(E=A.charCodeAt(T),E==9?w+=this.getScreenTabSize(w):E>=4352&&M(E)?w+=2:w+=1,!(w>_));T++);return[w,T]},y.prototype.getRowLength=function(A){var _=1;return this.lineWidgets&&(_+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),!this.$useWrapMode||!this.$wrapData[A]?_:this.$wrapData[A].length+_},y.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},y.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE),w=this.$wrapData[_.row];return w.length&&w[0]<_.column?w.indent:0}else return 0},y.prototype.getScreenLastRowColumn=function(A){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},y.prototype.getDocumentLastRowColumn=function(A,_){var w=this.documentToScreenRow(A,_);return this.getScreenLastRowColumn(w)},y.prototype.getDocumentLastRowColumnPosition=function(A,_){var w=this.documentToScreenRow(A,_);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},y.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},y.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},y.prototype.screenToDocumentRow=function(A,_){return this.screenToDocumentPosition(A,_).row},y.prototype.screenToDocumentColumn=function(A,_){return this.screenToDocumentPosition(A,_).column},y.prototype.screenToDocumentPosition=function(A,_,w){if(A<0)return{row:0,column:0};var E,T=0,O=0,I,F=0,D=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),H=W.length;if(H&&j>=0)var F=W[j],T=this.$docRowCache[j],U=A>W[H-1];else var U=!H;for(var K=this.getLength()-1,Z=this.getNextFoldLine(T),z=Z?Z.start.row:1/0;F<=A&&(D=this.getRowLength(T),!(F+D>A||T>=K));)F+=D,T++,T>z&&(T=Z.end.row+1,Z=this.getNextFoldLine(T,Z),z=Z?Z.start.row:1/0),U&&(this.$docRowCache.push(T),this.$screenRowCache.push(F));if(Z&&Z.start.row<=T)E=this.getFoldDisplayLine(Z),T=Z.start.row;else{if(F+D<=A||T>K)return{row:K,column:this.getLine(K).length};E=this.getLine(T),Z=null}var X=0,Y=Math.floor(A-F);if(this.$useWrapMode){var V=this.$wrapData[T];V&&(I=V[Y],Y>0&&V.length&&(X=V.indent,O=V[Y-1]||V[V.length-1],E=E.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(F+Y,T,Y)&&(_=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(E,_-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Z?Z.idxToPosition(O):{row:T,column:O}},y.prototype.documentToScreenPosition=function(A,_){if(typeof _>"u")var w=this.$clipPositionToDocument(A.row,A.column);else w=this.$clipPositionToDocument(A,_);A=w.row,_=w.column;var E=0,T=null,O=null;O=this.getFoldAt(A,_,1),O&&(A=O.start.row,_=O.start.column);var I,F=0,D=this.$docRowCache,W=this.$getRowCacheIndex(D,A),j=D.length;if(j&&W>=0)var F=D[W],E=this.$screenRowCache[W],H=A>D[j-1];else var H=!j;for(var U=this.getNextFoldLine(F),K=U?U.start.row:1/0;F<A;){if(F>=K){if(I=U.end.row+1,I>A)break;U=this.getNextFoldLine(I,U),K=U?U.start.row:1/0}else I=F+1;E+=this.getRowLength(F),F=I,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(E))}var Z="";U&&F>=K?(Z=this.getFoldDisplayLine(U,A,_),T=U.start.row):(Z=this.getLine(A).substring(0,_),T=A);var z=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Y=0;Z.length>=X[Y];)E++,Y++;Z=Z.substring(X[Y-1]||0,Z.length),z=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(E+=this.lineWidgets[F].rowsAbove),{row:E,column:z+this.$getStringScreenWidth(Z)[0]}},y.prototype.documentToScreenColumn=function(A,_){return this.documentToScreenPosition(A,_).column},y.prototype.documentToScreenRow=function(A,_){return this.documentToScreenPosition(A,_).row},y.prototype.getScreenLength=function(){var A=0,_=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,E=0,_=this.$foldData[E++],I=_?_.start.row:1/0;O<T;){var F=this.$wrapData[O];A+=F?F.length+1:1,O++,O>I&&(O=_.end.row+1,_=this.$foldData[E++],I=_?_.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,E=0;E<w.length;E++)_=w[E],A-=_.end.row-_.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},y.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(_,w,E){if(w===0)return[0,0];w||(w=1/0),E=E||0;var T,O;for(O=0;O<_.length&&(T=_.charAt(O),T===" "?E+=this.getScreenTabSize(E):E+=A.getCharacterWidth(T),!(E>w));O++);return[E,O]})},y.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()},y}();v.$uid=0,v.prototype.$modes=s.$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=M,u.implement(v.prototype,h);var b=1,x=2,C=3,S=4,$=9,L=10,R=11,k=12;function M(y){return y<4352?!1:y>=4352&&y<=4447||y>=4515&&y<=4519||y>=4602&&y<=4607||y>=9001&&y<=9002||y>=11904&&y<=11929||y>=11931&&y<=12019||y>=12032&&y<=12245||y>=12272&&y<=12283||y>=12288&&y<=12350||y>=12353&&y<=12438||y>=12441&&y<=12543||y>=12549&&y<=12589||y>=12593&&y<=12686||y>=12688&&y<=12730||y>=12736&&y<=12771||y>=12784&&y<=12830||y>=12832&&y<=12871||y>=12880&&y<=13054||y>=13056&&y<=19903||y>=19968&&y<=42124||y>=42128&&y<=42182||y>=43360&&y<=43388||y>=44032&&y<=55203||y>=55216&&y<=55238||y>=55243&&y<=55291||y>=63744&&y<=64255||y>=65040&&y<=65049||y>=65072&&y<=65106||y>=65108&&y<=65126||y>=65128&&y<=65131||y>=65281&&y<=65376||y>=65504&&y<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),s.defineOptions(v.prototype,"session",{wrap:{set:function(y){if(!y||y=="off"?y=!1:y=="free"?y=!0:y=="printMargin"?y=-1:typeof y=="string"&&(y=parseInt(y,10)||!1),this.$wrap!=y)if(this.$wrap=y,!y)this.setUseWrapMode(!1);else{var A=typeof y=="number"?y:null;this.setWrapLimitRange(A,A),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(y){y=y=="auto"?this.$mode.type!="text":y!="text",y!=this.$wrapAsCode&&(this.$wrapAsCode=y,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(y){this.$useWorker=y,this.$stopWorker(),y&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(y){y=parseInt(y),y>0&&this.$tabSize!==y&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=y,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(y){this.setFoldStyle(y)},handlesSet:!0},overwrite:{set:function(y){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(y){this.doc.setNewLineMode(y)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(y){this.setMode(y)},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,p){var u=n("./lib/lang"),d=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(r){return d.mixin(this.$options,r),this},o.prototype.getOptions=function(){return u.copyObject(this.$options)},o.prototype.setOptions=function(r){this.$options=r},o.prototype.find=function(r){var l=this.$options,c=this.$matchIterator(r,l);if(!c)return!1;var a=null;return c.forEach(function(f,m,v,b){return a=new g(f,m,v,b),m==b&&l.start&&l.start.start&&l.skipCurrent!=!1&&a.isEqual(l.start)?(a=null,!1):!0}),a},o.prototype.findAll=function(r){var l=this.$options;if(!l.needle)return[];this.$assembleRegExp(l);var c=l.range,a=c?r.getLines(c.start.row,c.end.row):r.doc.getAllLines(),f=[],m=l.re;if(l.$isMultiLine){var v=m.length,b=a.length-v,x;e:for(var C=m.offset||0;C<=b;C++){for(var S=0;S<v;S++)if(a[C+S].search(m[S])==-1)continue e;var $=a[C],L=a[C+v-1],R=$.length-$.match(m[0])[0].length,k=L.match(m[v-1])[0].length;x&&x.end.row===C&&x.end.column>R||(f.push(x=new g(C,R,C+v-1,k)),v>2&&(C=C+v-2))}}else for(var M=0;M<a.length;M++)for(var y=u.getMatchOffsets(a[M],m),S=0;S<y.length;S++){var A=y[S];f.push(new g(M,A.offset,M,A.offset+A.length))}if(c){for(var _=c.start.column,w=c.end.column,M=0,S=f.length-1;M<S&&f[M].start.column<_&&f[M].start.row==0;)M++;for(var E=c.end.row-c.start.row;M<S&&f[S].end.column>w&&f[S].end.row==E;)S--;for(f=f.slice(M,S+1),M=0,S=f.length;M<S;M++)f[M].start.row+=c.start.row,f[M].end.row+=c.start.row}return f},o.prototype.replace=function(r,l){var c=this.$options,a=this.$assembleRegExp(c);if(c.$isMultiLine)return l;if(a){var f=a.exec(r);if(!f||f[0].length!=r.length)return null;if(l=r.replace(a,l),c.preserveCase){l=l.split("");for(var m=Math.min(r.length,r.length);m--;){var v=r[m];v&&v.toLowerCase()!=v?l[m]=l[m].toUpperCase():l[m]=l[m].toLowerCase()}l=l.join("")}return l}},o.prototype.$assembleRegExp=function(r,l){if(r.needle instanceof RegExp)return r.re=r.needle;var c=r.needle;if(!r.needle)return r.re=!1;r.$supportsUnicodeFlag===void 0&&(r.$supportsUnicodeFlag=u.supportsUnicodeFlag());try{new RegExp(c,"u")}catch{r.$supportsUnicodeFlag=!1}r.regExp||(c=u.escapeRegExp(c)),r.wholeWord&&(c=h(c,r));var a=r.caseSensitive?"gm":"gmi";if(r.$supportsUnicodeFlag&&(a+="u"),r.$isMultiLine=!l&&/[\n\r]/.test(c),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(c,a);try{var f=new RegExp(c,a)}catch{f=!1}return r.re=f},o.prototype.$assembleMultilineRegExp=function(r,l){for(var c=r.replace(/\r\n|\r|\n/g,`$
1005
- ^`).split(`
1006
- `),a=[],f=0;f<c.length;f++)try{a.push(new RegExp(c[f],l))}catch{return!1}return a},o.prototype.$matchIterator=function(r,l){var c=this.$assembleRegExp(l);if(!c)return!1;var a=l.backwards==!0,f=l.skipCurrent!=!1,m=l.range,v=l.start;v||(v=m?m[a?"end":"start"]:r.selection.getRange()),v.start&&(v=v[f!=a?"end":"start"]);var b=m?m.start.row:0,x=m?m.end.row:r.getLength()-1;if(a)var C=function(L){var R=v.row;if(!$(R,v.column,L)){for(R--;R>=b;R--)if($(R,Number.MAX_VALUE,L))return;if(l.wrap!=!1){for(R=x,b=v.row;R>=b;R--)if($(R,Number.MAX_VALUE,L))return}}};else var C=function(R){var k=v.row;if(!$(k,v.column,R)){for(k=k+1;k<=x;k++)if($(k,0,R))return;if(l.wrap!=!1){for(k=b,x=v.row;k<=x;k++)if($(k,0,R))return}}};if(l.$isMultiLine)var S=c.length,$=function(L,R,k){var M=a?L-S+1:L;if(!(M<0||M+S>r.getLength())){var y=r.getLine(M),A=y.search(c[0]);if(!(!a&&A<R||A===-1)){for(var _=1;_<S;_++)if(y=r.getLine(M+_),y.search(c[_])==-1)return;var w=y.match(c[S-1])[0].length;if(!(a&&w>R)&&k(M,A,M+S-1,w))return!0}}};else if(a)var $=function(R,k,M){var y=r.getLine(R),A=[],_,w=0;for(c.lastIndex=0;_=c.exec(y);){var E=_[0].length;if(w=_.index,!E){if(w>=y.length)break;c.lastIndex=w+=1}if(_.index+E>k)break;A.push(_.index,E)}for(var T=A.length-1;T>=0;T-=2){var O=A[T-1],E=A[T];if(M(R,O,R,O+E))return!0}};else var $=function(R,k,M){var y=r.getLine(R),A,_;for(c.lastIndex=k;_=c.exec(y);){var w=_[0].length;if(A=_.index,M(R,A,R,A+w))return!0;if(!w&&(c.lastIndex=A+=1,A>=y.length))return!1}};return{forEach:C}},o}();function h(o,r){var l=u.supportsLookbehind();function c(v,b){b===void 0&&(b=!0);var x=l&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return x.test(v)||r.regExp?l&&r.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var a=Array.from(o),f=a[0],m=a[a.length-1];return c(f)+o+c(m,!1)}i.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,p){var u=this&&this.__extends||function(){var l=function(c,a){return l=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])},l(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(c,a);function f(){this.constructor=c}c.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),d=n("../lib/keys"),g=n("../lib/useragent"),s=d.KEY_MODS,h=function(){function l(c,a){this.$init(c,a,!1)}return l.prototype.$init=function(c,a,f){this.platform=a||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=f},l.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},l.prototype.removeCommand=function(c,a){var f=c&&(typeof c=="string"?c:c.name);c=this.commands[f],a||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var b=m[v];if(b==c)delete m[v];else if(Array.isArray(b)){var x=b.indexOf(c);x!=-1&&(b.splice(x,1),b.length==1&&(m[v]=b[0]))}}},l.prototype.bindKey=function(c,a,f){if(typeof c=="object"&&c&&(f==null&&(f=c.position),c=c[this.platform]),!!c){if(typeof a=="function")return this.addCommand({exec:a,bindKey:c,name:a.name||c});c.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var b=m.split(/\s+/);m=b.pop(),b.forEach(function(S){var $=this.parseKeys(S),L=s[$.hashId]+$.key;v+=(v?" ":"")+L,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var x=this.parseKeys(m),C=s[x.hashId]+x.key;this._addCommandToBinding(v+C,a,f)},this)}},l.prototype._addCommandToBinding=function(c,a,f){var m=this.commandKeyBinding,v;if(!a)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=a;else{Array.isArray(m[c])?(v=m[c].indexOf(a))!=-1&&m[c].splice(v,1):m[c]=[m[c]],typeof f!="number"&&(f=o(a));var b=m[c];for(v=0;v<b.length;v++){var x=b[v],C=o(x);if(C>f)break}b.splice(v,0,a)}},l.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(a){var f=c[a];if(f){if(typeof f=="string")return this.bindKey(f,a);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=a),this.addCommand(f))}},this)},l.prototype.removeCommands=function(c){Object.keys(c).forEach(function(a){this.removeCommand(c[a])},this)},l.prototype.bindKeys=function(c){Object.keys(c).forEach(function(a){this.bindKey(a,c[a])},this)},l.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},l.prototype.parseKeys=function(c){var a=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),f=a.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(a.length){if(a.length==1&&a[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,b=a.length;b--;){var x=d.KEY_MODS[a[b]];if(x==null)return typeof console<"u"&&console.error("invalid modifier "+a[b]+" in "+c),!1;v|=x}return{key:f,hashId:v}},l.prototype.findKeyCommand=function(c,a){var f=s[c]+a;return this.commandKeyBinding[f]},l.prototype.handleKeyboard=function(c,a,f,m){if(!(m<0)){var v=s[a]+f,b=this.commandKeyBinding[v];return c.$keyChain&&(c.$keyChain+=" "+v,b=this.commandKeyBinding[c.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||v,{command:"null"}):(c.$keyChain&&((!a||a==4)&&f.length==1?c.$keyChain=c.$keyChain.slice(0,-v.length-1):(a==-1||m>0)&&(c.$keyChain="")),{command:b})}},l.prototype.getStatusText=function(c,a){return a.$keyChain||""},l}();function o(l){return typeof l=="object"&&l.bindKey&&l.bindKey.position||(l.isDefault?-100:0)}var r=function(l){u(c,l);function c(a,f){var m=l.call(this,a,f)||this;return m.$singleCommand=!0,m}return c}(h);r.call=function(l,c,a){h.prototype.$init.call(l,c,a,!0)},h.call=function(l,c,a){h.prototype.$init.call(l,c,a,!1)},i.HashHandler=r,i.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var o=function(r,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(c[f]=a[f])},o(r,l)};return function(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(r,l);function c(){this.constructor=r}r.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),d=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,h=function(o){u(r,o);function r(l,c){var a=o.call(this,c,l)||this;return a.byName=a.commands,a.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)}),a}return r.prototype.exec=function(l,c,a){if(Array.isArray(l)){for(var f=l.length;f--;)if(this.exec(l[f],c,a))return!0;return!1}if(typeof l=="string"&&(l=this.commands[l]),!l||c&&c.$readOnly&&!l.readOnly||this.$checkCommandState!=!1&&l.isAvailable&&!l.isAvailable(c))return!1;var m={editor:c,command:l,args:a};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.toggleRecording=function(l){if(!this.$inReplay)return l&&l._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},r.prototype.replay=function(l){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(l);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,l):this.exec(c[0],l,c[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(l){return l.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},r}(g);d.implement(h.prototype,s),i.CommandManager=h}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,p){var u=n("../lib/lang"),d=n("../config"),g=n("../range").Range;function s(o,r){return{win:o,mac:r}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){d.loadModule("ace/ext/settings_menu",function(r){r.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(o){o.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(o){o.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(o,r){typeof r=="number"&&!isNaN(r)&&o.gotoLine(r),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(o){o.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(o){o.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(o){o.session.foldAll(),o.session.unfold(o.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(o){o.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(r){r.Search(o)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(o){o.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(o){o.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(o){o.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(o){o.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(o,r){o.navigateUp(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(o){o.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(o){o.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(o){o.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(o,r){o.navigateDown(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(o){o.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(o){o.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(o){o.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(o){o.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(o,r){o.navigateLeft(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(o){o.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(o){o.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(o){o.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(o){o.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(o,r){o.navigateRight(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(o){o.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(o){o.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(o){o.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(o){o.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(o){o.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(o){o.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(o){o.renderer.scrollBy(0,-2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(o){o.renderer.scrollBy(0,2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(o){o.commands.toggleRecording(o)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(o){o.commands.replay(o)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(o){o.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(o){o.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(o){o.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(o){},readOnly:!0},{name:"cut",description:"Cut",exec:function(o){var r=o.$copyWithEmptySelection&&o.selection.isEmpty(),l=r?o.selection.getLineRange():o.selection.getRange();o._emit("cut",l),l.isEmpty()||o.session.remove(l),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,r){o.$handlePaste(r)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(r){r.Search(o,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(o){o.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(o){o.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(o){o.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(o){o.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(o){o.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(o){o.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(o){o.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(o){o.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(o){if(o.selection.isEmpty())o.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(o){o.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(o){o.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(o){var r=o.selection.getRange();r.start.column=0,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var r=o.selection.getRange();r.end.column=Number.MAX_VALUE,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(o){o.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(o){o.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(o){o.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(o){o.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(o){o.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(o){o.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(o,r){o.insert(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,r){o.insert(u.stringRepeat(r.text||"",r.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(o){o.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(o){o.transposeLetters()},multiSelectAction:function(o){o.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(o){o.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(o){o.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(o){o.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var r=o.selection.getRange();r.start.column=r.end.column=0,r.end.row++,o.selection.setRange(r,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(o){o.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(o){for(var r=o.selection.isBackwards(),l=r?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),c=r?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),a=o.session.doc.getLine(l.row).length,f=o.session.doc.getTextRange(o.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=o.session.doc.getLine(l.row),b=l.row+1;b<=c.row+1;b++){var x=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(b)));x.length!==0&&(x=" "+x),v+=x}c.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(l.row,0,c.row+2,0),v),m>0?(o.selection.moveCursorTo(l.row,l.column),o.selection.selectTo(l.row,l.column+m)):(a=o.session.doc.getLine(l.row).length>a?a+1:a,o.selection.moveCursorTo(l.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var r=o.session.doc.getLength()-1,l=o.session.doc.getLine(r).length,c=o.selection.rangeList.ranges,a=[];c.length<1&&(c=[o.selection.getRange()]);for(var f=0;f<c.length;f++)f==c.length-1&&(c[f].end.row===r&&c[f].end.column===l||a.push(new g(c[f].end.row,c[f].end.column,r,l))),f===0?c[f].start.row===0&&c[f].start.column===0||a.push(new g(0,0,c[f].start.row,c[f].start.column)):a.push(new g(c[f-1].end.row,c[f-1].end.column,c[f].start.row,c[f].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var f=0;f<a.length;f++)o.selection.addRange(a[f],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(o){o.selection.clearSelection(),o.navigateLineEnd(),o.insert(`
1007
- `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var r=o.getCursorPosition();o.selection.moveTo(r.row-1,Number.MAX_VALUE),o.insert(`
1008
- `),r.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(o){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),o.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:s("F1","F1"),exec:function(o){o.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(o){o.prompt({$type:"modes"})},readOnly:!0}];for(var h=1;h<9;h++)i.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,exec:function(o){o.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("./lib/dom"),d=function(){function g(s){this.session=s,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(s){var h;return this.lineWidgets?h=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:h=0,!this.$useWrapMode||!this.$wrapData[s]?1+h:this.$wrapData[s].length+1+h},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(h){h&&h.rowCount&&!h.hidden&&(s+=h.rowCount)}),s},g.prototype.$onChangeEditor=function(s){this.attach(s.editor)},g.prototype.attach=function(s){s&&s.widgetManager&&s.widgetManager!=this&&s.widgetManager.detach(),this.editor!=s&&(this.detach(),this.editor=s,s&&(s.widgetManager=this,s.renderer.on("beforeRender",this.measureWidgets),s.renderer.on("afterRender",this.renderWidgets)))},g.prototype.detach=function(s){var h=this.editor;if(h){this.editor=null,h.widgetManager=null,h.renderer.off("beforeRender",this.measureWidgets),h.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},g.prototype.updateOnFold=function(s,h){var o=h.lineWidgets;if(!(!o||!s.action)){for(var r=s.data,l=r.start.row,c=r.end.row,a=s.action=="add",f=l+1;f<c;f++)o[f]&&(o[f].hidden=a);o[c]&&(a?o[l]?o[c].hidden=a:o[l]=o[c]:(o[l]==o[c]&&(o[l]=void 0),o[c].hidden=a))}},g.prototype.updateOnChange=function(s){var h=this.session.lineWidgets;if(h){var o=s.start.row,r=s.end.row-o;if(r!==0)if(s.action=="remove"){var l=h.splice(o+1,r);!h[o]&&l[l.length-1]&&(h[o]=l.pop()),l.forEach(function(a){a&&this.removeLineWidget(a)},this),this.$updateRows()}else{var c=new Array(r);h[o]&&h[o].column!=null&&s.start.column>h[o].column&&o++,c.unshift(o,0),h.splice.apply(h,c),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var h=!0;s.forEach(function(o,r){if(o)for(h=!1,o.row=r;o.$oldWidget;)o.$oldWidget.row=r,o=o.$oldWidget}),h&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[s.row];return h&&(s.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},g.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var h=this.editor.renderer;s.html&&!s.el&&(s.el=u.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=u.createElement("div"),s.el.textContent=s.text),s.el&&(u.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&u.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex=5,h.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/h.layerConfig.lineHeight);var o=this.session.getFoldAt(s.row,0);if(s.$fold=o,o){var r=this.session.lineWidgets;s.row==o.end.row&&!r[o.start.row]?r[o.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,h),this.onWidgetChanged(s),s},g.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var h=this.session.lineWidgets[s.row];if(h==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;h;){if(h.$oldWidget==s){h.$oldWidget=s.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var h=this.session.lineWidgets,o=h&&h[s],r=[];o;)r.push(o),o=o.$oldWidget;return r},g.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(s,h){var o=this.session._changedWidgets,r=h.layerConfig;if(!(!o||!o.length)){for(var l=1/0,c=0;c<o.length;c++){var a=o[c];if(!(!a||!a.el)&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,h.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var f=a.h/r.lineHeight;a.coverLine&&(f-=this.session.getRowLineCount(a.row),f<0&&(f=0)),a.rowCount!=f&&(a.rowCount=f,a.row<l&&(l=a.row))}}l!=1/0&&(this.session._emit("changeFold",{data:{start:{row:l}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,h){var o=h.layerConfig,r=this.session.lineWidgets;if(r){for(var l=Math.min(this.firstRow,o.firstRow),c=Math.max(this.lastRow,o.lastRow,r.length);l>0&&!r[l];)l--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,h.$cursorLayer.config=o;for(var a=l;a<=c;a++){var f=r[a];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,h.container.appendChild(f.el));var m=h.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;f.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-o.offset+"px";var v=f.coverGutter?0:h.gutterWidth;f.fixedWidth||(v-=h.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=o.width+2*o.padding+"px"),f.fixedWidth?f.el.style.right=h.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,p){var u=n("../lib/keys"),d=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function h(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new d(this.editor)}return h.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))},h.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))},h.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===u.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=u.enter)return;o.preventDefault();var r=this.editor.getCursorPosition().row;this.editor.isRowVisible(r)||this.editor.scrollToLine(r,!0,!0),setTimeout((function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(l),a=this.$findNearestAnnotation(l);if(!(c===null&&a===null)){if(c===null&&a!==null){this.activeRowIndex=a,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&a===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(a-l)<Math.abs(c-l)){this.activeRowIndex=a,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(o),setTimeout((function(){this.editor._signal("gutterkeydown",new s(o,this))}).bind(this),10)},h.prototype.$handleGutterKeyboardInteraction=function(o){if(o.keyCode===u.tab){o.preventDefault();return}if(o.keyCode===u.escape){o.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(o.keyCode===u.up){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(o.keyCode===u.down){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(o.keyCode===u.left){o.preventDefault(),this.$switchLane("annotation");return}if(o.keyCode===u.right){o.preventDefault(),this.$switchLane("fold");return}if(o.keyCode===u.enter||o.keyCode===u.space){switch(o.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),o),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 l=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=l.getBoundingClientRect(),a=this.annotationTooltip.getElement().style;a.left=c.right+"px",a.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},h.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()},h.prototype.$isFoldWidgetVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),l=this.$getFoldWidget(o).style.display!=="none";return r&&l},h.prototype.$isAnnotationVisible=function(o){var r=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),l=this.$getAnnotation(o).style.display!=="none";return r&&l},h.prototype.$getFoldWidget=function(o){var r=this.lines.get(o),l=r.element;return l.childNodes[1]},h.prototype.$getAnnotation=function(o){var r=this.lines.get(o),l=r.element;return l.childNodes[2]},h.prototype.$findNearestFoldWidget=function(o){if(this.$isFoldWidgetVisible(o))return o;for(var r=0;o-r>0||o+r<this.lines.getLength()-1;){if(r++,o-r>=0&&this.$isFoldWidgetVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+r))return o+r}return null},h.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var r=0;o-r>0||o+r<this.lines.getLength()-1;){if(r++,o-r>=0&&this.$isAnnotationVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+r))return o+r}return null},h.prototype.$focusFoldWidget=function(o){if(o!=null){var r=this.$getFoldWidget(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$focusAnnotation=function(o){if(o!=null){var r=this.$getAnnotation(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$blurFoldWidget=function(o){var r=this.$getFoldWidget(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.prototype.$blurAnnotation=function(o){var r=this.$getAnnotation(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},h.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},h.prototype.$moveAnnotationUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$switchLane=function(o){switch(o){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 l=this.$findNearestFoldWidget(this.activeRowIndex);if(l==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=l,this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(o){var r=this.lines.get(o);return r?r.row:null},h.prototype.$rowToRowIndex=function(o){for(var r=0;r<this.lines.getLength();r++){var l=this.lines.get(r);if(l.row==o)return r}return null},h}();i.GutterKeyboardHandler=g;var s=function(){function h(o,r){this.gutterKeyboardHandler=r,this.domEvent=o}return h.prototype.getKey=function(){return u.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h}();i.GutterKeyboardEvent=s}),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,p){var u=this&&this.__values||function(_){var w=typeof Symbol=="function"&&Symbol.iterator,E=w&&_[w],T=0;if(E)return E.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&T>=_.length&&(_=void 0),{value:_&&_[T++],done:!_}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),h=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,l=n("./mouse/fold_handler").FoldHandler,c=n("./keyboard/keybinding").KeyBinding,a=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,b=n("./commands/command_manager").CommandManager,x=n("./commands/default_commands").commands,C=n("./config"),S=n("./token_iterator").TokenIterator,$=n("./line_widgets").LineWidgets,L=n("./keyboard/gutter_handler").GutterKeyboardHandler,R=n("./config").nls,k=n("./clipboard"),M=n("./lib/keys"),y=function(){function _(w,E,T){this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++_.$uid,this.commands=new b(h.isMac?"mac":"win",x),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new l(this)),this.keyBinding=new c(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,F){F._$emitInputEvent.schedule(31)}),this.setSession(E||T&&T.session||new a("")),C.resetOptions(this),T&&this.setOptions(T),C._signal("editor",this)}return _.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.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)},_.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()},_.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 E=this.curOp.command,T=E&&E.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var F=this.selection.toJSON();this.curOp.selectionAfter=F,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(F),this.prevOp=this.curOp,this.curOp=null}},_.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var E=this.prevOp,T=this.$mergeableCommands,O=E.command&&w.command.name==E.command.name;if(w.command.name=="insertstring"){var I=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(E.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},_.prototype.setKeyboardHandler=function(w,E){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;C.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),E&&E()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),E&&E()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var E=this.session;if(E){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 T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.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:E}),this.curOp=null,E&&E._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(w,E){return this.session.doc.setValue(w),E?E==1?this.navigateFileEnd():E==-1&&this.navigateFileStart():this.selectAll(),w},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(w){this.renderer.onResize(w)},_.prototype.setTheme=function(w,E){this.renderer.setTheme(w,E)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(w){this.renderer.setStyle(w)},_.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(w){this.setOption("fontSize",w)},_.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var E=w.session;if(!(!E||E.destroyed)){E.$bracketHighlight&&(E.$bracketHighlight.markerIds.forEach(function(U){E.removeMarker(U)}),E.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=E.getMatchingBracketRanges(T,I);if(!F){var D=new S(E,T.row,T.column),W=D.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=E.getMatchingTags(T);j&&(F=[j.openTagName,j.closeTagName])}}if(!F&&E.$mode.getMatching&&(F=E.$mode.getMatching(w.session)),!F){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var H="ace_bracket";Array.isArray(F)?F.length==1&&(H="ace_error_bracket"):F=[F],F.length==2&&(m.comparePoints(F[0].end,F[1].start)==0?F=[m.fromPoints(F[0].start,F[1].end)]:m.comparePoints(F[0].start,F[1].end)==0&&(F=[m.fromPoints(F[1].start,F[0].end)])),E.$bracketHighlight={ranges:F,markerIds:F.map(function(U){return E.addMarker(U,H,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},_.prototype.focus=function(){this.textInput.focus()},_.prototype.isFocused=function(){return this.textInput.isFocused()},_.prototype.blur=function(){this.textInput.blur()},_.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},_.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(w){var E=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,E),this._signal("change",w),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(w){var E=w.data;this.renderer.updateLines(E.first,E.last)},_.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},_.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},_.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},_.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),E;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(E=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(E=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(E=!1)),w.$highlightLineMarker&&!E)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&E){var T=new m(E.row,E.column,E.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else E&&(w.$highlightLineMarker.start.row=E.row,w.$highlightLineMarker.end.row=E.row,w.$highlightLineMarker.start.column=E.column,w._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(w){var E=this.session;if(E.$selectionMarker&&E.removeMarker(E.$selectionMarker),E.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();E.$selectionMarker=E.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},_.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,E=this.getSelectionRange();if(!(E.isEmpty()||E.isMultiLine())){var T=E.start.column,O=E.end.column,I=w.getLine(E.start.row),F=I.substring(T,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(T-1,O+1);if(D.test(W))return D}}},_.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},_.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},_.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},_.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},_.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},_.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},_.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},_.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},_.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},_.prototype.getCopyText=function(){var w=this.getSelectedText(),E=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;I<O.length;I++){var F=O[I];I&&O[I-1].start.row==F.start.row||(w+=this.session.getLine(F.start.row)+E)}}var D={text:w};return this._signal("copy",D),k.lineMode=T?D.text:!1,D.text},_.prototype.onCopy=function(){this.commands.exec("copy",this)},_.prototype.onCut=function(){this.commands.exec("cut",this)},_.prototype.onPaste=function(w,E){var T={text:w,event:E};this.commands.exec("paste",this,T)},_.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var E=w.text,T=E===k.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?O.insert({row:this.selection.lead.row,column:0},E):this.insert(E);else if(T)this.selection.rangeList.ranges.forEach(function(H){O.insert({row:H.start.row,column:0},E)});else{var I=E.split(/\r\n|\r|\n/),F=this.selection.rangeList.ranges,D=I.length==2&&(!I[0]||!I[1]);if(I.length!=F.length||D)return this.commands.exec("insertstring",this,E);for(var W=F.length;W--;){var j=F[W];j.isEmpty()||O.remove(j),O.insert(j.start,I[W])}}},_.prototype.execCommand=function(w,E){return this.commands.exec(w,this,E)},_.prototype.insert=function(w,E){var T=this.session,O=T.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!E){var F=O.transformAction(T.getState(I.row),"insertion",this,T,w);F&&(w!==F.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),w=F.text)}if(w==" "&&(w=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&w.indexOf(`
1009
- `)==-1){var D=new m.fromPoints(I,I);D.end.column+=w.length,this.session.remove(D)}}else{var D=this.getSelectionRange();I=this.session.remove(D),this.clearSelection()}if(w==`
1010
- `||w==`\r
1011
- `){var U=T.getLine(I.row);if(I.column>U.search(/\S|$/)){var W=U.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var j=I.column,H=T.getState(I.row),U=T.getLine(I.row),K=O.checkOutdent(H,U,w);if(T.insert(I,w),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+F.selection[0],I.row,j+F.selection[1])):this.selection.setSelectionRange(new m(I.row+F.selection[0],F.selection[1],I.row+F.selection[2],F.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var Z=O.getNextLineIndent(H,U.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},Z)}K&&O.autoOutdent(H,T,I.row)}},_.prototype.autoIndent=function(){var w=this.session,E=w.getMode(),T,O;if(this.selection.isEmpty())T=0,O=w.doc.getLength()-1;else{var I=this.getSelectionRange();T=I.start.row,O=I.end.row}for(var F="",D="",W="",j,H,U,K=w.getTabString(),Z=T;Z<=O;Z++)Z>0&&(F=w.getState(Z-1),D=w.getLine(Z-1),W=E.getNextLineIndent(F,D,K)),j=w.getLine(Z),H=E.$getIndent(j),W!==H&&(H.length>0&&(U=new m(Z,0,Z,H.length),w.remove(U)),W.length>0&&w.insert({row:Z,column:0},W)),E.autoOutdent(F,w,Z)},_.prototype.onTextInput=function(w,E){if(!E)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,E);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},_.prototype.applyComposition=function(w,E){if(E.extendLeft||E.extendRight){var T=this.selection.getRange();T.start.column-=E.extendLeft,T.end.column+=E.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!w&&!T.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),E.restoreStart||E.restoreEnd){var T=this.selection.getRange();T.start.column-=E.restoreStart,T.end.column-=E.restoreEnd,this.selection.setRange(T)}},_.prototype.onCommandKey=function(w,E,T){return this.keyBinding.onCommandKey(w,E,T)},_.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var E=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(E.start.row),I=T.getMode().transformAction(O,"deletion",this,T,E);if(E.end.column===0){var F=T.getTextRange(E);if(F[F.length-1]==`
1012
- `){var D=T.getLine(E.end.row);/^\s+$/.test(D)&&(E.end.column=D.length)}}I&&(E=I)}this.session.remove(E),this.clearSelection()},_.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var 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()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
1013
- `),this.moveCursorToPosition(w)},_.prototype.setGhostText=function(w,E){this.session.widgetManager||(this.session.widgetManager=new $(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,E)},_.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),E=w.column;if(E!==0){var T=this.session.getLine(w.row),O,I;E<T.length?(O=T.charAt(E)+T.charAt(E-1),I=new m(w.row,E-1,w.row,E+1)):(O=T.charAt(E-1)+T.charAt(E-2),I=new m(w.row,E-2,w.row,E)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},_.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),T=this.session.getTextRange(E);this.session.replace(E,T.toLowerCase()),this.selection.setSelectionRange(w)},_.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),T=this.session.getTextRange(E);this.session.replace(E,T.toUpperCase()),this.selection.setSelectionRange(w)},_.prototype.indent=function(){var w=this.session,E=this.getSelectionRange();if(E.start.row<E.end.row){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}else if(E.start.column<E.end.column){var O=w.getTextRange(E);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();w.indentRows(T.first,T.last," ");return}}var I=w.getLine(E.start.row),F=E.start,D=w.getTabSize(),W=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var j=D-W%D,H=s.stringRepeat(" ",j);else{for(var j=W%D;I[E.start.column-1]==" "&&j;)E.start.column--,j--;this.selection.setSelectionRange(E),H=" "}return this.insert(H)},_.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},_.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},_.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),E=this.session,T=[],O=w.first;O<=w.last;O++)T.push(E.getLine(O));T.sort(function(D,W){return D.toLowerCase()<W.toLowerCase()?-1:D.toLowerCase()>W.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var F=E.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,E.replace(I,T[O-w.first])}},_.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),E=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,E.first,E.last)},_.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),E=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,T,w)},_.prototype.getNumberAt=function(w,E){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex<E;){var I=T.exec(O);if(I.index<=E&&I.index+I[0].length>=E){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},_.prototype.modifyNumber=function(w){var E=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(E,T-1,E,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(E,T);if(F){var D=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-D,j=parseFloat(F.value);j*=Math.pow(10,W),D!==F.end&&T<D?w*=Math.pow(10,F.end-T-1):w*=Math.pow(10,F.end-T),j+=w,j/=Math.pow(10,W);var H=j.toFixed(W),U=new m(E,F.start,E,F.end);this.session.replace(U,H),this.moveCursorTo(E,Math.max(F.start+1,T+H.length-F.value.length))}}else this.toggleWord()},_.prototype.toggleWord=function(){var w=this.selection.getCursor().row,E=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),F=E-O-1;F<0&&(F=0);var D=0,W=0,j=this;T.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,P){W=D+ee.length,F>=D&&F<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(w,D+O),j.selection.selectTo(w,W+O)),D=W});for(var H=this.$toggleWordPairs,U,K=0;K<H.length;K++)for(var Z=H[K],z=0;z<=1;z++){var X=+!z,Y=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(Z[z])+")\\s?$","i"));if(Y){var V=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Y[1])+")($|\\s)","g"));V&&(U=T.replace(new RegExp(s.escapeRegExp(Z[z]),"i"),function(ee){var P=Z[X];return ee.toUpperCase()==ee?P=P.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(P=P.substr(0,0)+Z[X].charAt(0).toUpperCase()+P.substr(1)),P}),this.insert(U),U="")}}},_.prototype.findLinkAt=function(w,E){var T,O,I=this.session.getLine(w),F=I.split(/((?:https?|ftp):\/\/[\S]+)/),D=E;D<0&&(D=0);var W=0,j=0,H;try{for(var U=u(F),K=U.next();!K.done;K=U.next()){var Z=K.value;if(j=W+Z.length,D>=W&&D<=j&&Z.match(/((?:https?|ftp):\/\/[\S]+)/)){H=Z.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(z){T={error:z}}finally{try{K&&!K.done&&(O=U.return)&&O.call(U)}finally{if(T)throw T.error}}return H},_.prototype.openLink=function(){var w=this.selection.getCursor(),E=this.findLinkAt(w.row,w.column);return E&&window.open(E,"_blank"),E!=null},_.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var w=this.selection,E=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;E.duplicateLines(I,I)}else{var F=O?T.start:T.end,D=E.insert(F,E.getTextRange(T),!1);T.start=F,T.end=D,w.setSelectionRange(T,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(w,E,T){return this.session.moveText(w,E,T)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(w,E){var T,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();T=this.$getSelectedRows(F),O=this.session.$moveLines(T.first,T.last,E?0:w),E&&w==-1&&(O=0),F.moveBy(O,0),I.fromOrientedRange(F)}else{var D=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,H=D.length,U=0;U<H;U++){var K=U;D[U].moveBy(W,0),T=this.$getSelectedRows(D[U]);for(var Z=T.first,z=T.last;++U<H;){j&&D[U].moveBy(j,0);var X=this.$getSelectedRows(D[U]);if(E&&X.first!=z)break;if(!E&&X.first>z+1)break;z=X.last}for(U--,W=this.session.$moveLines(Z,z,E?0:w),E&&w==-1&&(K=U+1);K<=U;)D[K].moveBy(W,0),K++;E||(W=0),j+=W}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},_.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},_.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},_.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(w,E){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);E===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):E===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=T.scrollTop;T.scrollBy(0,I*O.lineHeight),E!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(F)},_.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},_.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},_.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},_.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},_.prototype.scrollPageDown=function(){this.$moveByPage(1)},_.prototype.scrollPageUp=function(){this.$moveByPage(-1)},_.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},_.prototype.scrollToLine=function(w,E,T,O){this.renderer.scrollToLine(w,E,T,O)},_.prototype.centerSelection=function(){var w=this.getSelectionRange(),E={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(E,.5)},_.prototype.getCursorPosition=function(){return this.selection.getCursor()},_.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},_.prototype.getSelectionRange=function(){return this.selection.getRange()},_.prototype.selectAll=function(){this.selection.selectAll()},_.prototype.clearSelection=function(){this.selection.clearSelection()},_.prototype.moveCursorTo=function(w,E){this.selection.moveCursorTo(w,E)},_.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},_.prototype.jumpToMatching=function(w,E){var T=this.getCursorPosition(),O=new S(this.session,T.row,T.column),I=O.getCurrentToken(),F=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var D=I||O.stepForward();if(D){var W,j=!1,H={},U=T.column-D.start,K,Z={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;U<D.value.length&&!j;U++)if(Z[D.value[U]])switch(K=Z[D.value[U]]+"."+D.type.replace("rparen","lparen"),isNaN(H[K])&&(H[K]=0),D.value[U]){case"(":case"[":case"{":H[K]++;break;case")":case"]":case"}":H[K]--,H[K]===-1&&(W="bracket",j=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(H[D.value])&&(H[D.value]=0),I.value==="<"&&F>1?H[D.value]++:I.value==="</"&&H[D.value]--,H[D.value]===-1&&(W="tag",j=!0));j||(I=D,F++,D=O.stepForward(),U=0)}while(D&&!j);if(W){var z,X;if(W==="bracket")z=this.session.getBracketRange(T),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1),X=z.start,(E||X.row===T.row&&Math.abs(X.column-T.column)<2)&&(z=this.session.getBracketRange(X)));else if(W==="tag"){if(!D||D.type.indexOf("tag-name")===-1)return;if(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),z.compare(T.row,T.column)===0){var Y=this.session.getMatchingTags(T);Y&&(Y.openTag.contains(T.row,T.column)?(z=Y.closeTag,X=z.start):(z=Y.openTag,Y.closeTag.start.row===T.row&&Y.closeTag.start.column===T.column?X=z.end:X=z.start))}X=X||z.start}X=z&&z.cursor||X,X&&(w?z&&E?this.selection.setRange(z):z&&z.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},_.prototype.gotoLine=function(w,E,T){this.selection.clearSelection(),this.session.unfold({row:w-1,column:E||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(w-1,E||0),this.isRowFullyVisible(w-1)||this.scrollToLine(w-1,!0,T)},_.prototype.navigateTo=function(w,E){this.selection.moveTo(w,E)},_.prototype.navigateUp=function(w){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(-w||-1,0)},_.prototype.navigateDown=function(w){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(w||1,0)},_.prototype.navigateLeft=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorLeft();else{var E=this.getSelectionRange().start;this.moveCursorToPosition(E)}this.clearSelection()},_.prototype.navigateRight=function(w){if(this.selection.isEmpty())for(w=w||1;w--;)this.selection.moveCursorRight();else{var E=this.getSelectionRange().end;this.moveCursorToPosition(E)}this.clearSelection()},_.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},_.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},_.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},_.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},_.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},_.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},_.prototype.replace=function(w,E){E&&this.$search.set(E);var T=this.$search.find(this.session),O=0;return T&&(this.$tryReplace(T,w)&&(O=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),O},_.prototype.replaceAll=function(w,E){E&&this.$search.set(E);var T=this.$search.findAll(this.session),O=0;if(!T.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var F=T.length-1;F>=0;--F)this.$tryReplace(T[F],w)&&O++;return this.selection.setSelectionRange(I),O},_.prototype.$tryReplace=function(w,E){var T=this.session.getTextRange(w);return E=this.$search.replace(T,E),E!==null?(w.end=this.session.replace(w,E),w):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(w,E,T){E||(E={}),typeof w=="string"||w instanceof RegExp?E.needle=w:typeof w=="object"&&d.mixin(E,w);var O=this.selection.getRange();E.needle==null&&(w=this.session.getTextRange(O)||this.$search.$options.needle,w||(O=this.session.getWordRange(O.start.row,O.start.column),w=this.session.getTextRange(O)),this.$search.set({needle:w})),this.$search.set(E),E.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(E.preventScroll)return I;if(I)return this.revealRange(I,T),I;E.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},_.prototype.findNext=function(w,E){this.find({skipCurrent:!0,backwards:!1},w,E)},_.prototype.findPrevious=function(w,E){this.find(w,{skipCurrent:!0,backwards:!0},E)},_.prototype.revealRange=function(w,E){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),E!==!1&&this.renderer.animateScrolling(T)},_.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(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()},_.prototype.setAutoScrollEditorIntoView=function(w){if(w){var E,T=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var F=this.on("changeSelection",function(){O=!0}),D=this.renderer.on("beforeRender",function(){O&&(E=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&E&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,H=j.$cursorLayer.$pixelPos,U=j.layerConfig,K=H.top-U.offset;H.top>=0&&K+E.top<0?O=!0:H.top<U.height&&H.top+E.top+U.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(I.style.top=K+"px",I.style.left=H.left+"px",I.style.height=U.lineHeight+"px",I.scrollIntoView(O)),O=E=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",D))}}},_.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",E=this.renderer.$cursorLayer;E&&(E.setSmoothBlinking(/smooth/.test(w)),E.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(E.element,"ace_slim-cursors",/slim/.test(w)))},_.prototype.prompt=function(w,E,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,E,T)})},_}();y.$uid=0,y.prototype.curOp=null,y.prototype.prevOp={},y.prototype.$mergeableCommands=["backspace","del","insertstring"],y.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(y.prototype,v),C.defineOptions(y.prototype,"editor",{selectionStyle:{set:function(_){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:_})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(_){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(_){this.textInput.setReadOnly(_),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(_){this.textInput.setCopyWithEmptySelection(_)},initialValue:!1},cursorStyle:{set:function(_){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(_){this.setAutoScrollEditorIntoView(_)}},keyboardHandler:{set:function(_){this.setKeyboardHandler(_)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(_){this.session.setValue(_)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(_){this.setSession(_)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(_){this.renderer.$gutterLayer.setShowLineNumbers(_),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),_&&this.$relativeLineNumbers?A.attach(this):A.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(_){this.$showLineNumbers&&_?A.attach(this):A.detach(this)}},placeholder:{set:function(_){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 E=g.createElement("div");E.className="ace_placeholder",E.textContent=this.$placeholder||"",this.renderer.placeholderNode=E,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(_){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},E=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;_?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(h.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",R("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",R("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",E.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",R("editor")),this.renderer.$gutter.setAttribute("aria-label",R("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),T||(T=new L(this)),T.addListener()):(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",E.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),T&&T.removeListener())},initialValue:!1},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 A={getText:function(_,w){return(Math.abs(_.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(_,w,E){return Math.max(w.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(_,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(_){_.renderer.$gutterLayer.$renderer=this,_.on("changeSelection",this.update),this.update(null,_)},detach:function(_){_.renderer.$gutterLayer.$renderer==this&&(_.renderer.$gutterLayer.$renderer=null),_.off("changeSelection",this.update),this.update(null,_)}};i.Editor=y}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),d=function(){function g(s,h){this.element=s,this.canvasHeight=h||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(s){u.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(s,h){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,h,o){var r=h.firstRowScreen*h.lineHeight,l=Math.floor(r/this.canvasHeight),c=o.documentToScreenRow(s,0)*h.lineHeight;return c-l*this.canvasHeight},g.prototype.computeLineHeight=function(s,h,o){return h.lineHeight*o.getRowLineCount(s)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(s){return this.cells[s]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.appendChild(h)}else this.cells.push(s),this.element.appendChild(s.element)},g.prototype.unshift=function(s){if(Array.isArray(s)){this.cells.unshift.apply(this.cells,s);for(var h=u.createFragment(this.element),o=0;o<s.length;o++)h.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(h,this.element.firstChild):this.element.appendChild(h)}else this.cells.unshift(s),this.element.insertAdjacentElement("afterbegin",s.element)},g.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},g.prototype.$cacheCell=function(s){s&&(s.element.remove(),this.cellCache.push(s))},g.prototype.createCell=function(s,h,o,r){var l=this.cellCache.pop();if(!l){var c=u.createElement("div");r&&r(c),this.element.appendChild(c),l={element:c,text:"",row:s}}return l.row=s,l},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,p){var u=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,h=n("./lines").Lines,o=n("../config").nls,r=function(){function c(a){this.element=u.createElement("div"),this.element.className="ace_layer ace_gutter-layer",a.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new h(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(a){this.session&&this.session.off("change",this.$updateAnnotations),this.session=a,a&&a.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(a,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(a,f)},c.prototype.removeGutterDecoration=function(a,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(a,f)},c.prototype.setAnnotations=function(a){this.$annotations=[];for(var f=0;f<a.length;f++){var m=a[f],v=m.row,b=this.$annotations[v];b||(b=this.$annotations[v]={text:[],type:[]});var x=m.text,C=m.type;x=x?g.escapeHTML(x):m.html||"",b.text.indexOf(x)===-1&&(b.text.push(x),b.type.push(C));var S=m.className;S?b.className=S:C=="error"?b.className=" ace_error":C=="warning"&&b.className!=" ace_error"?b.className=" ace_warning":C=="info"&&!b.className&&(b.className=" ace_info")}},c.prototype.$updateAnnotations=function(a){if(this.$annotations.length){var f=a.start.row,m=a.end.row-f;if(m!==0)if(a.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)}}},c.prototype.update=function(a){this.config=a;var f=this.session,m=a.firstRow,v=Math.min(a.lastRow+a.gutterOffset,f.getLength()-1);this.oldLastRow=v,this.config=a,this.$lines.moveContainer(a),this.$updateCursorRow();for(var b=f.getNextFoldLine(m),x=b?b.start.row:1/0,C=null,S=-1,$=m;;){if($>x&&($=b.end.row+1,b=f.getNextFoldLine($,b),x=b?b.start.row:1/0),$>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}C=this.$lines.get(++S),C?C.row=$:(C=this.$lines.createCell($,a,this.session,l),this.$lines.push(C)),this.$renderCell(C,a,b,$),$++}this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$updateGutterWidth=function(a){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(b=f.getLength()+v-1);var x=m?m.getWidth(f,b,a):b.toString().length*a.characterWidth,C=this.$padding||this.$computePadding();x+=C.left+C.right,x!==this.gutterWidth&&!isNaN(x)&&(this.gutterWidth=x,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",x))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var a=this.session.selection.getCursor();this.$cursorRow!==a.row&&(this.$cursorRow=a.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var a=this.session.selection.cursor.row;if(this.$cursorRow=a,!(this.$cursorCell&&this.$cursorCell.row==a)){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 b=this.session.getFoldLine(this.$cursorRow);if(m>0&&b&&b.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}}}}},c.prototype.scrollLines=function(a){var f=this.config;if(this.config=a,this.$updateCursorRow(),this.$lines.pageChanged(f,a))return this.update(a);this.$lines.moveContainer(a);var m=Math.min(a.lastRow+a.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v<a.firstRow)return this.update(a);if(m<f.firstRow)return this.update(a);if(f.firstRow<a.firstRow)for(var b=this.session.getFoldedRowCount(f.firstRow,a.firstRow-1);b>0;b--)this.$lines.shift();if(v>m)for(var b=this.session.getFoldedRowCount(m+1,v);b>0;b--)this.$lines.pop();a.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(a,a.firstRow,f.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(a,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$renderLines=function(a,f,m){for(var v=[],b=f,x=this.session.getNextFoldLine(b),C=x?x.start.row:1/0;b>C&&(b=x.end.row+1,x=this.session.getNextFoldLine(b,x),C=x?x.start.row:1/0),!(b>m);){var S=this.$lines.createCell(b,a,this.session,l);this.$renderCell(S,a,x,b),v.push(S),b++}return v},c.prototype.$renderCell=function(a,f,m,v){var b=a.element,x=this.session,C=b.childNodes[0],S=b.childNodes[1],$=b.childNodes[2],L=$.firstChild,R=x.$firstLineNumber,k=x.$breakpoints,M=x.$decorations,y=x.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&x.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",E=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(y?y.getText(x,v):v+R).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=_&&this.$cursorRow<=m.end.row)&&(E+="ace_gutter-active-line ",this.$cursorCell!=a&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=a)),k[v]&&(E+=k[v]),M[v]&&(E+=M[v]),this.$annotations[v]&&v!==_&&(E+=this.$annotations[v].className),A){var I=A[v];I==null&&(I=A[v]=x.getFoldWidget(v))}if(I){var F="ace_fold-widget ace_"+I,D=I=="start"&&v==_&&v<m.end.row;if(D){F+=" ace_closed";for(var W="",j=!1,H=v+1;H<=m.end.row;H++)if(this.$annotations[H]){if(this.$annotations[H].className===" ace_error"){j=!0,W=" ace_error_fold";break}if(this.$annotations[H].className===" ace_warning"){j=!0,W=" ace_warning_fold";continue}}E+=W}else F+=" ace_open";S.className!=F&&(S.className=F),u.setStyle(S.style,"height",w),u.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var U=x.getFoldWidgetRange(v);U?S.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[U.start.row+1,U.end.row+1])):m?S.setAttribute("aria-label",o("Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):S.setAttribute("aria-label",o("Toggle code folding, row $0",[v+1])),D?(S.setAttribute("aria-expanded","false"),S.setAttribute("title",o("Unfold code"))):(S.setAttribute("aria-expanded","true"),S.setAttribute("title",o("Fold code")))}else S&&(u.setStyle(S.style,"display","none"),S.setAttribute("tabindex","0"),S.removeAttribute("role"),S.removeAttribute("aria-label"));return j&&this.$showFoldedAnnotations?($.className="ace_gutter_annotation",L.className=T,L.className+=W,u.setStyle(L.style,"height",w),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",w),$.setAttribute("aria-label",o("Read annotations row $0",[O])),$.setAttribute("tabindex","-1"),$.setAttribute("role","button")):this.$annotations[v]?($.className="ace_gutter_annotation",L.className=T,this.$useSvgGutterIcons?L.className+=this.$annotations[v].className:b.classList.add(this.$annotations[v].className.replace(" ","")),u.setStyle(L.style,"height",w),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",w),$.setAttribute("aria-label",o("Read annotations row $0",[O])),$.setAttribute("tabindex","-1"),$.setAttribute("role","button")):(u.setStyle($.style,"display","none"),$.removeAttribute("aria-label"),$.removeAttribute("role"),$.setAttribute("tabindex","0")),O!==C.data&&(C.data=O),b.className!=E&&(b.className=E),u.setStyle(a.element.style,"height",this.$lines.computeLineHeight(v,f,x)+"px"),u.setStyle(a.element.style,"top",this.$lines.computeLineTop(v,f,x)+"px"),a.text=O,$.style.display==="none"&&S.style.display==="none"?a.element.setAttribute("aria-hidden",!0):a.element.setAttribute("aria-hidden",!1),a},c.prototype.setHighlightGutterLine=function(a){this.$highlightGutterLine=a},c.prototype.setShowLineNumbers=function(a){this.$renderer=!a&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(a){a?u.addCssClass(this.element,"ace_folding-enabled"):u.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=a,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var a=u.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(a.borderLeftWidth)||0)+(parseInt(a.paddingLeft)||0)+1,this.$padding.right=(parseInt(a.borderRightWidth)||0)+(parseInt(a.paddingRight)||0),this.$padding},c.prototype.getRegion=function(a){var f=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(a.x<f.left+m.left)return"markers";if(this.$showFoldWidgets&&a.x>m.right-f.right)return"foldWidgets"},c}();r.prototype.$fixedWidth=!1,r.prototype.$highlightGutterLine=!0,r.prototype.$renderer="",r.prototype.$showLineNumbers=!0,r.prototype.$showFoldWidgets=!0,d.implement(r.prototype,s);function l(c){var a=document.createTextNode("");c.appendChild(a);var f=u.createElement("span");c.appendChild(f);var m=u.createElement("span");c.appendChild(m);var v=u.createElement("span");return m.appendChild(v),c}i.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,p){var u=n("../range").Range,d=n("../lib/dom"),g=function(){function h(o){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return h.prototype.setPadding=function(o){this.$padding=o},h.prototype.setSession=function(o){this.session=o},h.prototype.setMarkers=function(o){this.markers=o},h.prototype.elt=function(o,r){var l=this.i!=-1&&this.element.childNodes[this.i];l?this.i++:(l=document.createElement("div"),this.element.appendChild(l),this.i=-1),l.style.cssText=r,l.className=o},h.prototype.update=function(o){if(o){this.config=o,this.i=0;var r;for(var l in this.markers){var c=this.markers[l];if(!c.range){c.update(r,this,this.session,o);continue}var a=c.range.clipRows(o.firstRow,o.lastRow);if(!a.isEmpty())if(a=a.toScreenRange(this.session),c.renderer){var f=this.$getTop(a.start.row,o),m=this.$padding+a.start.column*o.characterWidth;c.renderer(r,a,m,f,o)}else c.type=="fullLine"?this.drawFullLineMarker(r,a,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(r,a,c.clazz,o):a.isMultiLine()?c.type=="text"?this.drawTextMarker(r,a,c.clazz,o):this.drawMultiLineMarker(r,a,c.clazz,o):this.drawSingleLineMarker(r,a,c.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},h.prototype.$getTop=function(o,r){return(o-r.firstRowScreen)*r.lineHeight},h.prototype.drawTextMarker=function(o,r,l,c,a){for(var f=this.session,m=r.start.row,v=r.end.row,b=m,x=0,C=0,S=f.getScreenLastRowColumn(b),$=new u(b,r.start.column,b,C);b<=v;b++)$.start.row=$.end.row=b,$.start.column=b==m?r.start.column:f.getRowWrapIndent(b),$.end.column=S,x=C,C=S,S=b+1<v?f.getScreenLastRowColumn(b+1):b==v?0:r.end.column,this.drawSingleLineMarker(o,$,l+(b==m?" ace_start":"")+" ace_br"+s(b==m||b==m+1&&r.start.column,x<C,C>S,b==v),c,b==v?0:1,a)},h.prototype.drawMultiLineMarker=function(o,r,l,c,a){var f=this.$padding,m=c.lineHeight,v=this.$getTop(r.start.row,c),b=f+r.start.column*c.characterWidth;if(a=a||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var x=r.clone();x.end.row=x.start.row,x.end.column=this.session.getLine(x.start.row).length,this.drawBidiSingleLineMarker(o,x,l+" ace_br1 ace_start",c,null,a)}else this.elt(l+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+b+"px;"+(a||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var x=r.clone();x.start.row=x.end.row,x.start.column=0,this.drawBidiSingleLineMarker(o,x,l+" ace_br12",c,null,a)}else{v=this.$getTop(r.end.row,c);var C=r.end.column*c.characterWidth;this.elt(l+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+f+"px;"+(a||""))}if(m=(r.end.row-r.start.row-1)*c.lineHeight,!(m<=0)){v=this.$getTop(r.start.row+1,c);var S=(r.start.column?1:0)|(r.end.column?0:8);this.elt(l+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+f+"px;"+(a||""))}},h.prototype.drawSingleLineMarker=function(o,r,l,c,a,f){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(o,r,l,c,a,f);var m=c.lineHeight,v=(r.end.column+(a||0)-r.start.column)*c.characterWidth,b=this.$getTop(r.start.row,c),x=this.$padding+r.start.column*c.characterWidth;this.elt(l,"height:"+m+"px;width:"+v+"px;top:"+b+"px;left:"+x+"px;"+(f||""))},h.prototype.drawBidiSingleLineMarker=function(o,r,l,c,a,f){var m=c.lineHeight,v=this.$getTop(r.start.row,c),b=this.$padding,x=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);x.forEach(function(C){this.elt(l,"height:"+m+"px;width:"+(C.width+(a||0))+"px;top:"+v+"px;left:"+(b+C.left)+"px;"+(f||""))},this)},h.prototype.drawFullLineMarker=function(o,r,l,c,a){var f=this.$getTop(r.start.row,c),m=c.lineHeight;r.start.row!=r.end.row&&(m+=this.$getTop(r.end.row,c)-f),this.elt(l,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(a||""))},h.prototype.drawScreenLineMarker=function(o,r,l,c,a){var f=this.$getTop(r.start.row,c),m=c.lineHeight;this.elt(l,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(a||""))},h}();g.prototype.$padding=0;function s(h,o,r,l){return(h?1:0)|(o?2:0)|(r?4:0)|(l?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,p){var u=new Set(["text","rparen","lparen"]);i.isTextToken=function(d){return u.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,p){var u=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,r=n("./text_util").isTextToken,l=function(){function c(a){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",a.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var a=this.session.doc,f=a.getNewLineCharacter()==`
1014
- `&&a.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},c.prototype.setPadding=function(a){this.$padding=a,this.element.style.margin="0 "+a+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(a){this.$fontMetrics=a,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(a){this.session=a,a&&this.$computeTabString()},c.prototype.setShowInvisibles=function(a){return this.showInvisibles==a?!1:(this.showInvisibles=a,typeof a=="string"?(this.showSpaces=/tab/i.test(a),this.showTabs=/space/i.test(a),this.showEOL=/eol/i.test(a)):this.showSpaces=this.showTabs=this.showEOL=a,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(a){return this.displayIndentGuides==a?!1:(this.displayIndentGuides=a,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(a){return this.$highlightIndentGuides===a?!1:(this.$highlightIndentGuides=a,a)},c.prototype.$computeTabString=function(){var a=this.session.getTabSize();this.tabSize=a;for(var f=this.$tabStrings=[0],m=1;m<a+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 b="ace_indent-guide",x=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),S=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):C,v=this.dom.createElement("span");v.className=b+x,v.textContent=C,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=b+S,v.textContent=$,this.$tabStrings[" "]=v}},c.prototype.updateLines=function(a,f,m){if(this.config.lastRow!=a.lastRow||this.config.firstRow!=a.firstRow)return this.update(a);this.config=a;for(var v=Math.max(f,a.firstRow),b=Math.min(m,a.lastRow),x=this.element.childNodes,C=0,$=a.firstRow;$<v;$++){var L=this.session.getFoldLine($);if(L)if(L.containsRow(v)){v=L.start.row;break}else $=L.end.row;C++}for(var S=!1,$=v,L=this.session.getNextFoldLine($),R=L?L.start.row:1/0;$>R&&($=L.end.row+1,L=this.session.getNextFoldLine($,L),R=L?L.start.row:1/0),!($>b);){var k=x[C++];if(k){this.dom.removeChildren(k),this.$renderLine(k,$,$==R?L:!1),S&&(k.style.top=this.$lines.computeLineTop($,a,this.session)+"px");var M=a.lineHeight*this.session.getRowLength($)+"px";k.style.height!=M&&(S=!0,k.style.height=M)}$++}if(S)for(;C<this.$lines.cells.length;){var y=this.$lines.cells[C++];y.element.style.top=this.$lines.computeLineTop(y.row,a,this.session)+"px"}},c.prototype.scrollLines=function(a){var f=this.config;if(this.config=a,this.$lines.pageChanged(f,a))return this.update(a);this.$lines.moveContainer(a);var m=a.lastRow,v=f?f.lastRow:-1;if(!f||v<a.firstRow)return this.update(a);if(m<f.firstRow)return this.update(a);if(!f||f.lastRow<a.firstRow)return this.update(a);if(a.lastRow<f.firstRow)return this.update(a);if(f.firstRow<a.firstRow)for(var b=this.session.getFoldedRowCount(f.firstRow,a.firstRow-1);b>0;b--)this.$lines.shift();if(f.lastRow>a.lastRow)for(var b=this.session.getFoldedRowCount(a.lastRow+1,f.lastRow);b>0;b--)this.$lines.pop();a.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(a,a.firstRow,f.firstRow-1)),a.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(a,f.lastRow+1,a.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(a,f,m){for(var v=[],b=f,x=this.session.getNextFoldLine(b),C=x?x.start.row:1/0;b>C&&(b=x.end.row+1,x=this.session.getNextFoldLine(b,x),C=x?x.start.row:1/0),!(b>m);){var S=this.$lines.createCell(b,a,this.session),$=S.element;this.dom.removeChildren($),d.setStyle($.style,"height",this.$lines.computeLineHeight(b,a,this.session)+"px"),d.setStyle($.style,"top",this.$lines.computeLineTop(b,a,this.session)+"px"),this.$renderLine($,b,b==C?x:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",v.push(S),b++}return v},c.prototype.update=function(a){this.$lines.moveContainer(a),this.config=a;for(var f=a.firstRow,m=a.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(a,f,m))},c.prototype.$renderToken=function(a,f,m,v){for(var b=this,x=/(\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,C=this.dom.createFragment(this.element),S,$=0;S=x.exec(v);){var L=S[1],R=S[2],k=S[3],M=S[4],y=S[5];if(!(!b.showSpaces&&R)){var A=$!=S.index?v.slice($,S.index):"";if($=S.index+S[0].length,A&&C.appendChild(this.dom.createTextNode(A,this.element)),L){var _=b.session.getScreenTabSize(f+S.index);C.appendChild(b.$tabStrings[_].cloneNode(!0)),f+=_-1}else if(R)if(b.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(b.SPACE_CHAR,R.length),C.appendChild(w)}else C.appendChild(this.dom.createTextNode(R,this.element));else if(k){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(b.SPACE_CHAR,k.length),C.appendChild(w)}else if(M){f+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=b.showSpaces?b.SPACE_CHAR:M,C.appendChild(w)}else if(y){f+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=y,C.appendChild(w)}}}if(C.appendChild(this.dom.createTextNode($?v.slice($):v,this.element)),r(m.type))a.appendChild(C);else{var E="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",o("Unfold code"))),w.className=E,w.appendChild(C),a.appendChild(w)}return f+v.length},c.prototype.renderIndentGuide=function(a,f,m){var v=f.search(this.$indentGuideRe);if(v<=0||v>=m)return f;if(f[0]==" "){v-=v%this.tabSize;for(var b=v/this.tabSize,x=0;x<b;x++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var x=0;x<v;x++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}return this.$highlightIndentGuide(),f},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var a=this.session.doc.$lines;if(a){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 b=this.session.$bracketHighlight;if(b){for(var x=this.session.$bracketHighlight.ranges,C=0;C<x.length;C++)if(f.row!==x[C].start.row){this.$highlightIndentGuideMarker.end=x[C].start.row,f.row>x[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&a[f.row]!==""&&f.column===a[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=f.row+1;C<a.length;C++){var S=a[C],$=/^\s*/.exec(S)[0].length;if(S!==""&&(this.$highlightIndentGuideMarker.end=C,$<=m))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var a=this.$lines.cells,f=0;f<a.length;f++){var m=a[f],v=m.element.childNodes;if(v.length>0){for(var b=0;b<v.length;b++)if(v[b].classList&&v[b].classList.contains("ace_indent-guide-active")){v[b].classList.remove("ace_indent-guide-active");break}}}},c.prototype.$setIndentGuideActive=function(a,f){var m=this.session.doc.getLine(a.row);if(m!==""){var v=a.element.childNodes;if(v){var b=v[f-1];b&&b.classList&&b.classList.contains("ace_indent-guide")&&b.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var a=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<a.length;m++){var v=a[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=a.length-1;m>=0;m--){var v=a[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}}},c.prototype.$createLineElement=function(a){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},c.prototype.$renderWrappedLine=function(a,f,m){var v=0,b=0,x=m[0],C=0,S=this.$createLineElement();a.appendChild(S);for(var $=0;$<f.length;$++){var L=f[$],R=L.value;if($==0&&this.displayIndentGuides){if(v=R.length,R=this.renderIndentGuide(S,R,x),!R)continue;v-=R.length}if(v+R.length<x)C=this.$renderToken(S,C,L,R),v+=R.length;else{for(;v+R.length>=x;)C=this.$renderToken(S,C,L,R.substring(0,x-v)),R=R.substring(x-v),v=x,S=this.$createLineElement(),a.appendChild(S),S.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),b++,C=0,x=m[b]||Number.MAX_VALUE;R.length!=0&&(v+=R.length,C=this.$renderToken(S,C,L,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,C,null,"",!0)},c.prototype.$renderSimpleLine=function(a,f){for(var m=0,v=0;v<f.length;v++){var b=f[v],x=b.value;if(!(v==0&&this.displayIndentGuides&&(x=this.renderIndentGuide(a,x),!x))){if(m+x.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(a,m,b,x);m=this.$renderToken(a,m,b,x)}}},c.prototype.$renderOverflowMessage=function(a,f,m,v,b){m&&this.$renderToken(a,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var x=this.dom.createElement("span");x.className="ace_inline_button ace_keyword ace_toggle_wrap",x.textContent=b?"<hide>":"<click to see more...>",a.appendChild(x)},c.prototype.$renderLine=function(a,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 b=a;if(v.length){var x=this.session.getRowSplitData(f);if(x&&x.length){this.$renderWrappedLine(a,v,x);var b=a.lastChild}else{var b=a;this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b)),this.$renderSimpleLine(b,v)}}else this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b));if(this.showEOL&&b){m&&(f=m.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild(C)}},c.prototype.$getFoldLineTokens=function(a,f){var m=this.session,v=[];function b(C,S,$){for(var L=0,R=0;R+C[L].value.length<S;)if(R+=C[L].value.length,L++,L==C.length)return;if(R!=S){var k=C[L].value.substring(S-R);k.length>$-S&&(k=k.substring(0,$-S)),v.push({type:C[L].type,value:k}),R=S+k.length,L+=1}for(;R<$&&L<C.length;){var k=C[L].value;k.length+R>$?v.push({type:C[L].type,value:k.substring(0,$-R)}):v.push(C[L]),R+=k.length,L+=1}}var x=m.getTokens(a);return f.walk(function(C,S,$,L,R){C!=null?v.push({type:"fold",value:C}):(R&&(x=m.getTokens(S)),x.length&&b(x,L,$))},f.end.row,this.session.getLine(f.end.row).length),v},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();l.prototype.EOF_CHAR="¶",l.prototype.EOL_CHAR_LF="¬",l.prototype.EOL_CHAR_CRLF="¤",l.prototype.EOL_CHAR=l.prototype.EOL_CHAR_LF,l.prototype.TAB_CHAR="—",l.prototype.SPACE_CHAR="·",l.prototype.$padding=0,l.prototype.MAX_LINE_LENGTH=1e4,l.prototype.showInvisibles=!1,l.prototype.showSpaces=!1,l.prototype.showTabs=!1,l.prototype.showEOL=!1,l.prototype.displayIndentGuides=!0,l.prototype.$highlightIndentGuides=!0,l.prototype.$tabStrings=[],l.prototype.destroy={},l.prototype.onChangeTabSize=l.prototype.$computeTabString,u.implement(l.prototype,h),i.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),d=function(){function g(s){this.element=u.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),u.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(s){for(var h=this.cursors,o=h.length;o--;)u.setStyle(h[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,h=s.length;h--;)s[h].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&u.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,u.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},g.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},g.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,u.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var s=u.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},g.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},g.prototype.hideCursor=function(){this.isVisible=!1,u.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,u.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,u.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&u.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),u.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var h=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),h()},this.blinkInterval),h()}},g.prototype.getPixelPosition=function(s,h){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(s),r=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),l=(o.row-(h?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:l}},g.prototype.isCursorInView=function(s,h){return s.top>=0&&s.top<h.maxHeight},g.prototype.update=function(s){this.config=s;var h=this.session.$selectionMarkers,o=0,r=0;(h===void 0||h.length===0)&&(h=[{cursor:null}]);for(var o=0,l=h.length;o<l;o++){var c=this.getPixelPosition(h[o].cursor,!0);if(!((c.top>s.height+s.offset||c.top<0)&&o>1)){var a=this.cursors[r++]||this.addCursor(),f=a.style;this.drawCursor?this.drawCursor(a,c,s,h[o],this.session):this.isCursorInView(c,s)?(u.setStyle(f,"display","block"),u.translate(a,c.left,c.top),u.setStyle(f,"width",Math.round(s.characterWidth)+"px"),u.setStyle(f,"height",s.lineHeight+"px")):u.setStyle(f,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=c,this.restartTimer()},g.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?u.addCssClass(this.element,"ace_overwrite-cursors"):u.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,p){var u=this&&this.__extends||function(){var a=function(f,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(v[x]=b[x])},a(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");a(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"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter,o=32768,r=function(){function a(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,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return a.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},a}();d.implement(r.prototype,h);var l=function(a){u(f,a);function f(m,v){var b=a.call(this,m,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,v.$scrollbarWidth=b.width=g.scrollbarWidth(m.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>o?(this.coeff=o/m,m=o):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(r);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(a){u(f,a);function f(m,v){var b=a.call(this,m,"-h")||this;return b.scrollLeft=0,b.height=v.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}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=l,i.ScrollBarV=l,i.ScrollBarH=c,i.VScrollBar=l,i.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var c=function(a,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},c(a,f)};return function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(a,f);function m(){this.constructor=a}a.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
1015
- position: absolute;
1016
- background: rgba(128, 128, 128, 0.6);
1017
- -moz-box-sizing: border-box;
1018
- box-sizing: border-box;
1019
- border: 1px solid #bbb;
1020
- border-radius: 2px;
1021
- z-index: 8;
1022
- }
1023
- .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
1024
- position: absolute;
1025
- z-index: 6;
1026
- background: none;
1027
- overflow: hidden!important;
1028
- }
1029
- .ace_editor>.ace_sb-v {
1030
- z-index: 6;
1031
- right: 0;
1032
- top: 0;
1033
- width: 12px;
1034
- }
1035
- .ace_editor>.ace_sb-v div {
1036
- z-index: 8;
1037
- right: 0;
1038
- width: 100%;
1039
- }
1040
- .ace_editor>.ace_sb-h {
1041
- bottom: 0;
1042
- left: 0;
1043
- height: 12px;
1044
- }
1045
- .ace_editor>.ace_sb-h div {
1046
- bottom: 0;
1047
- height: 100%;
1048
- }
1049
- .ace_editor>.ace_sb_grabbed {
1050
- z-index: 8;
1051
- background: #000;
1052
- }`,"ace_scrollbar.css",!1);var o=function(){function c(a,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,a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},c}();d.implement(o.prototype,h);var r=function(c){u(a,c);function a(f,m){var v=c.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 a.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,b=m.clientY,x=function(M){b=M.clientY},C=function(){clearInterval(R)},S=m.clientY,$=this.thumbTop,L=function(){if(b!==void 0){var M=v.scrollTopFromThumbTop($+b-S);M!==v.scrollTop&&v._emit("scroll",{data:M})}};s.capture(this.inner,x,C);var R=setInterval(L,20);return s.preventDefault(m)}var k=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.height},a.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},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.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})))},a.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"},a}(o);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var l=function(c){u(a,c);function a(f,m){var v=c.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 a.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,b=m.clientX,x=function(M){b=M.clientX},C=function(){clearInterval(R)},S=m.clientX,$=this.thumbLeft,L=function(){if(b!==void 0){var M=v.scrollLeftFromThumbLeft($+b-S);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};s.capture(this.inner,x,C);var R=setInterval(L,20);return s.preventDefault(m)}var k=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.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},a.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)},a.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})))},a.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"},a}(o);l.prototype.setInnerWidth=l.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=l,i.VScrollBar=r,i.HScrollBar=l}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,p){var u=n("./lib/event"),d=function(){function g(s,h){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var o=this;this._flush=function(r){o.pending=!1;var l=o.changes;if(l&&(u.blockIdle(100),o.changes=0,o.onRender(l)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return g.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(u.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(s){var h=this.changes;return this.changes=0,h},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,p){var u=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),h=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,r=512,l=typeof ResizeObserver=="function",c=200,a=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},l?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",h.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=s.onIdle(function v(){m.checkForSizeChanges(),s.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:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var m=function(v,b){return["div",{style:"position: absolute;top:"+v+"px;left:"+b+"px;"}]};this.els=d.buildDom([m(0,0),m(c,0),m(0,c),m(c,c)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var b=this.$getZoom(this.el);m=$(1/b,m)}function x(D,W,j){var H=D[1]*W[0]-D[0]*W[1];return[(-W[1]*j[0]+W[0]*j[1])/H,(+D[1]*j[0]-D[0]*j[1])/H]}function C(D,W){return[D[0]-W[0],D[1]-W[1]]}function S(D,W){return[D[0]+W[0],D[1]+W[1]]}function $(D,W){return[D*W[0],D*W[1]]}this.els||this.$initTransformMeasureNodes();function L(D){var W=D.getBoundingClientRect();return[W.left,W.top]}var R=L(this.els[0]),k=L(this.els[1]),M=L(this.els[2]),y=L(this.els[3]),A=x(C(y,k),C(y,M),C(S(k,M),S(y,R))),_=$(1+A[0],C(k,R)),w=$(1+A[1],C(M,R));if(v){var E=v,T=A[0]*E[0]/c+A[1]*E[1]/c+1,O=S($(E[0],_),$(E[1],w));return S($(1/T/c,O),R)}var I=C(m,R),F=x(C(_,$(A[0],I)),C(w,$(A[1],I)),I);return $(c,F)},f}();a.prototype.$characterSize={width:0,height:0},u.implement(a.prototype,o),i.FontMetrics=a}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,p){p.exports=`
1053
- .ace_br1 {border-top-left-radius : 3px;}
1054
- .ace_br2 {border-top-right-radius : 3px;}
1055
- .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
1056
- .ace_br4 {border-bottom-right-radius: 3px;}
1057
- .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
1058
- .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
1059
- .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
1060
- .ace_br8 {border-bottom-left-radius : 3px;}
1061
- .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
1062
- .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
1063
- .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
1064
- .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1065
- .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1066
- .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1067
- .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
1068
-
1069
-
1070
- .ace_editor {
1071
- position: relative;
1072
- overflow: hidden;
1073
- padding: 0;
1074
- font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
1075
- direction: ltr;
1076
- text-align: left;
1077
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1078
- }
1079
-
1080
- .ace_scroller {
1081
- position: absolute;
1082
- overflow: hidden;
1083
- top: 0;
1084
- bottom: 0;
1085
- background-color: inherit;
1086
- -ms-user-select: none;
1087
- -moz-user-select: none;
1088
- -webkit-user-select: none;
1089
- user-select: none;
1090
- cursor: text;
1091
- }
1092
-
1093
- .ace_content {
1094
- position: absolute;
1095
- box-sizing: border-box;
1096
- min-width: 100%;
1097
- contain: style size layout;
1098
- font-variant-ligatures: no-common-ligatures;
1099
- }
1100
-
1101
- .ace_keyboard-focus:focus {
1102
- box-shadow: inset 0 0 0 2px #5E9ED6;
1103
- outline: none;
1104
- }
1105
-
1106
- .ace_dragging .ace_scroller:before{
1107
- position: absolute;
1108
- top: 0;
1109
- left: 0;
1110
- right: 0;
1111
- bottom: 0;
1112
- content: '';
1113
- background: rgba(250, 250, 250, 0.01);
1114
- z-index: 1000;
1115
- }
1116
- .ace_dragging.ace_dark .ace_scroller:before{
1117
- background: rgba(0, 0, 0, 0.01);
1118
- }
1119
-
1120
- .ace_gutter {
1121
- position: absolute;
1122
- overflow : hidden;
1123
- width: auto;
1124
- top: 0;
1125
- bottom: 0;
1126
- left: 0;
1127
- cursor: default;
1128
- z-index: 4;
1129
- -ms-user-select: none;
1130
- -moz-user-select: none;
1131
- -webkit-user-select: none;
1132
- user-select: none;
1133
- contain: style size layout;
1134
- }
1135
-
1136
- .ace_gutter-active-line {
1137
- position: absolute;
1138
- left: 0;
1139
- right: 0;
1140
- }
1141
-
1142
- .ace_scroller.ace_scroll-left:after {
1143
- content: "";
1144
- position: absolute;
1145
- top: 0;
1146
- right: 0;
1147
- bottom: 0;
1148
- left: 0;
1149
- box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
1150
- pointer-events: none;
1151
- }
1152
-
1153
- .ace_gutter-cell, .ace_gutter-cell_svg-icons {
1154
- position: absolute;
1155
- top: 0;
1156
- left: 0;
1157
- right: 0;
1158
- padding-left: 19px;
1159
- padding-right: 6px;
1160
- background-repeat: no-repeat;
1161
- }
1162
-
1163
- .ace_gutter-cell_svg-icons .ace_gutter_annotation {
1164
- margin-left: -14px;
1165
- float: left;
1166
- }
1167
-
1168
- .ace_gutter-cell .ace_gutter_annotation {
1169
- margin-left: -19px;
1170
- float: left;
1171
- }
1172
-
1173
- .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
1174
- 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==");
1175
- background-repeat: no-repeat;
1176
- background-position: 2px center;
1177
- }
1178
-
1179
- .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
1180
- 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==");
1181
- background-repeat: no-repeat;
1182
- background-position: 2px center;
1183
- }
1184
-
1185
- .ace_gutter-cell.ace_info, .ace_icon.ace_info {
1186
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
1187
- background-repeat: no-repeat;
1188
- background-position: 2px center;
1189
- }
1190
- .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
1191
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
1192
- }
1193
-
1194
- .ace_icon_svg.ace_error {
1195
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
1196
- background-color: crimson;
1197
- }
1198
- .ace_icon_svg.ace_warning {
1199
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
1200
- background-color: darkorange;
1201
- }
1202
- .ace_icon_svg.ace_info {
1203
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
1204
- background-color: royalblue;
1205
- }
1206
-
1207
- .ace_icon_svg.ace_error_fold {
1208
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
1209
- background-color: crimson;
1210
- }
1211
- .ace_icon_svg.ace_warning_fold {
1212
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
1213
- background-color: darkorange;
1214
- }
1215
-
1216
- .ace_scrollbar {
1217
- contain: strict;
1218
- position: absolute;
1219
- right: 0;
1220
- bottom: 0;
1221
- z-index: 6;
1222
- }
1223
-
1224
- .ace_scrollbar-inner {
1225
- position: absolute;
1226
- cursor: text;
1227
- left: 0;
1228
- top: 0;
1229
- }
1230
-
1231
- .ace_scrollbar-v{
1232
- overflow-x: hidden;
1233
- overflow-y: scroll;
1234
- top: 0;
1235
- }
1236
-
1237
- .ace_scrollbar-h {
1238
- overflow-x: scroll;
1239
- overflow-y: hidden;
1240
- left: 0;
1241
- }
1242
-
1243
- .ace_print-margin {
1244
- position: absolute;
1245
- height: 100%;
1246
- }
1247
-
1248
- .ace_text-input {
1249
- position: absolute;
1250
- z-index: 0;
1251
- width: 0.5em;
1252
- height: 1em;
1253
- opacity: 0;
1254
- background: transparent;
1255
- -moz-appearance: none;
1256
- appearance: none;
1257
- border: none;
1258
- resize: none;
1259
- outline: none;
1260
- overflow: hidden;
1261
- font: inherit;
1262
- padding: 0 1px;
1263
- margin: 0 -1px;
1264
- contain: strict;
1265
- -ms-user-select: text;
1266
- -moz-user-select: text;
1267
- -webkit-user-select: text;
1268
- user-select: text;
1269
- /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
1270
- white-space: pre!important;
1271
- }
1272
- .ace_text-input.ace_composition {
1273
- background: transparent;
1274
- color: inherit;
1275
- z-index: 1000;
1276
- opacity: 1;
1277
- }
1278
- .ace_composition_placeholder { color: transparent }
1279
- .ace_composition_marker {
1280
- border-bottom: 1px solid;
1281
- position: absolute;
1282
- border-radius: 0;
1283
- margin-top: 1px;
1284
- }
1285
-
1286
- [ace_nocontext=true] {
1287
- transform: none!important;
1288
- filter: none!important;
1289
- clip-path: none!important;
1290
- mask : none!important;
1291
- contain: none!important;
1292
- perspective: none!important;
1293
- mix-blend-mode: initial!important;
1294
- z-index: auto;
1295
- }
1296
-
1297
- .ace_layer {
1298
- z-index: 1;
1299
- position: absolute;
1300
- overflow: hidden;
1301
- /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
1302
- word-wrap: normal;
1303
- white-space: pre;
1304
- height: 100%;
1305
- width: 100%;
1306
- box-sizing: border-box;
1307
- /* setting pointer-events: auto; on node under the mouse, which changes
1308
- during scroll, will break mouse wheel scrolling in Safari */
1309
- pointer-events: none;
1310
- }
1311
-
1312
- .ace_gutter-layer {
1313
- position: relative;
1314
- width: auto;
1315
- text-align: right;
1316
- pointer-events: auto;
1317
- height: 1000000px;
1318
- contain: style size layout;
1319
- }
1320
-
1321
- .ace_text-layer {
1322
- font: inherit !important;
1323
- position: absolute;
1324
- height: 1000000px;
1325
- width: 1000000px;
1326
- contain: style size layout;
1327
- }
1328
-
1329
- .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
1330
- contain: style size layout;
1331
- position: absolute;
1332
- top: 0;
1333
- left: 0;
1334
- right: 0;
1335
- }
1336
-
1337
- .ace_hidpi .ace_text-layer,
1338
- .ace_hidpi .ace_gutter-layer,
1339
- .ace_hidpi .ace_content,
1340
- .ace_hidpi .ace_gutter {
1341
- contain: strict;
1342
- }
1343
- .ace_hidpi .ace_text-layer > .ace_line,
1344
- .ace_hidpi .ace_text-layer > .ace_line_group {
1345
- contain: strict;
1346
- }
1347
-
1348
- .ace_cjk {
1349
- display: inline-block;
1350
- text-align: center;
1351
- }
1352
-
1353
- .ace_cursor-layer {
1354
- z-index: 4;
1355
- }
1356
-
1357
- .ace_cursor {
1358
- z-index: 4;
1359
- position: absolute;
1360
- box-sizing: border-box;
1361
- border-left: 2px solid;
1362
- /* workaround for smooth cursor repaintng whole screen in chrome */
1363
- transform: translatez(0);
1364
- }
1365
-
1366
- .ace_multiselect .ace_cursor {
1367
- border-left-width: 1px;
1368
- }
1369
-
1370
- .ace_slim-cursors .ace_cursor {
1371
- border-left-width: 1px;
1372
- }
1373
-
1374
- .ace_overwrite-cursors .ace_cursor {
1375
- border-left-width: 0;
1376
- border-bottom: 1px solid;
1377
- }
1378
-
1379
- .ace_hidden-cursors .ace_cursor {
1380
- opacity: 0.2;
1381
- }
1382
-
1383
- .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
1384
- opacity: 0;
1385
- }
1386
-
1387
- .ace_smooth-blinking .ace_cursor {
1388
- transition: opacity 0.18s;
1389
- }
1390
-
1391
- .ace_animate-blinking .ace_cursor {
1392
- animation-duration: 1000ms;
1393
- animation-timing-function: step-end;
1394
- animation-name: blink-ace-animate;
1395
- animation-iteration-count: infinite;
1396
- }
1397
-
1398
- .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
1399
- animation-duration: 1000ms;
1400
- animation-timing-function: ease-in-out;
1401
- animation-name: blink-ace-animate-smooth;
1402
- }
1403
-
1404
- @keyframes blink-ace-animate {
1405
- from, to { opacity: 1; }
1406
- 60% { opacity: 0; }
1407
- }
1408
-
1409
- @keyframes blink-ace-animate-smooth {
1410
- from, to { opacity: 1; }
1411
- 45% { opacity: 1; }
1412
- 60% { opacity: 0; }
1413
- 85% { opacity: 0; }
1414
- }
1415
-
1416
- .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
1417
- position: absolute;
1418
- z-index: 3;
1419
- }
1420
-
1421
- .ace_marker-layer .ace_selection {
1422
- position: absolute;
1423
- z-index: 5;
1424
- }
1425
-
1426
- .ace_marker-layer .ace_bracket {
1427
- position: absolute;
1428
- z-index: 6;
1429
- }
1430
-
1431
- .ace_marker-layer .ace_error_bracket {
1432
- position: absolute;
1433
- border-bottom: 1px solid #DE5555;
1434
- border-radius: 0;
1435
- }
1436
-
1437
- .ace_marker-layer .ace_active-line {
1438
- position: absolute;
1439
- z-index: 2;
1440
- }
1441
-
1442
- .ace_marker-layer .ace_selected-word {
1443
- position: absolute;
1444
- z-index: 4;
1445
- box-sizing: border-box;
1446
- }
1447
-
1448
- .ace_line .ace_fold {
1449
- box-sizing: border-box;
1450
-
1451
- display: inline-block;
1452
- height: 11px;
1453
- margin-top: -2px;
1454
- vertical-align: middle;
1455
-
1456
- background-image:
1457
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1458
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
1459
- background-repeat: no-repeat, repeat-x;
1460
- background-position: center center, top left;
1461
- color: transparent;
1462
-
1463
- border: 1px solid black;
1464
- border-radius: 2px;
1465
-
1466
- cursor: pointer;
1467
- pointer-events: auto;
1468
- }
1469
-
1470
- .ace_dark .ace_fold {
1471
- }
1472
-
1473
- .ace_fold:hover{
1474
- background-image:
1475
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
1476
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
1477
- }
1478
-
1479
- .ace_tooltip {
1480
- background-color: #f5f5f5;
1481
- border: 1px solid gray;
1482
- border-radius: 1px;
1483
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
1484
- color: black;
1485
- max-width: 100%;
1486
- padding: 3px 4px;
1487
- position: fixed;
1488
- z-index: 999999;
1489
- box-sizing: border-box;
1490
- cursor: default;
1491
- white-space: pre;
1492
- word-wrap: break-word;
1493
- line-height: normal;
1494
- font-style: normal;
1495
- font-weight: normal;
1496
- letter-spacing: normal;
1497
- pointer-events: none;
1498
- }
1499
-
1500
- .ace_tooltip.ace_dark {
1501
- background-color: #636363;
1502
- color: #fff;
1503
- }
1504
-
1505
- .ace_tooltip:focus {
1506
- outline: 1px solid #5E9ED6;
1507
- }
1508
-
1509
- .ace_icon {
1510
- display: inline-block;
1511
- width: 18px;
1512
- vertical-align: top;
1513
- }
1514
-
1515
- .ace_icon_svg {
1516
- display: inline-block;
1517
- width: 12px;
1518
- vertical-align: top;
1519
- -webkit-mask-repeat: no-repeat;
1520
- -webkit-mask-size: 12px;
1521
- -webkit-mask-position: center;
1522
- }
1523
-
1524
- .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
1525
- padding-right: 13px;
1526
- }
1527
-
1528
- .ace_fold-widget {
1529
- box-sizing: border-box;
1530
-
1531
- margin: 0 -12px 0 1px;
1532
- display: none;
1533
- width: 11px;
1534
- vertical-align: top;
1535
-
1536
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
1537
- background-repeat: no-repeat;
1538
- background-position: center;
1539
-
1540
- border-radius: 3px;
1541
-
1542
- border: 1px solid transparent;
1543
- cursor: pointer;
1544
- }
1545
-
1546
- .ace_folding-enabled .ace_fold-widget {
1547
- display: inline-block;
1548
- }
1549
-
1550
- .ace_fold-widget.ace_end {
1551
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
1552
- }
1553
-
1554
- .ace_fold-widget.ace_closed {
1555
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
1556
- }
1557
-
1558
- .ace_fold-widget:hover {
1559
- border: 1px solid rgba(0, 0, 0, 0.3);
1560
- background-color: rgba(255, 255, 255, 0.2);
1561
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
1562
- }
1563
-
1564
- .ace_fold-widget:active {
1565
- border: 1px solid rgba(0, 0, 0, 0.4);
1566
- background-color: rgba(0, 0, 0, 0.05);
1567
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
1568
- }
1569
- /**
1570
- * Dark version for fold widgets
1571
- */
1572
- .ace_dark .ace_fold-widget {
1573
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
1574
- }
1575
- .ace_dark .ace_fold-widget.ace_end {
1576
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
1577
- }
1578
- .ace_dark .ace_fold-widget.ace_closed {
1579
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
1580
- }
1581
- .ace_dark .ace_fold-widget:hover {
1582
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1583
- background-color: rgba(255, 255, 255, 0.1);
1584
- }
1585
- .ace_dark .ace_fold-widget:active {
1586
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
1587
- }
1588
-
1589
- .ace_inline_button {
1590
- border: 1px solid lightgray;
1591
- display: inline-block;
1592
- margin: -1px 8px;
1593
- padding: 0 5px;
1594
- pointer-events: auto;
1595
- cursor: pointer;
1596
- }
1597
- .ace_inline_button:hover {
1598
- border-color: gray;
1599
- background: rgba(200,200,200,0.2);
1600
- display: inline-block;
1601
- pointer-events: auto;
1602
- }
1603
-
1604
- .ace_fold-widget.ace_invalid {
1605
- background-color: #FFB4B4;
1606
- border-color: #DE5555;
1607
- }
1608
-
1609
- .ace_fade-fold-widgets .ace_fold-widget {
1610
- transition: opacity 0.4s ease 0.05s;
1611
- opacity: 0;
1612
- }
1613
-
1614
- .ace_fade-fold-widgets:hover .ace_fold-widget {
1615
- transition: opacity 0.05s ease 0.05s;
1616
- opacity:1;
1617
- }
1618
-
1619
- .ace_underline {
1620
- text-decoration: underline;
1621
- }
1622
-
1623
- .ace_bold {
1624
- font-weight: bold;
1625
- }
1626
-
1627
- .ace_nobold .ace_bold {
1628
- font-weight: normal;
1629
- }
1630
-
1631
- .ace_italic {
1632
- font-style: italic;
1633
- }
1634
-
1635
-
1636
- .ace_error-marker {
1637
- background-color: rgba(255, 0, 0,0.2);
1638
- position: absolute;
1639
- z-index: 9;
1640
- }
1641
-
1642
- .ace_highlight-marker {
1643
- background-color: rgba(255, 255, 0,0.2);
1644
- position: absolute;
1645
- z-index: 8;
1646
- }
1647
-
1648
- .ace_mobile-menu {
1649
- position: absolute;
1650
- line-height: 1.5;
1651
- border-radius: 4px;
1652
- -ms-user-select: none;
1653
- -moz-user-select: none;
1654
- -webkit-user-select: none;
1655
- user-select: none;
1656
- background: white;
1657
- box-shadow: 1px 3px 2px grey;
1658
- border: 1px solid #dcdcdc;
1659
- color: black;
1660
- }
1661
- .ace_dark > .ace_mobile-menu {
1662
- background: #333;
1663
- color: #ccc;
1664
- box-shadow: 1px 3px 2px grey;
1665
- border: 1px solid #444;
1666
-
1667
- }
1668
- .ace_mobile-button {
1669
- padding: 2px;
1670
- cursor: pointer;
1671
- overflow: hidden;
1672
- }
1673
- .ace_mobile-button:hover {
1674
- background-color: #eee;
1675
- opacity:1;
1676
- }
1677
- .ace_mobile-button:active {
1678
- background-color: #ddd;
1679
- }
1680
-
1681
- .ace_placeholder {
1682
- font-family: arial;
1683
- transform: scale(0.9);
1684
- transform-origin: left;
1685
- white-space: pre;
1686
- opacity: 0.7;
1687
- margin: 0 10px;
1688
- }
1689
-
1690
- .ace_ghost_text {
1691
- opacity: 0.5;
1692
- font-style: italic;
1693
- white-space: pre;
1694
- }
1695
-
1696
- .ace_screenreader-only {
1697
- position:absolute;
1698
- left:-10000px;
1699
- top:auto;
1700
- width:1px;
1701
- height:1px;
1702
- overflow:hidden;
1703
- }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function h(o,r){this.canvas=u.createElement("canvas"),this.renderer=r,this.pixelRatio=1,this.maxHeight=r.layerConfig.maxHeight,this.lineHeight=r.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},o.element.appendChild(this.canvas)}return h.prototype.$updateDecorators=function(o){var r=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(o){this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height;var l=(o.lastRow+1)*this.lineHeight;l<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function a(y,A){return y.priority<A.priority?-1:y.priority>A.priority?1:0}var f=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(y){y.priority=m[y.type]||null}),f=f.sort(a);for(var v=this.renderer.session.$foldData,b=0;b<f.length;b++){var x=f[b].row,C=this.compensateFoldRows(x,v),S=Math.round((x-C)*this.lineHeight*this.heightRatio),$=Math.round((x-C)*this.lineHeight*this.heightRatio),L=Math.round(((x-C)*this.lineHeight+this.lineHeight)*this.heightRatio),R=L-$;if(R<this.minDecorationHeight){var k=($+L)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),$=Math.round(k-this.halfMinDecorationHeight),L=Math.round(k+this.halfMinDecorationHeight)}c.fillStyle=r[f[b].type]||null,c.fillRect(0,S,this.canvasWidth,L-$)}}var M=this.renderer.session.selection.getCursor();if(M){var C=this.compensateFoldRows(M.row,v),S=Math.round((M.row-C)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,S,this.canvasWidth,2)}},h.prototype.compensateFoldRows=function(o,r){var l=0;if(r&&r.length>0)for(var c=0;c<r.length;c++)o>r[c].start.row&&o<r[c].end.row?l+=o-r[c].start.row:o>=r[c].end.row&&(l+=r[c].end.row-r[c].start.row);return l},h}();d.implement(s.prototype,g),i.Decorator=s}),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"],function(n,i,p){var u=n("./lib/oop"),d=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),h=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,r=n("./layer/text").Text,l=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,a=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,b=n("./layer/font_metrics").FontMetrics,x=n("./lib/event_emitter").EventEmitter,C=n("./css/editor-css"),S=n("./layer/decorators").Decorator,$=n("./lib/useragent");d.importCssString(C,"ace_editor.css",!1);var L=function(){function R(k,M){var y=this;this.container=k||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),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 h(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var A=this.$textLayer=new r(this.content);this.canvas=A.element,this.$markerFront=new o(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(_){y.$scrollAnimation||y.session.setScrollTop(_.data-y.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){y.$scrollAnimation||y.session.setScrollLeft(_.data-y.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(_){y.updateCharacterSize(),y.onResize(!0,y.gutterWidth,y.$size.width,y.$size.height),y._signal("changeCharacterSize",_)}),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=!$.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(),s.resetOptions(this),s._signal("renderer",this)}return R.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")},R.prototype.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(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))},R.prototype.updateLines=function(k,M,y){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRow<M&&(this.$changedLines.lastRow=M)):this.$changedLines={firstRow:k,lastRow:M},this.$changedLines.lastRow<this.layerConfig.firstRow)if(y)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},R.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},R.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},R.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},R.prototype.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},R.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},R.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},R.prototype.onResize=function(k,M,y,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var _=this.container;A||(A=_.clientHeight||_.scrollHeight),y||(y=_.clientWidth||_.scrollWidth);var w=this.$updateCachedSize(k,M,y,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!y&&!A)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},R.prototype.$updateCachedSize=function(k,M,y,A){A-=this.$extraHeight||0;var _=0,w=this.$size,E={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(k||w.height!=A)&&(w.height=A,_|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",_=_|this.CHANGE_SCROLL),y&&(k||w.width!=y)){_|=this.CHANGE_SIZE,w.width=y,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,d.setStyle(this.scrollBarH.element.style,"left",M+"px"),d.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,y-M-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",T),d.setStyle(this.scroller.style,"right",T),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(_|=this.CHANGE_FULL)}return w.$dirty=!y||!A,_&&this._signal("resize",E),_},R.prototype.onGutterResize=function(k){var M=this.$showGutter?k:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,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()},R.prototype.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},R.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},R.prototype.getAnimatedScroll=function(){return this.$animatedScroll},R.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},R.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},R.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},R.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},R.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},R.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},R.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},R.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},R.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},R.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},R.prototype.getShowGutter=function(){return this.getOption("showGutter")},R.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},R.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},R.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},R.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},R.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},R.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=d.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},R.prototype.getContainerElement=function(){return this.container},R.prototype.getMouseEventTarget=function(){return this.scroller},R.prototype.getTextAreaContainer=function(){return this.container},R.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var k=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){d.translate(this.textarea,-100,0);return}var y=this.$cursorLayer.$pixelPos;if(y){M&&M.markerRange&&(y=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,_=y.top,w=y.left;_-=A.offset;var E=M&&M.useTextareaForIME||$.isMobile?this.lineHeight:1;if(_<0||_>A.height-E){d.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-E;if(!M)_+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else _+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,d.setStyle(k,"height",E+"px"),d.setStyle(k,"width",T+"px"),d.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(_,O))}}},R.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},R.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},R.prototype.getLastFullyVisibleRow=function(){var k=this.layerConfig,M=k.lastRow,y=this.session.documentToScreenRow(M,0)*k.lineHeight;return y-this.session.getScrollTop()>k.height-k.lineHeight?M-1:M},R.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},R.prototype.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},R.prototype.setScrollMargin=function(k,M,y,A){var _=this.scrollMargin;_.top=k|0,_.bottom=M|0,_.right=A|0,_.left=y|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},R.prototype.setMargin=function(k,M,y,A){var _=this.margin;_.top=k|0,_.bottom=M|0,_.right=A|0,_.left=y|0,_.v=_.top+_.bottom,_.h=_.left+_.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},R.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},R.prototype.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},R.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},R.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},R.prototype.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-M&&(k=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},R.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},R.prototype.freeze=function(){this.$frozen=!0},R.prototype.unfreeze=function(){this.$frozen=!1},R.prototype.$renderChanges=function(k,M){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!M){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var y=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),y.firstRow!=this.layerConfig.firstRow&&y.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(y.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}y=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-y.offset);var _=y.width+2*this.$padding+"px",w=y.minHeight+"px";d.setStyle(this.content.style,"width",_),d.setStyle(this.content.style,"height",w)}if(k&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-y.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(y):this.$textLayer.scrollLines(y),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(y):this.$gutterLayer.scrollLines(y)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(y),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(y),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(y),this._signal("afterRender",k)},R.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,y=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(y+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&y>this.$maxPixelHeight&&(y=this.$maxPixelHeight);var A=y<=2*this.lineHeight,_=!A&&k>M;if(y!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var w=this.container.clientWidth;this.container.style.height=y+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,y),this.desiredHeight=y,this._signal("autosize")}},R.prototype.$computeLayerConfig=function(){var k=this.session,M=this.$size,y=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),_=A*this.lineHeight,w=this.$getLongestLine(),E=!y&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==E;T&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;_+=F;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,_-M.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+D.right)));var W=!y&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-_+F<0||this.scrollTop>D.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var H=this.scrollTop%this.lineHeight,U=Math.ceil(I/this.lineHeight)-1,K=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),Z=K+U,z,X,Y=this.lineHeight;K=k.screenToDocumentRow(K,0);var V=k.getFoldLine(K);V&&(K=V.start.row),z=k.documentToScreenRow(K,0),X=k.getRowLength(K)*Y,Z=Math.min(k.screenToDocumentRow(Z,0),k.getLength()-1),I=M.scrollerHeight+k.getRowLength(Z)*Y+X,H=this.scrollTop-z*Y;var ee=0;return(this.layerConfig.width!=w||T)&&(ee=this.CHANGE_H_SCROLL),(T||j)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),j&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:K,firstRowScreen:z,lastRow:Z,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:_,offset:H,gutterOffset:Y?Math.max(0,Math.ceil((H+M.height-M.scrollerHeight)/Y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},R.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var y=this.layerConfig;if(!(k>y.lastRow+1)&&!(M<y.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(y),this.$textLayer.update(y);return}return this.$textLayer.updateLines(y,k,M),!0}}},R.prototype.$getLongestLine=function(){var k=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(k+=1),this.$textLayer&&k>this.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*this.characterWidth))},R.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},R.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},R.prototype.addGutterDecoration=function(k,M){this.$gutterLayer.addGutterDecoration(k,M)},R.prototype.removeGutterDecoration=function(k,M){this.$gutterLayer.removeGutterDecoration(k,M)},R.prototype.updateBreakpoints=function(k){this.$loop.schedule(this.CHANGE_GUTTER)},R.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},R.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},R.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},R.prototype.showCursor=function(){this.$cursorLayer.showCursor()},R.prototype.scrollSelectionIntoView=function(k,M,y){this.scrollCursorIntoView(k,y),this.scrollCursorIntoView(M,y)},R.prototype.scrollCursorIntoView=function(k,M,y){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(k),_=A.left,w=A.top,E=y&&y.top||0,T=y&&y.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+E>w?(M&&O+E>w+this.lineHeight&&(w-=M*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T<w+this.lineHeight&&(M&&O+this.$size.scrollerHeight-T<w-this.lineHeight&&(w+=M*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+T-this.$size.scrollerHeight));var I=this.scrollLeft,F=2*this.layerConfig.characterWidth;_-F<I?(_-=F,_<this.$padding+F&&(_=-this.scrollMargin.left),this.session.setScrollLeft(_)):(_+=F,I+this.$size.scrollerWidth<_+this.characterWidth?this.session.setScrollLeft(Math.round(_+this.characterWidth-this.$size.scrollerWidth)):I<=this.$padding&&_-I<this.characterWidth&&this.session.setScrollLeft(0))}},R.prototype.getScrollTop=function(){return this.session.getScrollTop()},R.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},R.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},R.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},R.prototype.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},R.prototype.alignCursor=function(k,M){typeof k=="number"&&(k={row:k,column:0});var y=this.$cursorLayer.getPixelPosition(k),A=this.$size.scrollerHeight-this.lineHeight,_=y.top-A*(M||0);return this.session.setScrollTop(_),_},R.prototype.$calcSteps=function(k,M){var y=0,A=this.STEPS,_=[],w=function(E,T,O){return O*(Math.pow(E-1,3)+1)+T};for(y=0;y<A;++y)_.push(w(y/this.STEPS,k,M-k));return _},R.prototype.scrollToLine=function(k,M,y,A){var _=this.$cursorLayer.getPixelPosition({row:k,column:0}),w=_.top;M&&(w-=this.$size.scrollerHeight/2);var E=this.scrollTop;this.session.setScrollTop(w),y!==!1&&this.animateScrolling(E,A)},R.prototype.animateScrolling=function(k,M){var y=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(k==y)return;if(this.$scrollAnimation){var _=this.$scrollAnimation.steps;if(_.length&&(k=_[0],k==y))return}var w=A.$calcSteps(k,y);this.$scrollAnimation={from:k,to:y,steps:w},clearInterval(this.$timer),A.session.setScrollTop(w.shift()),A.session.$scrollTop=y;function E(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,M&&M()}this.$timer=setInterval(function(){if(A.$stopAnimation){E();return}if(!A.session)return clearInterval(A.$timer);w.length?(A.session.setScrollTop(w.shift()),A.session.$scrollTop=y):y!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(y),y=null):E()},10)},R.prototype.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},R.prototype.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},R.prototype.scrollTo=function(k,M){this.session.setScrollTop(M),this.session.setScrollLeft(k)},R.prototype.scrollBy=function(k,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},R.prototype.isScrollableBy=function(k,M){if(M<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},R.prototype.pixelToScreenCoordinates=function(k,M){var y;if(this.$hasCssTransforms){y={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([k,M]);k=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else y=this.scroller.getBoundingClientRect();var _=k+this.scrollLeft-y.left-this.$padding,w=_/this.characterWidth,E=Math.floor((M+this.scrollTop-y.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:E,column:T,side:w-T>0?1:-1,offsetX:_}},R.prototype.screenToTextCoordinates=function(k,M){var y;if(this.$hasCssTransforms){y={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([k,M]);k=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else y=this.scroller.getBoundingClientRect();var _=k+this.scrollLeft-y.left-this.$padding,w=_/this.characterWidth,E=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-y.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(E,0),_)},R.prototype.textToScreenCoordinates=function(k,M){var y=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(k,M),_=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,k)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:y.left+_-this.scrollLeft,pageY:y.top+w-this.scrollTop}},R.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},R.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},R.prototype.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},R.prototype.setCompositionText=function(k){var M=this.session.selection.cursor;this.addToken(k,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},R.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 k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},R.prototype.setGhostText=function(k,M){var y=this.session.selection.cursor,A=M||{row:y.row,column:y.column};this.removeGhostText();var _=k.split(`
1704
- `);this.addToken(_[0],"ghost_text",A.row,A.column),this.$ghostText={text:k,position:{row:A.row,column:A.column}},_.length>1&&(this.$ghostTextWidget={text:_.slice(1).join(`
1705
- `),row:A.row,column:A.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},R.prototype.removeGhostText=function(){if(this.$ghostText){var k=this.$ghostText.position;this.removeExtraToken(k.row,k.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},R.prototype.addToken=function(k,M,y,A){var _=this.session;_.bgTokenizer.lines[y]=null;var w={type:M,value:k},E=_.getTokens(y);if(A==null||!E.length)E.push(w);else for(var T=0,O=0;O<E.length;O++){var I=E[O];if(T+=I.value.length,A<=T){var F=I.value.length-(T-A),D=I.value.slice(0,F),W=I.value.slice(F);E.splice(O,1,{type:I.type,value:D},w,{type:I.type,value:W});break}}this.updateLines(y,y)},R.prototype.removeExtraToken=function(k,M){this.session.bgTokenizer.lines[k]=null,this.updateLines(k,k)},R.prototype.setTheme=function(k,M){var y=this;if(this.$themeId=k,y._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var A=k||this.$options.theme.initialValue;s.loadModule(["theme",A],_)}else _(k);function _(w){if(y.$themeId!=k)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");w.$id&&(y.$themeId=w.$id),d.importCssString(w.cssText,w.cssClass,y.container),y.theme&&d.removeCssClass(y.container,y.theme.cssClass);var E="padding"in w?w.padding:"padding"in(y.theme||{})?4:y.$padding;y.$padding&&E!=y.$padding&&y.setPadding(E),y.$theme=w.cssClass,y.theme=w,d.addCssClass(y.container,w.cssClass),d.setCssClass(y.container,"ace_dark",w.isDark),y.$size&&(y.$size.width=0,y.$updateSizeAsync()),y._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},R.prototype.getTheme=function(){return this.$themeId},R.prototype.setStyle=function(k,M){d.setCssClass(this.container,k,M!==!1)},R.prototype.unsetStyle=function(k){d.removeCssClass(this.container,k)},R.prototype.setCursorStyle=function(k){d.setStyle(this.scroller.style,"cursor",k)},R.prototype.setMouseCursor=function(k){d.setStyle(this.scroller.style,"cursor",k)},R.prototype.attachToShadowRoot=function(){d.importCssString(C,"ace_editor.css",this.container)},R.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},R.prototype.$updateCustomScrollbar=function(k){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,k===!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(y){M.$scrollAnimation||M.session.setScrollTop(y.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(y){M.$scrollAnimation||M.session.setScrollLeft(y.data-M.scrollMargin.left)}),this.$scrollDecorator=new S(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(y){M.$scrollAnimation||M.session.setScrollTop(y.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(y){M.$scrollAnimation||M.session.setScrollLeft(y.data-M.scrollMargin.left)}))},R.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var k=this;this.$resizeTimer=g.delayedCall(function(){k.destroyed||k.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var y=M[0].contentRect.width,A=M[0].contentRect.height;Math.abs(k.$size.width-y)>1||Math.abs(k.$size.height-A)>1?k.$resizeTimer.delay():k.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},R}();L.prototype.CHANGE_CURSOR=1,L.prototype.CHANGE_MARKER=2,L.prototype.CHANGE_GUTTER=4,L.prototype.CHANGE_SCROLL=8,L.prototype.CHANGE_LINES=16,L.prototype.CHANGE_TEXT=32,L.prototype.CHANGE_SIZE=64,L.prototype.CHANGE_MARKER_BACK=128,L.prototype.CHANGE_MARKER_FRONT=256,L.prototype.CHANGE_FULL=512,L.prototype.CHANGE_H_SCROLL=1024,L.prototype.$changes=0,L.prototype.$padding=null,L.prototype.$frozen=!1,L.prototype.STEPS=8,u.implement(L.prototype,x),s.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function(R){!R&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):R&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(R){this.$textLayer.setShowInvisibles(R)&&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(R){typeof R=="number"&&(this.$printMarginColumn=R),this.$showPrintMargin=!!R,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(R){this.$gutter.style.display=R?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(R){this.$gutterLayer.$useSvgGutterIcons=R},initialValue:!1},showFoldedAnnotations:{set:function(R){this.$gutterLayer.$showFoldedAnnotations=R},initialValue:!1},fadeFoldWidgets:{set:function(R){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",R)},initialValue:!1},showFoldWidgets:{set:function(R){this.$gutterLayer.setShowFoldWidgets(R),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(R){this.$textLayer.setDisplayIndentGuides(R)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(R){this.$textLayer.setHighlightIndentGuides(R)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(R){this.$gutterLayer.setHighlightGutterLine(R),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(R){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(R){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(R){typeof R=="number"&&(R=R+"px"),this.container.style.fontSize=R,this.updateFontSize()},initialValue:12},fontFamily:{set:function(R){this.container.style.fontFamily=R,this.updateFontSize()}},maxLines:{set:function(R){this.updateFull()}},minLines:{set:function(R){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(R){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(R){R=+R||0,this.$scrollPastEnd!=R&&(this.$scrollPastEnd=R,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(R){this.$gutterLayer.$fixedWidth=!!R,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(R){this.$updateCustomScrollbar(R)},initialValue:!1},theme:{set:function(R){this.setTheme(R)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!$.isMobile&&!$.isIE}}),i.VirtualRenderer=L}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,p){var u=n("../lib/oop"),d=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function h(c){var a="importScripts('"+d.qualifyURL(c)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(a),m.getBlob("application/javascript")}}function o(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var a=h(c),f=window.URL||window.webkitURL,m=f.createObjectURL(a);return new Worker(m)}return new Worker(c)}var r=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){u.implement(this,g),this.$createWorkerFromOldConfig=function(c,a,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(a,"worker");else{var b=this.$normalizePath;m=m||b(n.toUrl("ace/worker/worker.js",null,"_"));var x={};c.forEach(function(C){x[C]=b(n.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:x,module:a,classname:f}),this.$worker},this.onMessage=function(c){var a=c.data;switch(a.type){case"event":this._signal(a.name,{data:a.data});break;case"call":var f=this.callbacks[a.id];f&&(f(a.data),delete this.callbacks[a.id]);break;case"error":this.reportError(a.data);break;case"log":window.console&&console.log&&console.log.apply(console,a.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return d.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,a){this.$worker.postMessage({command:c,args:a})},this.call=function(c,a,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,a.push(m)}this.send(c,a)},this.emit=function(c,a){try{a.data&&a.data.err&&(a.data.err={message:a.data.err.message,stack:a.data.err.stack,code:a.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:a.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(r.prototype);var l=function(c,a,f){var m=null,v=!1,b=Object.create(g),x=[],C=new r({messageBuffer:x,terminate:function(){},postMessage:function($){x.push($),m&&(v?setTimeout(S):S())}});C.setEmitSync=function($){v=$};var S=function(){var $=x.shift();$.command?m[$.command].apply(m,$.args):$.event&&b._signal($.event,$.data)};return b.postMessage=function($){C.onMessage({data:$})},b.callback=function($,L){this.postMessage({type:"call",id:L,data:$})},b.emit=function($,L){this.postMessage({type:"event",name:$,data:L})},s.loadModule(["worker",a],function($){for(m=new $[f](b);x.length;)S()}),C};i.UIWorkerClient=l,i.WorkerClient=r,i.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,p){var u=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function h(o,r,l,c,a,f){var m=this;this.length=r,this.session=o,this.doc=o.getDocument(),this.mainClass=a,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=l;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return h.prototype.setup=function(){var o=this,r=this.doc,l=this.session;this.selectionBefore=l.selection.toJSON(),l.selection.inMultiSelectMode&&l.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=l.addMarker(new u(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(a){var f=r.createAnchor(a.row,a.column);f.$insertRight=!0,f.detach(),o.others.push(f)}),l.setUndoSelect(!1)},h.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,r=this;this.othersActive=!0,this.others.forEach(function(l){l.markerId=o.addMarker(new u(l.row,l.column,l.row,l.column+r.length),r.othersClass,null,!1)})}},h.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o<this.others.length;o++)this.session.removeMarker(this.others[o].markerId)}},h.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var r=o;if(r.start.row===r.end.row&&r.start.row===this.pos.row){this.$updating=!0;var l=o.action==="insert"?r.end.column-r.start.column:r.start.column-r.end.column,c=r.start.column>=this.pos.column&&r.start.column<=this.pos.column+this.length+1,a=r.start.column-this.pos.column;if(this.updateAnchors(o),c&&(this.length+=l),c&&!this.session.$fromUndo){if(o.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+a};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+a};this.doc.remove(new u(v.row,v.column,v.row,v.column-l))}}this.$updating=!1,this.updateMarkers()}},h.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var r=this.others.length;r--;)this.others[r].onChange(o);this.updateMarkers()},h.prototype.updateMarkers=function(){if(!this.$updating){var o=this,r=this.session,l=function(a,f){r.removeMarker(a.markerId),a.markerId=r.addMarker(new u(a.row,a.column,a.row,a.column+o.length),f,null,!1)};l(this.pos,this.mainClass);for(var c=this.others.length;c--;)l(this.others[c],this.othersClass)}},h.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},h.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},h.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),r=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,l=0;l<r;l++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},h}();g.implement(s.prototype,d),i.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/event"),d=n("../lib/useragent");function g(h,o){return h.row==o.row&&h.column==o.column}function s(h){var o=h.domEvent,r=o.altKey,l=o.shiftKey,c=o.ctrlKey,a=h.getAccelKey(),f=h.getButton();if(c&&d.isMac&&(f=o.button),h.editor.inMultiSelectMode&&f==2){h.editor.textInput.onContextMenu(h.domEvent);return}if(!c&&!r&&!a){f===0&&h.editor.inMultiSelectMode&&h.editor.exitMultiSelectMode();return}if(f===0){var m=h.editor,v=m.selection,b=m.inMultiSelectMode,x=h.getDocumentPosition(),C=v.getCursor(),S=h.inSelection()||v.isEmpty()&&g(x,C),$=h.x,L=h.y,R=function(W){$=W.clientX,L=W.clientY},k=m.session,M=m.renderer.pixelToScreenCoordinates($,L),y=M,A;if(m.$mouseHandler.$enableJumpToDef)c&&r||a&&r?A=l?"block":"add":r&&m.$blockSelectEnabled&&(A="block");else if(a&&!r){if(A="add",!b&&l)return}else r&&m.$blockSelectEnabled&&(A="block");if(A&&d.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),A=="add"){if(!b&&S)return;if(!b){var _=v.toOrientedRange();m.addSelectionMarker(_)}var w=v.rangeList.rangeAtPoint(x);m.inVirtualSelectionMode=!0,l&&(w=null,_=v.ranges[0]||_,m.removeSelectionMarker(_)),m.once("mouseup",function(){var W=v.toOrientedRange();w&&W.isEmpty()&&g(w.cursor,W.cursor)?v.substractPoint(W.cursor):(l?v.substractPoint(_.cursor):_&&(m.removeSelectionMarker(_),v.addRange(_)),v.addRange(W)),m.inVirtualSelectionMode=!1})}else if(A=="block"){h.stop(),m.inVirtualSelectionMode=!0;var E,T=[],O=function(){var W=m.renderer.pixelToScreenCoordinates($,L),j=k.screenToDocumentPosition(W.row,W.column,W.offsetX);g(y,W)&&g(j,v.lead)||(y=W,m.selection.moveToPosition(j),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=v.rectangularRangeBlock(y,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};b&&!a?v.toSingleRange():!b&&a&&(E=v.toOrientedRange(),m.addSelectionMarker(E)),l?M=k.documentToScreenPosition(v.lead):v.moveToPosition(x),y={row:-1,column:-1};var I=function(W){O(),clearInterval(D),m.removeSelectionMarkers(T),T.length||(T=[v.toOrientedRange()]),E&&(m.removeSelectionMarker(E),v.toSingleRange(E));for(var j=0;j<T.length;j++)v.addRange(T[j]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},F=O;u.capture(m.container,R,I);var D=setInterval(function(){F()},20);return h.preventDefault()}}}i.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,i,p){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 u=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new u(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,p){var u=n("./range_list").RangeList,d=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),o=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var l=n("./search").Search,c=new l;function a(C,S,$){return c.$options.wrap=!0,c.$options.needle=S,c.$options.backwards=$==-1,c.find(C)}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(C,S){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var $=this.toOrientedRange();if(this.rangeList.add($),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add($),this.$onAddRange($)}C.cursor||(C.cursor=C.end);var L=this.rangeList.add(C);return this.$onAddRange(C),L.length&&this.$onRemoveRange(L),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var S=this.rangeList.substractPoint(C);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();C.push(S),this.rangeCount=0}for(var $=C.length;$--;){var L=this.ranges.indexOf(C[$]);this.ranges.splice(L,1)}this._signal("removeRange",{ranges:C}),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 u,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],S=[],$=0;$<C.length;$++){var L=C[$],R=L.start.row,k=L.end.row;if(R===k)S.push(L.clone());else{for(S.push(new d(R,L.start.column,R,this.session.getLine(R).length));++R<k;)S.push(this.getLineRange(R,!0));S.push(new d(k,0,k,L.end.column))}$==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var $=S.length;$--;)this.addRange(S[$])},this.joinSelections=function(){var C=this.rangeList.ranges,S=C[C.length-1],$=d.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange($,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,S=C[C.length-1],$=d.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange($,S.cursor==S.start)}else{var L=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(L,R);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,$){var L=[],R=C.column<S.column;if(R)var k=C.column,M=S.column,y=C.offsetX,A=S.offsetX;else var k=S.column,M=C.column,y=S.offsetX,A=C.offsetX;var _=C.row<S.row;if(_)var w=C.row,E=S.row;else var w=S.row,E=C.row;k<0&&(k=0),w<0&&(w=0),w==E&&($=!0);for(var T,O=w;O<=E;O++){var I=d.fromPoints(this.session.screenToDocumentPosition(O,k,y),this.session.screenToDocumentPosition(O,M,A));if(I.isEmpty()){if(T&&v(I.end,T))break;T=I.end}I.cursor=R?I.start:I.end,L.push(I)}if(_&&L.reverse(),!$){for(var F=L.length-1;L[F].isEmpty()&&F>0;)F--;if(F>0)for(var D=0;L[D].isEmpty();)D++;for(var W=F;W>=D;W--)L[W].isEmpty()&&L.splice(W,1)}return L}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var S=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",S),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var S=this.session.$selectionMarkers.indexOf(C);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var S=this.session.$selectionMarkers,$=C.length;$--;){var L=C[$];if(L.marker){this.session.removeMarker(L.marker);var R=S.indexOf(L);R!=-1&&S.splice(R,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){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(C){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(C){var S=C.command,$=C.editor;if($.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?L=$.forEachSelection(S,C.args):S.multiSelectAction=="forEachLine"?L=$.forEachSelection(S,C.args,!0):S.multiSelectAction=="single"?($.exitMultiSelectMode(),L=S.exec($,C.args||{})):L=S.multiSelectAction($,C.args||{});else{var L=S.exec($,C.args||{});$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()}return L}},this.forEachSelection=function(C,S,$){if(!this.inVirtualSelectionMode){var L=$&&$.keepOrder,R=$==!0||$&&$.$byLines,k=this.session,M=this.selection,y=M.rangeList,A=(L?M:y).ranges,_;if(!A.length)return C.exec?C.exec(this,S||{}):C(this,S||{});var w=M._eventRegistry;M._eventRegistry={};var E=new g(k);this.inVirtualSelectionMode=!0;for(var T=A.length;T--;){if(R)for(;T>0&&A[T].start.row==A[T-1].end.row;)T--;E.fromOrientedRange(A[T]),E.index=T,this.selection=k.selection=E;var O=C.exec?C.exec(this,S||{}):C(this,S||{});!_&&O!==void 0&&(_=O),E.toOrientedRange(A[T])}E.detach(),this.selection=k.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,$=[],L=0;L<S.length;L++)$.push(this.session.getTextRange(S[L]));var R=this.session.getDocument().getNewLineCharacter();C=$.join(R),C.length==($.length-1)*R.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var $=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var L=S==this.multiSelect.anchor?$.cursor==$.start?$.end:$.start:$.cursor;L.row!=S.row||this.session.$clipPositionToDocument(L.row,L.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,S,$){if(S=S||{},S.needle=C||S.needle,S.needle==null){var L=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(L)}this.$search.set(S);var R=this.$search.findAll(this.session);if(!R.length)return 0;var k=this.multiSelect;$||k.toSingleRange(R[0]);for(var M=R.length;M--;)k.addRange(R[M],!0);return L&&k.rangeList.rangeAtPoint(L.start)&&k.addRange(L,!0),R.length},this.selectMoreLines=function(C,S){var $=this.selection.toOrientedRange(),L=$.cursor==$.end,R=this.session.documentToScreenPosition($.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var k=this.session.screenToDocumentPosition(R.row+C,R.column);if($.isEmpty())var y=k;else var M=this.session.documentToScreenPosition(L?$.end:$.start),y=this.session.screenToDocumentPosition(M.row+C,M.column);if(L){var A=d.fromPoints(k,y);A.cursor=A.start}else{var A=d.fromPoints(y,k);A.cursor=A.end}if(A.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange($);else if(S)var _=$.cursor;this.selection.addRange(A),_&&this.selection.substractPoint(_)},this.transposeSelections=function(C){for(var S=this.session,$=S.multiSelect,L=$.ranges,R=L.length;R--;){var k=L[R];if(k.isEmpty()){var M=S.getWordRange(k.start.row,k.start.column);k.start.row=M.start.row,k.start.column=M.start.column,k.end.row=M.end.row,k.end.column=M.end.column}}$.mergeOverlappingRanges();for(var y=[],R=L.length;R--;){var k=L[R];y.unshift(S.getTextRange(k))}C<0?y.unshift(y.pop()):y.push(y.shift());for(var R=L.length;R--;){var k=L[R],M=k.clone();S.replace(k,y[R]),k.start.row=M.start.row,k.start.column=M.start.column}$.fromOrientedRange($.ranges[0])},this.selectMore=function(C,S,$){var L=this.session,R=L.multiSelect,k=R.toOrientedRange();if(!(k.isEmpty()&&(k=L.getWordRange(k.start.row,k.start.column),k.cursor=C==-1?k.start:k.end,this.multiSelect.addRange(k),$))){var M=L.getTextRange(k),y=a(L,M,C);y&&(y.cursor=C==-1?y.start:y.end,this.session.unfold(y),this.multiSelect.addRange(y),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(k.cursor)}},this.alignCursors=function(){var C=this.session,S=C.multiSelect,$=S.ranges,L=-1,R=$.filter(function(F){if(F.cursor.row==L)return!0;L=F.cursor.row});if(!$.length||R.length==$.length-1){var k=this.selection.getRange(),M=k.start.row,y=k.end.row,A=M==y;if(A){var _=this.session.getLength(),w;do w=this.session.getLine(y);while(/[=:]/.test(w)&&++y<_);do w=this.session.getLine(M);while(/[=:]/.test(w)&&--M>0);M<0&&(M=0),y>=_&&(y=_-1)}var E=this.session.removeFullLines(M,y);E=this.$reAlignText(E,A),this.session.insert({row:M,column:0},E.join(`
1706
- `)+`
1707
- `),A||(k.start.column=0,k.end.column=E[E.length-1].length),this.selection.setRange(k)}else{R.forEach(function(F){S.substractPoint(F.cursor)});var T=0,O=1/0,I=$.map(function(F){var D=F.cursor,W=C.getLine(D.row),j=W.substr(D.column).search(/\S/g);return j==-1&&(j=0),D.column>T&&(T=D.column),j<O&&(O=j),j});$.forEach(function(F,D){var W=F.cursor,j=T-W.column,H=I[D]-O;j>H?C.insert(W,o.stringRepeat(" ",j-H)):C.remove(new d(W.row,W.column,W.row,W.column-j+H)),F.start.column=F.end.column=T,F.start.row=F.end.row=W.row,F.cursor=F.end}),S.fromOrientedRange($[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,S){var $=!0,L=!0,R,k,M;return C.map(function(E){var T=E.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?R==null?(R=T[1].length,k=T[2].length,M=T[3].length,T):(R+k+M!=T[1].length+T[2].length+T[3].length&&(L=!1),R!=T[1].length&&($=!1),R>T[1].length&&(R=T[1].length),k<T[2].length&&(k=T[2].length),M>T[3].length&&(M=T[3].length),T):[E]}).map(S?A:$?L?_:A:w);function y(E){return o.stringRepeat(" ",E)}function A(E){return E[2]?y(R)+E[2]+y(k-E[2].length+M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function _(E){return E[2]?y(R+k-E[2].length)+E[2]+y(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function w(E){return E[2]?y(R)+E[2]+y(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}}}).call(m.prototype);function v(C,S){return C.row==S.row&&C.column==S.column}i.onSessionChange=function(C){var S=C.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var $=C.oldSession;$&&($.multiSelect.off("addRange",this.$onAddRange),$.multiSelect.off("removeRange",this.$onRemoveRange),$.multiSelect.off("multiSelect",this.$onMultiSelect),$.multiSelect.off("singleSelect",this.$onSingleSelect),$.multiSelect.lead.off("change",this.$checkMultiselectChange),$.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 b(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=i.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",s),C.commands.addCommands(r.defaultCommands),x(C))}function x(C){if(!C.textInput)return;var S=C.textInput.getElement(),$=!1;h.addListener(S,"keydown",function(R){var k=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);C.$blockSelectEnabled&&k?$||(C.renderer.setMouseCursor("crosshair"),$=!0):$&&L()},C),h.addListener(S,"keyup",L,C),h.addListener(S,"blur",L,C);function L(R){$&&(C.renderer.setMouseCursor(""),$=!1)}}i.MultiSelect=b,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){b(this),C?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,p){var u=n("../../range").Range,d=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,h){var o=g.getLine(h);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,h){return null},this.indentationBlock=function(g,s,h){var o=/\S/,r=g.getLine(s),l=r.search(o);if(l!=-1){for(var c=h||r.length,a=g.getLength(),f=s,m=s;++s<a;){var v=g.getLine(s).search(o);if(v!=-1){if(v<=l){var b=g.getTokenAt(s,0);if(!b||b.type!=="string")break}m=s}}if(m>f){var x=g.getLine(m).length;return new u(f,c,m,x)}}},this.openingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o+1},c=g.$findClosingBracket(s,l,r);if(c){var a=g.foldWidgets[c.row];return a==null&&(a=g.getFoldWidget(c.row)),a=="start"&&c.row>l.row&&(c.row--,c.column=g.getLine(c.row).length),u.fromPoints(l,c)}},this.closingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o},c=g.$findOpeningBracket(s,l);if(c)return c.column++,l.column--,u.fromPoints(c,l)}}).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,p){var u=n("../line_widgets").LineWidgets,d=n("../lib/dom"),g=n("../range").Range,s=n("../config").nls;function h(r,l,c){for(var a=0,f=r.length-1;a<=f;){var m=a+f>>1,v=c(l,r[m]);if(v>0)a=m+1;else if(v<0)f=m-1;else return m}return-(a+1)}function o(r,l,c){var a=r.getAnnotations().sort(g.comparePoints);if(a.length){var f=h(a,{row:l,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=a.length?f=c>0?0:a.length-1:f===0&&c<0&&(f=a.length-1);var m=a[f];if(!(!m||!c)){if(m.row===l){do m=a[f+=c];while(m&&m.row===l);if(!m)return a.slice()}var v=[];l=m.row;do v[c<0?"unshift":"push"](m),m=a[f+=c];while(m&&m.row==l);return v.length&&v}}}i.showErrorMarker=function(r,l){var c=r.session;c.widgetManager||(c.widgetManager=new u(c),c.widgetManager.attach(r));var a=r.getCursorPosition(),f=a.row,m=c.widgetManager.getWidgetsAtRow(f).filter(function(k){return k.type=="errorMarker"})[0];m?m.destroy():f-=l;var v=o(c,f,l),b;if(v){var x=v[0];a.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,a.row=x.row,b=r.renderer.$gutterLayer.$annotations[a.row]}else{if(m)return;b={text:[s("Looks good!")],className:"ace_ok"}}r.session.unfold(a.row),r.selection.moveToPosition(a);var C={row:a.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},S=C.el.appendChild(d.createElement("div")),$=C.el.appendChild(d.createElement("div"));$.className="error_widget_arrow "+b.className;var L=r.renderer.$cursorLayer.getPixelPosition(a).left;$.style.left=L+r.renderer.gutterWidth-5+"px",C.el.className="error_widget_wrapper",S.className="error_widget "+b.className,S.innerHTML=b.text.join("<br>"),S.appendChild(d.createElement("div"));var R=function(k,M,y){if(M===0&&(y==="esc"||y==="return"))return C.destroy(),{command:"null"}};C.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(R),c.widgetManager.removeLineWidget(C),r.off("changeSelection",C.destroy),r.off("changeSession",C.destroy),r.off("mouseup",C.destroy),r.off("change",C.destroy))},r.keyBinding.addKeyboardHandler(R),r.on("changeSelection",C.destroy),r.on("changeSession",C.destroy),r.on("mouseup",C.destroy),r.on("change",C.destroy),r.session.widgetManager.addLineWidget(C),C.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:C.el.offsetHeight})},d.importCssString(`
1708
- .error_widget_wrapper {
1709
- background: inherit;
1710
- color: inherit;
1711
- border:none
1712
- }
1713
- .error_widget {
1714
- border-top: solid 2px;
1715
- border-bottom: solid 2px;
1716
- margin: 5px 0;
1717
- padding: 10px 40px;
1718
- white-space: pre-wrap;
1719
- }
1720
- .error_widget.ace_error, .error_widget_arrow.ace_error{
1721
- border-color: #ff5a5a
1722
- }
1723
- .error_widget.ace_warning, .error_widget_arrow.ace_warning{
1724
- border-color: #F1D817
1725
- }
1726
- .error_widget.ace_info, .error_widget_arrow.ace_info{
1727
- border-color: #5a5a5a
1728
- }
1729
- .error_widget.ace_ok, .error_widget_arrow.ace_ok{
1730
- border-color: #5aaa5a
1731
- }
1732
- .error_widget_arrow {
1733
- position: absolute;
1734
- border: solid 5px;
1735
- border-top-color: transparent!important;
1736
- border-right-color: transparent!important;
1737
- border-left-color: transparent!important;
1738
- top: -5px;
1739
- }
1740
- `,"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,p){n("./loader_build")(i);var u=n("./lib/dom"),d=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,h=n("./undomanager").UndoManager,o=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,l){if(typeof r=="string"){var c=r;if(r=document.getElementById(c),!r)throw new Error("ace.edit can't find div #"+c)}if(r&&r.env&&r.env.editor instanceof g)return r.env.editor;var a="";if(r&&/input|textarea/i.test(r.tagName)){var f=r;a=f.value,r=u.createElement("pre"),f.parentNode.replaceChild(r,f)}else r&&(a=r.textContent,r.innerHTML="");var m=i.createEditSession(a),v=new g(new o(r),m,l),b={document:m,editor:v,onResize:v.resize.bind(v,null)};return f&&(b.textarea=f),v.on("destroy",function(){b.editor.container.env=null}),v.container.env=v.env=b,v},i.createEditSession=function(r,l){var c=new s(r,l);return c.setUndoManager(new h),c},i.Range=d,i.Editor=g,i.EditSession=s,i.UndoManager=h,i.VirtualRenderer=o,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 p in n)n.hasOwnProperty(p)&&(i.ace[p]=n[p]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()})(sp);var U2=sp.exports;const El=un(U2),z2="/assets/mode-yaml-24faa242.js",V2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";El.config.setModuleUrl("ace/mode/yaml",z2);El.config.setModuleUrl("ace/theme/monokai",V2);var ap=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(p,u){return p[0]===n?(i=u,!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),p=this.__entries__[i];return p&&p[1]},t.prototype.set=function(n,i){var p=e(this.__entries__,n);~p?this.__entries__[p][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,p=e(i,n);~p&&i.splice(p,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 p=0,u=this.__entries__;p<u.length;p++){var d=u[p];n.call(i,d[1],d[0])}},t}()}(),$a=typeof window<"u"&&typeof document<"u"&&window.document===document,ko=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")()}(),j2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ko):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),G2=2;function K2(e,t){var n=!1,i=!1,p=0;function u(){n&&(n=!1,e()),i&&g()}function d(){j2(u)}function g(){var s=Date.now();if(n){if(s-p<G2)return;i=!0}else n=!0,i=!1,setTimeout(d,t);p=s}return g}var Y2=20,X2=["top","right","bottom","left","width","height","size","weight"],Z2=typeof MutationObserver<"u",Q2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=K2(this.refresh.bind(this),Y2)}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(){!$a||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Z2?(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(){!$a||!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,p=X2.some(function(u){return!!~i.indexOf(u)});p&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),lp=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var p=i[n];Object.defineProperty(e,p,{value:t[p],enumerable:!1,writable:!1,configurable:!0})}return e},xi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ko},cp=hs(0,0,0,0);function Eo(e){return parseFloat(e)||0}function Su(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,p){var u=e["border-"+p+"-width"];return i+Eo(u)},0)}function J2(e){for(var t=["top","right","bottom","left"],n={},i=0,p=t;i<p.length;i++){var u=p[i],d=e["padding-"+u];n[u]=Eo(d)}return n}function q2(e){var t=e.getBBox();return hs(0,0,t.width,t.height)}function ex(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return cp;var i=xi(e).getComputedStyle(e),p=J2(i),u=p.left+p.right,d=p.top+p.bottom,g=Eo(i.width),s=Eo(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=Su(i,"left","right")+u),Math.round(s+d)!==n&&(s-=Su(i,"top","bottom")+d)),!nx(e)){var h=Math.round(g+u)-t,o=Math.round(s+d)-n;Math.abs(h)!==1&&(g-=h),Math.abs(o)!==1&&(s-=o)}return hs(p.left,p.top,g,s)}var tx=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof xi(e).SVGGraphicsElement}:function(e){return e instanceof xi(e).SVGElement&&typeof e.getBBox=="function"}}();function nx(e){return e===xi(e).document.documentElement}function ix(e){return $a?tx(e)?q2(e):ex(e):cp}function rx(e){var t=e.x,n=e.y,i=e.width,p=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(u.prototype);return lp(d,{x:t,y:n,width:i,height:p,top:n,right:t+i,bottom:p+n,left:t}),d}function hs(e,t,n,i){return{x:e,y:t,width:n,height:i}}var ox=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=hs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ix(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}(),sx=function(){function e(t,n){var i=rx(n);lp(this,{target:t,contentRect:i})}return e}(),ax=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new ap,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 xi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ox(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 xi(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 sx(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}(),up=typeof WeakMap<"u"?new WeakMap:new ap,hp=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=Q2.getInstance(),i=new ax(t,n,this);up.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){hp.prototype[e]=function(){var t;return(t=up.get(this))[e].apply(t,arguments)}});var lx=function(){return typeof ko.ResizeObserver<"u"?ko.ResizeObserver:hp}();const Au=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],fp=$e({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",...Au],render(){return Oi("div")},mounted(){const e=this._editor=Wo(El.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)}),Au.forEach(t=>{const n="on"+Ri(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new lx(()=>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)}}}),cx=$e({name:"RuleInputForm",components:{VAceEditor:fp},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=yi(e,"yaml");return Rh(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),ux={class:"block"};function hx(e,t,n,i,p,u){const d=fe("VAceEditor");return q(),oe("div",ux,[he(d,{class:"vue-ace-editor",value:e.yamlInput,"onUpdate:value":t[0]||(t[0]=g=>e.yamlInput=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])])}const dp=xe(cx,[["render",hx]]),fx=$e({name:"EditRule",components:{InputForm:dp,ErrorMessage:hn},props:{rule:{type:Object,required:!0}},setup(e){const t=Ii(),n=yi(e,"rule"),i=yi(n.value,"yaml"),p=e$();return{edit:async()=>{const g=await p.perform({id:e.rule.id,yaml:i.value});t.push({name:"Rule",params:{id:g.id}})},yaml:i,updateYAML:g=>{i.value=g},updateRuleTask:p}}}),dx={class:"column"},px={class:"is-size-2 mb-4"},gx={class:"field is-grouped is-grouped-centered"},mx={class:"control"},vx={class:"icon is-small"},yx=N("span",null,"Edit",-1),bx={key:0},wx=N("hr",null,null,-1);function $x(e,t,n,i,p,u){var h,o;const d=fe("InputForm"),g=fe("font-awesome-icon"),s=fe("ErrorMessage");return q(),oe("div",dx,[N("h2",px,"Edit rule: "+Ae(e.rule.id),1),he(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",gx,[N("p",mx,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[N("span",vx,[he(g,{icon:"edit"})]),yx])])]),(h=e.updateRuleTask.last)!=null&&h.error?(q(),oe("div",bx,[wx,he(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const _x=xe(fx,[["render",$x]]),Cx=$e({name:"EditRuleWrapper",components:{EditRule:_x,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Dd(),n=async()=>{await t.perform(e.id)};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function Sx(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("EditRule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):we("",!0)],64)}const Ax=xe(Cx,[["render",Sx]]),xx=$e({name:"EditRuleView",components:{EditRule:Ax},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ni(`Edit rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function kx(e,t,n,i,p,u){const d=fe("EditRule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const Ex=xe(xx,[["render",kx]]);function Rx(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 p=i.reduce(function(g,s){var h=s.match(/\n([\t ]+|(?!\s).)/g);return h?g.concat(h.map(function(o){var r,l;return(l=(r=o.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&l!==void 0?l:0})):g},[]);if(p.length){var u=new RegExp(`
1741
- [ ]{`+Math.min.apply(Math,p)+"}","g");i=i.map(function(g){return g.replace(u,`
1742
- `)})}i[0]=i[0].replace(/^\r?\n/,"");var d=i[0];return t.forEach(function(g,s){var h=d.match(/(?:^|\n)( *)$/),o=h?h[1]:"",r=g;typeof g=="string"&&g.includes(`
1743
- `)&&(r=String(g).split(`
1744
- `).map(function(l,c){return c===0?l:""+o+l}).join(`
1745
- `)),d+=r+i[s+1]}),d}var qr,Tx=new Uint8Array(16);function Lx(){if(!qr&&(qr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!qr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qr(Tx)}const Mx=/^(?:[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 Ox(e){return typeof e=="string"&&Mx.test(e)}var it=[];for(var Os=0;Os<256;++Os)it.push((Os+256).toString(16).substr(1));function Ix(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase();if(!Ox(n))throw TypeError("Stringified UUID is invalid");return n}function Fx(e,t,n){e=e||{};var i=e.random||(e.rng||Lx)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(var p=0;p<16;++p)t[n+p]=i[p];return t}return Ix(i)}function Nx(){const e=Fx(),t=Pi();return Rx`---
1746
- id: ${e}
1747
- title: Title goes here
1748
- description: Description goes here
1749
- created_on: ${t.format("YYYY-MM-DD")}
1750
- queries: []`}const Px=$e({name:"NewRule",components:{InputForm:dp,ErrorMessage:hn},setup(){const e=Ii(),t=Ie(Nx()),n=q1();return{yaml:t,create:async()=>{const u=await n.perform({yaml:t.value});e.push({name:"Rule",params:{id:u.id}})},updateYAML:u=>{t.value=u},createRuleTask:n}}}),Dx={class:"column"},Bx=N("h2",{class:"is-size-2 mb-4"},"New rule",-1),Wx={class:"field is-grouped is-grouped-centered"},Hx={class:"control"},Ux={class:"icon is-small"},zx=N("span",null,"Create",-1),Vx={key:0},jx=N("hr",null,null,-1);function Gx(e,t,n,i,p,u){var h,o;const d=fe("InputForm"),g=fe("font-awesome-icon"),s=fe("ErrorMessage");return q(),oe("div",Dx,[Bx,he(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",Wx,[N("p",Hx,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[N("span",Ux,[he(g,{icon:"plus"})]),zx])])]),(h=e.createRuleTask.last)!=null&&h.error?(q(),oe("div",Vx,[jx,he(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Kx=xe(Px,[["render",Gx]]),Yx=$e({name:"NewRuleView",components:{NewRule:Kx},setup(){const e=()=>{ni("New rule - Mihari")};tt(()=>{e()})}});function Xx(e,t,n,i,p,u){const d=fe("NewRule",!0);return q(),Me(d)}const Zx=xe(Yx,[["render",Xx]]),Qx=$e({name:"YAML",components:{VAceEditor:fp},props:{yaml:{type:String,required:!0}},setup(){}}),Jx={class:"block"};function qx(e,t,n,i,p,u){const d=fe("VAceEditor");return q(),oe("div",Jx,[he(d,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const ek=xe(Qx,[["render",qx]]),tk=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:ek,Alerts:Zd,Loading:fn,ErrorMessage:hn},emits:["refresh"],setup(e,t){const n=Ii(),i=Q1(),p=J1();return{deleteRule:async()=>{window.confirm(`Are you sure you want to delete ${e.rule.id}?`)&&(await i.perform(e.rule.id),n.push("/"))},runRule:async()=>{await p.perform(e.rule.id),t.emit("refresh")},runRuleTask:p}}}),nk={class:"column"},ik={key:0},rk=N("hr",null,null,-1),ok={key:1},sk=N("hr",null,null,-1),ak=N("h2",{class:"is-size-2 mb-4"},"Rule",-1),lk={class:"block is-clearfix"},ck={class:"buttons is-pulled-right"},uk=N("span",null,"Run",-1),hk={class:"icon is-small"},fk=N("span",null,"Edit",-1),dk={class:"icon is-small"},pk=N("span",null,"Delete",-1),gk={class:"icon is-small"},mk=N("hr",null,null,-1),vk={class:"column"},yk=N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function bk(e,t,n,i,p,u){var l;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("font-awesome-icon"),h=fe("router-link"),o=fe("YAML"),r=fe("Alerts");return q(),oe(Se,null,[N("div",nk,[e.runRuleTask.isRunning?(q(),oe("div",ik,[he(d),rk])):we("",!0),(l=e.runRuleTask.last)!=null&&l.error?(q(),oe("div",ok,[he(g,{error:e.runRuleTask.last.error},null,8,["error"]),sk])):we("",!0),ak,N("p",lk,[N("span",ck,[N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...c)=>e.runRule&&e.runRule(...c))},[uk,N("span",hk,[he(s,{icon:"arrow-right"})])]),he(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:xt(()=>[fk,N("span",dk,[he(s,{icon:"edit"})])]),_:1},8,["to"]),N("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...c)=>e.deleteRule&&e.deleteRule(...c))},[pk,N("span",gk,[he(s,{icon:"times"})])])])]),he(o,{yaml:e.rule.yaml},null,8,["yaml"])]),mk,N("div",vk,[yk,he(r,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const wk=xe(tk,[["render",bk]]),$k=$e({name:"RuleWrapper",components:{Rule:wk,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Dd(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function _k(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("Rule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.refresh},null,8,["rule","onRefresh"])):we("",!0)],64)}const Ck=xe($k,[["render",_k]]),Sk=$e({name:"RuleView",components:{Rule:Ck},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ni(`Rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function Ak(e,t,n,i,p,u){const d=fe("Rule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const xk=xe(Sk,[["render",Ak]]),kk=$e({name:"RulesForm",props:{tags:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=ts(),n=Ie(void 0),i=Ie(void 0),p=yi(e,"tag"),u=Ie(void 0),d=Ie(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=jd(h))},s=()=>(g(),{description:n.value===""?void 0:n.value,page:e.page,tag:p.value===""?void 0:p.value,title:u.value===""?void 0:u.value,toAt:d.value===""?void 0:d.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{description:n,fromAt:i,getSearchParams:s,title:u,toAt:d,tagInput:p}}}),Ek={class:"columns"},Rk={class:"column"},Tk={class:"field is-horizontal"},Lk=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Title")],-1),Mk={class:"field-body"},Ok={class:"field"},Ik={class:"control"},Fk={class:"column"},Nk={class:"field is-horizontal"},Pk=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Description")],-1),Dk={class:"field-body"},Bk={class:"field"},Wk={class:"control"},Hk={class:"columns"},Uk={class:"column"},zk={class:"field is-horizontal"},Vk=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),jk={class:"field-body"},Gk={class:"field"},Kk={class:"control"},Yk={class:"select"},Xk=N("option",null,null,-1),Zk=N("div",{class:"column"},null,-1),Qk={class:"columns"},Jk={class:"column"},qk={class:"field is-horizontal"},eE=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),tE={class:"field-body"},nE={class:"field"},iE={class:"control"},rE={class:"column"},oE={class:"field is-horizontal"},sE=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),aE={class:"field-body"},lE={class:"field"},cE={class:"control"};function uE(e,t,n,i,p,u){return q(),oe(Se,null,[N("div",Ek,[N("div",Rk,[N("div",Tk,[Lk,N("div",Mk,[N("div",Ok,[N("p",Ik,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=d=>e.title=d)},null,512),[[Ft,e.title]])])])])])]),N("div",Fk,[N("div",Nk,[Pk,N("div",Dk,[N("div",Bk,[N("p",Wk,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.description=d)},null,512),[[Ft,e.description]])])])])])])]),N("div",Hk,[N("div",Uk,[N("div",zk,[Vk,N("div",jk,[N("div",Gk,[N("div",Kk,[N("div",Yk,[Mt(N("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[Xk,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[vr,e.tagInput]])])])])])])]),Zk]),N("div",Qk,[N("div",Jk,[N("div",qk,[eE,N("div",tE,[N("div",nE,[N("p",iE,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),N("div",rE,[N("div",oE,[sE,N("div",aE,[N("div",lE,[N("p",cE,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const hE=xe(kk,[["render",uE]]),fE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Gd,Tags:Bd},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})},i=g=>{n(),t.emit("update-page",g)},p=()=>{n(),t.emit("refresh-page")},u=g=>{n(),t.emit("update-tag",g)},d=Ee(()=>e.rules.rules.length>0);return{updatePage:i,refreshPage:p,updateTag:u,hasRules:d}}}),dE={key:0},pE={class:"table is-fullwidth"},gE=N("tr",null,[N("th",null,"ID"),N("th",null,"Title"),N("th",null,"Description"),N("th",null,"Tags")],-1),mE={class:"help"};function vE(e,t,n,i,p,u){const d=fe("router-link"),g=fe("Tags"),s=fe("Pagination");return q(),oe(Se,null,[e.hasRules?(q(),oe("div",dE,[N("table",pE,[gE,(q(!0),oe(Se,null,ct(e.rules.rules,h=>(q(),oe("tr",{key:h.id},[N("td",null,[he(d,{to:{name:"Rule",params:{id:h.id}}},{default:xt(()=>[at(Ae(h.id),1)]),_:2},1032,["to"])]),N("td",null,Ae(h.title),1),N("td",null,Ae(h.description),1),N("td",null,[he(g,{tags:h.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])]))),128))])])):we("",!0),he(s,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.updatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),N("p",mE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const yE=xe(fE,[["render",vE]]),bE=$e({name:"RulesWrapper",components:{Rules:yE,Loading:fn,FormComponent:hE,ErrorMessage:hn},setup(){const e=Ie(1),t=Ie(void 0),n=Ie(),i=Z1(),p=Nd(),u=async()=>{var l;const r=(l=n.value)==null?void 0:l.getSearchParams();return await i.perform(r)},d=r=>{e.value=r},g=()=>{e.value=1},s=async()=>{g(),await u()},h=r=>{t.value===r?t.value=void 0:t.value=r,Vt(async()=>await s())},o=async()=>{await s()};return tt(async()=>{p.perform(),await u()}),Ye([e,t],async()=>{Vt(async()=>await u())}),{form:n,getRulesTask:i,getTagsTask:p,page:e,tag:t,refreshPage:o,search:s,updatePage:d,updateTag:h}}}),wE={class:"box mb-6"},$E=N("hr",null,null,-1),_E={class:"column"},CE={class:"field is-grouped is-grouped-centered"},SE={class:"control"},AE={class:"icon is-small"},xE=N("span",null,"Search",-1),kE={key:0},EE=N("hr",null,null,-1);function RE(e,t,n,i,p,u){var r,l,c;const d=fe("FormComponent"),g=fe("font-awesome-icon"),s=fe("Loading"),h=fe("ErrorMessage"),o=fe("Rules");return q(),oe(Se,null,[N("div",wE,[he(d,{ref:"form",tags:((r=e.getTagsTask.last)==null?void 0:r.value)||[],page:e.page,tag:e.tag},null,8,["tags","page","tag"]),$E,N("div",_E,[N("div",CE,[N("p",SE,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...a)=>e.search&&e.search(...a))},[N("span",AE,[he(g,{icon:"search"})]),xE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",kE,[EE,e.getRulesTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getRulesTask.isError?(q(),Me(h,{key:1,error:(l=e.getRulesTask.last)==null?void 0:l.error},null,8,["error"])):we("",!0),(c=e.getRulesTask.last)!=null&&c.value?(q(),Me(o,{key:2,rules:e.getRulesTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["rules","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const TE=xe(bE,[["render",RE]]),LE=$e({name:"RulesView",components:{Rules:TE},setup(){ni("Rules - Mihari")}});function ME(e,t,n,i,p,u){const d=fe("Rules",!0);return q(),Me(d)}const OE=xe(LE,[["render",ME]]),IE=[{path:"/",name:"Alerts",component:CC},{path:"/configs",name:"Configs",component:H2},{path:"/artifacts/:id",name:"Artifact",component:w2,props:!0},{path:"/rules",name:"Rules",component:OE},{path:"/rules/new",name:"NewRule",component:Zx},{path:"/rules/:id",name:"Rule",component:xk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:Ex,props:!0}],FE=Jb({history:pb(),routes:IE});Xg.add(em,cm,qg,um,nm,Qg,om,rm,lm,am);const pp=If(X0);pp.component("font-awesome-icon",I0);pp.use(FE).mount("#app");