mihari 5.6.0 → 5.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/docs/analyzers/binaryedge.md +1 -1
  3. data/docs/analyzers/censys.md +1 -1
  4. data/docs/analyzers/circl.md +1 -1
  5. data/docs/analyzers/crtsh.md +1 -1
  6. data/docs/analyzers/dnstwister.md +1 -1
  7. data/docs/analyzers/greynoise.md +1 -1
  8. data/docs/analyzers/hunterhow.md +1 -1
  9. data/docs/analyzers/index.md +29 -15
  10. data/docs/analyzers/onyphe.md +1 -1
  11. data/docs/analyzers/otx.md +2 -2
  12. data/docs/analyzers/passivetotal.md +2 -2
  13. data/docs/analyzers/pulsedive.md +2 -2
  14. data/docs/analyzers/securitytrails.md +2 -2
  15. data/docs/analyzers/shodan.md +1 -1
  16. data/docs/analyzers/urlscan.md +3 -3
  17. data/docs/analyzers/virustotal.md +2 -2
  18. data/docs/analyzers/virustotal_intelligence.md +4 -4
  19. data/docs/analyzers/zoomeye.md +5 -0
  20. data/docs/enrichers/google_public_dns.md +1 -1
  21. data/docs/enrichers/ipinfo.md +2 -2
  22. data/docs/enrichers/shodan.md +4 -4
  23. data/docs/enrichers/whois.md +1 -1
  24. data/frontend/package-lock.json +176 -179
  25. data/frontend/package.json +9 -9
  26. data/lib/mihari/{base.rb → actor.rb} +16 -2
  27. data/lib/mihari/analyzers/base.rb +5 -10
  28. data/lib/mihari/analyzers/censys.rb +1 -1
  29. data/lib/mihari/analyzers/circl.rb +1 -1
  30. data/lib/mihari/analyzers/crtsh.rb +1 -1
  31. data/lib/mihari/analyzers/dnstwister.rb +1 -1
  32. data/lib/mihari/analyzers/hunterhow.rb +1 -1
  33. data/lib/mihari/analyzers/otx.rb +1 -1
  34. data/lib/mihari/analyzers/passivetotal.rb +2 -2
  35. data/lib/mihari/analyzers/pulsedive.rb +2 -2
  36. data/lib/mihari/analyzers/securitytrails.rb +2 -2
  37. data/lib/mihari/analyzers/urlscan.rb +1 -1
  38. data/lib/mihari/analyzers/virustotal.rb +5 -5
  39. data/lib/mihari/analyzers/zoomeye.rb +3 -3
  40. data/lib/mihari/clients/base.rb +2 -2
  41. data/lib/mihari/clients/binaryedge.rb +3 -5
  42. data/lib/mihari/clients/censys.rb +3 -3
  43. data/lib/mihari/clients/circl.rb +5 -4
  44. data/lib/mihari/clients/crtsh.rb +5 -4
  45. data/lib/mihari/clients/dnstwister.rb +3 -2
  46. data/lib/mihari/clients/greynoise.rb +2 -2
  47. data/lib/mihari/clients/hunterhow.rb +2 -2
  48. data/lib/mihari/clients/misp.rb +1 -1
  49. data/lib/mihari/clients/onyphe.rb +2 -2
  50. data/lib/mihari/clients/otx.rb +4 -3
  51. data/lib/mihari/clients/passivetotal.rb +9 -8
  52. data/lib/mihari/clients/publsedive.rb +4 -3
  53. data/lib/mihari/clients/securitytrails.rb +8 -6
  54. data/lib/mihari/clients/shodan.rb +2 -2
  55. data/lib/mihari/clients/the_hive.rb +1 -1
  56. data/lib/mihari/clients/urlscan.rb +4 -4
  57. data/lib/mihari/clients/virustotal.rb +2 -2
  58. data/lib/mihari/clients/zoomeye.rb +2 -2
  59. data/lib/mihari/commands/rule.rb +2 -11
  60. data/lib/mihari/commands/search.rb +1 -1
  61. data/lib/mihari/emitters/base.rb +13 -24
  62. data/lib/mihari/emitters/database.rb +7 -9
  63. data/lib/mihari/emitters/misp.rb +14 -38
  64. data/lib/mihari/emitters/slack.rb +14 -11
  65. data/lib/mihari/emitters/the_hive.rb +16 -44
  66. data/lib/mihari/emitters/webhook.rb +31 -21
  67. data/lib/mihari/enrichers/base.rb +1 -6
  68. data/lib/mihari/enrichers/whois.rb +1 -1
  69. data/lib/mihari/models/alert.rb +75 -73
  70. data/lib/mihari/models/artifact.rb +182 -180
  71. data/lib/mihari/models/autonomous_system.rb +22 -20
  72. data/lib/mihari/models/cpe.rb +21 -19
  73. data/lib/mihari/models/dns.rb +24 -22
  74. data/lib/mihari/models/geolocation.rb +22 -20
  75. data/lib/mihari/models/port.rb +21 -19
  76. data/lib/mihari/models/reverse_dns.rb +21 -19
  77. data/lib/mihari/models/rule.rb +67 -65
  78. data/lib/mihari/models/tag.rb +5 -3
  79. data/lib/mihari/models/tagging.rb +5 -3
  80. data/lib/mihari/models/whois.rb +18 -16
  81. data/lib/mihari/rule.rb +352 -0
  82. data/lib/mihari/schemas/analyzer.rb +94 -87
  83. data/lib/mihari/schemas/emitter.rb +9 -5
  84. data/lib/mihari/schemas/enricher.rb +8 -4
  85. data/lib/mihari/schemas/mixins.rb +15 -0
  86. data/lib/mihari/schemas/rule.rb +3 -10
  87. data/lib/mihari/services/alert_builder.rb +1 -1
  88. data/lib/mihari/services/alert_proxy.rb +10 -6
  89. data/lib/mihari/services/alert_runner.rb +4 -4
  90. data/lib/mihari/services/rule_builder.rb +3 -3
  91. data/lib/mihari/services/rule_runner.rb +5 -5
  92. data/lib/mihari/structs/binaryedge.rb +1 -1
  93. data/lib/mihari/structs/censys.rb +6 -6
  94. data/lib/mihari/structs/config.rb +1 -1
  95. data/lib/mihari/structs/greynoise.rb +5 -5
  96. data/lib/mihari/structs/hunterhow.rb +3 -3
  97. data/lib/mihari/structs/onyphe.rb +5 -5
  98. data/lib/mihari/structs/shodan.rb +6 -6
  99. data/lib/mihari/structs/urlscan.rb +3 -3
  100. data/lib/mihari/structs/virustotal_intelligence.rb +3 -3
  101. data/lib/mihari/version.rb +1 -1
  102. data/lib/mihari/web/endpoints/alerts.rb +4 -4
  103. data/lib/mihari/web/endpoints/artifacts.rb +6 -6
  104. data/lib/mihari/web/endpoints/rules.rb +10 -17
  105. data/lib/mihari/web/endpoints/tags.rb +2 -2
  106. data/lib/mihari/web/public/assets/{index-9cc489e6.js → index-28d4c79d.js} +48 -48
  107. data/lib/mihari/web/public/index.html +1 -1
  108. data/lib/mihari.rb +6 -8
  109. data/mihari.gemspec +1 -2
  110. data/mkdocs.yml +0 -3
  111. data/requirements.txt +1 -1
  112. metadata +8 -22
  113. data/lib/mihari/analyzers/rule.rb +0 -232
  114. data/lib/mihari/services/rule_proxy.rb +0 -182
@@ -1,6 +1,6 @@
1
- var dp=Object.defineProperty;var pp=(e,t,n)=>t in e?dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>(pp(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){tt(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 co(e){"@babel/helpers - typeof";return co=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},co(e)}function gp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(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 mp(e,t,n){return t&&Ml(e.prototype,t),n&&Ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tt(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 yp(e)||wp(e,t)||ku(e,t)||_p()}function _r(e){return vp(e)||bp(e)||ku(e)||$p()}function vp(e){if(Array.isArray(e))return Is(e)}function yp(e){if(Array.isArray(e))return e}function bp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wp(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 ku(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 $p(){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 _p(){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 Ol=function(){},Ca={},Eu={},Ru=null,Lu={mark:Ol,measure:Ol};try{typeof window<"u"&&(Ca=window),typeof document<"u"&&(Eu=document),typeof MutationObserver<"u"&&(Ru=MutationObserver),typeof performance<"u"&&(Lu=performance)}catch{}var Cp=Ca.navigator||{},Il=Cp.userAgent,Fl=Il===void 0?"":Il,xn=Ca,Ve=Eu,Nl=Ru,Or=Lu;xn.document;var ln=!!Ve.documentElement&&!!Ve.head&&typeof Ve.addEventListener=="function"&&typeof Ve.createElement=="function",Tu=~Fl.indexOf("MSIE")||~Fl.indexOf("Trident/"),Ir,Fr,Nr,Pr,Dr,on="___FONT_AWESOME___",Fs=16,Mu="fa",Ou="svg-inline--fa",Yn="data-fa-i2svg",Ns="data-fa-pseudo-element",Sp="data-fa-pseudo-element-pending",Sa="data-prefix",Aa="data-icon",Pl="fontawesome-i2svg",Ap="async",xp=["HTML","HEAD","STYLE","SCRIPT"],Iu=function(){try{return!0}catch{return!1}}(),ze="classic",Xe="sharp",xa=[ze,Xe];function Cr(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[ze]}})}var rr=Cr((Ir={},tt(Ir,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"}),tt(Ir,Xe,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Ir)),or=Cr((Fr={},tt(Fr,ze,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),tt(Fr,Xe,{solid:"fass",regular:"fasr",light:"fasl"}),Fr)),sr=Cr((Nr={},tt(Nr,ze,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),tt(Nr,Xe,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Nr)),kp=Cr((Pr={},tt(Pr,ze,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),tt(Pr,Xe,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Pr)),Ep=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Fu="fa-layers-text",Rp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Lp=Cr((Dr={},tt(Dr,ze,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),tt(Dr,Xe,{900:"fass",400:"fasr",300:"fasl"}),Dr)),Nu=[1,2,3,4,5,6,7,8,9,10],Tp=Nu.concat([11,12,13,14,15,16,17,18,19,20]),Mp=["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 Op=[].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(Nu.map(function(e){return"".concat(e,"x")})).concat(Tp.map(function(e){return"w-".concat(e)})),Ki=xn.FontAwesomeConfig||{};function Ip(e){var t=Ve.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Fp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ve&&typeof Ve.querySelector=="function"){var Np=[["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"]];Np.forEach(function(e){var t=_a(e,2),n=t[0],i=t[1],p=Fp(Ip(n));p!=null&&(Ki[i]=p)})}var Pu={styleDefault:"solid",familyDefault:"classic",cssPrefix:Mu,replacementClass:Ou,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 mi=pe(pe({},Pu),Ki);mi.autoReplaceSvg||(mi.observeMutations=!1);var ye={};Object.keys(Pu).forEach(function(e){Object.defineProperty(ye,e,{enumerable:!0,set:function(n){mi[e]=n,Yi.forEach(function(i){return i(ye)})},get:function(){return mi[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(t){mi.cssPrefix=t,Yi.forEach(function(n){return n(ye)})},get:function(){return mi.cssPrefix}});xn.FontAwesomeConfig=ye;var Yi=[];function Pp(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 Dp(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 Bp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function lr(){for(var e=12,t="";e-- >0;)t+=Bp[Math.random()*62|0];return t}function xi(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ka(e){return e.classList?xi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Du(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Wp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Du(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 Hp(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 Up(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 zp=`:root, :host {
1
+ var pp=Object.defineProperty;var gp=(e,t,n)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>(gp(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){tt(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 co(e){"@babel/helpers - typeof";return co=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},co(e)}function mp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(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 vp(e,t,n){return t&&Ml(e.prototype,t),n&&Ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){return bp(e)||$p(e,t)||ku(e,t)||Cp()}function _r(e){return yp(e)||wp(e)||ku(e)||_p()}function yp(e){if(Array.isArray(e))return Fs(e)}function bp(e){if(Array.isArray(e))return e}function wp(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 ku(e,t){if(e){if(typeof e=="string")return Fs(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 Fs(e,t)}}function Fs(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 _p(){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 Cp(){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 Ol=function(){},Sa={},Eu={},Ru=null,Lu={mark:Ol,measure:Ol};try{typeof window<"u"&&(Sa=window),typeof document<"u"&&(Eu=document),typeof MutationObserver<"u"&&(Ru=MutationObserver),typeof performance<"u"&&(Lu=performance)}catch{}var Sp=Sa.navigator||{},Il=Sp.userAgent,Fl=Il===void 0?"":Il,xn=Sa,Ve=Eu,Nl=Ru,Or=Lu;xn.document;var ln=!!Ve.documentElement&&!!Ve.head&&typeof Ve.addEventListener=="function"&&typeof Ve.createElement=="function",Tu=~Fl.indexOf("MSIE")||~Fl.indexOf("Trident/"),Ir,Fr,Nr,Pr,Dr,on="___FONT_AWESOME___",Ns=16,Mu="fa",Ou="svg-inline--fa",Yn="data-fa-i2svg",Ps="data-fa-pseudo-element",Ap="data-fa-pseudo-element-pending",Aa="data-prefix",xa="data-icon",Pl="fontawesome-i2svg",xp="async",kp=["HTML","HEAD","STYLE","SCRIPT"],Iu=function(){try{return!0}catch{return!1}}(),ze="classic",Xe="sharp",ka=[ze,Xe];function Cr(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[ze]}})}var or=Cr((Ir={},tt(Ir,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"}),tt(Ir,Xe,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Ir)),sr=Cr((Fr={},tt(Fr,ze,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),tt(Fr,Xe,{solid:"fass",regular:"fasr",light:"fasl"}),Fr)),ar=Cr((Nr={},tt(Nr,ze,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),tt(Nr,Xe,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Nr)),Ep=Cr((Pr={},tt(Pr,ze,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),tt(Pr,Xe,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Pr)),Rp=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Fu="fa-layers-text",Lp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Tp=Cr((Dr={},tt(Dr,ze,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),tt(Dr,Xe,{900:"fass",400:"fasr",300:"fasl"}),Dr)),Nu=[1,2,3,4,5,6,7,8,9,10],Mp=Nu.concat([11,12,13,14,15,16,17,18,19,20]),Op=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Hn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},lr=new Set;Object.keys(sr[ze]).map(lr.add.bind(lr));Object.keys(sr[Xe]).map(lr.add.bind(lr));var Ip=[].concat(ka,_r(lr),["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(Nu.map(function(e){return"".concat(e,"x")})).concat(Mp.map(function(e){return"w-".concat(e)})),Yi=xn.FontAwesomeConfig||{};function Fp(e){var t=Ve.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Np(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ve&&typeof Ve.querySelector=="function"){var Pp=[["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"]];Pp.forEach(function(e){var t=Ca(e,2),n=t[0],i=t[1],p=Np(Fp(n));p!=null&&(Yi[i]=p)})}var Pu={styleDefault:"solid",familyDefault:"classic",cssPrefix:Mu,replacementClass:Ou,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Yi.familyPrefix&&(Yi.cssPrefix=Yi.familyPrefix);var mi=pe(pe({},Pu),Yi);mi.autoReplaceSvg||(mi.observeMutations=!1);var ye={};Object.keys(Pu).forEach(function(e){Object.defineProperty(ye,e,{enumerable:!0,set:function(n){mi[e]=n,Xi.forEach(function(i){return i(ye)})},get:function(){return mi[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(t){mi.cssPrefix=t,Xi.forEach(function(n){return n(ye)})},get:function(){return mi.cssPrefix}});xn.FontAwesomeConfig=ye;var Xi=[];function Dp(e){return Xi.push(e),function(){Xi.splice(Xi.indexOf(e),1)}}var pn=Ns,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Bp(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 Wp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function cr(){for(var e=12,t="";e-- >0;)t+=Wp[Math.random()*62|0];return t}function ki(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ea(e){return e.classList?ki(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Du(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Hp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Du(e[n]),'" ')},"").trim()}function Lo(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ra(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}function Up(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 zp(e){var t=e.transform,n=e.width,i=n===void 0?Ns:n,p=e.height,u=p===void 0?Ns: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 Vp=`:root, :host {
4
4
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
5
5
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
6
6
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -756,27 +756,27 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
756
756
  .fad.fa-inverse,
757
757
  .fa-duotone.fa-inverse {
758
758
  color: var(--fa-inverse, #fff);
759
- }`;function Bu(){var e=Mu,t=Ou,n=ye.cssPrefix,i=ye.replacementClass,p=zp;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 Dl=!1;function fs(){ye.autoAddCss&&!Dl&&(Dp(Bu()),Dl=!0)}var Vp={mixout:function(){return{dom:{css:Bu,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],Wu=[],jp=function e(){Ve.removeEventListener("DOMContentLoaded",e),uo=1,Wu.map(function(t){return t()})},uo=!1;ln&&(uo=(Ve.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ve.readyState),uo||Ve.addEventListener("DOMContentLoaded",jp));function Gp(e){ln&&(uo?setTimeout(e,0):Wu.push(e))}function Sr(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"?Du(e):"<".concat(t," ").concat(Wp(i),">").concat(u.map(Sr).join(""),"</").concat(t,">")}function Bl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Kp=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?Kp(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 Yp(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=Yp(e);return t.length===1?t[0].toString(16):null}function Xp(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 Wl(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=Wl(t);typeof It.hooks.addPack=="function"&&!p?It.hooks.addPack(e,Wl(t)):It.styles[e]=pe(pe({},It.styles[e]||{}),u),e==="fas"&&Ds("fa",t)}var Br,Wr,Hr,ai=It.styles,Zp=It.shims,Qp=(Br={},tt(Br,ze,Object.values(sr[ze])),tt(Br,Xe,Object.values(sr[Xe])),Br),Ra=null,Hu={},Uu={},zu={},Vu={},ju={},Jp=(Wr={},tt(Wr,ze,Object.keys(rr[ze])),tt(Wr,Xe,Object.keys(rr[Xe])),Wr);function qp(e){return~Op.indexOf(e)}function eg(e,t){var n=t.split("-"),i=n[0],p=n.slice(1).join("-");return i===e&&p!==""&&!qp(p)?p:null}var Gu=function(){var t=function(u){return ds(ai,function(d,g,s){return d[s]=ds(g,u,{}),d},{})};Hu=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}),Uu=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}),ju=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 ai||ye.autoFetchSvg,i=ds(Zp,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:{}});zu=i.names,Vu=i.unicodes,Ra=Lo(ye.styleDefault,{family:ye.familyDefault})};Pp(function(e){Ra=Lo(e.styleDefault,{family:ye.familyDefault})});Gu();function La(e,t){return(Hu[e]||{})[t]}function tg(e,t){return(Uu[e]||{})[t]}function Un(e,t){return(ju[e]||{})[t]}function Ku(e){return zu[e]||{prefix:null,iconName:null}}function ng(e){var t=Vu[e],n=La("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function kn(){return Ra}var Ta=function(){return{prefix:null,iconName:null,rest:[]}};function Lo(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 Hl=(Hr={},tt(Hr,ze,Object.keys(sr[ze])),tt(Hr,Xe,Object.keys(sr[Xe])),Hr);function To(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,p=i===void 0?!1:i,u=(t={},tt(t,ze,"".concat(ye.cssPrefix,"-").concat(ze)),tt(t,Xe,"".concat(ye.cssPrefix,"-").concat(Xe)),t),d=null,g=ze;(e.includes(u[ze])||e.some(function(h){return Hl[ze].includes(h)}))&&(g=ze),(e.includes(u[Xe])||e.some(function(h){return Hl[Xe].includes(h)}))&&(g=Xe);var s=e.reduce(function(h,o){var r=eg(ye.cssPrefix,o);if(ai[o]?(o=Qp[g].includes(o)?kp[g][o]:o,d=o,h.prefix=o):Jp[g].indexOf(o)>-1?(d=o,h.prefix=Lo(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"?Ku(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"&&!ai.far&&ai.fas&&!ye.autoFetchSvg&&(h.prefix="fas")}return h},Ta());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&&(ai.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 ig=function(){function e(){gp(this,e),this.definitions={}}return mp(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]),Gu()})}},{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}(),Ul=[],li={},ui={},rg=Object.keys(ui);function og(e,t){var n=t.mixoutsTo;return Ul=e,li={},Object.keys(ui).forEach(function(i){rg.indexOf(i)===-1&&delete ui[i]}),Ul.forEach(function(i){var p=i.mixout?i.mixout():{};if(Object.keys(p).forEach(function(d){typeof p[d]=="function"&&(n[d]=p[d]),co(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){li[d]||(li[d]=[]),li[d].push(u[d])})}i.provides&&i.provides(ui)}),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=li[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=li[e]||[];p.forEach(function(u){u.apply(null,n)})}function an(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ui[e]?ui[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,Bl(Yu.definitions,n,t)||Bl(It.styles,n,t)}var Yu=new ig,sg=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Xn("noAuto")},ag={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,Gp(function(){cg({autoReplaceSvgRoot:n}),Xn("watch",t)})}},lg={icon:function(t){if(t===null)return null;if(co(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=Lo(t[0]);return{prefix:i,iconName:Un(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match(Ep))){var p=To(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}}}},Ct={noAuto:sg,config:ye,dom:ag,parse:lg,library:Yu,findIconDefinition:Ws,toHtml:Sr},cg=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&&Ct.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 Sr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(ln){var i=Ve.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function ug(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 hg(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",y=[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(" "),R={children:[],attributes:pe(pe({},r.attributes),{},{"data-prefix":p,"data-icon":u,class:y,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&&(R.attributes[Yn]=""),s&&(R.children.push({tag:"title",attributes:{id:R.attributes["aria-labelledby"]||"title-".concat(o||lr())},children:[s]}),delete R.attributes.title);var S=pe(pe({},R),{},{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,x=$.attributes;return S.children=L,S.attributes=x,g?hg(S):ug(S)}function zl(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=Up({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 fg(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 dg={found:!1,width:512,height:512};function pg(e,t){!Iu&&!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=Ku(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))}pg(e,t),i(pe(pe({},dg),{},{icon:ye.showMissingIcons&&e?an("missingIconAbstract")||{}:{}}))})}var Vl=function(){},zs=ye.measurePerformance&&Or&&Or.mark&&Or.measure?Or:{mark:Vl,measure:Vl},Ui='FA "6.4.2"',gg=function(t){return zs.mark("".concat(Ui," ").concat(t," begins")),function(){return Xu(t)}},Xu=function(t){zs.mark("".concat(Ui," ").concat(t," ends")),zs.measure("".concat(Ui," ").concat(t),"".concat(Ui," ").concat(t," begins"),"".concat(Ui," ").concat(t," ends"))},Oa={begin:gg,end:Xu},to=function(){};function jl(e){var t=e.getAttribute?e.getAttribute(Yn):null;return typeof t=="string"}function mg(e){var t=e.getAttribute?e.getAttribute(Sa):null,n=e.getAttribute?e.getAttribute(Aa):null;return t&&n}function vg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function yg(){if(ye.autoReplaceSvg===!0)return no.replace;var e=no[ye.autoReplaceSvg];return e||no.replace}function bg(e){return Ve.createElementNS("http://www.w3.org/2000/svg",e)}function wg(e){return Ve.createElement(e)}function Zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?bg:wg: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(Zu(d,{ceFn:i}))}),p}function $g(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var no={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(p){n.parentNode.insertBefore(Zu(p),n)}),n.getAttribute(Yn)===null&&ye.keepOriginalSource){var i=Ve.createComment($g(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 no.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 Sr(g)}).join(`
760
- `);n.setAttribute(Yn,""),n.innerHTML=d}};function Gl(e){e()}function Qu(e,t){var n=typeof t=="function"?t:to;if(e.length===0)n();else{var i=Gl;ye.mutateApproach===Ap&&(i=xn.requestAnimationFrame||Gl),i(function(){var p=yg(),u=Oa.begin("mutate");e.map(p),u(),n()})}}var Ia=!1;function Ju(){Ia=!0}function Vs(){Ia=!1}var ho=null;function Kl(e){if(Nl&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?to:t,i=e.nodeCallback,p=i===void 0?to:i,u=e.pseudoElementsCallback,d=u===void 0?to:u,g=e.observeMutationsRoot,s=g===void 0?Ve:g;ho=new Nl(function(h){if(!Ia){var o=kn();xi(h).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!jl(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"&&jl(r.target)&&~Mp.indexOf(r.attributeName))if(r.attributeName==="class"&&mg(r.target)){var l=To(ka(r.target)),c=l.prefix,a=l.iconName;r.target.setAttribute(Sa,c||o),a&&r.target.setAttribute(Aa,a)}else vg(r.target)&&p(r.target)})}}),ln&&ho.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function _g(){ho&&ho.disconnect()}function Cg(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 Sg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",p=To(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=tg(p.prefix,e.innerText)||La(p.prefix,Ps(e.innerText))),!p.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(p.iconName=e.firstChild.data)),p}function Ag(e){var t=xi(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 xg(){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 Yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Sg(e),i=n.iconName,p=n.prefix,u=n.rest,d=Ag(e),g=Bs("parseNodeAttributes",{},e),s=t.styleParser?Cg(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 kg=It.styles;function qu(e){var t=ye.autoReplaceSvg==="nest"?Yl(e,{styleParser:!1}):Yl(e);return~t.extra.classes.indexOf(Fu)?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 Xl(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(Pl,"-").concat(r))},p=function(r){return n.remove("".concat(Pl,"-").concat(r))},u=ye.autoFetchSvg?En:xa.map(function(o){return"fa-".concat(o)}).concat(Object.keys(kg));u.includes("fa")||u.push("fa");var d=[".".concat(Fu,":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=xi(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=qu(r);l&&o.push(l)}catch(c){Iu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,r){Promise.all(h).then(function(l){Qu(l,function(){i("active"),i("complete"),p("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(l){s(),r(l)})})}function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;qu(e).then(function(n){n&&Qu([n],t)})}function Rg(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 Lg=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,y=v===void 0?{}:v,R=n.styles,C=R===void 0?{}:R;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?y["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(a||lr()):(y["aria-hidden"]="true",y.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:y,styles:C,classes:m}})})}},Tg={mixout:function(){return{icon:Rg(Lg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Xl,n.nodeCallback=Eg,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 Xl(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],y=m[1];c([n,Ma({icons:{main:v,mask:y},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}}}},Mg={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}]})}}}},Og={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}),fg({content:n.toString(),title:u,extra:{attributes:h,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(_r(g))}})})}}}},Ig={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}),zl({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,zl({content:n.innerHTML,width:g,height:s,transform:u,title:p,extra:d,watchable:!0})])}}},Fg=new RegExp('"',"ug"),Zl=[1105920,1112319];function Ng(e){var t=e.replace(Fg,""),n=Xp(t,0),i=n>=Zl[0]&&n<=Zl[1],p=t.length===2?t[0]===t[1]:!1;return{value:Ps(p?t[0]:t),isSecondary:i||p}}function Ql(e,t){var n="".concat(Sp).concat(t.replace(":","-"));return new Promise(function(i,p){if(e.getAttribute(n)!==null)return i();var u=xi(e.children),d=u.filter(function(L){return L.getAttribute(Ns)===t})[0],g=xn.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(Rp),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()]:Lp[l][h],a=Ng(r),f=a.value,m=a.isSecondary,v=s[0].startsWith("FontAwesome"),y=La(c,f),R=y;if(v){var C=ng(f);C.iconName&&C.prefix&&(y=C.iconName,c=C.prefix)}if(y&&!m&&(!d||d.getAttribute(Sa)!==c||d.getAttribute(Aa)!==R)){e.setAttribute(n,R),d&&e.removeChild(d);var S=xg(),$=S.extra;$.attributes[Ns]=t,Us(y,c).then(function(L){var x=Ma(pe(pe({},S),{},{icons:{main:L,mask:Ta()},prefix:c,iconName:R,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=x.map(function(M){return Sr(M)}).join(`
761
- `),e.removeAttribute(n),i()}).catch(p)}else i()}else i()})}function Pg(e){return Promise.all([Ql(e,"::before"),Ql(e,"::after")])}function Dg(e){return e.parentNode!==document.head&&!~xp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ns)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Jl(e){if(ln)return new Promise(function(t,n){var i=xi(e.querySelectorAll("*")).filter(Dg).map(Pg),p=Oa.begin("searchPseudoElements");Ju(),Promise.all(i).then(function(){p(),Vs(),t()}).catch(function(){p(),Vs(),n()})})}var Bg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Jl,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,p=i===void 0?Ve:i;ye.searchPseudoElements&&Jl(p)}}},ql=!1,Wg={mixout:function(){return{dom:{unwatch:function(){Ju(),ql=!0}}}},hooks:function(){return{bootstrap:function(){Kl(Bs("mutationObserverCallbacks",{}))},noAuto:function(){_g()},watch:function(n){var i=n.observeMutationsRoot;ql?Vs():Kl(Bs("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},ec=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)},Hg={mixout:function(){return{parse:{transform:function(n){return ec(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-transform");return p&&(n.transform=ec(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 tc(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 Ug(e){return e.tag==="g"?e.children:[e]}var zg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-mask"),u=p?To(p.split(" ").map(function(d){return d.trim()})):Ta();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=Hp({transform:s,containerWidth:r,iconWidth:h}),a={tag:"rect",attributes:pe(pe({},gs),{},{fill:"white"})},f=o.children?{children:o.children.map(tc)}:{},m={tag:"g",attributes:pe({},c.inner),children:[tc(pe({tag:o.tag,attributes:pe(pe({},o.attributes),c.path)},f))]},v={tag:"g",attributes:pe({},c.outer),children:[m]},y="mask-".concat(g||lr()),R="clip-".concat(g||lr()),C={tag:"mask",attributes:pe(pe({},gs),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[a,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:Ug(l)},C]};return i.push(S,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(y,")")},gs)}),{children:i,attributes:p}}}},Vg={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}}}},jg={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}}}},Gg=[Vp,Tg,Mg,Og,Ig,Bg,Wg,Hg,zg,Vg,jg];og(Gg,{mixoutsTo:Ct});Ct.noAuto;Ct.config;var Kg=Ct.library;Ct.dom;var js=Ct.parse;Ct.findIconDefinition;Ct.toHtml;var Yg=Ct.icon;Ct.layer;Ct.text;Ct.counter;var Xg={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"]},Zg={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=Zg,Jg={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"]},qg={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"]},em=qg,tm={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"]},nm=tm,im={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"]},rm={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"]},om=rm,sm={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"]},am={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"]},lm={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={},hi=[],Nt=()=>{},cm=()=>!1,um=/^on[^a-z]/,Ar=e=>um.test(e),Fa=e=>e.startsWith("onUpdate:"),je=Object.assign,Na=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hm=Object.prototype.hasOwnProperty,Fe=(e,t)=>hm.call(e,t),ge=Array.isArray,fi=e=>ki(e)==="[object Map]",ti=e=>ki(e)==="[object Set]",nc=e=>ki(e)==="[object Date]",fm=e=>ki(e)==="[object RegExp]",Ce=e=>typeof e=="function",Ge=e=>typeof e=="string",cr=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Pa=e=>(We(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),eh=Object.prototype.toString,ki=e=>eh.call(e),dm=e=>ki(e).slice(8,-1),th=e=>ki(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))},pm=/-(\w)/g,vt=Io(e=>e.replace(pm,(t,n)=>n?n.toUpperCase():"")),gm=/\B([A-Z])/g,xt=Io(e=>e.replace(gm,"-$1").toLowerCase()),Ei=Io(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zi=Io(e=>e?`on${Ei(e)}`:""),Rn=(e,t)=>!Object.is(e,t),di=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},fo=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},po=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let ic;const Gs=()=>ic||(ic=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),mm="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",vm=Oo(mm);function xr(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],p=Ge(i)?$m(i):xr(i);if(p)for(const u in p)t[u]=p[u]}return t}else if(Ge(e)||We(e))return e}const ym=/;(?![^(]*\))/g,bm=/:([^]+)/,wm=/\/\*[^]*?\*\//g;function $m(e){const t={};return e.replace(wm,"").split(ym).forEach(n=>{if(n){const i=n.split(bm);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function kr(e){let t="";if(Ge(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const i=kr(e[n]);i&&(t+=i+" ")}else if(We(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function _m(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=kr(t)),n&&(e.style=xr(n)),e}const Cm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Sm=Oo(Cm);function nh(e){return!!e||e===""}function Am(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Ln(e[i],t[i]);return n}function Ln(e,t){if(e===t)return!0;let n=nc(e),i=nc(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=cr(e),i=cr(t),n||i)return e===t;if(n=ge(e),i=ge(t),n||i)return n&&i?Am(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||!Ln(e[d],t[d]))return!1}}return String(e)===String(t)}function Fo(e,t){return e.findIndex(n=>Ln(n,t))}const Ae=e=>Ge(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===eh||!Ce(e.toString))?JSON.stringify(e,ih,2):String(e),ih=(e,t)=>t&&t.__v_isRef?ih(e,t.value):fi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,p])=>(n[`${i} =>`]=p,n),{})}:ti(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!ge(t)&&!th(t)?String(t):t;let bt;class Ba{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=bt,!t&&bt&&(this.index=(bt.scopes||(bt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=bt;try{return bt=this,t()}finally{bt=n}}}on(){bt=this}off(){bt=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 rh(e){return new Ba(e)}function oh(e,t=bt){t&&t.active&&t.effects.push(e)}function Wa(){return bt}function sh(e){bt&&bt.cleanups.push(e)}const Ha=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ah=e=>(e.w&Tn)>0,lh=e=>(e.n&Tn)>0,xm=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Tn},km=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const p=t[i];ah(p)&&!lh(p)?p.delete(e):t[n++]=p,p.w&=~Tn,p.n&=~Tn}t.length=n}},mo=new WeakMap;let zi=0,Tn=1;const Ks=30;let Tt;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,oh(this,i)}run(){if(!this.active)return this.fn();let t=Tt,n=Sn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Tt,Tt=this,Sn=!0,Tn=1<<++zi,zi<=Ks?xm(this):rc(this),this.fn()}finally{zi<=Ks&&km(this),Tn=1<<--zi,Tt=this.parent,Sn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Tt===this?this.deferStop=!0:this.active&&(rc(this),this.onStop&&this.onStop(),this.active=!1)}}function rc(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Em(e,t){e.effect instanceof vi&&(e=e.effect.fn);const n=new vi(e);t&&(je(n,t),t.scope&&oh(n,t.scope)),(!t||!t.lazy)&&n.run();const i=n.run.bind(n);return i.effect=n,i}function Rm(e){e.effect.stop()}let Sn=!0;const ch=[];function Ri(){ch.push(Sn),Sn=!1}function Li(){const e=ch.pop();Sn=e===void 0?!0:e}function yt(e,t,n){if(Sn&&Tt){let i=mo.get(e);i||mo.set(e,i=new Map);let p=i.get(n);p||i.set(n,p=Ha()),uh(p)}}function uh(e,t){let n=!1;zi<=Ks?lh(e)||(e.n|=Tn,n=!ah(e)):n=!e.has(Tt),n&&(e.add(Tt),Tt.deps.push(e))}function en(e,t,n,i,p,u){const d=mo.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"||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)),fi(e)&&g.push(d.get(Ys)));break;case"delete":ge(e)||(g.push(d.get(Vn)),fi(e)&&g.push(d.get(Ys)));break;case"set":fi(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&&oc(i);for(const i of n)i.computed||oc(i)}function oc(e,t){(e!==Tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Lm(e,t){var n;return(n=mo.get(e))==null?void 0:n.get(t)}const Tm=Oo("__proto__,__v_isRef,__isVue"),hh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(cr)),sc=Mm();function Mm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Oe(this);for(let u=0,d=this.length;u<d;u++)yt(i,"get",u+"");const p=i[t](...n);return p===-1||p===!1?i[t](...n.map(Oe)):p}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ri();const i=Oe(this)[t].apply(this,n);return Li(),i}}),e}function Om(e){const t=Oe(this);return yt(t,"has",e),t.hasOwnProperty(e)}class fh{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?yh:vh:u?mh:gh).get(t))return t;const d=ge(t);if(!p){if(d&&Fe(sc,n))return Reflect.get(sc,n,i);if(n==="hasOwnProperty")return Om}const g=Reflect.get(t,n,i);return(cr(n)?hh.has(n):Tm(n))||(p||yt(t,"get",n),u)?g:qe(g)?d&&Da(n)?g:g.value:We(g)?p?Do(g):Ti(g):g}}class dh extends fh{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&&(!ur(i)&&!Zn(i)&&(u=Oe(u),i=Oe(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===Oe(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(!cr(n)||!hh.has(n))&&yt(t,"has",n),i}ownKeys(t){return yt(t,"iterate",ge(t)?"length":Vn),Reflect.ownKeys(t)}}class ph extends fh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Im=new dh,Fm=new ph,Nm=new dh(!0),Pm=new ph(!0),Ua=e=>e,No=e=>Reflect.getPrototypeOf(e);function Ur(e,t,n=!1,i=!1){e=e.__v_raw;const p=Oe(e),u=Oe(t);n||(Rn(t,u)&&yt(p,"get",t),yt(p,"get",u));const{has:d}=No(p),g=i?Ua:n?ja:hr;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 zr(e,t=!1){const n=this.__v_raw,i=Oe(n),p=Oe(e);return t||(Rn(e,p)&&yt(i,"has",e),yt(i,"has",p)),e===p?n.has(e):n.has(e)||n.has(p)}function Vr(e,t=!1){return e=e.__v_raw,!t&&yt(Oe(e),"iterate",Vn),Reflect.get(e,"size",e)}function ac(e){e=Oe(e);const t=Oe(this);return No(t).has.call(t,e)||(t.add(e),en(t,"add",e,e)),this}function lc(e,t){t=Oe(t);const n=Oe(this),{has:i,get:p}=No(n);let u=i.call(n,e);u||(e=Oe(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 cc(e){const t=Oe(this),{has:n,get:i}=No(t);let p=n.call(t,e);p||(e=Oe(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 uc(){const e=Oe(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function jr(e,t){return function(i,p){const u=this,d=u.__v_raw,g=Oe(d),s=t?Ua:e?ja:hr;return!e&&yt(g,"iterate",Vn),d.forEach((h,o)=>i.call(p,s(h),s(o),u))}}function Gr(e,t,n){return function(...i){const p=this.__v_raw,u=Oe(p),d=fi(u),g=e==="entries"||e===Symbol.iterator&&d,s=e==="keys"&&d,h=p[e](...i),o=n?Ua:t?ja:hr;return!t&&yt(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 Dm(){const e={get(u){return Ur(this,u)},get size(){return Vr(this)},has:zr,add:ac,set:lc,delete:cc,clear:uc,forEach:jr(!1,!1)},t={get(u){return Ur(this,u,!1,!0)},get size(){return Vr(this)},has:zr,add:ac,set:lc,delete:cc,clear:uc,forEach:jr(!1,!0)},n={get(u){return Ur(this,u,!0)},get size(){return Vr(this,!0)},has(u){return zr.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:jr(!0,!1)},i={get(u){return Ur(this,u,!0,!0)},get size(){return Vr(this,!0)},has(u){return zr.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:jr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=Gr(u,!1,!1),n[u]=Gr(u,!0,!1),t[u]=Gr(u,!1,!0),i[u]=Gr(u,!0,!0)}),[e,n,t,i]}const[Bm,Wm,Hm,Um]=Dm();function Po(e,t){const n=t?e?Um:Hm:e?Wm:Bm;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 zm={get:Po(!1,!1)},Vm={get:Po(!1,!0)},jm={get:Po(!0,!1)},Gm={get:Po(!0,!0)},gh=new WeakMap,mh=new WeakMap,vh=new WeakMap,yh=new WeakMap;function Km(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ym(e){return e.__v_skip||!Object.isExtensible(e)?0:Km(dm(e))}function Ti(e){return Zn(e)?e:Bo(e,!1,Im,zm,gh)}function za(e){return Bo(e,!1,Nm,Vm,mh)}function Do(e){return Bo(e,!0,Fm,jm,vh)}function Xm(e){return Bo(e,!0,Pm,Gm,yh)}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=Ym(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 ur(e){return!!(e&&e.__v_isShallow)}function Va(e){return jn(e)||Zn(e)}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function Wo(e){return fo(e,"__v_skip",!0),e}const hr=e=>We(e)?Ti(e):e,ja=e=>We(e)?Do(e):e;function Ga(e){Sn&&Tt&&(e=Oe(e),uh(e.dep||(e.dep=Ha())))}function Ho(e,t){e=Oe(e);const n=e.dep;n&&Xs(n)}function qe(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return wh(e,!1)}function bh(e){return wh(e,!0)}function wh(e,t){return qe(e)?e:new Zm(e,t)}class Zm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Oe(t),this._value=n?t:hr(t)}get value(){return Ga(this),this._value}set value(t){const n=this.__v_isShallow||ur(t)||Zn(t);t=n?t:Oe(t),Rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:hr(t),Ho(this))}}function Qm(e){Ho(e)}function tn(e){return qe(e)?e.value:e}function Jm(e){return Ce(e)?e():tn(e)}const qm={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,qm)}class ev{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 ev(e)}function tv(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=$h(e,n);return t}class nv{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 Lm(Oe(this._object),this._key)}}class iv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Qn(e,t,n){return qe(e)?e:Ce(e)?new iv(e):We(e)&&arguments.length>1?$h(e,t,n):Te(e)}function $h(e,t,n){const i=e[t];return qe(i)?i:new nv(e,t,n)}class rv{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=Oe(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 ov(e,t,n=!1){let i,p;const u=Ce(e);return u?(i=e,p=Nt):(i=e.get,p=e.set),new rv(i,p,u||!p,n)}function sv(e,...t){}function av(e,t){}function nn(e,t,n,i){let p;try{p=i?e(...i):e()}catch(u){ni(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=>{ni(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 ni(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}}lv(e,n,p,i)}function lv(e,t,n,i=!0){console.error(e)}let fr=!1,Zs=!1;const at=[];let Wt=0;const pi=[];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 cv(e){let t=Wt+1,n=at.length;for(;t<n;){const i=t+n>>>1;dr(at[i])<e?t=i+1:n=i}return t}function Uo(e){(!at.length||!at.includes(e,fr&&e.allowRecurse?Wt+1:Wt))&&(e.id==null?at.push(e):at.splice(cv(e.id),0,e),Ch())}function Ch(){!fr&&!Zs&&(Zs=!0,Xa=_h.then(Sh))}function uv(e){const t=at.indexOf(e);t>Wt&&at.splice(t,1)}function Za(e){ge(e)?pi.push(...e):(!Zt||!Zt.includes(e,e.allowRecurse?Bn+1:Bn))&&pi.push(e),Ch()}function hc(e,t=fr?Wt+1:0){for(;t<at.length;t++){const n=at[t];n&&n.pre&&(at.splice(t,1),t--,n())}}function vo(e){if(pi.length){const t=[...new Set(pi)];if(pi.length=0,Zt){Zt.push(...t);return}for(Zt=t,Zt.sort((n,i)=>dr(n)-dr(i)),Bn=0;Bn<Zt.length;Bn++)Zt[Bn]();Zt=null,Bn=0}}const dr=e=>e.id==null?1/0:e.id,hv=(e,t)=>{const n=dr(e)-dr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Sh(e){Zs=!1,fr=!0,at.sort(hv);const t=Nt;try{for(Wt=0;Wt<at.length;Wt++){const n=at[Wt];n&&n.active!==!1&&nn(n,null,14)}}finally{Wt=0,at.length=0,vo(),fr=!1,Xa=null,(at.length||pi.length)&&Sh()}}let oi,Kr=[];function Ah(e,t){var n,i;oi=e,oi?(oi.enabled=!0,Kr.forEach(({event:p,args:u})=>oi.emit(p,...u)),Kr=[]):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=>{Ah(u,t)}),setTimeout(()=>{oi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Kr=[])},3e3)):Kr=[]}function fv(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(po))}let g,s=i[g=Zi(t)]||i[g=Zi(vt(t))];!s&&u&&(s=i[g=Zi(xt(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 xh(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=xh(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||!Ar(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,xt(t))||Fe(e,t))}let it=null,Vo=null;function pr(e){const t=it;return it=e,Vo=e&&e.type.__scopeId||null,t}function Qa(e){Vo=e}function Ja(){Vo=null}const dv=e=>dt;function dt(e,t=it,n){if(!t||e._n)return e;const i=(...p)=>{i._d&&ia(-1);const u=pr(t);let d;try{d=e(...p)}finally{pr(u),i._d&&ia(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function io(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 y=pr(e);try{if(n.shapeFlag&4){const C=p||i;m=wt(o.call(C,C,r,u,c,l,a)),v=s}else{const C=t;m=wt(C.length>1?C(u,{attrs:s,slots:g,emit:h}):C(u,null)),v=t.props?s:gv(s)}}catch(C){er.length=0,ni(C,e,1),m=he(lt)}let R=m;if(v&&f!==!1){const C=Object.keys(v),{shapeFlag:S}=R;C.length&&S&7&&(d&&C.some(Fa)&&(v=mv(v,d)),R=jt(R,v))}return n.dirs&&(R=jt(R),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(R.transition=n.transition),m=R,pr(y),m}function pv(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 gv=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ar(n))&&((t||(t={}))[n]=e[n]);return t},mv=(e,t)=>{const n={};for(const i in e)(!Fa(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function vv(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?fc(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?fc(i,d,h):!0:!!d;return!1}function fc(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 qa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const kh=e=>e.__isSuspense,yv={name:"Suspense",__isSuspense:!0,process(e,t,n,i,p,u,d,g,s,h){e==null?wv(t,n,i,p,u,d,g,s,h):$v(e,t,n,i,p,d,g,s,h)},hydrate:_v,create:el,normalize:Cv},bv=yv;function gr(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function wv(e,t,n,i,p,u,d,g,s){const{p:h,o:{createElement:o}}=s,r=o("div"),l=e.suspense=el(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?(gr(e,"onPending"),gr(e,"onFallback"),h(null,e.ssFallback,t,n,i,null,u,d),gi(l,e.ssFallback)):l.resolve(!1,!0)}function $v(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),gi(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),gi(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),gi(r,l);else if(gr(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:y,pendingId:R}=r;y>0?setTimeout(()=>{r.pendingId===R&&r.fallback(c)},y):y===0&&r.fallback(c)}}function el(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 y=Sv(e);y&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const R=e.props?go(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 R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:o,isUnmounted:!1,effects:[],resolve(S=!1,$=!1){const{vnode:L,activeBranch:x,pendingBranch:k,pendingId:M,effects:w,parentComponent:A,container:_}=C;if(C.isHydrating)C.isHydrating=!1;else if(!S){const T=x&&k.transition&&k.transition.mode==="out-in";T&&(x.transition.afterLeave=()=>{M===C.pendingId&&l(k,_,O,0)});let{anchor:O}=C;x&&(O=a(x),c(x,A,C,!0)),T||l(k,_,O,0)}gi(C,k),C.pendingBranch=null,C.isInFallback=!1;let b=C.parent,E=!1;for(;b;){if(b.pendingBranch){b.effects.push(...w),E=!0;break}b=b.parent}E||Za(w),C.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),gr(L,"onResolve")},fallback(S){if(!C.pendingBranch)return;const{vnode:$,activeBranch:L,parentComponent:x,container:k,isSVG:M}=C;gr($,"onFallback");const w=a(L),A=()=>{C.isInFallback&&(r(null,S,k,w,x,null,M,g,s),gi(C,S))},_=S.transition&&S.transition.mode==="out-in";_&&(L.transition.afterLeave=A),C.isInFallback=!0,c(L,x,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 x=S.vnode.el;S.asyncDep.catch(k=>{ni(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),x&&(M.el=x);const w=!x&&S.subTree.el;$(S,M,f(x||S.subTree.el),x?null:a(S.subTree),C,d,s),w&&m(w),qa(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 _v(e,t,n,i,p,u,d,g,s){const h=t.suspense=el(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 Cv(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=ei&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=mt,rf())}return ge(e)&&(e=pv(e)),e=wt(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):Za(e)}function gi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,p=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=p,qa(i,p))}function Sv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Rh(e,t){return Er(e,null,t)}function Lh(e,t){return Er(e,null,{flush:"post"})}function Av(e,t){return Er(e,null,{flush:"sync"})}const Yr={};function Ye(e,t,n){return Er(e,t,n)}function Er(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=ur(e)):jn(e)?(h=()=>e,i=!0):ge(e)?(r=!0,o=e.some(C=>jn(C)||ur(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=y.onStop=()=>{nn(C,s,4)}},a;if(bi)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(Yr):Yr;const m=()=>{if(y.active)if(t){const C=y.run();(i||o||(r?C.some((S,$)=>Rn(S,f[$])):Rn(C,f)))&&(l&&l(),_t(t,s,3,[C,f===Yr?void 0:r&&f[0]===Yr?[]:f,c]),f=C)}else y.run()};m.allowRecurse=!!t;let v;p==="sync"?v=m:p==="post"?v=()=>ot(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),v=()=>Uo(m));const y=new vi(h,v);t?n?m():f=y.run():p==="post"?ot(y.run.bind(y),s&&s.suspense):y.run();const R=()=>{y.stop(),s&&s.scope&&Na(s.scope.effects,y)};return a&&a.push(R),R}function xv(e,t,n){const i=this.proxy,p=Ge(e)?e.includes(".")?Th(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=Er(p,u.bind(i),n);return d?On(d):An(),g}function Th(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(ti(e)||fi(e))e.forEach(n=>{zn(n,t)});else if(th(e))for(const n in e)zn(e[n],t);return e}function Mt(e,t){const n=it;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&&(Ri(),_t(s,n,8,[e.el,g,e,t]),Li())}}const $n=Symbol("_leaveCb"),Xr=Symbol("_enterCb");function tl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),Lr(()=>{e.isUnmounting=!0}),e}const At=[Function,Array],nl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},kv={name:"BaseTransition",props:nl,setup(e,{slots:t}){const n=Dt(),i=tl();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=Oe(e),{mode:s}=g;if(i.isLeaving)return ms(d);const h=pc(d);if(!h)return ms(d);const o=yi(h,g,i,n);Jn(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=yi(l,g,i,n);if(Jn(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,y)=>{const R=Oh(i,l);R[String(l.key)]=l,m[$n]=()=>{v(),m[$n]=void 0,delete o.delayedLeave},o.delayedLeave=y})}return d}}},Mh=kv;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 yi(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:y}=t,R=String(e.key),C=Oh(n,e),S=(x,k)=>{x&&_t(x,i,9,k)},$=(x,k)=>{const M=k[1];S(x,k),ge(x)?x.every(w=>w.length<=1)&&M():x.length<=1&&M()},L={mode:u,persisted:d,beforeEnter(x){let k=g;if(!n.isMounted)if(p)k=f||g;else return;x[$n]&&x[$n](!0);const M=C[R];M&&Ot(e,M)&&M.el[$n]&&M.el[$n](),S(k,[x])},enter(x){let k=s,M=h,w=o;if(!n.isMounted)if(p)k=m||s,M=v||h,w=y||o;else return;let A=!1;const _=x[Xr]=b=>{A||(A=!0,b?S(w,[x]):S(M,[x]),L.delayedLeave&&L.delayedLeave(),x[Xr]=void 0)};k?$(k,[x,_]):_()},leave(x,k){const M=String(e.key);if(x[Xr]&&x[Xr](!0),n.isUnmounting)return k();S(r,[x]);let w=!1;const A=x[$n]=_=>{w||(w=!0,k(),_?S(a,[x]):S(c,[x]),x[$n]=void 0,C[M]===e&&delete C[M])};C[M]=e,l?$(l,[x,A]):A()},clone(x){return yi(x,t,n,i)}};return L}function ms(e){if(Rr(e))return e=jt(e),e.children=null,e}function pc(e){return Rr(e)?e.children?e.children[0]:void 0:e}function Jn(e,t){e.shapeFlag&6&&e.component?Jn(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 Ev(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=y=>{s=null,ni(y,c,13,!i)};if(d&&c.suspense||bi)return l().then(y=>()=>vs(y,c)).catch(y=>(a(y),()=>i?he(i,{error:y}):null));const f=Te(!1),m=Te(),v=Te(!!p);return p&&setTimeout(()=>{v.value=!1},p),u!=null&&setTimeout(()=>{if(!f.value&&!m.value){const y=new Error(`Async component timed out after ${u}ms.`);a(y),m.value=y}},u),l().then(()=>{f.value=!0,c.parent&&Rr(c.parent.vnode)&&Uo(c.parent.update)}).catch(y=>{a(y),m.value=y}),()=>{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 Rr=e=>e.type.__isKeepAlive,Rv={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 y=t.default&&t.default();return y&&y.length===1?y[0]:y};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=(y,R,C,S,$)=>{const L=y.component;h(y,R,C,0,g),s(L.vnode,y,R,C,L,g,S,y.slotScopeIds,$),ot(()=>{L.isDeactivated=!1,L.a&&di(L.a);const x=y.props&&y.props.onVnodeMounted;x&&gt(x,L.parent,y)},g)},i.deactivate=y=>{const R=y.component;h(y,l,null,1,g),ot(()=>{R.da&&di(R.da);const C=y.props&&y.props.onVnodeUnmounted;C&&gt(C,R.parent,y),R.isDeactivated=!0},g)};function c(y){ys(y),o(y,n,g,!0)}function a(y){p.forEach((R,C)=>{const S=sa(R.type);S&&(!y||!y(S))&&f(C)})}function f(y){const R=p.get(y);!d||!Ot(R,d)?c(R):d&&ys(d),p.delete(y),u.delete(y)}Ye(()=>[e.include,e.exclude],([y,R])=>{y&&a(C=>Vi(y,C)),R&&a(C=>!Vi(R,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&p.set(m,bs(n.subTree))};return nt(v),Ko(v),Lr(()=>{p.forEach(y=>{const{subTree:R,suspense:C}=n,S=bs(R);if(y.type===S.type&&y.key===S.key){ys(S);const $=S.component.da;$&&ot($,C);return}c(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),R=y[0];if(y.length>1)return d=null,y;if(!Mn(R)||!(R.shapeFlag&4)&&!(R.shapeFlag&128))return d=null,R;let C=bs(R);const S=C.type,$=sa(Gn(C)?C.type.__asyncResolved||{}:S),{include:L,exclude:x,max:k}=e;if(L&&(!$||!Vi(L,$))||x&&$&&Vi(x,$))return d=C,R;const M=C.key==null?S:C.key,w=p.get(M);return C.el&&(C=jt(C),R.shapeFlag&128&&(R.ssContent=C)),m=M,w?(C.el=w.el,C.component=w.component,C.transition&&Jn(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(R.type)?R:C}}},Lv=Rv;function Vi(e,t){return ge(e)?e.some(n=>Vi(n,t)):Ge(e)?e.split(",").includes(t):fm(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;)Rr(p.parent.vnode)&&Tv(i,t,n,p),p=p.parent}}function Tv(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;Ri(),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)=>(!bi||e==="sp")&&Go(e,(...i)=>t(...i),n),Ph=cn("bm"),nt=cn("m"),Dh=cn("bu"),Ko=cn("u"),Lr=cn("bum"),Yo=cn("um"),Bh=cn("sp"),Wh=cn("rtg"),Hh=cn("rtc");function Uh(e,t=Qe){Go("ec",e,t)}const il="components",Mv="directives";function ue(e,t){return rl(il,e,!0,t)||e}const zh=Symbol.for("v-ndc");function Ov(e){return Ge(e)?rl(il,e,!1)||e:e||zh}function Iv(e){return rl(Mv,e)}function rl(e,t,n=!0,i=!1){const p=it||Qe;if(p){const u=p.type;if(e===il){const g=sa(u,!1);if(g&&(g===t||g===vt(t)||g===Ei(vt(t))))return u}const d=gc(p[e]||u[e],t)||gc(p.appContext[e],t);return!d&&i?u:d}}function gc(e,t){return e&&(e[t]||e[vt(t)]||e[Ei(vt(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 Fv(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 Nv(e,t,n={},i,p){if(it.isCE||it.parent&&Gn(it.parent)&&it.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&&Vh(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 Vh(e){return e.some(t=>Mn(t)?!(t.type===lt||t.type===Se&&!Vh(t.children)):!0)?e:null}function Pv(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=>ol(e),$forceUpdate:e=>e.f||(e.f=()=>Uo(e.update)),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>xv.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"&&yt(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)}},Dv=je({},Js,{get(e,t){if(t!==Symbol.unscopables)return Js.get(e,t,e)},has(e,t){return t[0]!=="_"&&!vm(t)}});function Bv(){return null}function Wv(){return null}function Hv(e){}function Uv(e){}function zv(){return null}function Vv(){}function jv(e,t){return null}function Gv(){return jh().slots}function Kv(){return jh().attrs}function Yv(e,t,n){const i=Dt();if(n&&n.local){const p=Te(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 jh(){const e=Dt();return e.setupContext||(e.setupContext=df(e))}function mr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xv(e,t){const n=mr(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 Zv(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):je({},mr(e),mr(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 Jv(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 qv(e){const t=ol(e),n=e.proxy,i=e.ctx;qs=!1,t.beforeCreate&&mc(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:y,destroyed:R,unmounted:C,render:S,renderTracked:$,renderTriggered:L,errorCaptured:x,serverPrefetch:k,expose:M,inheritAttrs:w,components:A,directives:_,filters:b}=t;if(h&&ey(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=Ti(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)Gh(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&&mc(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(nt,l),T(Dh,c),T(Ko,a),T(Ih,f),T(Fh,m),T(Uh,x),T(Hh,$),T(Wh,L),T(Lr,y),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),w!=null&&(e.inheritAttrs=w),A&&(e.components=A),_&&(e.directives=_)}function ey(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 mc(e,t,n){_t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gh(e,t,n,i){const p=i.includes(".")?Th(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=>Gh(u,t,n,i));else{const u=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(u)&&Ye(p,u,e)}}function ol(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=ty[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const ty={data:vc,props:yc,emits:yc,methods:ji,computed:ji,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:ji,directives:ji,watch:iy,provide:vc,inject:ny};function vc(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 ny(e,t){return ji(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 ji(e,t){return e?je(Object.create(null),e,t):t}function yc(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:je(Object.create(null),mr(e),mr(t??{})):t}function iy(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 Kh(){return{app:null,config:{isNativeTag:cm,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ry=0;function oy(e,t){return function(i,p=null){Ce(i)||(i=je({},i)),p!=null&&!We(p)&&(p=null);const u=Kh(),d=new WeakSet;let g=!1;const s=u.app={_uid:ry++,_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){vr=s;try{return h()}finally{vr=null}}};return s}}let vr=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||it;if(i||vr){const p=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:vr._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 sy(){return!!(Qe||it||vr)}function ay(e,t,n,i=!1){const p={},u={};fo(u,Xo,1),e.propsDefaults=Object.create(null),Yh(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 ly(e,t,n,i){const{props:p,attrs:u,vnode:{patchFlag:d}}=e,g=Oe(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=vt(l);p[a]=ta(s,g,a,c,e,!1)}else c!==u[l]&&(u[l]=c,h=!0)}}}else{Yh(e,t,p,u)&&(h=!0);let o;for(const r in g)(!t||!Fe(t,r)&&((o=xt(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 Yh(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=vt(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=Oe(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===xt(n))&&(i=!0))}return i}function Xh(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]=Xh(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,hi),hi;if(ge(u))for(let o=0;o<u.length;o++){const r=vt(u[o]);bc(r)&&(d[r]=Be)}else if(u)for(const o in u){const r=vt(o);if(bc(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 bc(e){return e[0]!=="$"}function wc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function $c(e,t){return wc(e)===wc(t)}function _c(e,t){return ge(t)?t.findIndex(n=>$c(n,e)):Ce(t)&&$c(t,e)?0:-1}const Zh=e=>e[0]==="_"||e==="$stable",sl=e=>ge(e)?e.map(wt):[wt(e)],cy=(e,t,n)=>{if(t._n)return t;const i=dt((...p)=>sl(t(...p)),n);return i._c=!1,i},Qh=(e,t,n)=>{const i=e._ctx;for(const p in e){if(Zh(p))continue;const u=e[p];if(Ce(u))t[p]=cy(p,u,i);else if(u!=null){const d=sl(u);t[p]=()=>d}}},Jh=(e,t)=>{const n=sl(t);e.slots.default=()=>n},uy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Oe(t),fo(t,"_",n)):Qh(t,e.slots={})}else e.slots={},t&&Jh(e,t);fo(e.slots,Xo,1)},hy=(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,Qh(t,p)),d=t}else t&&(Jh(e,t),d={default:1});if(u)for(const g in p)!Zh(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,ot(a,n)):a()}}}let mn=!1;const Zr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Qr=e=>e.nodeType===8;function fy(e){const{mt:t,p:n,o:{patchProp:i,createText:p,nextSibling:u,parentNode:d,remove:g,insert:s,createComment:h}}=e,o=(v,y)=>{if(!y.hasChildNodes()){n(null,v,y),vo(),y._vnode=v;return}mn=!1,r(y.firstChild,v,null,null,null),vo(),y._vnode=v,mn&&console.error("Hydration completed but contains mismatches.")},r=(v,y,R,C,S,$=!1)=>{const L=Qr(v)&&v.data==="[",x=()=>f(v,y,R,C,S,L),{type:k,ref:M,shapeFlag:w,patchFlag:A}=y;let _=v.nodeType;y.el=v,A===-2&&($=!1,y.dynamicChildren=null);let b=null;switch(k){case qn:_!==3?y.children===""?(s(y.el=p(""),d(v),v),b=v):b=x():(v.data!==y.children&&(mn=!0,v.data=y.children),b=u(v));break;case lt:_!==8||L?b=x():b=u(v);break;case Kn:if(L&&(v=u(v),_=v.nodeType),_===1||_===3){b=v;const E=!y.children.length;for(let T=0;T<y.staticCount;T++)E&&(y.children+=b.nodeType===1?b.outerHTML:b.data),T===y.staticCount-1&&(y.anchor=b),b=u(b);return L?u(b):b}else x();break;case Se:L?b=a(v,y,R,C,S,$):b=x();break;default:if(w&1)_!==1||y.type.toLowerCase()!==v.tagName.toLowerCase()?b=x():b=l(v,y,R,C,S,$);else if(w&6){y.slotScopeIds=S;const E=d(v);if(t(y,E,null,R,C,Zr(E),$),b=L?m(v):u(v),b&&Qr(b)&&b.data==="teleport end"&&(b=u(b)),Gn(y)){let T;L?(T=he(Se),T.anchor=b?b.previousSibling:E.lastChild):T=v.nodeType===3?et(""):he("div"),T.el=v,y.component.subTree=T}}else w&64?_!==8?b=x():b=y.type.hydrate(v,y,R,C,S,$,e,c):w&128&&(b=y.type.hydrate(v,y,R,C,Zr(d(v)),S,$,e,r))}return M!=null&&bo(M,null,C,y),b},l=(v,y,R,C,S,$)=>{$=$||!!y.dynamicChildren;const{type:L,props:x,patchFlag:k,shapeFlag:M,dirs:w}=y,A=L==="input"&&w||L==="option";if(A||k!==-1){if(w&&Bt(y,null,R,"created"),x)if(A||!$||k&48)for(const b in x)(A&&b.endsWith("value")||Ar(b)&&!Xi(b))&&i(v,b,null,x[b],!1,void 0,R);else x.onClick&&i(v,"onClick",null,x.onClick,!1,void 0,R);let _;if((_=x&&x.onVnodeBeforeMount)&&gt(_,R,y),w&&Bt(y,null,R,"beforeMount"),((_=x&&x.onVnodeMounted)||w)&&Eh(()=>{_&&gt(_,R,y),w&&Bt(y,null,R,"mounted")},C),M&16&&!(x&&(x.innerHTML||x.textContent))){let b=c(v.firstChild,y,v,R,C,S,$);for(;b;){mn=!0;const E=b;b=b.nextSibling,g(E)}}else M&8&&v.textContent!==y.children&&(mn=!0,v.textContent=y.children)}return v.nextSibling},c=(v,y,R,C,S,$,L)=>{L=L||!!y.dynamicChildren;const x=y.children,k=x.length;for(let M=0;M<k;M++){const w=L?x[M]:x[M]=wt(x[M]);if(v)v=r(v,w,C,S,$,L);else{if(w.type===qn&&!w.children)continue;mn=!0,n(null,w,R,null,C,S,Zr(R),$)}}return v},a=(v,y,R,C,S,$)=>{const{slotScopeIds:L}=y;L&&(S=S?S.concat(L):L);const x=d(v),k=c(u(v),y,x,R,C,S,$);return k&&Qr(k)&&k.data==="]"?u(y.anchor=k):(mn=!0,s(y.anchor=h("]"),x,k),k)},f=(v,y,R,C,S,$)=>{if(mn=!0,y.el=null,$){const k=m(v);for(;;){const M=u(v);if(M&&M!==k)g(M);else break}}const L=u(v),x=d(v);return g(v),n(null,y,x,L,R,C,Zr(x),S),L},m=v=>{let y=0;for(;v;)if(v=u(v),v&&Qr(v)&&(v.data==="["&&y++,v.data==="]")){if(y===0)return u(v);y--}return v};return[o,r]}const ot=Eh;function qh(e){return tf(e)}function ef(e){return tf(e,fy)}function tf(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=(N,B,G,Q=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(N===B)return;N&&!Ot(N,B)&&(Q=z(N),j(N,te,ie,!0),N=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case qn:m(N,B,G,Q);break;case lt:v(N,B,G,Q);break;case Kn:N==null&&y(B,G,Q,le);break;case Se:A(N,B,G,Q,te,ie,le,se,ce);break;default:de&1?S(N,B,G,Q,te,ie,le,se,ce):de&6?_(N,B,G,Q,te,ie,le,se,ce):(de&64||de&128)&&re.process(N,B,G,Q,te,ie,le,se,ce,Y)}ve!=null&&te&&bo(ve,N&&N.ref,ie,B||N,!B)},m=(N,B,G,Q)=>{if(N==null)i(B.el=g(B.children),G,Q);else{const te=B.el=N.el;B.children!==N.children&&h(te,B.children)}},v=(N,B,G,Q)=>{N==null?i(B.el=s(B.children||""),G,Q):B.el=N.el},y=(N,B,G,Q)=>{[N.el,N.anchor]=a(N.children,B,G,Q,N.el,N.anchor)},R=({el:N,anchor:B},G,Q)=>{let te;for(;N&&N!==B;)te=l(N),i(N,G,Q),N=te;i(B,G,Q)},C=({el:N,anchor:B})=>{let G;for(;N&&N!==B;)G=l(N),p(N),N=G;p(B)},S=(N,B,G,Q,te,ie,le,se,ce)=>{le=le||B.type==="svg",N==null?$(B,G,Q,te,ie,le,se,ce):k(N,B,te,ie,le,se,ce)},$=(N,B,G,Q,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:_e,dirs:J}=N;if(ce=N.el=d(N.type,ie,de&&de.is,de),me&8?o(ce,N.children):me&16&&x(N.children,ce,null,Q,te,ie&&ve!=="foreignObject",le,se),J&&Bt(N,null,Q,"created"),L(ce,N,N.scopeId,le,Q),de){for(const fe in de)fe!=="value"&&!Xi(fe)&&u(ce,fe,null,de[fe],ie,N.children,Q,te,Z);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&gt(re,Q,N)}J&&Bt(N,null,Q,"beforeMount");const ae=(!te||te&&!te.pendingBranch)&&_e&&!_e.persisted;ae&&_e.beforeEnter(ce),i(ce,B,G),((re=de&&de.onVnodeMounted)||ae||J)&&ot(()=>{re&&gt(re,Q,N),ae&&_e.enter(ce),J&&Bt(N,null,Q,"mounted")},te)},L=(N,B,G,Q,te)=>{if(G&&c(N,G),Q)for(let ie=0;ie<Q.length;ie++)c(N,Q[ie]);if(te){let ie=te.subTree;if(B===ie){const le=te.vnode;L(N,le,le.scopeId,le.slotScopeIds,te.parent)}}},x=(N,B,G,Q,te,ie,le,se,ce=0)=>{for(let re=ce;re<N.length;re++){const ve=N[re]=se?_n(N[re]):wt(N[re]);f(null,ve,B,G,Q,te,ie,le,se)}},k=(N,B,G,Q,te,ie,le)=>{const se=B.el=N.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=N.patchFlag&16;const de=N.props||Be,me=B.props||Be;let _e;G&&Pn(G,!1),(_e=me.onVnodeBeforeUpdate)&&gt(_e,G,B,N),ve&&Bt(B,N,G,"beforeUpdate"),G&&Pn(G,!0);const J=te&&B.type!=="foreignObject";if(re?M(N.dynamicChildren,re,se,G,Q,J,ie):le||I(N,B,se,null,G,Q,J,ie,!1),ce>0){if(ce&16)w(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 fe=0;fe<ae.length;fe++){const be=ae[fe],Re=de[be],Ne=me[be];(Ne!==Re||be==="value")&&u(se,be,Re,Ne,te,N.children,G,Q,Z)}}ce&1&&N.children!==B.children&&o(se,B.children)}else!le&&re==null&&w(se,B,de,me,G,Q,te);((_e=me.onVnodeUpdated)||ve)&&ot(()=>{_e&&gt(_e,G,B,N),ve&&Bt(B,N,G,"updated")},Q)},M=(N,B,G,Q,te,ie,le)=>{for(let se=0;se<B.length;se++){const ce=N[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)}},w=(N,B,G,Q,te,ie,le)=>{if(G!==Q){if(G!==Be)for(const se in G)!Xi(se)&&!(se in Q)&&u(N,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(N,se,re,ce,le,B.children,te,ie,Z)}"value"in Q&&u(N,"value",G.value,Q.value)}},A=(N,B,G,Q,te,ie,le,se,ce)=>{const re=B.el=N?N.el:g(""),ve=B.anchor=N?N.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:_e}=B;_e&&(se=se?se.concat(_e):_e),N==null?(i(re,G,Q),i(ve,G,Q),x(B.children,G,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&N.dynamicChildren?(M(N.dynamicChildren,me,G,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&al(N,B,!0)):I(N,B,G,ve,te,ie,le,se,ce)},_=(N,B,G,Q,te,ie,le,se,ce)=>{B.slotScopeIds=se,N==null?B.shapeFlag&512?te.ctx.activate(B,G,Q,le,ce):b(B,G,Q,te,ie,le,ce):E(N,B,ce)},b=(N,B,G,Q,te,ie,le)=>{const se=N.component=cf(N,Q,te);if(Rr(N)&&(se.ctx.renderer=Y),hf(se),se.asyncDep){if(te&&te.registerDep(se,T),!N.el){const ce=se.subTree=he(lt);v(null,ce,B,G)}return}T(se,N,B,G,te,ie,le)},E=(N,B,G)=>{const Q=B.component=N.component;if(vv(N,B,G))if(Q.asyncDep&&!Q.asyncResolved){O(Q,B,G);return}else Q.next=B,uv(Q.update),Q.update();else B.el=N.el,Q.vnode=B},T=(N,B,G,Q,te,ie,le)=>{const se=()=>{if(N.isMounted){let{next:ve,bu:de,u:me,parent:_e,vnode:J}=N,ae=ve,fe;Pn(N,!1),ve?(ve.el=J.el,O(N,ve,le)):ve=J,de&&di(de),(fe=ve.props&&ve.props.onVnodeBeforeUpdate)&&gt(fe,_e,ve,J),Pn(N,!0);const be=io(N),Re=N.subTree;N.subTree=be,f(Re,be,r(Re.el),z(Re),N,te,ie),ve.el=be.el,ae===null&&qa(N,be.el),me&&ot(me,te),(fe=ve.props&&ve.props.onVnodeUpdated)&&ot(()=>gt(fe,_e,ve,J),te)}else{let ve;const{el:de,props:me}=B,{bm:_e,m:J,parent:ae}=N,fe=Gn(B);if(Pn(N,!1),_e&&di(_e),!fe&&(ve=me&&me.onVnodeBeforeMount)&&gt(ve,ae,B),Pn(N,!0),de&&ee){const be=()=>{N.subTree=io(N),ee(de,N.subTree,N,te,null)};fe?B.type.__asyncLoader().then(()=>!N.isUnmounted&&be()):be()}else{const be=N.subTree=io(N);f(null,be,G,Q,N,te,ie),B.el=be.el}if(J&&ot(J,te),!fe&&(ve=me&&me.onVnodeMounted)){const be=B;ot(()=>gt(ve,ae,be),te)}(B.shapeFlag&256||ae&&Gn(ae.vnode)&&ae.vnode.shapeFlag&256)&&N.a&&ot(N.a,te),N.isMounted=!0,B=G=Q=null}},ce=N.effect=new vi(se,()=>Uo(re),N.scope),re=N.update=()=>ce.run();re.id=N.uid,Pn(N,!0),re()},O=(N,B,G)=>{B.component=N;const Q=N.vnode.props;N.vnode=B,N.next=null,ly(N,B.props,Q,G),hy(N,B.children,G),Ri(),hc(),Li()},I=(N,B,G,Q,te,ie,le,se,ce=!1)=>{const re=N&&N.children,ve=N?N.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&&x(de,G,Q,te,ie,le,se,ce))},F=(N,B,G,Q,te,ie,le,se,ce)=>{N=N||hi,B=B||hi;const re=N.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]):wt(B[me]);f(N[me],_e,G,null,te,ie,le,se,ce)}re>ve?Z(N,te,ie,!0,!1,de):x(B,G,Q,te,ie,le,se,ce,de)},D=(N,B,G,Q,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=N.length-1,me=ve-1;for(;re<=de&&re<=me;){const _e=N[re],J=B[re]=ce?_n(B[re]):wt(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=N[de],J=B[me]=ce?_n(B[me]):wt(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]):wt(B[re]),G,J,te,ie,le,se,ce),re++}}else if(re>me)for(;re<=de;)j(N[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]):wt(B[re]);ke.key!=null&&ae.set(ke.key,re)}let fe,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=N[re];if(be>=Re){j(ke,te,ie,!0);continue}let Ue;if(ke.key!=null)Ue=ae.get(ke.key);else for(fe=J;fe<=me;fe++)if(De[fe-J]===0&&Ot(ke,B[fe])){Ue=fe;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?dy(De):hi;for(fe=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&&(fe<0||re!==He[fe]?W(Ue,G,dn,2):fe--)}}},W=(N,B,G,Q,te=null)=>{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=N;if(re&6){W(N.component.subTree,B,G,Q);return}if(re&128){N.suspense.move(B,G,Q);return}if(re&64){le.move(N,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(N.anchor,B,G);return}if(le===Kn){R(N,B,G);return}if(Q!==2&&re&1&&se)if(Q===0)se.beforeEnter(ie),i(ie,B,G),ot(()=>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=(N,B,G,Q=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=N;if(se!=null&&bo(se,null,G,N,!0),ve&256){B.ctx.deactivate(N);return}const _e=ve&1&&me,J=!Gn(N);let ae;if(J&&(ae=le&&le.onVnodeBeforeUnmount)&&gt(ae,B,N),ve&6)K(N.component,G,Q);else{if(ve&128){N.suspense.unmount(G,Q);return}_e&&Bt(N,null,B,"beforeUnmount"),ve&64?N.type.remove(N,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(N)}(J&&(ae=le&&le.onVnodeUnmounted)||_e)&&ot(()=>{ae&&gt(ae,B,N),_e&&Bt(N,null,B,"unmounted")},G)},H=N=>{const{type:B,el:G,anchor:Q,transition:te}=N;if(B===Se){U(G,Q);return}if(B===Kn){C(N);return}const ie=()=>{p(G),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(N.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(G,ie);se?se(N.el,ie,ce):ce()}else ie()},U=(N,B)=>{let G;for(;N!==B;)G=l(N),p(N),N=G;p(B)},K=(N,B,G)=>{const{bum:Q,scope:te,update:ie,subTree:le,um:se}=N;Q&&di(Q),te.stop(),ie&&(ie.active=!1,j(le,N,B,G)),se&&ot(se,B),ot(()=>{N.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(N,B,G,Q=!1,te=!1,ie=0)=>{for(let le=ie;le<N.length;le++)j(N[le],B,G,Q,te)},z=N=>N.shapeFlag&6?z(N.component.subTree):N.shapeFlag&128?N.suspense.next():l(N.anchor||N.el),X=(N,B,G)=>{N==null?B._vnode&&j(B._vnode,null,null,!0):f(B._vnode||null,N,B,null,null,null,G),hc(),vo(),B._vnode=N},Y={p:f,um:j,m:W,r:H,mt:b,mc:x,pc:I,pbc:M,n:z,o:e};let V,ee;return t&&([V,ee]=t(Y)),{render:X,hydrate:V,createApp:oy(X,V)}}function Pn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function al(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||al(d,g)),g.type===qn&&(g.el=d.el)}}function dy(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 py=e=>e.__isTeleport,qi=e=>e&&(e.disabled||e.disabled===""),Cc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,na=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},gy={__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:y,children:R,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),x=t.targetAnchor=f("");L&&(c(x,L),d=d||Cc(L));const k=(M,w)=>{y&16&&o(R,M,w,p,u,d,g,s)};v?k(n,$):L&&k(L,x)}else{t.el=e.el;const S=t.anchor=e.anchor,$=t.target=e.target,L=t.targetAnchor=e.targetAnchor,x=qi(e.props),k=x?n:$,M=x?S:L;if(d=d||Cc($),C?(l(e.dynamicChildren,C,k,p,u,d,g),al(e,t,!0)):s||r(e,t,k,M,p,u,d,g,!1),v)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,S,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const w=t.target=na(t.props,a);w&&Jr(t,w,null,h,0)}else x&&Jr(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:Jr,hydrate:my};function Jr(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 my(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 vy=gy;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"),qn=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc"),er=[];let mt=null;function q(e=!1){er.push(mt=e?null:[])}function rf(){er.pop(),mt=er[er.length-1]||null}let ei=1;function ia(e){ei+=e}function of(e){return e.dynamicChildren=ei>0?mt||hi:null,rf(),ei>0&&mt&&mt.push(e),e}function oe(e,t,n,i,p,u){return of(P(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 yy(e){}const Xo="__vInternal",sf=({key:e})=>e??null,ro=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||qe(e)||Ce(e)?{i:it,r:e,k:t,f:!!n}:e:null);function P(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&&ro(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:it};return g?(ll(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ge(n)?8:16),ei>0&&!d&&mt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&mt.push(s),s}const he=by;function by(e,t=null,n=null,i=0,p=null,u=!1){if((!e||e===zh)&&(e=lt),Mn(e)){const g=jt(e,t,!0);return n&&ll(g,n),ei>0&&!u&&mt&&(g.shapeFlag&6?mt[mt.indexOf(e)]=g:mt.push(g)),g.patchFlag|=-2,g}if(ky(e)&&(e=e.__vccOpts),t){t=af(t);let{class:g,style:s}=t;g&&!Ge(g)&&(t.class=kr(g)),We(s)&&(Va(s)&&!ge(s)&&(s=je({},s)),t.style=xr(s))}const d=Ge(e)?1:kh(e)?128:py(e)?64:We(e)?4:Ce(e)?2:0;return P(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(ro(t)):[p,ro(t)]:ro(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 et(e=" ",t=0){return he(qn,null,e,t)}function wy(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 wt(e){return e==null||typeof e=="boolean"?he(lt):ge(e)?he(Se,null,e.slice()):typeof e=="object"?_n(e):he(qn,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function ll(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),ll(e,p()),p._c&&(p._d=!0));return}else{n=32;const p=t._;!p&&!(Xo in t)?t._ctx=it:p===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:it},n=32):(t=String(t),i&64?(n=16,t=[et(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=kr([t.class,i.class]));else if(p==="style")t.style=xr([t.style,i.style]);else if(Ar(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 gt(e,t,n,i=null){_t(e,t,7,[n,i])}const $y=Kh();let _y=0;function cf(e,t,n){const i=e.type,p=(t?t.appContext:e.appContext)||$y,u={uid:_y++,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:Xh(i,p),emitsOptions:xh(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=fv.bind(null,u),e.ce&&e.ce(u),u}let Qe=null;const Dt=()=>Qe||it;let cl,ri,Sc="__VUE_INSTANCE_SETTERS__";(ri=Gs()[Sc])||(ri=Gs()[Sc]=[]),ri.push(e=>Qe=e),cl=e=>{ri.length>1?ri.forEach(t=>t(e)):ri[0](e)};const On=e=>{cl(e),e.scope.on()},An=()=>{Qe&&Qe.scope.off(),cl(null)};function uf(e){return e.vnode.shapeFlag&4}let bi=!1;function hf(e,t=!1){bi=t;const{props:n,children:i}=e.vnode,p=uf(e);ay(e,n,p,t),uy(e,i);const u=p?Cy(e,t):void 0;return bi=!1,u}function Cy(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),Ri();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=>{ni(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 Sy(e){wo=e,oa=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Dv))}}const Ay=()=>!wo;function ff(e,t,n){const i=e.type;if(!e.render){if(!t&&wo&&!i.render){const p=i.template||ol(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),Ri();try{qv(e)}finally{Li(),An()}}}function xy(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function df(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return xy(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 ky(e){return Ce(e)&&"__vccOpts"in e}const Ee=(e,t)=>ov(e,t,bi);function Mi(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 Ey(){}function Ry(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 ei>0&&mt&&mt.push(e),!0}const vf="3.3.6",Ly={createComponentInstance:cf,setupComponent:hf,renderComponentRoot:io,setCurrentRenderingInstance:pr,isVNode:Mn,normalizeVNode:wt},Ty=Ly,My=null,Oy=null,Iy="http://www.w3.org/2000/svg",Wn=typeof document<"u"?document:null,Ac=Wn&&Wn.createElement("template"),Fy={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(Iy,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{Ac.innerHTML=i?`<svg>${e}</svg>`:e;const g=Ac.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",Pi="animation",wi=Symbol("_vtc"),ul=(e,{slots:t})=>Mi(Mh,bf(e),t);ul.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},Ny=ul.props=je({},nl,yf),Dn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},xc=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=Py(p),f=a&&a[0],m=a&&a[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:R,onLeave:C,onLeaveCancelled:S,onBeforeAppear:$=v,onAppear:L=y,onAppearCancelled:x=R}=t,k=(A,_,b)=>{wn(A,_?o:g),wn(A,_?h:d),b&&b()},M=(A,_)=>{A._isLeaving=!1,wn(A,r),wn(A,c),wn(A,l),_&&_()},w=A=>(_,b)=>{const E=A?L:y,T=()=>k(_,A,b);Dn(E,[_,T]),kc(()=>{wn(_,A?s:u),Xt(_,A?o:g),xc(E)||Ec(_,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:w(!1),onAppear:w(!0),onLeave(A,_){A._isLeaving=!0;const b=()=>M(A,_);Xt(A,r),$f(),Xt(A,l),kc(()=>{A._isLeaving&&(wn(A,r),Xt(A,c),xc(C)||Ec(A,i,m,b))}),Dn(C,[A,b])},onEnterCancelled(A){k(A,!1),Dn(R,[A])},onAppearCancelled(A){k(A,!0),Dn(x,[A])},onLeaveCancelled(A){M(A),Dn(S,[A])}})}function Py(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 go(e)}function Xt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wi]||(e[wi]=new Set)).add(t)}function wn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[wi];n&&(n.delete(t),n.size||(e[wi]=void 0))}function kc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Dy=0;function Ec(e,t,n,i){const p=e._endId=++Dy,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=Rc(p,u),g=i(`${Pi}Delay`),s=i(`${Pi}Duration`),h=Rc(g,s);let o=null,r=0,l=0;t===vn?d>0&&(o=vn,r=d,l=u.length):t===Pi?h>0&&(o=Pi,r=h,l=s.length):(r=Math.max(d,h),o=r>0?d>h?vn:Pi: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 Rc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Lc(n)+Lc(e[i])))}function Lc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $f(){return document.body.offsetHeight}function By(e,t,n){const i=e[wi];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hl=Symbol("_vod"),_f={beforeMount(e,{value:t},{transition:n}){e[hl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Di(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),Di(e,!0),i.enter(e)):i.leave(e,()=>{Di(e,!1)}):Di(e,t))},beforeUnmount(e,{value:t}){Di(e,t)}};function Di(e,t){e.style.display=t?e[hl]:"none"}function Wy(){_f.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function Hy(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"),hl 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=Uy(e,t);Tc.test(n)?e.setProperty(xt(i),n.replace(Tc,""),"important"):e[i]=n}}const Mc=["Webkit","Moz","ms"],_s={};function Uy(e,t){const n=_s[t];if(n)return n;let i=vt(t);if(i!=="filter"&&i in e)return _s[t]=i;i=Ei(i);for(let p=0;p<Mc.length;p++){const u=Mc[p]+i;if(u in e)return _s[t]=u}return t}const Oc="http://www.w3.org/1999/xlink";function zy(e,t,n,i,p){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Oc,t.slice(6,t.length)):e.setAttributeNS(Oc,t,n);else{const u=Sm(t);n==null||u&&!nh(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function Vy(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=nh(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 jy(e,t,n,i){e.removeEventListener(t,n,i)}const Ic=Symbol("_vei");function Gy(e,t,n,i,p=null){const u=e[Ic]||(e[Ic]={}),d=u[t];if(i&&d)d.value=i;else{const[g,s]=Ky(t);if(i){const h=u[t]=Zy(i,p);Qt(e,g,h,s)}else d&&(jy(e,g,d,s),u[t]=void 0)}}const Fc=/(?:Once|Passive|Capture)$/;function Ky(e){let t;if(Fc.test(e)){t={};let i;for(;i=e.match(Fc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xt(e.slice(2)),t]}let Cs=0;const Yy=Promise.resolve(),Xy=()=>Cs||(Yy.then(()=>Cs=0),Cs=Date.now());function Zy(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=Xy(),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 Nc=/^on[a-z]/,Jy=(e,t,n,i,p=!1,u,d,g,s)=>{t==="class"?By(e,i,p):t==="style"?Hy(e,n,i):Ar(t)?Fa(t)||Gy(e,t,n,i,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qy(e,t,i,p))?Vy(e,t,i,u,d,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),zy(e,t,i,p))};function qy(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Nc.test(t)&&Ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Nc.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 e0=e=>Cf(e,Of),t0=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends t0{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]=go(this._props[s])),(g||(g=Object.create(null)))[vt(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(vt))Object.defineProperty(this,p,{get(){return this._getProp(p)},set(u){this._setProp(p,u)}})}_setAttr(t){let n=this.getAttribute(t);const i=vt(t);this._numberProps&&this._numberProps[i]&&(n=go(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(xt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xt(t),n+""):n||this.removeAttribute(xt(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),xt(u)!==u&&i(xt(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 n0(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 i0(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)};Lh(i),nt(()=>{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"),Pc=Symbol("_enterCb"),xf={name:"TransitionGroup",props:je({},Ny,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dt(),i=tl();let p,u;return Ko(()=>{if(!p.length)return;const d=e.moveClass||`${e.name||"v"}-move`;if(!c0(p[0].el,n.vnode.el,d))return;p.forEach(s0),p.forEach(a0);const g=p.filter(l0);$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=Oe(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&&Jn(o,yi(o,g,i,n))}if(p)for(let h=0;h<p.length;h++){const o=p[h];Jn(o,yi(o,g,i,n)),Sf.set(o,o.el.getBoundingClientRect())}return he(s,null,u)}}},r0=e=>delete e.mode;xf.props;const o0=xf;function s0(e){const t=e.el;t[$o]&&t[$o](),t[Pc]&&t[Pc]()}function a0(e){Af.set(e,e.el.getBoundingClientRect())}function l0(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 c0(e,t,n){const i=e.cloneNode(),p=e[wi];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=>di(t,n):t};function u0(e){e.target.composing=!0}function Dc(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=po(g)),e[Et](g)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",u0),Qt(e,"compositionend",Dc),Qt(e,"change",Dc))},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")&&po(e.value)===t))return;const d=t??"";e.value!==d&&(e.value=d)}},fl={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(ti(i)){const g=new Set(i);u?g.add(p):g.delete(p),d(g)}else d(kf(e,u))})},mounted:Bc,beforeUpdate(e,t,n){e[Et]=In(n),Bc(e,t,n)}};function Bc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=Fo(t,i.props.value)>-1:ti(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Ln(t,kf(e,!0)))}const dl={created(e,{value:t},n){e.checked=Ln(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=Ln(t,i.props.value))}},yr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const p=ti(t);Qt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?po($i(d)):$i(d));e[Et](e.multiple?p?new Set(u):u:u[0])}),e[Et]=In(i)},mounted(e,{value:t}){Wc(e,t)},beforeUpdate(e,t,n){e[Et]=In(n)},updated(e,{value:t}){Wc(e,t)}};function Wc(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!ti(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(Ln($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){qr(e,t,n,null,"created")},mounted(e,t,n){qr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){qr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){qr(e,t,n,i,"updated")}};function Rf(e,t){switch(e){case"SELECT":return yr;case"TEXTAREA":return Ft;default:switch(t){case"checkbox":return fl;case"radio":return dl;default:return Ft}}}function qr(e,t,n,i,p){const d=Rf(e.tagName,n.props&&n.props.type)[p];d&&d(e,t,n,i)}function h0(){Ft.getSSRProps=({value:e})=>({value:e}),dl.getSSRProps=({value:e},t)=>{if(t.props&&Ln(t.props.value,e))return{checked:!0}},fl.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&Fo(e,t.props.value)>-1)return{checked:!0}}else if(ti(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 f0=["ctrl","shift","alt","meta"],d0={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)=>f0.some(n=>e[`${n}Key`]&&!t.includes(n))},p0=(e,t)=>(n,...i)=>{for(let p=0;p<t.length;p++){const u=d0[t[p]];if(u&&u(n,t))return}return e(n,...i)},g0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},m0=(e,t)=>n=>{if(!("key"in n))return;const i=xt(n.key);if(t.some(p=>p===i||g0[p]===i))return e(n)},Lf=je({patchProp:Jy},Fy);let tr,Hc=!1;function Tf(){return tr||(tr=qh(Lf))}function Mf(){return tr=Hc?tr:ef(Lf),Hc=!0,tr}const ua=(...e)=>{Tf().render(...e)},Of=(...e)=>{Mf().hydrate(...e)},If=(...e)=>{const t=Tf().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},v0=(...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 Uc=!1;const y0=()=>{Uc||(Uc=!0,h0(),Wy())},b0=()=>{},w0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Mh,BaseTransitionPropsValidators:nl,Comment:lt,EffectScope:Ba,Fragment:Se,KeepAlive:Lv,ReactiveEffect:vi,Static:Kn,Suspense:bv,Teleport:vy,Text:qn,Transition:ul,TransitionGroup:o0,VueElement:Qo,assertNumber:av,callWithAsyncErrorHandling:_t,callWithErrorHandling:nn,camelize:vt,capitalize:Ei,cloneVNode:jt,compatUtils:Oy,compile:b0,computed:Ee,createApp:If,createBlock:Me,createCommentVNode:we,createElementBlock:oe,createElementVNode:P,createHydrationRenderer:ef,createPropsRestProxy:Qv,createRenderer:qh,createSSRApp:v0,createSlots:Fv,createStaticVNode:wy,createTextVNode:et,createVNode:he,customRef:Ya,defineAsyncComponent:Ev,defineComponent:$e,defineCustomElement:Cf,defineEmits:Wv,defineExpose:Hv,defineModel:Vv,defineOptions:Uv,defineProps:Bv,defineSSRCustomElement:e0,defineSlots:zv,get devtools(){return oi},effect:Em,effectScope:rh,getCurrentInstance:Dt,getCurrentScope:Wa,getTransitionRawChildren:jo,guardReactiveProps:af,h:Mi,handleError:ni,hasInjectionContext:sy,hydrate:Of,initCustomFormatter:Ey,initDirectivesForSSR:y0,inject:kt,isMemoSame:mf,isProxy:Va,isReactive:jn,isReadonly:Zn,isRef:qe,isRuntimeOnly:Ay,isShallow:ur,isVNode:Mn,markRaw:Wo,mergeDefaults:Xv,mergeModels:Zv,mergeProps:lf,nextTick:Vt,normalizeClass:kr,normalizeProps:_m,normalizeStyle:xr,onActivated:Ih,onBeforeMount:Ph,onBeforeUnmount:Lr,onBeforeUpdate:Dh,onDeactivated:Fh,onErrorCaptured:Uh,onMounted:nt,onRenderTracked:Hh,onRenderTriggered:Wh,onScopeDispose:sh,onServerPrefetch:Bh,onUnmounted:Yo,onUpdated:Ko,openBlock:q,popScopeId:Ja,provide:Ji,proxyRefs:Ka,pushScopeId:Qa,queuePostFlushCb:Za,reactive:Ti,readonly:Do,ref:Te,registerRuntimeCompiler:Sy,render:ua,renderList:ct,renderSlot:Nv,resolveComponent:ue,resolveDirective:Iv,resolveDynamicComponent:Ov,resolveFilter:My,resolveTransitionHooks:yi,setBlockTracking:ia,setDevtoolsHook:Ah,setTransitionHooks:Jn,shallowReactive:za,shallowReadonly:Xm,shallowRef:bh,ssrContextKey:pf,ssrUtils:Ty,stop:Rm,toDisplayString:Ae,toHandlerKey:Zi,toHandlers:Pv,toRaw:Oe,toRef:Qn,toRefs:tv,toValue:Jm,transformVNodeArgs:yy,triggerRef:Qm,unref:tn,useAttrs:Kv,useCssModule:n0,useCssVars:i0,useModel:Yv,useSSRContext:gf,useSlots:Gv,useTransitionState:tl,vModelCheckbox:fl,vModelDynamic:Ef,vModelRadio:dl,vModelSelect:yr,vModelText:Ft,vShow:_f,version:vf,warn:sv,watch:Ye,watchEffect:Rh,watchPostEffect:Lh,watchSyncEffect:Av,withAsyncContext:Jv,withCtx:dt,withDefaults:jv,withDirectives:Mt,withKeys:m0,withMemo:Ry,withModifiers:p0,withScopeId:dv},Symbol.toStringTag,{value:"Module"}));function zc(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?zc(Object(n),!0).forEach(function(i){pt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _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 pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $0(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 _0(e,t){if(e==null)return{};var n=$0(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}var C0=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,y,R){if(!h(y)||r(y)||l(y)||c(y)||s(y))return y;var C,S=0,$=0;if(o(y))for(C=[],$=y.length;S<$;S++)C.push(n(v,y[S],R));else{C={};for(var L in y)Object.prototype.hasOwnProperty.call(y,L)&&(C[v(L,R)]=n(v,y[L],R))}return C},i=function(v,y){y=y||{};var R=y.separator||"_",C=y.split||/(?=[A-Z])/;return v.split(C).join(R)},p=function(v){return a(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,R){return R?R.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},u=function(v){var y=p(v);return y.substr(0,1).toUpperCase()+y.substr(1)},d=function(v,y){return i(v,y).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,y){var R=y&&"process"in y?y.process:y;return typeof R!="function"?v:function(C,S){return R(C,v,S)}},m={camelize:p,decamelize:d,pascalize:u,depascalize:d,camelizeKeys:function(v,y){return n(f(p,y),v)},decamelizeKeys:function(v,y){return n(f(d,y),v,y)},pascalizeKeys:function(v,y){return n(f(u,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(C0)})(Nf);var S0=Nf.exports,A0=["class","style"];function x0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),p=S0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[p]=u,t},{})}function k0(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=k0(o);break;case"style":s.style=x0(o);break;default:s.attrs[h]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,d=u===void 0?{}:u,g=_0(n,A0);return Mi(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 E0(){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?pt({},e,t):{}}function R0(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"},pt(t,"fa-".concat(e.size),e.size!==null),pt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),pt(t,"fa-pull-".concat(e.pull),e.pull!==null),pt(t,"fa-swap-opacity",e.swapOpacity),pt(t,"fa-bounce",e.bounce),pt(t,"fa-shake",e.shake),pt(t,"fa-beat",e.beat),pt(t,"fa-fade",e.fade),pt(t,"fa-beat-fade",e.beatFade),pt(t,"fa-flash",e.flash),pt(t,"fa-spin-pulse",e.spinPulse),pt(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 Vc(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 L0=$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},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},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 Vc(t.icon)}),u=Ee(function(){return Ss("classes",R0(t))}),d=Ee(function(){return Ss("transform",typeof t.transform=="string"?js.transform(t.transform):t.transform)}),g=Ee(function(){return Ss("mask",Vc(t.mask))}),s=Ee(function(){return Yg(p.value,Jt(Jt(Jt(Jt({},u.value),d.value),g.value),{},{symbol:t.symbol,title:t.title}))});Ye(s,function(o){if(!o)return E0("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 T0=$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=>(Qa("data-v-19d4e9a4"),e=e(),Ja(),e),M0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},O0=Jo(()=>P("div",{class:"navbar-brand"},[P("a",{class:"navbar-item"},[P("h1",{class:"title"},"Mihari")]),P("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"})])],-1)),I0={class:"navbar-menu"},F0=Jo(()=>P("div",{class:"navbar-start"},null,-1)),N0={class:"navbar-end"},P0=Jo(()=>P("a",{class:"navbar-item"},[P("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),D0=Jo(()=>P("a",{class:"navbar-item"},[P("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function B0(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("nav",M0,[O0,P("div",I0,[F0,P("div",N0,[he(d,{class:"navbar-item",to:{name:"Alerts"}},{default:dt(()=>[et("Alerts")]),_:1}),he(d,{class:"navbar-item",to:{name:"NewRule"}},{default:dt(()=>[et("New rule")]),_:1}),he(d,{class:"navbar-item",to:{name:"Rules"}},{default:dt(()=>[et("Rules")]),_:1}),he(d,{class:"navbar-item",to:{name:"Configs"}},{default:dt(()=>[et("Configs")]),_:1}),P0,D0])])])}const W0=xe(T0,[["render",B0],["__scopeId","data-v-19d4e9a4"]]),H0=$e({name:"App",components:{Navbar:W0}});const U0={class:"section is-medium"},z0={class:"container"};function V0(e,t,n,i,p,u){const d=ue("Navbar"),g=ue("router-view");return q(),oe(Se,null,[he(d),P("section",U0,[P("div",z0,[he(g)])])],64)}const j0=xe(H0,[["render",V0]]);/*!
759
+ }`;function Bu(){var e=Mu,t=Ou,n=ye.cssPrefix,i=ye.replacementClass,p=Vp;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 Dl=!1;function ds(){ye.autoAddCss&&!Dl&&(Bp(Bu()),Dl=!0)}var jp={mixout:function(){return{dom:{css:Bu,insertCss:ds}}},hooks:function(){return{beforeDOMElementCreation:function(){ds()},beforeI2svg:function(){ds()}}}},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],Wu=[],Gp=function e(){Ve.removeEventListener("DOMContentLoaded",e),uo=1,Wu.map(function(t){return t()})},uo=!1;ln&&(uo=(Ve.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ve.readyState),uo||Ve.addEventListener("DOMContentLoaded",Gp));function Kp(e){ln&&(uo?setTimeout(e,0):Wu.push(e))}function Sr(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"?Du(e):"<".concat(t," ").concat(Hp(i),">").concat(u.map(Sr).join(""),"</").concat(t,">")}function Bl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Yp=function(t,n){return function(i,p,u,d){return t.call(n,i,p,u,d)}},ps=function(t,n,i,p){var u=Object.keys(t),d=u.length,g=p!==void 0?Yp(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 Xp(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 Ds(e){var t=Xp(e);return t.length===1?t[0].toString(16):null}function Zp(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 Wl(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 Bs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,p=i===void 0?!1:i,u=Wl(t);typeof It.hooks.addPack=="function"&&!p?It.hooks.addPack(e,Wl(t)):It.styles[e]=pe(pe({},It.styles[e]||{}),u),e==="fas"&&Bs("fa",t)}var Br,Wr,Hr,ai=It.styles,Qp=It.shims,Jp=(Br={},tt(Br,ze,Object.values(ar[ze])),tt(Br,Xe,Object.values(ar[Xe])),Br),La=null,Hu={},Uu={},zu={},Vu={},ju={},qp=(Wr={},tt(Wr,ze,Object.keys(or[ze])),tt(Wr,Xe,Object.keys(or[Xe])),Wr);function eg(e){return~Ip.indexOf(e)}function tg(e,t){var n=t.split("-"),i=n[0],p=n.slice(1).join("-");return i===e&&p!==""&&!eg(p)?p:null}var Gu=function(){var t=function(u){return ps(ai,function(d,g,s){return d[s]=ps(g,u,{}),d},{})};Hu=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}),Uu=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}),ju=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 ai||ye.autoFetchSvg,i=ps(Qp,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:{}});zu=i.names,Vu=i.unicodes,La=To(ye.styleDefault,{family:ye.familyDefault})};Dp(function(e){La=To(e.styleDefault,{family:ye.familyDefault})});Gu();function Ta(e,t){return(Hu[e]||{})[t]}function ng(e,t){return(Uu[e]||{})[t]}function Un(e,t){return(ju[e]||{})[t]}function Ku(e){return zu[e]||{prefix:null,iconName:null}}function ig(e){var t=Vu[e],n=Ta("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function kn(){return La}var Ma=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=or[i][e],u=sr[i][e]||sr[i][p],d=e in It.styles?e:null;return u||d||null}var Hl=(Hr={},tt(Hr,ze,Object.keys(ar[ze])),tt(Hr,Xe,Object.keys(ar[Xe])),Hr);function Mo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,p=i===void 0?!1:i,u=(t={},tt(t,ze,"".concat(ye.cssPrefix,"-").concat(ze)),tt(t,Xe,"".concat(ye.cssPrefix,"-").concat(Xe)),t),d=null,g=ze;(e.includes(u[ze])||e.some(function(h){return Hl[ze].includes(h)}))&&(g=ze),(e.includes(u[Xe])||e.some(function(h){return Hl[Xe].includes(h)}))&&(g=Xe);var s=e.reduce(function(h,o){var r=tg(ye.cssPrefix,o);if(ai[o]?(o=Jp[g].includes(o)?Ep[g][o]:o,d=o,h.prefix=o):qp[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"?Ku(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"&&!ai.far&&ai.fas&&!ye.autoFetchSvg&&(h.prefix="fas")}return h},Ma());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&&(ai.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 rg=function(){function e(){mp(this,e),this.definitions={}}return vp(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]),Bs(g,d[g]);var s=ar[ze][g];s&&Bs(s,d[g]),Gu()})}},{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}(),Ul=[],li={},ui={},og=Object.keys(ui);function sg(e,t){var n=t.mixoutsTo;return Ul=e,li={},Object.keys(ui).forEach(function(i){og.indexOf(i)===-1&&delete ui[i]}),Ul.forEach(function(i){var p=i.mixout?i.mixout():{};if(Object.keys(p).forEach(function(d){typeof p[d]=="function"&&(n[d]=p[d]),co(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){li[d]||(li[d]=[]),li[d].push(u[d])})}i.provides&&i.provides(ui)}),n}function Ws(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=li[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=li[e]||[];p.forEach(function(u){u.apply(null,n)})}function an(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ui[e]?ui[e].apply(null,t):void 0}function Hs(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||kn();if(t)return t=Un(n,t)||t,Bl(Yu.definitions,n,t)||Bl(It.styles,n,t)}var Yu=new rg,ag=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Xn("noAuto")},lg={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,Kp(function(){ug({autoReplaceSvgRoot:n}),Xn("watch",t)})}},cg={icon:function(t){if(t===null)return null;if(co(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(Rp))){var p=Mo(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}}}},Ct={noAuto:ag,config:ye,dom:lg,parse:cg,library:Yu,findIconDefinition:Hs,toHtml:Sr},ug=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&&Ct.dom.i2svg({node:i})};function Oo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Sr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(ln){var i=Ve.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function hg(e){var t=e.children,n=e.main,i=e.mask,p=e.attributes,u=e.styles,d=e.transform;if(Ra(d)&&n.found&&!i.found){var g=n.width,s=n.height,h={x:g/s/2,y:.5};p.style=Lo(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 fg(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 Oa(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||cr())},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:{}},T=$.children,R=$.attributes;return S.children=T,S.attributes=R,g?fg(S):hg(S)}function zl(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);Ra(p)&&(o.transform=zp({transform:p,startCentered:!0,width:n,height:i}),o["-webkit-transform"]=o.transform);var r=Lo(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 dg(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=Lo(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 gs=It.styles;function Us(e){var t=e[0],n=e[1],i=e.slice(4),p=Ca(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 pg={found:!1,width:512,height:512};function gg(e,t){!Iu&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function zs(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=Ku(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&gs[t]&&gs[t][e]){var d=gs[t][e];return i(Us(d))}gg(e,t),i(pe(pe({},pg),{},{icon:ye.showMissingIcons&&e?an("missingIconAbstract")||{}:{}}))})}var Vl=function(){},Vs=ye.measurePerformance&&Or&&Or.mark&&Or.measure?Or:{mark:Vl,measure:Vl},zi='FA "6.4.2"',mg=function(t){return Vs.mark("".concat(zi," ").concat(t," begins")),function(){return Xu(t)}},Xu=function(t){Vs.mark("".concat(zi," ").concat(t," ends")),Vs.measure("".concat(zi," ").concat(t),"".concat(zi," ").concat(t," begins"),"".concat(zi," ").concat(t," ends"))},Ia={begin:mg,end:Xu},to=function(){};function jl(e){var t=e.getAttribute?e.getAttribute(Yn):null;return typeof t=="string"}function vg(e){var t=e.getAttribute?e.getAttribute(Aa):null,n=e.getAttribute?e.getAttribute(xa):null;return t&&n}function yg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function bg(){if(ye.autoReplaceSvg===!0)return no.replace;var e=no[ye.autoReplaceSvg];return e||no.replace}function wg(e){return Ve.createElementNS("http://www.w3.org/2000/svg",e)}function $g(e){return Ve.createElement(e)}function Zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?wg:$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(Zu(d,{ceFn:i}))}),p}function _g(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var no={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(p){n.parentNode.insertBefore(Zu(p),n)}),n.getAttribute(Yn)===null&&ye.keepOriginalSource){var i=Ve.createComment(_g(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~Ea(n).indexOf(ye.replacementClass))return no.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 Sr(g)}).join(`
760
+ `);n.setAttribute(Yn,""),n.innerHTML=d}};function Gl(e){e()}function Qu(e,t){var n=typeof t=="function"?t:to;if(e.length===0)n();else{var i=Gl;ye.mutateApproach===xp&&(i=xn.requestAnimationFrame||Gl),i(function(){var p=bg(),u=Ia.begin("mutate");e.map(p),u(),n()})}}var Fa=!1;function Ju(){Fa=!0}function js(){Fa=!1}var ho=null;function Kl(e){if(Nl&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?to:t,i=e.nodeCallback,p=i===void 0?to:i,u=e.pseudoElementsCallback,d=u===void 0?to:u,g=e.observeMutationsRoot,s=g===void 0?Ve:g;ho=new Nl(function(h){if(!Fa){var o=kn();ki(h).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!jl(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"&&jl(r.target)&&~Op.indexOf(r.attributeName))if(r.attributeName==="class"&&vg(r.target)){var l=Mo(Ea(r.target)),c=l.prefix,a=l.iconName;r.target.setAttribute(Aa,c||o),a&&r.target.setAttribute(xa,a)}else yg(r.target)&&p(r.target)})}}),ln&&ho.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Cg(){ho&&ho.disconnect()}function Sg(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 Ag(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",p=Mo(Ea(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=ng(p.prefix,e.innerText)||Ta(p.prefix,Ds(e.innerText))),!p.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(p.iconName=e.firstChild.data)),p}function xg(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||cr()):(t["aria-hidden"]="true",t.focusable="false")),t}function kg(){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 Yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Ag(e),i=n.iconName,p=n.prefix,u=n.rest,d=xg(e),g=Ws("parseNodeAttributes",{},e),s=t.styleParser?Sg(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 Eg=It.styles;function qu(e){var t=ye.autoReplaceSvg==="nest"?Yl(e,{styleParser:!1}):Yl(e);return~t.extra.classes.indexOf(Fu)?an("generateLayersText",e,t):an("generateSvgReplacementMutation",e,t)}var En=new Set;ka.map(function(e){En.add("fa-".concat(e))});Object.keys(or[ze]).map(En.add.bind(En));Object.keys(or[Xe]).map(En.add.bind(En));En=_r(En);function Xl(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(Pl,"-").concat(r))},p=function(r){return n.remove("".concat(Pl,"-").concat(r))},u=ye.autoFetchSvg?En:ka.map(function(o){return"fa-".concat(o)}).concat(Object.keys(Eg));u.includes("fa")||u.push("fa");var d=[".".concat(Fu,":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=Ia.begin("onTree"),h=g.reduce(function(o,r){try{var l=qu(r);l&&o.push(l)}catch(c){Iu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,r){Promise.all(h).then(function(l){Qu(l,function(){i("active"),i("complete"),p("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(l){s(),r(l)})})}function Rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;qu(e).then(function(n){n&&Qu([n],t)})}function Lg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Hs(t||{}),p=n.mask;return p&&(p=(p||{}).icon?p:Hs(p||{})),e(i,pe(pe({},n),{},{mask:p}))}}var Tg=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,T=t.icon;return Oo(pe({type:"icon"},t),function(){return Xn("beforeDOMElementCreation",{iconDefinition:t,params:n}),ye.autoA11y&&(l?b["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(a||cr()):(b["aria-hidden"]="true",b.focusable="false")),Oa({icons:{main:Us(T),mask:s?Us(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}})})}},Mg={mixout:function(){return{icon:Lg(Tg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Xl,n.nodeCallback=Rg,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 Xl(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([zs(p,g),o.iconName?zs(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=Ca(f,2),v=m[0],b=m[1];c([n,Oa({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=Lo(g);s.length>0&&(p.style=s);var h;return Ra(d)&&(h=an("generateAbstractTransformGrouping",{main:u,transform:d,containerWidth:u.width,iconWidth:u.width})),i.push(h||u.icon),{children:i,attributes:p}}}},Og={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 Oo({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}]})}}}},Ig={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 Oo({type:"counter",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:i}),dg({content:n.toString(),title:u,extra:{attributes:h,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(_r(g))}})})}}}},Fg={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 Oo({type:"text",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:i}),zl({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,zl({content:n.innerHTML,width:g,height:s,transform:u,title:p,extra:d,watchable:!0})])}}},Ng=new RegExp('"',"ug"),Zl=[1105920,1112319];function Pg(e){var t=e.replace(Ng,""),n=Zp(t,0),i=n>=Zl[0]&&n<=Zl[1],p=t.length===2?t[0]===t[1]:!1;return{value:Ds(p?t[0]:t),isSecondary:i||p}}function Ql(e,t){var n="".concat(Ap).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(T){return T.getAttribute(Ps)===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])?sr[l][s[2].toLowerCase()]:Tp[l][h],a=Pg(r),f=a.value,m=a.isSecondary,v=s[0].startsWith("FontAwesome"),b=Ta(c,f),x=b;if(v){var C=ig(f);C.iconName&&C.prefix&&(b=C.iconName,c=C.prefix)}if(b&&!m&&(!d||d.getAttribute(Aa)!==c||d.getAttribute(xa)!==x)){e.setAttribute(n,x),d&&e.removeChild(d);var S=kg(),$=S.extra;$.attributes[Ps]=t,zs(b,c).then(function(T){var R=Oa(pe(pe({},S),{},{icons:{main:T,mask:Ma()},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 Sr(M)}).join(`
761
+ `),e.removeAttribute(n),i()}).catch(p)}else i()}else i()})}function Dg(e){return Promise.all([Ql(e,"::before"),Ql(e,"::after")])}function Bg(e){return e.parentNode!==document.head&&!~kp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ps)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Jl(e){if(ln)return new Promise(function(t,n){var i=ki(e.querySelectorAll("*")).filter(Bg).map(Dg),p=Ia.begin("searchPseudoElements");Ju(),Promise.all(i).then(function(){p(),js(),t()}).catch(function(){p(),js(),n()})})}var Wg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Jl,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,p=i===void 0?Ve:i;ye.searchPseudoElements&&Jl(p)}}},ql=!1,Hg={mixout:function(){return{dom:{unwatch:function(){Ju(),ql=!0}}}},hooks:function(){return{bootstrap:function(){Kl(Ws("mutationObserverCallbacks",{}))},noAuto:function(){Cg()},watch:function(n){var i=n.observeMutationsRoot;ql?js():Kl(Ws("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},ec=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)},Ug={mixout:function(){return{parse:{transform:function(n){return ec(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-transform");return p&&(n.transform=ec(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)}]}]}}}},ms={x:0,y:0,width:"100%",height:"100%"};function tc(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 zg(e){return e.tag==="g"?e.children:[e]}var Vg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-mask"),u=p?Mo(p.split(" ").map(function(d){return d.trim()})):Ma();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=Up({transform:s,containerWidth:r,iconWidth:h}),a={tag:"rect",attributes:pe(pe({},ms),{},{fill:"white"})},f=o.children?{children:o.children.map(tc)}:{},m={tag:"g",attributes:pe({},c.inner),children:[tc(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||cr()),x="clip-".concat(g||cr()),C={tag:"mask",attributes:pe(pe({},ms),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[a,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:zg(l)},C]};return i.push(S,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},ms)}),{children:i,attributes:p}}}},jg={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}}}},Gg={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}}}},Kg=[jp,Mg,Og,Ig,Fg,Wg,Hg,Ug,Vg,jg,Gg];sg(Kg,{mixoutsTo:Ct});Ct.noAuto;Ct.config;var Yg=Ct.library;Ct.dom;var Gs=Ct.parse;Ct.findIconDefinition;Ct.toHtml;var Xg=Ct.icon;Ct.layer;Ct.text;Ct.counter;var Zg={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"]},Qg={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"]},Jg=Qg,qg={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"]},em={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"]},tm=em,nm={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"]},im=nm,rm={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"]},om={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"]},sm=om,am={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"]},lm={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"]},cm={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 Io(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={},hi=[],Nt=()=>{},um=()=>!1,hm=/^on[^a-z]/,Ar=e=>hm.test(e),Na=e=>e.startsWith("onUpdate:"),je=Object.assign,Pa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fm=Object.prototype.hasOwnProperty,Fe=(e,t)=>fm.call(e,t),ge=Array.isArray,fi=e=>Ei(e)==="[object Map]",ti=e=>Ei(e)==="[object Set]",nc=e=>Ei(e)==="[object Date]",dm=e=>Ei(e)==="[object RegExp]",Ce=e=>typeof e=="function",Ge=e=>typeof e=="string",vi=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Da=e=>(We(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),eh=Object.prototype.toString,Ei=e=>eh.call(e),pm=e=>Ei(e).slice(8,-1),th=e=>Ei(e)==="[object Object]",Ba=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zi=Io(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gm=/-(\w)/g,vt=Fo(e=>e.replace(gm,(t,n)=>n?n.toUpperCase():"")),mm=/\B([A-Z])/g,xt=Fo(e=>e.replace(mm,"-$1").toLowerCase()),Ri=Fo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qi=Fo(e=>e?`on${Ri(e)}`:""),Rn=(e,t)=>!Object.is(e,t),di=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},fo=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},po=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let ic;const Ks=()=>ic||(ic=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),vm="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",ym=Io(vm);function xr(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],p=Ge(i)?_m(i):xr(i);if(p)for(const u in p)t[u]=p[u]}return t}else if(Ge(e)||We(e))return e}const bm=/;(?![^(]*\))/g,wm=/:([^]+)/,$m=/\/\*[^]*?\*\//g;function _m(e){const t={};return e.replace($m,"").split(bm).forEach(n=>{if(n){const i=n.split(wm);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function kr(e){let t="";if(Ge(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const i=kr(e[n]);i&&(t+=i+" ")}else if(We(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Cm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=kr(t)),n&&(e.style=xr(n)),e}const Sm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Am=Io(Sm);function nh(e){return!!e||e===""}function xm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Ln(e[i],t[i]);return n}function Ln(e,t){if(e===t)return!0;let n=nc(e),i=nc(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=vi(e),i=vi(t),n||i)return e===t;if(n=ge(e),i=ge(t),n||i)return n&&i?xm(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||!Ln(e[d],t[d]))return!1}}return String(e)===String(t)}function No(e,t){return e.findIndex(n=>Ln(n,t))}const Ae=e=>Ge(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===eh||!Ce(e.toString))?JSON.stringify(e,ih,2):String(e),ih=(e,t)=>t&&t.__v_isRef?ih(e,t.value):fi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,p])=>(n[`${i} =>`]=p,n),{})}:ti(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!ge(t)&&!th(t)?String(t):t;let bt;class Wa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=bt,!t&&bt&&(this.index=(bt.scopes||(bt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=bt;try{return bt=this,t()}finally{bt=n}}}on(){bt=this}off(){bt=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 rh(e){return new Wa(e)}function oh(e,t=bt){t&&t.active&&t.effects.push(e)}function Ha(){return bt}function sh(e){bt&&bt.cleanups.push(e)}const Ua=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ah=e=>(e.w&Tn)>0,lh=e=>(e.n&Tn)>0,km=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Tn},Em=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const p=t[i];ah(p)&&!lh(p)?p.delete(e):t[n++]=p,p.w&=~Tn,p.n&=~Tn}t.length=n}},mo=new WeakMap;let Vi=0,Tn=1;const Ys=30;let Tt;const Vn=Symbol(""),Xs=Symbol("");class yi{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,oh(this,i)}run(){if(!this.active)return this.fn();let t=Tt,n=Sn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Tt,Tt=this,Sn=!0,Tn=1<<++Vi,Vi<=Ys?km(this):rc(this),this.fn()}finally{Vi<=Ys&&Em(this),Tn=1<<--Vi,Tt=this.parent,Sn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Tt===this?this.deferStop=!0:this.active&&(rc(this),this.onStop&&this.onStop(),this.active=!1)}}function rc(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Rm(e,t){e.effect instanceof yi&&(e=e.effect.fn);const n=new yi(e);t&&(je(n,t),t.scope&&oh(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 ch=[];function Li(){ch.push(Sn),Sn=!1}function Ti(){const e=ch.pop();Sn=e===void 0?!0:e}function yt(e,t,n){if(Sn&&Tt){let i=mo.get(e);i||mo.set(e,i=new Map);let p=i.get(n);p||i.set(n,p=Ua()),uh(p)}}function uh(e,t){let n=!1;Vi<=Ys?lh(e)||(e.n|=Tn,n=!ah(e)):n=!e.has(Tt),n&&(e.add(Tt),Tt.deps.push(e))}function en(e,t,n,i,p,u){const d=mo.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"||!vi(o)&&o>=s)&&g.push(h)})}else switch(n!==void 0&&g.push(d.get(n)),t){case"add":ge(e)?Ba(n)&&g.push(d.get("length")):(g.push(d.get(Vn)),fi(e)&&g.push(d.get(Xs)));break;case"delete":ge(e)||(g.push(d.get(Vn)),fi(e)&&g.push(d.get(Xs)));break;case"set":fi(e)&&g.push(d.get(Vn));break}if(g.length===1)g[0]&&Zs(g[0]);else{const s=[];for(const h of g)h&&s.push(...h);Zs(Ua(s))}}function Zs(e,t){const n=ge(e)?e:[...e];for(const i of n)i.computed&&oc(i);for(const i of n)i.computed||oc(i)}function oc(e,t){(e!==Tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Tm(e,t){var n;return(n=mo.get(e))==null?void 0:n.get(t)}const Mm=Io("__proto__,__v_isRef,__isVue"),hh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vi)),sc=Om();function Om(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Oe(this);for(let u=0,d=this.length;u<d;u++)yt(i,"get",u+"");const p=i[t](...n);return p===-1||p===!1?i[t](...n.map(Oe)):p}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Li();const i=Oe(this)[t].apply(this,n);return Ti(),i}}),e}function Im(e){const t=Oe(this);return yt(t,"has",e),t.hasOwnProperty(e)}class fh{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?yh:vh:u?mh:gh).get(t))return t;const d=ge(t);if(!p){if(d&&Fe(sc,n))return Reflect.get(sc,n,i);if(n==="hasOwnProperty")return Im}const g=Reflect.get(t,n,i);return(vi(n)?hh.has(n):Mm(n))||(p||yt(t,"get",n),u)?g:qe(g)?d&&Ba(n)?g:g.value:We(g)?p?Bo(g):Mi(g):g}}class dh extends fh{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&&(!ur(i)&&!Zn(i)&&(u=Oe(u),i=Oe(i)),!ge(t)&&qe(u)&&!qe(i)))return u.value=i,!0;const d=ge(t)&&Ba(n)?Number(n)<t.length:Fe(t,n),g=Reflect.set(t,n,i,p);return t===Oe(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(!vi(n)||!hh.has(n))&&yt(t,"has",n),i}ownKeys(t){return yt(t,"iterate",ge(t)?"length":Vn),Reflect.ownKeys(t)}}class ph extends fh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fm=new dh,Nm=new ph,Pm=new dh(!0),Dm=new ph(!0),za=e=>e,Po=e=>Reflect.getPrototypeOf(e);function Ur(e,t,n=!1,i=!1){e=e.__v_raw;const p=Oe(e),u=Oe(t);n||(Rn(t,u)&&yt(p,"get",t),yt(p,"get",u));const{has:d}=Po(p),g=i?za:n?Ga:hr;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 zr(e,t=!1){const n=this.__v_raw,i=Oe(n),p=Oe(e);return t||(Rn(e,p)&&yt(i,"has",e),yt(i,"has",p)),e===p?n.has(e):n.has(e)||n.has(p)}function Vr(e,t=!1){return e=e.__v_raw,!t&&yt(Oe(e),"iterate",Vn),Reflect.get(e,"size",e)}function ac(e){e=Oe(e);const t=Oe(this);return Po(t).has.call(t,e)||(t.add(e),en(t,"add",e,e)),this}function lc(e,t){t=Oe(t);const n=Oe(this),{has:i,get:p}=Po(n);let u=i.call(n,e);u||(e=Oe(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 cc(e){const t=Oe(this),{has:n,get:i}=Po(t);let p=n.call(t,e);p||(e=Oe(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 uc(){const e=Oe(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function jr(e,t){return function(i,p){const u=this,d=u.__v_raw,g=Oe(d),s=t?za:e?Ga:hr;return!e&&yt(g,"iterate",Vn),d.forEach((h,o)=>i.call(p,s(h),s(o),u))}}function Gr(e,t,n){return function(...i){const p=this.__v_raw,u=Oe(p),d=fi(u),g=e==="entries"||e===Symbol.iterator&&d,s=e==="keys"&&d,h=p[e](...i),o=n?za:t?Ga:hr;return!t&&yt(u,"iterate",s?Xs: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 Bm(){const e={get(u){return Ur(this,u)},get size(){return Vr(this)},has:zr,add:ac,set:lc,delete:cc,clear:uc,forEach:jr(!1,!1)},t={get(u){return Ur(this,u,!1,!0)},get size(){return Vr(this)},has:zr,add:ac,set:lc,delete:cc,clear:uc,forEach:jr(!1,!0)},n={get(u){return Ur(this,u,!0)},get size(){return Vr(this,!0)},has(u){return zr.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:jr(!0,!1)},i={get(u){return Ur(this,u,!0,!0)},get size(){return Vr(this,!0)},has(u){return zr.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:jr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=Gr(u,!1,!1),n[u]=Gr(u,!0,!1),t[u]=Gr(u,!1,!0),i[u]=Gr(u,!0,!0)}),[e,n,t,i]}const[Wm,Hm,Um,zm]=Bm();function Do(e,t){const n=t?e?zm:Um:e?Hm:Wm;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 Vm={get:Do(!1,!1)},jm={get:Do(!1,!0)},Gm={get:Do(!0,!1)},Km={get:Do(!0,!0)},gh=new WeakMap,mh=new WeakMap,vh=new WeakMap,yh=new WeakMap;function Ym(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xm(e){return e.__v_skip||!Object.isExtensible(e)?0:Ym(pm(e))}function Mi(e){return Zn(e)?e:Wo(e,!1,Fm,Vm,gh)}function Va(e){return Wo(e,!1,Pm,jm,mh)}function Bo(e){return Wo(e,!0,Nm,Gm,vh)}function Zm(e){return Wo(e,!0,Dm,Km,yh)}function Wo(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=Xm(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 ur(e){return!!(e&&e.__v_isShallow)}function ja(e){return jn(e)||Zn(e)}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function Ho(e){return fo(e,"__v_skip",!0),e}const hr=e=>We(e)?Mi(e):e,Ga=e=>We(e)?Bo(e):e;function Ka(e){Sn&&Tt&&(e=Oe(e),uh(e.dep||(e.dep=Ua())))}function Uo(e,t){e=Oe(e);const n=e.dep;n&&Zs(n)}function qe(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return wh(e,!1)}function bh(e){return wh(e,!0)}function wh(e,t){return qe(e)?e:new Qm(e,t)}class Qm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Oe(t),this._value=n?t:hr(t)}get value(){return Ka(this),this._value}set value(t){const n=this.__v_isShallow||ur(t)||Zn(t);t=n?t:Oe(t),Rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:hr(t),Uo(this))}}function Jm(e){Uo(e)}function tn(e){return qe(e)?e.value:e}function qm(e){return Ce(e)?e():tn(e)}const ev={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 Ya(e){return jn(e)?e:new Proxy(e,ev)}class tv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Ka(this),()=>Uo(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Xa(e){return new tv(e)}function nv(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=$h(e,n);return t}class iv{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 Tm(Oe(this._object),this._key)}}class rv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Qn(e,t,n){return qe(e)?e:Ce(e)?new rv(e):We(e)&&arguments.length>1?$h(e,t,n):Te(e)}function $h(e,t,n){const i=e[t];return qe(i)?i:new iv(e,t,n)}class ov{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 yi(t,()=>{this._dirty||(this._dirty=!0,Uo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!p,this.__v_isReadonly=i}get value(){const t=Oe(this);return Ka(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function sv(e,t,n=!1){let i,p;const u=Ce(e);return u?(i=e,p=Nt):(i=e.get,p=e.set),new ov(i,p,u||!p,n)}function av(e,...t){}function lv(e,t){}function nn(e,t,n,i){let p;try{p=i?e(...i):e()}catch(u){ni(u,t,n)}return p}function _t(e,t,n,i){if(Ce(e)){const u=nn(e,t,n,i);return u&&Da(u)&&u.catch(d=>{ni(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 ni(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}}cv(e,n,p,i)}function cv(e,t,n,i=!0){console.error(e)}let fr=!1,Qs=!1;const at=[];let Wt=0;const pi=[];let Zt=null,Bn=0;const _h=Promise.resolve();let Za=null;function Vt(e){const t=Za||_h;return e?t.then(this?e.bind(this):e):t}function uv(e){let t=Wt+1,n=at.length;for(;t<n;){const i=t+n>>>1,p=at[i],u=dr(p);u<e||u===e&&p.pre?t=i+1:n=i}return t}function zo(e){(!at.length||!at.includes(e,fr&&e.allowRecurse?Wt+1:Wt))&&(e.id==null?at.push(e):at.splice(uv(e.id),0,e),Ch())}function Ch(){!fr&&!Qs&&(Qs=!0,Za=_h.then(Sh))}function hv(e){const t=at.indexOf(e);t>Wt&&at.splice(t,1)}function vo(e){ge(e)?pi.push(...e):(!Zt||!Zt.includes(e,e.allowRecurse?Bn+1:Bn))&&pi.push(e),Ch()}function hc(e,t=fr?Wt+1:0){for(;t<at.length;t++){const n=at[t];n&&n.pre&&(at.splice(t,1),t--,n())}}function yo(e){if(pi.length){const t=[...new Set(pi)];if(pi.length=0,Zt){Zt.push(...t);return}for(Zt=t,Zt.sort((n,i)=>dr(n)-dr(i)),Bn=0;Bn<Zt.length;Bn++)Zt[Bn]();Zt=null,Bn=0}}const dr=e=>e.id==null?1/0:e.id,fv=(e,t)=>{const n=dr(e)-dr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Sh(e){Qs=!1,fr=!0,at.sort(fv);const t=Nt;try{for(Wt=0;Wt<at.length;Wt++){const n=at[Wt];n&&n.active!==!1&&nn(n,null,14)}}finally{Wt=0,at.length=0,yo(),fr=!1,Za=null,(at.length||pi.length)&&Sh()}}let oi,Kr=[];function Ah(e,t){var n,i;oi=e,oi?(oi.enabled=!0,Kr.forEach(({event:p,args:u})=>oi.emit(p,...u)),Kr=[]):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=>{Ah(u,t)}),setTimeout(()=>{oi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Kr=[])},3e3)):Kr=[]}function dv(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(po))}let g,s=i[g=Qi(t)]||i[g=Qi(vt(t))];!s&&u&&(s=i[g=Qi(xt(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 xh(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=xh(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 Vo(e,t){return!e||!Ar(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,xt(t))||Fe(e,t))}let it=null,jo=null;function pr(e){const t=it;return it=e,jo=e&&e.type.__scopeId||null,t}function Qa(e){jo=e}function Ja(){jo=null}const pv=e=>dt;function dt(e,t=it,n){if(!t||e._n)return e;const i=(...p)=>{i._d&&ra(-1);const u=pr(t);let d;try{d=e(...p)}finally{pr(u),i._d&&ra(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function io(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=pr(e);try{if(n.shapeFlag&4){const C=p||i;m=wt(o.call(C,C,r,u,c,l,a)),v=s}else{const C=t;m=wt(C.length>1?C(u,{attrs:s,slots:g,emit:h}):C(u,null)),v=t.props?s:mv(s)}}catch(C){tr.length=0,ni(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(Na)&&(v=vv(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,pr(b),m}function gv(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 mv=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ar(n))&&((t||(t={}))[n]=e[n]);return t},vv=(e,t)=>{const n={};for(const i in e)(!Na(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function yv(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?fc(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]&&!Vo(h,l))return!0}}}else return(p||g)&&(!g||!g.$stable)?!0:i===d?!1:i?d?fc(i,d,h):!0:!!d;return!1}function fc(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]&&!Vo(n,u))return!0}return!1}function qa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const kh=e=>e.__isSuspense,bv={name:"Suspense",__isSuspense:!0,process(e,t,n,i,p,u,d,g,s,h){e==null?$v(t,n,i,p,u,d,g,s,h):_v(e,t,n,i,p,d,g,s,h)},hydrate:Cv,create:el,normalize:Sv},wv=bv;function gr(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function $v(e,t,n,i,p,u,d,g,s){const{p:h,o:{createElement:o}}=s,r=o("div"),l=e.suspense=el(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?(gr(e,"onPending"),gr(e,"onFallback"),h(null,e.ssFallback,t,n,i,null,u,d),gi(l,e.ssFallback)):l.resolve(!1,!0)}function _v(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),gi(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),gi(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),gi(r,l);else if(gr(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 el(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=Av(e);b&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const x=e.props?go(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:T,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),vo(y))});let{anchor:O}=C;R&&(O=a(R),c(R,A,C,!0)),w||l(k,_,O,0)}gi(C,k),C.pendingBranch=null,C.isInFallback=!1;let E=C.parent,L=!1;for(;E;){if(E.pendingBranch){E.effects.push(...y),L=!0;break}E=E.parent}!L&&!w&&vo(y),C.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),gr(T,"onResolve")},fallback(S){if(!C.pendingBranch)return;const{vnode:$,activeBranch:T,parentComponent:R,container:k,isSVG:M}=C;gr($,"onFallback");const y=a(T),A=()=>{C.isInFallback&&(r(null,S,k,y,R,null,M,g,s),gi(C,S))},_=S.transition&&S.transition.mode==="out-in";_&&(T.transition.afterLeave=A),C.isInFallback=!0,c(T,R,null,!0),_||A()},move(S,$,T){C.activeBranch&&l(C.activeBranch,S,$,T),C.container=S},next(){return C.activeBranch&&a(C.activeBranch)},registerDep(S,$){const T=!!C.pendingBranch;T&&C.deps++;const R=S.vnode.el;S.asyncDep.catch(k=>{ni(k,S,0)}).then(k=>{if(S.isUnmounted||C.isUnmounted||C.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;oa(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),qa(S,M.el),T&&--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 Cv(e,t,n,i,p,u,d,g,s){const h=t.suspense=el(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 Sv(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=ei&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=mt,of())}return ge(e)&&(e=gv(e)),e=wt(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):vo(e)}function gi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,p=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=p,qa(i,p))}function Av(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Rh(e,t){return Er(e,null,t)}function Lh(e,t){return Er(e,null,{flush:"post"})}function xv(e,t){return Er(e,null,{flush:"sync"})}const Yr={};function Ye(e,t,n){return Er(e,t,n)}function Er(e,t,{immediate:n,deep:i,flush:p,onTrack:u,onTrigger:d}=Be){var g;const s=Ha()===((g=Qe)==null?void 0:g.scope)?Qe:null;let h,o=!1,r=!1;if(qe(e)?(h=()=>e.value,o=ur(e)):jn(e)?(h=()=>e,i=!0):ge(e)?(r=!0,o=e.some(C=>jn(C)||ur(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=mf();a=C.__watcherHandles||(C.__watcherHandles=[])}else return Nt;let f=r?new Array(e.length).fill(Yr):Yr;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===Yr?void 0:r&&f[0]===Yr?[]:f,c]),f=C)}else b.run()};m.allowRecurse=!!t;let v;p==="sync"?v=m:p==="post"?v=()=>ot(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),v=()=>zo(m));const b=new yi(h,v);t?n?m():f=b.run():p==="post"?ot(b.run.bind(b),s&&s.suspense):b.run();const x=()=>{b.stop(),s&&s.scope&&Pa(s.scope.effects,b)};return a&&a.push(x),x}function kv(e,t,n){const i=this.proxy,p=Ge(e)?e.includes(".")?Th(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=Er(p,u.bind(i),n);return d?On(d):An(),g}function Th(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(ti(e)||fi(e))e.forEach(n=>{zn(n,t)});else if(th(e))for(const n in e)zn(e[n],t);return e}function Mt(e,t){const n=it;if(n===null)return e;const i=Qo(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&&(Li(),_t(s,n,8,[e.el,g,e,t]),Ti())}}const $n=Symbol("_leaveCb"),Xr=Symbol("_enterCb");function tl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),Lr(()=>{e.isUnmounting=!0}),e}const At=[Function,Array],nl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},Ev={name:"BaseTransition",props:nl,setup(e,{slots:t}){const n=Dt(),i=tl();let p;return()=>{const u=t.default&&Go(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=Oe(e),{mode:s}=g;if(i.isLeaving)return vs(d);const h=pc(d);if(!h)return vs(d);const o=bi(h,g,i,n);Jn(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(Jn(l,f),s==="out-in")return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},vs(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=Ev;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()},T={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[Xr]=w=>{A||(A=!0,w?S(y,[R]):S(M,[R]),T.delayedLeave&&T.delayedLeave(),R[Xr]=void 0)};k?$(k,[R,_]):_()},leave(R,k){const M=String(e.key);if(R[Xr]&&R[Xr](!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 T}function vs(e){if(Rr(e))return e=jt(e),e.children=null,e}function pc(e){return Rr(e)?e.children?e.children[0]:void 0:e}function Jn(e,t){e.shapeFlag&6&&e.component?Jn(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 Go(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(Go(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 Rv(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()=>ys(h,c);const a=b=>{s=null,ni(b,c,13,!i)};if(d&&c.suspense||wi)return l().then(b=>()=>ys(b,c)).catch(b=>(a(b),()=>i?he(i,{error:b}):null));const f=Te(!1),m=Te(),v=Te(!!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&&Rr(c.parent.vnode)&&zo(c.parent.update)}).catch(b=>{a(b),m.value=b}),()=>{if(f.value&&h)return ys(h,c);if(m.value&&i)return he(i,{error:m.value});if(n&&!v.value)return he(n)}}})}function ys(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 Rr=e=>e.type.__isKeepAlive,Lv={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 T=b.component;h(b,x,C,0,g),s(T.vnode,b,x,C,T,g,S,b.slotScopeIds,$),ot(()=>{T.isDeactivated=!1,T.a&&di(T.a);const R=b.props&&b.props.onVnodeMounted;R&&gt(R,T.parent,b)},g)},i.deactivate=b=>{const x=b.component;h(b,l,null,1,g),ot(()=>{x.da&&di(x.da);const C=b.props&&b.props.onVnodeUnmounted;C&&gt(C,x.parent,b),x.isDeactivated=!0},g)};function c(b){bs(b),o(b,n,g,!0)}function a(b){p.forEach((x,C)=>{const S=aa(x.type);S&&(!b||!b(S))&&f(C)})}function f(b){const x=p.get(b);!d||!Ot(x,d)?c(x):d&&bs(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,ws(n.subTree))};return nt(v),Yo(v),Lr(()=>{p.forEach(b=>{const{subTree:x,suspense:C}=n,S=ws(x);if(b.type===S.type&&b.key===S.key){bs(S);const $=S.component.da;$&&ot($,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=ws(x);const S=C.type,$=aa(Gn(C)?C.type.__asyncResolved||{}:S),{include:T,exclude:R,max:k}=e;if(T&&(!$||!ji(T,$))||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&&Jn(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}}},Tv=Lv;function ji(e,t){return ge(e)?e.some(n=>ji(n,t)):Ge(e)?e.split(",").includes(t):dm(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(Ko(t,i,n),n){let p=n.parent;for(;p&&p.parent;)Rr(p.parent.vnode)&&Mv(i,t,n,p),p=p.parent}}function Mv(e,t,n,i){const p=Ko(t,e,i,!0);Xo(()=>{Pa(i[t],p)},n)}function bs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ws(e){return e.shapeFlag&128?e.ssContent:e}function Ko(e,t,n=Qe,i=!1){if(n){const p=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...d)=>{if(n.isUnmounted)return;Li(),On(n);const g=_t(t,n,e,d);return An(),Ti(),g});return i?p.unshift(u):p.push(u),u}}const cn=e=>(t,n=Qe)=>(!wi||e==="sp")&&Ko(e,(...i)=>t(...i),n),Ph=cn("bm"),nt=cn("m"),Dh=cn("bu"),Yo=cn("u"),Lr=cn("bum"),Xo=cn("um"),Bh=cn("sp"),Wh=cn("rtg"),Hh=cn("rtc");function Uh(e,t=Qe){Ko("ec",e,t)}const il="components",Ov="directives";function ue(e,t){return rl(il,e,!0,t)||e}const zh=Symbol.for("v-ndc");function Iv(e){return Ge(e)?rl(il,e,!1)||e:e||zh}function Fv(e){return rl(Ov,e)}function rl(e,t,n=!0,i=!1){const p=it||Qe;if(p){const u=p.type;if(e===il){const g=aa(u,!1);if(g&&(g===t||g===vt(t)||g===Ri(vt(t))))return u}const d=gc(p[e]||u[e],t)||gc(p.appContext[e],t);return!d&&i?u:d}}function gc(e,t){return e&&(e[t]||e[vt(t)]||e[Ri(vt(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 Nv(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 Pv(e,t,n={},i,p){if(it.isCE||it.parent&&Gn(it.parent)&&it.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&&Vh(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 Vh(e){return e.some(t=>Mn(t)?!(t.type===lt||t.type===Se&&!Vh(t.children)):!0)?e:null}function Dv(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Qi(i)]=e[i];return n}const Js=e=>e?hf(e)?Qo(e)||e.proxy:Js(e.parent):null,Ji=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=>Js(e.parent),$root:e=>Js(e.root),$emit:e=>e.emit,$options:e=>ol(e),$forceUpdate:e=>e.f||(e.f=()=>zo(e.update)),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>kv.bind(e)}),$s=(e,t)=>e!==Be&&!e.__isScriptSetup&&Fe(e,t),qs={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($s(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];ea&&(d[t]=0)}}const o=Ji[t];let r,l;if(o)return t==="$attrs"&&yt(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 $s(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)||$s(t,d)||(g=u[0])&&Fe(g,d)||Fe(i,d)||Fe(Ji,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)}},Bv=je({},qs,{get(e,t){if(t!==Symbol.unscopables)return qs.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ym(t)}});function Wv(){return null}function Hv(){return null}function Uv(e){}function zv(e){}function Vv(){return null}function jv(){}function Gv(e,t){return null}function Kv(){return jh().slots}function Yv(){return jh().attrs}function Xv(e,t,n){const i=Dt();if(n&&n.local){const p=Te(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 jh(){const e=Dt();return e.setupContext||(e.setupContext=pf(e))}function mr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Zv(e,t){const n=mr(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 Qv(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):je({},mr(e),mr(t))}function Jv(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function qv(e){const t=Dt();let n=e();return An(),Da(n)&&(n=n.catch(i=>{throw On(t),i})),[n,()=>On(t)]}let ea=!0;function ey(e){const t=ol(e),n=e.proxy,i=e.ctx;ea=!1,t.beforeCreate&&mc(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:T,errorCaptured:R,serverPrefetch:k,expose:M,inheritAttrs:y,components:A,directives:_,filters:w}=t;if(h&&ty(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(ea=!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)Gh(g[O],i,n,O);if(s){const O=Ce(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{qi(I,O[I])})}o&&mc(o,e,"c");function L(O,I){ge(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(L(Ph,r),L(nt,l),L(Dh,c),L(Yo,a),L(Ih,f),L(Fh,m),L(Uh,R),L(Hh,$),L(Wh,T),L(Lr,b),L(Xo,C),L(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 ty(e,t,n=Nt){ge(e)&&(e=ta(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 mc(e,t,n){_t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gh(e,t,n,i){const p=i.includes(".")?Th(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=>Gh(u,t,n,i));else{const u=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(u)&&Ye(p,u,e)}}function ol(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=>bo(s,h,d,!0)),bo(s,t,d)),We(t)&&u.set(t,s),s}function bo(e,t,n,i=!1){const{mixins:p,extends:u}=t;u&&bo(e,u,n,!0),p&&p.forEach(d=>bo(e,d,n,!0));for(const d in t)if(!(i&&d==="expose")){const g=ny[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const ny={data:vc,props:yc,emits:yc,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:ry,provide:vc,inject:iy};function vc(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 iy(e,t){return Gi(ta(e),ta(t))}function ta(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 yc(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:je(Object.create(null),mr(e),mr(t??{})):t}function ry(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 Kh(){return{app:null,config:{isNativeTag:um,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let oy=0;function sy(e,t){return function(i,p=null){Ce(i)||(i=je({},i)),p!=null&&!We(p)&&(p=null);const u=Kh(),d=new WeakSet;let g=!1;const s=u.app={_uid:oy++,_component:i,_props:p,_container:null,_context:u,_instance:null,version:yf,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,Qo(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){vr=s;try{return h()}finally{vr=null}}};return s}}let vr=null;function qi(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||it;if(i||vr){const p=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:vr._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 ay(){return!!(Qe||it||vr)}function ly(e,t,n,i=!1){const p={},u={};fo(u,Zo,1),e.propsDefaults=Object.create(null),Yh(e,t,p,u);for(const d in e.propsOptions[0])d in p||(p[d]=void 0);n?e.props=i?p:Va(p):e.type.props?e.props=p:e.props=u,e.attrs=u}function cy(e,t,n,i){const{props:p,attrs:u,vnode:{patchFlag:d}}=e,g=Oe(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(Vo(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=vt(l);p[a]=na(s,g,a,c,e,!1)}else c!==u[l]&&(u[l]=c,h=!0)}}}else{Yh(e,t,p,u)&&(h=!0);let o;for(const r in g)(!t||!Fe(t,r)&&((o=xt(r))===r||!Fe(t,o)))&&(s?n&&(n[r]!==void 0||n[o]!==void 0)&&(p[r]=na(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 Yh(e,t,n,i){const[p,u]=e.propsOptions;let d=!1,g;if(t)for(let s in t){if(Zi(s))continue;const h=t[s];let o;p&&Fe(p,o=vt(s))?!u||!u.includes(o)?n[o]=h:(g||(g={}))[o]=h:Vo(e.emitsOptions,s)||(!(s in i)||h!==i[s])&&(i[s]=h,d=!0)}if(u){const s=Oe(n),h=g||Be;for(let o=0;o<u.length;o++){const r=u[o];n[r]=na(p,s,r,h[r],e,!Fe(h,r))}}return d}function na(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===xt(n))&&(i=!0))}return i}function Xh(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]=Xh(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,hi),hi;if(ge(u))for(let o=0;o<u.length;o++){const r=vt(u[o]);bc(r)&&(d[r]=Be)}else if(u)for(const o in u){const r=vt(o);if(bc(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 bc(e){return e[0]!=="$"}function wc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function $c(e,t){return wc(e)===wc(t)}function _c(e,t){return ge(t)?t.findIndex(n=>$c(n,e)):Ce(t)&&$c(t,e)?0:-1}const Zh=e=>e[0]==="_"||e==="$stable",sl=e=>ge(e)?e.map(wt):[wt(e)],uy=(e,t,n)=>{if(t._n)return t;const i=dt((...p)=>sl(t(...p)),n);return i._c=!1,i},Qh=(e,t,n)=>{const i=e._ctx;for(const p in e){if(Zh(p))continue;const u=e[p];if(Ce(u))t[p]=uy(p,u,i);else if(u!=null){const d=sl(u);t[p]=()=>d}}},Jh=(e,t)=>{const n=sl(t);e.slots.default=()=>n},hy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Oe(t),fo(t,"_",n)):Qh(t,e.slots={})}else e.slots={},t&&Jh(e,t);fo(e.slots,Zo,1)},fy=(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,Qh(t,p)),d=t}else t&&(Jh(e,t),d={default:1});if(u)for(const g in p)!Zh(g)&&d[g]==null&&delete p[g]};function wo(e,t,n,i,p=!1){if(ge(e)){e.forEach((l,c)=>wo(l,t&&(ge(t)?t[c]:t),n,i,p));return}if(Gn(i)&&!p)return;const u=i.shapeFlag&4?Qo(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)&&Pa(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,ot(a,n)):a()}}}let mn=!1;const Zr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Qr=e=>e.nodeType===8;function dy(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),yo(),C._vnode=x;return}mn=!1,r(C.firstChild,x,null,null,null),yo(),C._vnode=x,mn&&console.error("Hydration completed but contains mismatches.")},r=(x,C,S,$,T,R=!1)=>{const k=Qr(x)&&x.data==="[",M=()=>f(x,C,S,$,T,k),{type:y,ref:A,shapeFlag:_,patchFlag:w}=C;let E=x.nodeType;C.el=x,w===-2&&(R=!1,C.dynamicChildren=null);let L=null;switch(y){case qn:E!==3?C.children===""?(s(C.el=p(""),d(x),x),L=x):L=M():(x.data!==C.children&&(mn=!0,x.data=C.children),L=u(x));break;case lt:if(E!==8||k)if(x.tagName.toLowerCase()==="template"){const O=C.el.content.firstChild;v(O,x,S),C.el=x=O,L=u(x)}else L=M();else L=u(x);break;case Kn:if(k&&(x=u(x),E=x.nodeType),E===1||E===3){L=x;const O=!C.children.length;for(let I=0;I<C.staticCount;I++)O&&(C.children+=L.nodeType===1?L.outerHTML:L.data),I===C.staticCount-1&&(C.anchor=L),L=u(L);return k?u(L):L}else M();break;case Se:k?L=a(x,C,S,$,T,R):L=M();break;default:if(_&1)(E!==1||C.type.toLowerCase()!==x.tagName.toLowerCase())&&!b(x)?L=M():L=l(x,C,S,$,T,R);else if(_&6){C.slotScopeIds=T;const O=d(x);if(k?L=m(x):Qr(x)&&x.data==="teleport start"?L=m(x,x.data,"teleport end"):L=u(x),t(C,O,null,S,$,Zr(O),R),Gn(C)){let I;k?(I=he(Se),I.anchor=L?L.previousSibling:O.lastChild):I=x.nodeType===3?et(""):he("div"),I.el=x,C.component.subTree=I}}else _&64?E!==8?L=M():L=C.type.hydrate(x,C,S,$,T,R,e,c):_&128&&(L=C.type.hydrate(x,C,S,$,Zr(d(x)),T,R,e,r))}return A!=null&&wo(A,null,$,C),L},l=(x,C,S,$,T,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")||Ar(I)&&!Zi(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 L;(L=M&&M.onVnodeBeforeMount)&&gt(L,S,C);let O=!1;if(b(x)){O=nf($,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"),((L=M&&M.onVnodeMounted)||_||O)&&Eh(()=>{L&&gt(L,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,$,T,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,$,T,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]=wt(M[A]);if(x)x=r(x,_,$,T,R,k);else{if(_.type===qn&&!_.children)continue;mn=!0,n(null,_,S,null,$,T,Zr(S),R)}}return x},a=(x,C,S,$,T,R)=>{const{slotScopeIds:k}=C;k&&(T=T?T.concat(k):k);const M=d(x),y=c(u(x),C,M,S,$,T,R);return y&&Qr(y)&&y.data==="]"?u(C.anchor=y):(mn=!0,s(C.anchor=h("]"),M,y),y)},f=(x,C,S,$,T,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,$,Zr(M),T),k},m=(x,C="[",S="]")=>{let $=0;for(;x;)if(x=u(x),x&&Qr(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 T=S;for(;T;)T.vnode.el===C&&(T.vnode.el=x,T.subTree.el=x),T=T.parent},b=x=>x.nodeType===1&&x.tagName.toLowerCase()==="template";return[o,r]}const ot=Eh;function qh(e){return tf(e)}function ef(e){return tf(e,dy)}function tf(e,t){const n=Ks();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=(N,B,G,Q=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(N===B)return;N&&!Ot(N,B)&&(Q=z(N),j(N,te,ie,!0),N=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case qn:m(N,B,G,Q);break;case lt:v(N,B,G,Q);break;case Kn:N==null&&b(B,G,Q,le);break;case Se:A(N,B,G,Q,te,ie,le,se,ce);break;default:de&1?S(N,B,G,Q,te,ie,le,se,ce):de&6?_(N,B,G,Q,te,ie,le,se,ce):(de&64||de&128)&&re.process(N,B,G,Q,te,ie,le,se,ce,Y)}ve!=null&&te&&wo(ve,N&&N.ref,ie,B||N,!B)},m=(N,B,G,Q)=>{if(N==null)i(B.el=g(B.children),G,Q);else{const te=B.el=N.el;B.children!==N.children&&h(te,B.children)}},v=(N,B,G,Q)=>{N==null?i(B.el=s(B.children||""),G,Q):B.el=N.el},b=(N,B,G,Q)=>{[N.el,N.anchor]=a(N.children,B,G,Q,N.el,N.anchor)},x=({el:N,anchor:B},G,Q)=>{let te;for(;N&&N!==B;)te=l(N),i(N,G,Q),N=te;i(B,G,Q)},C=({el:N,anchor:B})=>{let G;for(;N&&N!==B;)G=l(N),p(N),N=G;p(B)},S=(N,B,G,Q,te,ie,le,se,ce)=>{le=le||B.type==="svg",N==null?$(B,G,Q,te,ie,le,se,ce):k(N,B,te,ie,le,se,ce)},$=(N,B,G,Q,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:_e,dirs:J}=N;if(ce=N.el=d(N.type,ie,de&&de.is,de),me&8?o(ce,N.children):me&16&&R(N.children,ce,null,Q,te,ie&&ve!=="foreignObject",le,se),J&&Bt(N,null,Q,"created"),T(ce,N,N.scopeId,le,Q),de){for(const fe in de)fe!=="value"&&!Zi(fe)&&u(ce,fe,null,de[fe],ie,N.children,Q,te,Z);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&gt(re,Q,N)}J&&Bt(N,null,Q,"beforeMount");const ae=nf(te,_e);ae&&_e.beforeEnter(ce),i(ce,B,G),((re=de&&de.onVnodeMounted)||ae||J)&&ot(()=>{re&&gt(re,Q,N),ae&&_e.enter(ce),J&&Bt(N,null,Q,"mounted")},te)},T=(N,B,G,Q,te)=>{if(G&&c(N,G),Q)for(let ie=0;ie<Q.length;ie++)c(N,Q[ie]);if(te){let ie=te.subTree;if(B===ie){const le=te.vnode;T(N,le,le.scopeId,le.slotScopeIds,te.parent)}}},R=(N,B,G,Q,te,ie,le,se,ce=0)=>{for(let re=ce;re<N.length;re++){const ve=N[re]=se?_n(N[re]):wt(N[re]);f(null,ve,B,G,Q,te,ie,le,se)}},k=(N,B,G,Q,te,ie,le)=>{const se=B.el=N.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=N.patchFlag&16;const de=N.props||Be,me=B.props||Be;let _e;G&&Pn(G,!1),(_e=me.onVnodeBeforeUpdate)&&gt(_e,G,B,N),ve&&Bt(B,N,G,"beforeUpdate"),G&&Pn(G,!0);const J=te&&B.type!=="foreignObject";if(re?M(N.dynamicChildren,re,se,G,Q,J,ie):le||I(N,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 fe=0;fe<ae.length;fe++){const be=ae[fe],Re=de[be],Ne=me[be];(Ne!==Re||be==="value")&&u(se,be,Re,Ne,te,N.children,G,Q,Z)}}ce&1&&N.children!==B.children&&o(se,B.children)}else!le&&re==null&&y(se,B,de,me,G,Q,te);((_e=me.onVnodeUpdated)||ve)&&ot(()=>{_e&&gt(_e,G,B,N),ve&&Bt(B,N,G,"updated")},Q)},M=(N,B,G,Q,te,ie,le)=>{for(let se=0;se<B.length;se++){const ce=N[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=(N,B,G,Q,te,ie,le)=>{if(G!==Q){if(G!==Be)for(const se in G)!Zi(se)&&!(se in Q)&&u(N,se,G[se],null,le,B.children,te,ie,Z);for(const se in Q){if(Zi(se))continue;const ce=Q[se],re=G[se];ce!==re&&se!=="value"&&u(N,se,re,ce,le,B.children,te,ie,Z)}"value"in Q&&u(N,"value",G.value,Q.value)}},A=(N,B,G,Q,te,ie,le,se,ce)=>{const re=B.el=N?N.el:g(""),ve=B.anchor=N?N.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:_e}=B;_e&&(se=se?se.concat(_e):_e),N==null?(i(re,G,Q),i(ve,G,Q),R(B.children,G,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&N.dynamicChildren?(M(N.dynamicChildren,me,G,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&al(N,B,!0)):I(N,B,G,ve,te,ie,le,se,ce)},_=(N,B,G,Q,te,ie,le,se,ce)=>{B.slotScopeIds=se,N==null?B.shapeFlag&512?te.ctx.activate(B,G,Q,le,ce):w(B,G,Q,te,ie,le,ce):E(N,B,ce)},w=(N,B,G,Q,te,ie,le)=>{const se=N.component=uf(N,Q,te);if(Rr(N)&&(se.ctx.renderer=Y),ff(se),se.asyncDep){if(te&&te.registerDep(se,L),!N.el){const ce=se.subTree=he(lt);v(null,ce,B,G)}return}L(se,N,B,G,te,ie,le)},E=(N,B,G)=>{const Q=B.component=N.component;if(yv(N,B,G))if(Q.asyncDep&&!Q.asyncResolved){O(Q,B,G);return}else Q.next=B,hv(Q.update),Q.update();else B.el=N.el,Q.vnode=B},L=(N,B,G,Q,te,ie,le)=>{const se=()=>{if(N.isMounted){let{next:ve,bu:de,u:me,parent:_e,vnode:J}=N,ae=ve,fe;Pn(N,!1),ve?(ve.el=J.el,O(N,ve,le)):ve=J,de&&di(de),(fe=ve.props&&ve.props.onVnodeBeforeUpdate)&&gt(fe,_e,ve,J),Pn(N,!0);const be=io(N),Re=N.subTree;N.subTree=be,f(Re,be,r(Re.el),z(Re),N,te,ie),ve.el=be.el,ae===null&&qa(N,be.el),me&&ot(me,te),(fe=ve.props&&ve.props.onVnodeUpdated)&&ot(()=>gt(fe,_e,ve,J),te)}else{let ve;const{el:de,props:me}=B,{bm:_e,m:J,parent:ae}=N,fe=Gn(B);if(Pn(N,!1),_e&&di(_e),!fe&&(ve=me&&me.onVnodeBeforeMount)&&gt(ve,ae,B),Pn(N,!0),de&&ee){const be=()=>{N.subTree=io(N),ee(de,N.subTree,N,te,null)};fe?B.type.__asyncLoader().then(()=>!N.isUnmounted&&be()):be()}else{const be=N.subTree=io(N);f(null,be,G,Q,N,te,ie),B.el=be.el}if(J&&ot(J,te),!fe&&(ve=me&&me.onVnodeMounted)){const be=B;ot(()=>gt(ve,ae,be),te)}(B.shapeFlag&256||ae&&Gn(ae.vnode)&&ae.vnode.shapeFlag&256)&&N.a&&ot(N.a,te),N.isMounted=!0,B=G=Q=null}},ce=N.effect=new yi(se,()=>zo(re),N.scope),re=N.update=()=>ce.run();re.id=N.uid,Pn(N,!0),re()},O=(N,B,G)=>{B.component=N;const Q=N.vnode.props;N.vnode=B,N.next=null,cy(N,B.props,Q,G),fy(N,B.children,G),Li(),hc(),Ti()},I=(N,B,G,Q,te,ie,le,se,ce=!1)=>{const re=N&&N.children,ve=N?N.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=(N,B,G,Q,te,ie,le,se,ce)=>{N=N||hi,B=B||hi;const re=N.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]):wt(B[me]);f(N[me],_e,G,null,te,ie,le,se,ce)}re>ve?Z(N,te,ie,!0,!1,de):R(B,G,Q,te,ie,le,se,ce,de)},D=(N,B,G,Q,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=N.length-1,me=ve-1;for(;re<=de&&re<=me;){const _e=N[re],J=B[re]=ce?_n(B[re]):wt(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=N[de],J=B[me]=ce?_n(B[me]):wt(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]):wt(B[re]),G,J,te,ie,le,se,ce),re++}}else if(re>me)for(;re<=de;)j(N[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]):wt(B[re]);ke.key!=null&&ae.set(ke.key,re)}let fe,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=N[re];if(be>=Re){j(ke,te,ie,!0);continue}let Ue;if(ke.key!=null)Ue=ae.get(ke.key);else for(fe=J;fe<=me;fe++)if(De[fe-J]===0&&Ot(ke,B[fe])){Ue=fe;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?py(De):hi;for(fe=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&&(fe<0||re!==He[fe]?W(Ue,G,dn,2):fe--)}}},W=(N,B,G,Q,te=null)=>{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=N;if(re&6){W(N.component.subTree,B,G,Q);return}if(re&128){N.suspense.move(B,G,Q);return}if(re&64){le.move(N,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(N.anchor,B,G);return}if(le===Kn){x(N,B,G);return}if(Q!==2&&re&1&&se)if(Q===0)se.beforeEnter(ie),i(ie,B,G),ot(()=>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=(N,B,G,Q=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=N;if(se!=null&&wo(se,null,G,N,!0),ve&256){B.ctx.deactivate(N);return}const _e=ve&1&&me,J=!Gn(N);let ae;if(J&&(ae=le&&le.onVnodeBeforeUnmount)&&gt(ae,B,N),ve&6)K(N.component,G,Q);else{if(ve&128){N.suspense.unmount(G,Q);return}_e&&Bt(N,null,B,"beforeUnmount"),ve&64?N.type.remove(N,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(N)}(J&&(ae=le&&le.onVnodeUnmounted)||_e)&&ot(()=>{ae&&gt(ae,B,N),_e&&Bt(N,null,B,"unmounted")},G)},H=N=>{const{type:B,el:G,anchor:Q,transition:te}=N;if(B===Se){U(G,Q);return}if(B===Kn){C(N);return}const ie=()=>{p(G),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(N.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(G,ie);se?se(N.el,ie,ce):ce()}else ie()},U=(N,B)=>{let G;for(;N!==B;)G=l(N),p(N),N=G;p(B)},K=(N,B,G)=>{const{bum:Q,scope:te,update:ie,subTree:le,um:se}=N;Q&&di(Q),te.stop(),ie&&(ie.active=!1,j(le,N,B,G)),se&&ot(se,B),ot(()=>{N.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(N,B,G,Q=!1,te=!1,ie=0)=>{for(let le=ie;le<N.length;le++)j(N[le],B,G,Q,te)},z=N=>N.shapeFlag&6?z(N.component.subTree):N.shapeFlag&128?N.suspense.next():l(N.anchor||N.el),X=(N,B,G)=>{N==null?B._vnode&&j(B._vnode,null,null,!0):f(B._vnode||null,N,B,null,null,null,G),hc(),yo(),B._vnode=N},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:sy(X,V)}}function Pn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function al(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||al(d,g)),g.type===qn&&(g.el=d.el)}}function py(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 gy=e=>e.__isTeleport,er=e=>e&&(e.disabled||e.disabled===""),Cc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ia=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},my={__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=er(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 T=t.target=ia(t.props,a),R=t.targetAnchor=f("");T&&(c(R,T),d=d||Cc(T));const k=(M,y)=>{b&16&&o(x,M,y,p,u,d,g,s)};v?k(n,$):T&&k(T,R)}else{t.el=e.el;const S=t.anchor=e.anchor,$=t.target=e.target,T=t.targetAnchor=e.targetAnchor,R=er(e.props),k=R?n:$,M=R?S:T;if(d=d||Cc($),C?(l(e.dynamicChildren,C,k,p,u,d,g),al(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):Jr(t,n,S,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const y=t.target=ia(t.props,a);y&&Jr(t,y,null,h,0)}else R&&Jr(t,$,T,h,1)}rf(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||!er(l);for(let a=0;a<s.length;a++){const f=s[a];p(f,t,n,c,!!f.dynamicChildren)}}},move:Jr,hydrate:vy};function Jr(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||er(o))&&s&16)for(let l=0;l<h.length;l++)p(h[l],t,n,2);r&&i(g,t,n)}function vy(e,t,n,i,p,u,{o:{nextSibling:d,parentNode:g,querySelector:s}},h){const o=t.target=ia(t.props,s);if(o){const r=o._lpa||o.firstChild;if(t.shapeFlag&16)if(er(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)}rf(t)}return t.anchor&&d(t.anchor)}const yy=my;function rf(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"),qn=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc"),tr=[];let mt=null;function q(e=!1){tr.push(mt=e?null:[])}function of(){tr.pop(),mt=tr[tr.length-1]||null}let ei=1;function ra(e){ei+=e}function sf(e){return e.dynamicChildren=ei>0?mt||hi:null,of(),ei>0&&mt&&mt.push(e),e}function oe(e,t,n,i,p,u){return sf(P(e,t,n,i,p,u,!0))}function Me(e,t,n,i,p){return sf(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 by(e){}const Zo="__vInternal",af=({key:e})=>e??null,ro=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||qe(e)||Ce(e)?{i:it,r:e,k:t,f:!!n}:e:null);function P(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&&af(t),ref:t&&ro(t),scopeId:jo,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:it};return g?(ll(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ge(n)?8:16),ei>0&&!d&&mt&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&&mt.push(s),s}const he=wy;function wy(e,t=null,n=null,i=0,p=null,u=!1){if((!e||e===zh)&&(e=lt),Mn(e)){const g=jt(e,t,!0);return n&&ll(g,n),ei>0&&!u&&mt&&(g.shapeFlag&6?mt[mt.indexOf(e)]=g:mt.push(g)),g.patchFlag|=-2,g}if(Ey(e)&&(e=e.__vccOpts),t){t=lf(t);let{class:g,style:s}=t;g&&!Ge(g)&&(t.class=kr(g)),We(s)&&(ja(s)&&!ge(s)&&(s=je({},s)),t.style=xr(s))}const d=Ge(e)?1:kh(e)?128:gy(e)?64:We(e)?4:Ce(e)?2:0;return P(e,t,n,i,p,d,u,!0)}function lf(e){return e?ja(e)||Zo in e?je({},e):e:null}function jt(e,t,n=!1){const{props:i,ref:p,patchFlag:u,children:d}=e,g=t?cf(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&af(g),ref:t&&t.ref?n&&p?ge(p)?p.concat(ro(t)):[p,ro(t)]:ro(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 et(e=" ",t=0){return he(qn,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 wt(e){return e==null||typeof e=="boolean"?he(lt):ge(e)?he(Se,null,e.slice()):typeof e=="object"?_n(e):he(qn,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function ll(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),ll(e,p()),p._c&&(p._d=!0));return}else{n=32;const p=t._;!p&&!(Zo in t)?t._ctx=it:p===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:it},n=32):(t=String(t),i&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function cf(...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=kr([t.class,i.class]));else if(p==="style")t.style=xr([t.style,i.style]);else if(Ar(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 gt(e,t,n,i=null){_t(e,t,7,[n,i])}const _y=Kh();let Cy=0;function uf(e,t,n){const i=e.type,p=(t?t.appContext:e.appContext)||_y,u={uid:Cy++,vnode:e,type:i,parent:t,appContext:p,root:null,next:null,subTree:null,effect:null,update:null,scope:new Wa(!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:Xh(i,p),emitsOptions:xh(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=dv.bind(null,u),e.ce&&e.ce(u),u}let Qe=null;const Dt=()=>Qe||it;let cl,ri,Sc="__VUE_INSTANCE_SETTERS__";(ri=Ks()[Sc])||(ri=Ks()[Sc]=[]),ri.push(e=>Qe=e),cl=e=>{ri.length>1?ri.forEach(t=>t(e)):ri[0](e)};const On=e=>{cl(e),e.scope.on()},An=()=>{Qe&&Qe.scope.off(),cl(null)};function hf(e){return e.vnode.shapeFlag&4}let wi=!1;function ff(e,t=!1){wi=t;const{props:n,children:i}=e.vnode,p=hf(e);ly(e,n,p,t),hy(e,i);const u=p?Sy(e,t):void 0;return wi=!1,u}function Sy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ho(new Proxy(e.ctx,qs));const{setup:i}=n;if(i){const p=e.setupContext=i.length>1?pf(e):null;On(e),Li();const u=nn(i,e,0,[e.props,p]);if(Ti(),An(),Da(u)){if(u.then(An,An),t)return u.then(d=>{oa(e,d,t)}).catch(d=>{ni(d,e,0)});e.asyncDep=u}else oa(e,u,t)}else df(e,t)}function oa(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=Ya(t)),df(e,n)}let $o,sa;function Ay(e){$o=e,sa=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Bv))}}const xy=()=>!$o;function df(e,t,n){const i=e.type;if(!e.render){if(!t&&$o&&!i.render){const p=i.template||ol(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=$o(p,h)}}e.render=i.render||Nt,sa&&sa(e)}{On(e),Li();try{ey(e)}finally{Ti(),An()}}}function ky(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function pf(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ky(e)},slots:e.slots,emit:e.emit,expose:t}}function Qo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ya(Ho(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ji)return Ji[n](e)},has(t,n){return n in t||n in Ji}}))}function aa(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Ey(e){return Ce(e)&&"__vccOpts"in e}const Ee=(e,t)=>sv(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 gf=Symbol.for("v-scx"),mf=()=>kt(gf);function Ry(){}function Ly(e,t,n,i){const p=n[i];if(p&&vf(p,e))return p;const u=t();return u.memo=e.slice(),n[i]=u}function vf(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 ei>0&&mt&&mt.push(e),!0}const yf="3.3.7",Ty={createComponentInstance:uf,setupComponent:ff,renderComponentRoot:io,setCurrentRenderingInstance:pr,isVNode:Mn,normalizeVNode:wt},My=Ty,Oy=null,Iy=null,Fy="http://www.w3.org/2000/svg",Wn=typeof document<"u"?document:null,Ac=Wn&&Wn.createElement("template"),Ny={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(Fy,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{Ac.innerHTML=i?`<svg>${e}</svg>`:e;const g=Ac.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"),ul=(e,{slots:t})=>Oi(Mh,wf(e),t);ul.displayName="Transition";const bf={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},Py=ul.props=je({},nl,bf),Dn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},xc=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function wf(e){const t={};for(const A in e)A in bf||(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=Dy(p),f=a&&a[0],m=a&&a[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:x,onLeave:C,onLeaveCancelled:S,onBeforeAppear:$=v,onAppear:T=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?T:b,L=()=>k(_,A,w);Dn(E,[_,L]),kc(()=>{wn(_,A?s:u),Xt(_,A?o:g),xc(E)||Ec(_,i,f,L)})};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),kc(()=>{A._isLeaving&&(wn(A,r),Xt(A,c),xc(C)||Ec(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 Dy(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 go(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 kc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let By=0;function Ec(e,t,n,i){const p=e._endId=++By,u=()=>{p===e._endId&&i()};if(n)return setTimeout(u,n);const{type:d,timeout:g,propCount:s}=$f(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 $f(e,t){const n=window.getComputedStyle(e),i=a=>(n[a]||"").split(", "),p=i(`${vn}Delay`),u=i(`${vn}Duration`),d=Rc(p,u),g=i(`${Di}Delay`),s=i(`${Di}Duration`),h=Rc(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 Rc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Lc(n)+Lc(e[i])))}function Lc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function _f(){return document.body.offsetHeight}function Wy(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 hl=Symbol("_vod"),Cf={beforeMount(e,{value:t},{transition:n}){e[hl]=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[hl]:"none"}function Hy(){Cf.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function Uy(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&&la(i,u,"");for(const u in n)la(i,u,n[u])}else{const u=i.display;p?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),hl in e&&(i.display=u)}}const Tc=/\s*!important$/;function la(e,t,n){if(ge(n))n.forEach(i=>la(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=zy(e,t);Tc.test(n)?e.setProperty(xt(i),n.replace(Tc,""),"important"):e[i]=n}}const Mc=["Webkit","Moz","ms"],Cs={};function zy(e,t){const n=Cs[t];if(n)return n;let i=vt(t);if(i!=="filter"&&i in e)return Cs[t]=i;i=Ri(i);for(let p=0;p<Mc.length;p++){const u=Mc[p]+i;if(u in e)return Cs[t]=u}return t}const Oc="http://www.w3.org/1999/xlink";function Vy(e,t,n,i,p){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Oc,t.slice(6,t.length)):e.setAttributeNS(Oc,t,n);else{const u=Am(t);n==null||u&&!nh(n)?e.removeAttribute(t):e.setAttribute(t,u?"":n)}}function jy(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=nh(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 Gy(e,t,n,i){e.removeEventListener(t,n,i)}const Ic=Symbol("_vei");function Ky(e,t,n,i,p=null){const u=e[Ic]||(e[Ic]={}),d=u[t];if(i&&d)d.value=i;else{const[g,s]=Yy(t);if(i){const h=u[t]=Qy(i,p);Qt(e,g,h,s)}else d&&(Gy(e,g,d,s),u[t]=void 0)}}const Fc=/(?:Once|Passive|Capture)$/;function Yy(e){let t;if(Fc.test(e)){t={};let i;for(;i=e.match(Fc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xt(e.slice(2)),t]}let Ss=0;const Xy=Promise.resolve(),Zy=()=>Ss||(Xy.then(()=>Ss=0),Ss=Date.now());function Qy(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;_t(Jy(i,n.value),t,5,[i])};return n.value=e,n.attached=Zy(),n}function Jy(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 Nc=/^on[a-z]/,qy=(e,t,n,i,p=!1,u,d,g,s)=>{t==="class"?Wy(e,i,p):t==="style"?Uy(e,n,i):Ar(t)?Na(t)||Ky(e,t,n,i,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):e0(e,t,i,p))?jy(e,t,i,u,d,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Vy(e,t,i,p))};function e0(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Nc.test(t)&&Ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Nc.test(t)&&Ge(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Sf(e,t){const n=$e(e);class i extends Jo{constructor(u){super(n,u,t)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const t0=e=>Sf(e,If),n0=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends n0{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||(ha(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]=go(this._props[s])),(g||(g=Object.create(null)))[vt(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(vt))Object.defineProperty(this,p,{get(){return this._getProp(p)},set(u){this._setProp(p,u)}})}_setAttr(t){let n=this.getAttribute(t);const i=vt(t);this._numberProps&&this._numberProps[i]&&(n=go(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(xt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xt(t),n+""):n||this.removeAttribute(xt(t))))}_update(){ha(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),xt(u)!==u&&i(xt(u),d)};let p=this;for(;p=p&&(p.parentNode||p.host);)if(p instanceof Jo){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 i0(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 r0(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=>ua(u,p))},i=()=>{const p=e(t.proxy);ca(t.subTree,p),n(p)};Lh(i),nt(()=>{const p=new MutationObserver(i);p.observe(t.subTree.el.parentNode,{childList:!0}),Xo(()=>p.disconnect())})}function ca(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ca(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ua(e.el,t);else if(e.type===Se)e.children.forEach(n=>ca(n,t));else if(e.type===Kn){let{el:n,anchor:i}=e;for(;n&&(ua(n,t),n!==i);)n=n.nextSibling}}function ua(e,t){if(e.nodeType===1){const n=e.style;for(const i in t)n.setProperty(`--${i}`,t[i])}}const Af=new WeakMap,xf=new WeakMap,_o=Symbol("_moveCb"),Pc=Symbol("_enterCb"),kf={name:"TransitionGroup",props:je({},Py,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dt(),i=tl();let p,u;return Yo(()=>{if(!p.length)return;const d=e.moveClass||`${e.name||"v"}-move`;if(!u0(p[0].el,n.vnode.el,d))return;p.forEach(a0),p.forEach(l0);const g=p.filter(c0);_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=Oe(e),g=wf(d);let s=d.tag||Se;p=u,u=t.default?Go(t.default()):[];for(let h=0;h<u.length;h++){const o=u[h];o.key!=null&&Jn(o,bi(o,g,i,n))}if(p)for(let h=0;h<p.length;h++){const o=p[h];Jn(o,bi(o,g,i,n)),Af.set(o,o.el.getBoundingClientRect())}return he(s,null,u)}}},o0=e=>delete e.mode;kf.props;const s0=kf;function a0(e){const t=e.el;t[_o]&&t[_o](),t[Pc]&&t[Pc]()}function l0(e){xf.set(e,e.el.getBoundingClientRect())}function c0(e){const t=Af.get(e),n=xf.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 u0(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}=$f(i);return u.removeChild(i),d}const In=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>di(t,n):t};function h0(e){e.target.composing=!0}function Dc(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=po(g)),e[Et](g)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",h0),Qt(e,"compositionend",Dc),Qt(e,"change",Dc))},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")&&po(e.value)===t))return;const d=t??"";e.value!==d&&(e.value=d)}},fl={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=No(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(ti(i)){const g=new Set(i);u?g.add(p):g.delete(p),d(g)}else d(Ef(e,u))})},mounted:Bc,beforeUpdate(e,t,n){e[Et]=In(n),Bc(e,t,n)}};function Bc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=No(t,i.props.value)>-1:ti(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Ln(t,Ef(e,!0)))}const dl={created(e,{value:t},n){e.checked=Ln(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=Ln(t,i.props.value))}},yr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const p=ti(t);Qt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?po(_i(d)):_i(d));e[Et](e.multiple?p?new Set(u):u:u[0])}),e[Et]=In(i)},mounted(e,{value:t}){Wc(e,t)},beforeUpdate(e,t,n){e[Et]=In(n)},updated(e,{value:t}){Wc(e,t)}};function Wc(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!ti(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=No(t,d)>-1:u.selected=t.has(d);else if(Ln(_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 Ef(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Rf={created(e,t,n){qr(e,t,n,null,"created")},mounted(e,t,n){qr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){qr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){qr(e,t,n,i,"updated")}};function Lf(e,t){switch(e){case"SELECT":return yr;case"TEXTAREA":return Ft;default:switch(t){case"checkbox":return fl;case"radio":return dl;default:return Ft}}}function qr(e,t,n,i,p){const d=Lf(e.tagName,n.props&&n.props.type)[p];d&&d(e,t,n,i)}function f0(){Ft.getSSRProps=({value:e})=>({value:e}),dl.getSSRProps=({value:e},t)=>{if(t.props&&Ln(t.props.value,e))return{checked:!0}},fl.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&No(e,t.props.value)>-1)return{checked:!0}}else if(ti(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Rf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Lf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const d0=["ctrl","shift","alt","meta"],p0={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)=>d0.some(n=>e[`${n}Key`]&&!t.includes(n))},g0=(e,t)=>(n,...i)=>{for(let p=0;p<t.length;p++){const u=p0[t[p]];if(u&&u(n,t))return}return e(n,...i)},m0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},v0=(e,t)=>n=>{if(!("key"in n))return;const i=xt(n.key);if(t.some(p=>p===i||m0[p]===i))return e(n)},Tf=je({patchProp:qy},Ny);let nr,Hc=!1;function Mf(){return nr||(nr=qh(Tf))}function Of(){return nr=Hc?nr:ef(Tf),Hc=!0,nr}const ha=(...e)=>{Mf().render(...e)},If=(...e)=>{Of().hydrate(...e)},Ff=(...e)=>{const t=Mf().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Nf(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},y0=(...e)=>{const t=Of().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Nf(i);if(p)return n(p,!0,p instanceof SVGElement)},t};function Nf(e){return Ge(e)?document.querySelector(e):e}let Uc=!1;const b0=()=>{Uc||(Uc=!0,f0(),Hy())},w0=()=>{},$0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Mh,BaseTransitionPropsValidators:nl,Comment:lt,EffectScope:Wa,Fragment:Se,KeepAlive:Tv,ReactiveEffect:yi,Static:Kn,Suspense:wv,Teleport:yy,Text:qn,Transition:ul,TransitionGroup:s0,VueElement:Jo,assertNumber:lv,callWithAsyncErrorHandling:_t,callWithErrorHandling:nn,camelize:vt,capitalize:Ri,cloneVNode:jt,compatUtils:Iy,compile:w0,computed:Ee,createApp:Ff,createBlock:Me,createCommentVNode:we,createElementBlock:oe,createElementVNode:P,createHydrationRenderer:ef,createPropsRestProxy:Jv,createRenderer:qh,createSSRApp:y0,createSlots:Nv,createStaticVNode:$y,createTextVNode:et,createVNode:he,customRef:Xa,defineAsyncComponent:Rv,defineComponent:$e,defineCustomElement:Sf,defineEmits:Hv,defineExpose:Uv,defineModel:jv,defineOptions:zv,defineProps:Wv,defineSSRCustomElement:t0,defineSlots:Vv,get devtools(){return oi},effect:Rm,effectScope:rh,getCurrentInstance:Dt,getCurrentScope:Ha,getTransitionRawChildren:Go,guardReactiveProps:lf,h:Oi,handleError:ni,hasInjectionContext:ay,hydrate:If,initCustomFormatter:Ry,initDirectivesForSSR:b0,inject:kt,isMemoSame:vf,isProxy:ja,isReactive:jn,isReadonly:Zn,isRef:qe,isRuntimeOnly:xy,isShallow:ur,isVNode:Mn,markRaw:Ho,mergeDefaults:Zv,mergeModels:Qv,mergeProps:cf,nextTick:Vt,normalizeClass:kr,normalizeProps:Cm,normalizeStyle:xr,onActivated:Ih,onBeforeMount:Ph,onBeforeUnmount:Lr,onBeforeUpdate:Dh,onDeactivated:Fh,onErrorCaptured:Uh,onMounted:nt,onRenderTracked:Hh,onRenderTriggered:Wh,onScopeDispose:sh,onServerPrefetch:Bh,onUnmounted:Xo,onUpdated:Yo,openBlock:q,popScopeId:Ja,provide:qi,proxyRefs:Ya,pushScopeId:Qa,queuePostFlushCb:vo,reactive:Mi,readonly:Bo,ref:Te,registerRuntimeCompiler:Ay,render:ha,renderList:ct,renderSlot:Pv,resolveComponent:ue,resolveDirective:Fv,resolveDynamicComponent:Iv,resolveFilter:Oy,resolveTransitionHooks:bi,setBlockTracking:ra,setDevtoolsHook:Ah,setTransitionHooks:Jn,shallowReactive:Va,shallowReadonly:Zm,shallowRef:bh,ssrContextKey:gf,ssrUtils:My,stop:Lm,toDisplayString:Ae,toHandlerKey:Qi,toHandlers:Dv,toRaw:Oe,toRef:Qn,toRefs:nv,toValue:qm,transformVNodeArgs:by,triggerRef:Jm,unref:tn,useAttrs:Yv,useCssModule:i0,useCssVars:r0,useModel:Xv,useSSRContext:mf,useSlots:Kv,useTransitionState:tl,vModelCheckbox:fl,vModelDynamic:Rf,vModelRadio:dl,vModelSelect:yr,vModelText:Ft,vShow:Cf,version:yf,warn:av,watch:Ye,watchEffect:Rh,watchPostEffect:Lh,watchSyncEffect:xv,withAsyncContext:qv,withCtx:dt,withDefaults:Gv,withDirectives:Mt,withKeys:v0,withMemo:Ly,withModifiers:g0,withScopeId:pv},Symbol.toStringTag,{value:"Module"}));function zc(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?zc(Object(n),!0).forEach(function(i){pt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zc(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Co(e){"@babel/helpers - typeof";return Co=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},Co(e)}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _0(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 C0(e,t){if(e==null)return{};var n=_0(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}var S0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pf={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 T in b)Object.prototype.hasOwnProperty.call(b,T)&&(C[v(T,x)]=n(v,b[T],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})(S0)})(Pf);var A0=Pf.exports,x0=["class","style"];function k0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),p=A0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[p]=u,t},{})}function E0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Df(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 Df(s)}),p=Object.keys(e.attributes||{}).reduce(function(s,h){var o=e.attributes[h];switch(h){case"class":s.class=E0(o);break;case"style":s.style=k0(o);break;default:s.attrs[h]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,d=u===void 0?{}:u,g=C0(n,x0);return Oi(e.tag,Jt(Jt(Jt({},t),{},{class:p.class,style:Jt(Jt({},p.style),d)},p.attrs),g),i)}var Bf=!1;try{Bf=!0}catch{}function R0(){if(!Bf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function As(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?pt({},e,t):{}}function L0(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"},pt(t,"fa-".concat(e.size),e.size!==null),pt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),pt(t,"fa-pull-".concat(e.pull),e.pull!==null),pt(t,"fa-swap-opacity",e.swapOpacity),pt(t,"fa-bounce",e.bounce),pt(t,"fa-shake",e.shake),pt(t,"fa-beat",e.beat),pt(t,"fa-fade",e.fade),pt(t,"fa-beat-fade",e.beatFade),pt(t,"fa-flash",e.flash),pt(t,"fa-spin-pulse",e.spinPulse),pt(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 Vc(e){if(e&&Co(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Gs.icon)return Gs.icon(e);if(e===null)return null;if(Co(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 T0=$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},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},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 Vc(t.icon)}),u=Ee(function(){return As("classes",L0(t))}),d=Ee(function(){return As("transform",typeof t.transform=="string"?Gs.transform(t.transform):t.transform)}),g=Ee(function(){return As("mask",Vc(t.mask))}),s=Ee(function(){return Xg(p.value,Jt(Jt(Jt(Jt({},u.value),d.value),g.value),{},{symbol:t.symbol,title:t.title}))});Ye(s,function(o){if(!o)return R0("Could not find one or more icon(s)",p.value,g.value)},{immediate:!0});var h=Ee(function(){return s.value?Df(s.value.abstract[0],{},i):null});return function(){return h.value}}});const M0=$e({name:"NavbarItem"});const xe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,p]of t)n[i]=p;return n},qo=e=>(Qa("data-v-19d4e9a4"),e=e(),Ja(),e),O0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},I0=qo(()=>P("div",{class:"navbar-brand"},[P("a",{class:"navbar-item"},[P("h1",{class:"title"},"Mihari")]),P("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"}),P("span",{"aria-hidden":"true"})])],-1)),F0={class:"navbar-menu"},N0=qo(()=>P("div",{class:"navbar-start"},null,-1)),P0={class:"navbar-end"},D0=qo(()=>P("a",{class:"navbar-item"},[P("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),B0=qo(()=>P("a",{class:"navbar-item"},[P("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function W0(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("nav",O0,[I0,P("div",F0,[N0,P("div",P0,[he(d,{class:"navbar-item",to:{name:"Alerts"}},{default:dt(()=>[et("Alerts")]),_:1}),he(d,{class:"navbar-item",to:{name:"NewRule"}},{default:dt(()=>[et("New rule")]),_:1}),he(d,{class:"navbar-item",to:{name:"Rules"}},{default:dt(()=>[et("Rules")]),_:1}),he(d,{class:"navbar-item",to:{name:"Configs"}},{default:dt(()=>[et("Configs")]),_:1}),D0,B0])])])}const H0=xe(M0,[["render",W0],["__scopeId","data-v-19d4e9a4"]]),U0=$e({name:"App",components:{Navbar:H0}});const z0={class:"section is-medium"},V0={class:"container"};function j0(e,t,n,i,p,u){const d=ue("Navbar"),g=ue("router-view");return q(),oe(Se,null,[he(d),P("section",z0,[P("div",V0,[he(g)])])],64)}const G0=xe(U0,[["render",j0]]);/*!
762
762
  * vue-router v4.2.5
763
763
  * (c) 2023 Eduardo San Martin Morote
764
764
  * @license MIT
765
- */const si=typeof window<"u";function G0(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,K0=/\/$/,Y0=e=>e.replace(K0,"");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=J0(i??t,n),{fullPath:i+(u&&"?")+u+d,path:i,query:p,hash:d}}function X0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function jc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Z0(e,t,n){const i=t.matched.length-1,p=n.matched.length-1;return i>-1&&i===p&&_i(t.matched[i],n.matched[p])&&Bf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function _i(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Bf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Q0(e[n],t[n]))return!1;return!0}function Q0(e,t){return Pt(e)?Gc(e,t):Pt(t)?Gc(t,e):e===t}function Gc(e,t){return Pt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function J0(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 br;(function(e){e.pop="pop",e.push="push"})(br||(br={}));var ir;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ir||(ir={}));function q0(e){if(!e)if(si){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Y0(e)}const eb=/^[^#]+#/;function tb(e,t){return e.replace(eb,"#")+t}function nb(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 ib(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=nb(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 Kc(e,t){return(history.state?history.state.position-t:-1)+e}const ha=new Map;function rb(e,t){ha.set(e,t)}function ob(e){const t=ha.get(e);return ha.delete(e),t}let sb=()=>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),jc(s,"")}return jc(n,e)+i+p}function ab(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:br.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 Yc(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 lb(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:sb()+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,Yc(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({},Yc(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 cb(e){e=q0(e);const t=lb(e),n=ab(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:tb.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 ub(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),cb(e)}function hb(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 Xc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Xc||(Xc={}));function Ci(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 Zc="[^/]+?",fb={sensitive:!1,strict:!1,start:!0,end:!0},db=/[.+*?^${}()[\]/\\]/g;function pb(e,t){const n=Pe({},fb,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(db,"\\$&"),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 y=v||Zc;if(y!==Zc){c+=10;try{new RegExp(`(${y})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${a}" (${y}): `+C.message)}}let R=f?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;r||(R=m&&h.length<2?`(?:/${R})`:"/"+R),m&&(R+="?"),p+=R,c+=20,m&&(c+=-8),f&&(c+=-20),y===".*"&&(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 y=Pt(v)?v.join("/"):v;if(!y)if(m)l.length<2&&(o.endsWith("/")?o=o.slice(0,-1):r=!0);else throw new Error(`Missing required param "${a}"`);o+=y}}return o||"/"}return{re:d,score:i,keys:u,parse:g,stringify:s}}function gb(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 mb(e,t){let n=0;const i=e.score,p=t.score;for(;n<i.length&&n<p.length;){const u=gb(i[n],p[n]);if(u)return u;n++}if(Math.abs(p.length-i.length)===1){if(Qc(i))return 1;if(Qc(p))return-1}return p.length-i.length}function Qc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const vb={type:0,value:""},yb=/[a-zA-Z0-9_]/;function bb(e){if(!e)return[[]];if(e==="/")return[[vb]];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:yb.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 wb(e,t,n){const i=pb(bb(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 $b(e,t){const n=[],i=new Map;t=eu({strict:!1,end:!0,sensitive:!1},t);function p(o){return i.get(o)}function u(o,r,l){const c=!l,a=_b(o);a.aliasOf=l&&l.record;const f=eu(t,o),m=[a];if("alias"in o){const R=typeof o.alias=="string"?[o.alias]:o.alias;for(const C of R)m.push(Pe({},a,{components:l?l.record.components:a.components,path:C,aliasOf:l?l.record:a}))}let v,y;for(const R of m){const{path:C}=R;if(r&&C[0]!=="/"){const S=r.record.path,$=S[S.length-1]==="/"?"":"/";R.path=r.record.path+(C&&$+C)}if(v=wb(R,r,f),l?l.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),c&&o.name&&!qc(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 y?()=>{d(y)}: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&&mb(o,n[r])>=0&&(o.record.path!==n[r].record.path||!zf(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!qc(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 Ci(1,{location:o});f=l.record.name,c=Pe(Jc(r.params,l.keys.filter(y=>!y.optional).map(y=>y.name)),o.params&&Jc(o.params,l.keys.map(y=>y.name))),a=l.stringify(c)}else if("path"in o)a=o.path,l=n.find(y=>y.re.test(a)),l&&(c=l.parse(a),f=l.record.name);else{if(l=r.name?i.get(r.name):n.find(y=>y.re.test(r.path)),!l)throw Ci(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:Sb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:h,removeRoute:d,getRoutes:g,getRecordMatcher:p}}function Jc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function _b(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Cb(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 Cb(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 qc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Sb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function eu(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,Ab=/&/g,xb=/\//g,kb=/=/g,Eb=/\?/g,jf=/\+/g,Rb=/%5B/g,Lb=/%5D/g,Gf=/%5E/g,Tb=/%60/g,Kf=/%7B/g,Mb=/%7C/g,Yf=/%7D/g,Ob=/%20/g;function pl(e){return encodeURI(""+e).replace(Mb,"|").replace(Rb,"[").replace(Lb,"]")}function Ib(e){return pl(e).replace(Kf,"{").replace(Yf,"}").replace(Gf,"^")}function fa(e){return pl(e).replace(jf,"%2B").replace(Ob,"+").replace(Vf,"%23").replace(Ab,"%26").replace(Tb,"`").replace(Kf,"{").replace(Yf,"}").replace(Gf,"^")}function Fb(e){return fa(e).replace(kb,"%3D")}function Nb(e){return pl(e).replace(Vf,"%23").replace(Eb,"%3F")}function Pb(e){return e==null?"":Nb(e).replace(xb,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Db(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 tu(e){let t="";for(let n in e){const i=e[n];if(n=Fb(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 Bb(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 Wb=Symbol(""),nu=Symbol(""),es=Symbol(""),gl=Symbol(""),da=Symbol("");function Bi(){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(Ci(4,{from:n,to:t})):r instanceof Error?g(r):hb(r)?g(Ci(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(Hb(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=G0(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 Hb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function iu(e){const t=kt(es),n=kt(gl),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(_i.bind(null,o));if(l>-1)return l;const c=ru(s[h-2]);return h>1&&ru(o)===c&&r[r.length-1].path!==c?r.findIndex(_i.bind(null,s[h-2])):l}),u=Ee(()=>p.value>-1&&jb(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 Vb(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 Ub=$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:iu,setup(e,{slots:t}){const n=Ti(iu(e)),{options:i}=kt(es),p=Ee(()=>({[ou(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[ou(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Mi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:p.value},u)}}}),zb=Ub;function Vb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function jb(e,t){for(const n in t){const i=t[n],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 ru(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ou=(e,t,n)=>e??t??n,Gb=$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(nu,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(nu,Ee(()=>d.value+1)),Ji(Wb,g),Ji(da,p);const s=Te();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||!_i(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 su(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=Mi(l,Pe({},a,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(r.instances[o]=null)},ref:s}));return su(n.default,{Component:m,route:h})||m}}});function su(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kb=Gb;function Yb(e){const t=$b(e.routes,e),n=e.parseQuery||Db,i=e.stringifyQuery||tu,p=e.history,u=Bi(),d=Bi(),g=Bi(),s=bh(yn);let h=yn;si&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=As.bind(null,z=>""+z),r=As.bind(null,Pb),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 N=X0(i,Pe({},z,{hash:Ib(ee),path:V.path})),B=p.createHref(N);return Pe({fullPath:N,hash:ee,query:i===tu?Bb(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function y(z){return typeof z=="string"?xs(n,z,s.value.path):Pe({},z)}function R(z,X){if(h!==z)return Ci(8,{from:X,to:z})}function C(z){return L(z)}function S(z){return C(Pe(y(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=y(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,N=z.force,B=z.replace===!0,G=$(Y);if(G)return L(Pe(y(G),{state:typeof G=="object"?Pe({},ee,G.state):ee,force:N,replace:B}),X||Y);const Q=Y;Q.redirectedFrom=X;let te;return!N&&Z0(i,V,Y)&&(te=Ci(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},y(ie.to),{state:typeof ie.to=="object"?Pe({},ee,ie.to.state):ee,force:N}),X||Q)}else ie=A(Q,V,!0,B,ee);return w(Q,V,ie),ie})}function x(z,X){const Y=R(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,N]=Xb(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=x.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 N)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(N,"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 w(z,X,Y){g.list().forEach(V=>k(()=>V(z,X,Y)))}function A(z,X,Y,V,ee){const N=R(z,X);if(N)return N;const B=X===yn,G=si?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 b(){_||(_=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 N=s.value;si&&rb(Kc(N.fullPath,Y.delta),qo()),M(V,N).catch(B=>Yt(B,12)?B:Yt(B,2)?(L(B.to,V).then(G=>{Yt(G,20)&&!Y.delta&&Y.type===br.pop&&p.go(-1,!1)}).catch(nr),Promise.reject()):(Y.delta&&p.go(-Y.delta,!1),I(B,V,N))).then(B=>{B=B||A(V,N,!1),B&&(Y.delta&&!Yt(B,8)?p.go(-Y.delta,!1):Y.type===br.pop&&Yt(B,20)&&p.go(-1,!1)),w(V,N,B)}).catch(nr)}))}let E=Bi(),T=Bi(),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,b(),E.list().forEach(([X,Y])=>z?Y(z):X()),E.reset()),z}function W(z,X,Y,V){const{scrollBehavior:ee}=e;if(!si||!ee)return Promise.resolve();const N=!Y&&ob(Kc(z.fullPath,0))||(V||!Y)&&history.state&&history.state.scroll||null;return Vt().then(()=>ee(z,X,N)).then(B=>B&&ib(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",zb),z.component("RouterView",Kb),z.config.globalProperties.$router=X,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>tn(s)}),si&&!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(gl,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 Xb(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=>_i(h,g))?i.push(g):n.push(g));const s=e.matched[d];s&&(t.matched.find(h=>_i(h,s))||p.push(s))}return[n,i,p]}function Oi(){return kt(es)}function ts(){return kt(gl)}function Xf(e){return Wa()?(sh(e),!0):!1}function So(e){return typeof e=="function"?e():tn(e)}const Zf=typeof window<"u"&&typeof document<"u",Zb=()=>{};function Qb(...e){if(e.length!==1)return Qn(...e);const t=e[0];return typeof t=="function"?Do(Ya(()=>({get:t,set:Zb}))):Te(t)}function Jb(e){var t;const n=So(e);return(t=n==null?void 0:n.$el)!=null?t:n}const qb=Zf?window:void 0,ew=Zf?window.document:void 0;function tw(){const e=Te(!1);return Dt()&&nt(()=>{e.value=!0}),e}function nw(e){const t=tw();return Ee(()=>(t.value,!!e()))}function iw(e,t,n={}){const{window:i=qb,...p}=n;let u;const d=nw(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>Jb(e),o=>{g(),d.value&&i&&o&&(u=new MutationObserver(t),u.observe(o,p))},{immediate:!0}),h=()=>{g(),s()};return Xf(h),{isSupported:d,stop:h}}function ii(e=null,t={}){var n,i;const{document:p=ew}=t,u=Qb((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&&iw((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:{}},St={exports:{}};const qt=Symbol("Cleanup Function"),Jf=Symbol("Timeout Token"),ci=Symbol("Signal Reason"),$t=Symbol("Unset"),[oo,rw]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,vl(t.signal.reason)]}();let Ao=class{constructor(t=new AbortController){this.controller=t,this.signal=t.signal,this.signal[ci]=$t;var n,i=(p,u)=>{var d=()=>{if(u&&this.signal){let g=ns(this.signal);this._trackSignalReason(g),u(g!==$t?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]:$t;this._trackSignalReason(n),this.controller&&(oo&&n!==$t?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[ci],oo||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==$t&&(!oo&&!("reason"in this.signal)&&(this.signal.reason=t),this.signal[ci]===$t&&(this.signal[ci]=t))}};St.exports={CLEANUP_FN:qt,TIMEOUT_TOKEN:Jf,UNSET:$t,getSignalReason:ns,cancelToken:Ao,signalPromise:ml,processTokenOrSignal:qf,deferred:ed,isFunction:td,isPromise:nd,invokeAbort:id};St.exports.CLEANUP_FN=qt;St.exports.TIMEOUT_TOKEN=Jf;St.exports.UNSET=$t;St.exports.getSignalReason=ns;St.exports.cancelToken=Ao;St.exports.signalPromise=ml;St.exports.processTokenOrSignal=qf;St.exports.deferred=ed;St.exports.isFunction=td;St.exports.isPromise=nd;St.exports.invokeAbort=id;function ns(e){return e&&e.aborted?oo&&rw?vl(e.reason)?$t:e.reason:ci in e?e[ci]:$t:$t}function ml(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!==$t?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=ml(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 vl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function id(e,t){!vl(t)&&t!==$t?e.abort(t):e.abort()}var ow=St.exports,{CLEANUP_FN:au,TIMEOUT_TOKEN:rd,UNSET:wr,getSignalReason:od,cancelToken:Ii,signalPromise:sw,processTokenOrSignal:sd,isFunction:aw,invokeAbort:is}=ow;Nn.exports=Object.assign(cw,{cancelToken:Ii,delay:yl,timeout:ad,signalRace:hd,signalAll:fd,tokenCycle:dd});var lw=Nn.exports.cancelToken=Ii;Nn.exports.delay=yl;Nn.exports.timeout=ad;Nn.exports.signalRace=hd;Nn.exports.signalAll=fd;Nn.exports.tokenCycle=dd;function cw(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!==wr?l:r;try{var c=g.return();throw c.value!==void 0?c.value:l!==wr?l:void 0}finally{g=s=d=h=null}}),{it:g,result:s}=uw.call(this,e,p,...i),h=Promise.race([s,d]);if(n!==p&&n[rd]){let o=function(l){is(n,l),aw(n.discard)&&n.discard(),n=o=null};h.then(o,o)}else h.catch(()=>{}),n=null;return i=null,h}}function yl(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!==wr?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 Ii;return yl(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]:wr),n.discard(),n=null}}function ld(e){return e.reduce(function(n,i){var p=sw(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[au]&&p[au]();n=null})}function ud(e){return e.catch(t=>t)}function hd(e){var t=new Ii,[n,i]=ld(e);return cd(ud(Promise.race(n)),t,i),t.signal}function fd(e){var t=new Ii,[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]:wr),e.discard()),e=new Ii}}function uw(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 hw=Nn.exports;const fw=un(hw);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,w,A){return Object.defineProperty(M,w,{value:A,enumerable:!0,configurable:!0,writable:!0}),M[w]}try{g({},"")}catch{g=function(w,A,_){return w[A]=_}}function s(M,w,A,_){var b=Object.create((w&&w.prototype instanceof r?w:r).prototype),E=new L(_||[]);return b._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),b}function h(M,w,A){try{return{type:"normal",arg:M.call(w,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(x([])));m&&m!==t&&n.call(m,p)&&(a=m);var v=c.prototype=r.prototype=Object.create(a);function y(M){["next","throw","return"].forEach(function(w){g(M,w,function(A){return this._invoke(w,A)})})}function R(M,w){function A(b,E,T,O){var I=h(M[b],M,E);if(I.type!=="throw"){var F=I.arg,D=F.value;return D&&typeof D=="object"&&n.call(D,"__await")?w.resolve(D.__await).then(function(W){A("next",W,T,O)},function(W){A("throw",W,T,O)}):w.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(b,E){function T(){return new w(function(O,I){A(b,E,O,I)})}return _=_?_.then(T,T):T()}}function C(M,w){var A=M.iterator[w.method];if(A===void 0){if(w.delegate=null,w.method==="throw"){if(M.iterator.return&&(w.method="return",w.arg=void 0,C(M,w),w.method==="throw"))return o;w.method="throw",w.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var _=h(A,M.iterator,w.arg);if(_.type==="throw")return w.method="throw",w.arg=_.arg,w.delegate=null,o;var b=_.arg;return b?b.done?(w[M.resultName]=b.value,w.next=M.nextLoc,w.method!=="return"&&(w.method="next",w.arg=void 0),w.delegate=null,o):b:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,o)}function S(M){var w={tryLoc:M[0]};1 in M&&(w.catchLoc=M[1]),2 in M&&(w.finallyLoc=M[2],w.afterLoc=M[3]),this.tryEntries.push(w)}function $(M){var w=M.completion||{};w.type="normal",delete w.arg,M.completion=w}function L(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(S,this),this.reset(!0)}function x(M){if(M){var w=M[p];if(w)return w.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var A=-1,_=function b(){for(;++A<M.length;)if(n.call(M,A))return b.value=M[A],b.done=!1,b;return b.value=void 0,b.done=!0,b};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 w=typeof M=="function"&&M.constructor;return!!w&&(w===l||(w.displayName||w.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}},y(R.prototype),g(R.prototype,u,function(){return this}),e.AsyncIterator=R,e.async=function(M,w,A,_,b){b===void 0&&(b=Promise);var E=new R(s(M,w,A,_),b);return e.isGeneratorFunction(w)?E:E.next().then(function(T){return T.done?T.value:E.next()})},y(v),g(v,d,"Generator"),g(v,p,function(){return this}),g(v,"toString",function(){return"[object Generator]"}),e.keys=function(M){var w=[];for(var A in M)w.push(A);return w.reverse(),function _(){for(;w.length;){var b=w.pop();if(b in M)return _.value=b,_.done=!1,_}return _.done=!0,_}},e.values=x,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 w in this)w.charAt(0)==="t"&&n.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=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 w=this;function A(I,F){return E.type="throw",E.arg=M,w.next=I,F&&(w.method="next",w.arg=void 0),!!F}for(var _=this.tryEntries.length-1;_>=0;--_){var b=this.tryEntries[_],E=b.completion;if(b.tryLoc==="root")return A("end");if(b.tryLoc<=this.prev){var T=n.call(b,"catchLoc"),O=n.call(b,"finallyLoc");if(T&&O){if(this.prev<b.catchLoc)return A(b.catchLoc,!0);if(this.prev<b.finallyLoc)return A(b.finallyLoc)}else if(T){if(this.prev<b.catchLoc)return A(b.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<b.finallyLoc)return A(b.finallyLoc)}}}},abrupt:function(M,w){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 b=_;break}}b&&(M==="break"||M==="continue")&&b.tryLoc<=w&&w<=b.finallyLoc&&(b=null);var E=b?b.completion:{};return E.type=M,E.arg=w,b?(this.method="next",this.next=b.finallyLoc,o):this.complete(E)},complete:function(M,w){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"&&w&&(this.next=w),o},finish:function(M){for(var w=this.tryEntries.length-1;w>=0;--w){var A=this.tryEntries[w];if(A.finallyLoc===M)return this.complete(A.completion,A.afterLoc),$(A),o}},catch:function(M){for(var w=this.tryEntries.length-1;w>=0;--w){var A=this.tryEntries[w];if(A.tryLoc===M){var _=A.completion;if(_.type==="throw"){var b=_.arg;$(A)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(M,w,A){return this.delegate={iterator:x(M),resultName:w,nextLoc:A},this.method==="next"&&(this.arg=void 0),o}},e}var dw=function(e){return e._runningInstances.length>=e._maxConcurrency},pw=function(e){var t=e._activeInstances[0];t&&t.cancel()},gw=function(e){e._enqueuedInstances.forEach(function(t){t.isEnqueued=!1,t.isDropped=!0})};function Wi(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 mw(e){return Ee(function(){return e().length})}function lu(e){return Ee(function(){var t=e();return t[t.length-1]})}function vw(e){return Ee(function(){return e()[0]})}function pd(e){return Ti(e)}function ut(e){return bw(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 yw(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 lw,c=fw(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 bw(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Dt(),i=rh(),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:Wi(function(){return u},"isSuccessful"),_runningInstances:Wi(function(){return u},"isRunning"),_enqueuedInstances:Wi(function(){return u},"isEnqueued"),_notDroppedInstances:Wi(function(){return u},"isNotDropped"),_activeInstances:Wi(function(){return u},"isActive"),performCount:mw(function(){return u._instances}),last:lu(function(){return u._notDroppedInstances}),lastSuccessful:lu(function(){return u._successfulInstances}),firstEnqueued:vw(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&&dw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&pw(u),u._isKeepingLatest&&gw(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return ww(u)},h=function(){return yw(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&&Lr(function(){u._instances&&u.destroy()}),u}function ww(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:$w}=Object.prototype,{getPrototypeOf:bl}=Object,rs=(e=>t=>{const n=$w.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:Fi}=Array,$r=os("undefined");function _w(e){return e!==null&&!$r(e)&&e.constructor!==null&&!$r(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const md=Kt("ArrayBuffer");function Cw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&md(e.buffer),t}const Sw=os("string"),Rt=os("function"),vd=os("number"),ss=e=>e!==null&&typeof e=="object",Aw=e=>e===!0||e===!1,so=e=>{if(rs(e)!=="object")return!1;const t=bl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xw=Kt("Date"),kw=Kt("File"),Ew=Kt("Blob"),Rw=Kt("FileList"),Lw=e=>ss(e)&&Rt(e.pipe),Tw=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]"))},Mw=Kt("URLSearchParams"),Ow=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]),Fi(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=>!$r(e)&&e!==bd;function ga(){const{caseless:e}=wd(this)&&this||{},t={},n=(i,p)=>{const u=e&&yd(t,p)||p;so(t[u])&&so(i)?t[u]=ga(t[u],i):so(i)?t[u]=ga({},i):Fi(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 Iw=(e,t,n,{allOwnKeys:i}={})=>(Tr(t,(p,u)=>{n&&Rt(p)?e[u]=gd(p,n):e[u]=p},{allOwnKeys:i}),e),Fw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nw=(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)},Pw=(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&&bl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dw=(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},Bw=e=>{if(!e)return null;if(Fi(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},Ww=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bl(Uint8Array)),Hw=(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])}},Uw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},zw=Kt("HTMLFormElement"),Vw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,p){return i.toUpperCase()+p}),cu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jw=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)},Gw=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+"'")})}})},Kw=(e,t)=>{const n={},i=p=>{p.forEach(u=>{n[u]=!0})};return Fi(e)?i(e):i(String(e).split(t)),n},Yw=()=>{},Xw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Es="abcdefghijklmnopqrstuvwxyz",uu="0123456789",_d={DIGIT:uu,ALPHA:Es,ALPHA_DIGIT:Es+Es.toUpperCase()+uu},Zw=(e=16,t=_d.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Qw(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jw=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=Fi(i)?[]:{};return Tr(i,(d,g)=>{const s=n(d,p+1);!$r(s)&&(u[g]=s)}),t[p]=void 0,u}}return i};return n(e,0)},qw=Kt("AsyncFunction"),e1=e=>e&&(ss(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),ne={isArray:Fi,isArrayBuffer:md,isBuffer:_w,isFormData:Tw,isArrayBufferView:Cw,isString:Sw,isNumber:vd,isBoolean:Aw,isObject:ss,isPlainObject:so,isUndefined:$r,isDate:xw,isFile:kw,isBlob:Ew,isRegExp:jw,isFunction:Rt,isStream:Lw,isURLSearchParams:Mw,isTypedArray:Ww,isFileList:Rw,forEach:Tr,merge:ga,extend:Iw,trim:Ow,stripBOM:Fw,inherits:Nw,toFlatObject:Pw,kindOf:rs,kindOfTest:Kt,endsWith:Dw,toArray:Bw,forEachEntry:Hw,matchAll:Uw,isHTMLForm:zw,hasOwnProperty:cu,hasOwnProp:cu,reduceDescriptors:$d,freezeMethods:Gw,toObjectSet:Kw,toCamelCase:Vw,noop:Yw,toFiniteNumber:Xw,findKey:yd,global:bd,isContextDefined:wd,ALPHABET:_d,generateString:Zw,isSpecCompliantForm:Qw,toJSONObject:Jw,isAsyncFn:qw,isThenable:e1};function Ie(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(Ie,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=Ie.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(Ie,Sd);Object.defineProperty(Cd,"isAxiosError",{value:!0});Ie.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"),Ie.call(d,e.message,t,n,i,p),d.cause=e,d.name=e.name,u&&Object.assign(d,u),d};const t1=null;function ma(e){return ne.isPlainObject(e)||ne.isArray(e)}function Ad(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function hu(e,t,n){return e?e.concat(t).map(function(p,u){return p=Ad(p),!n&&u?"["+p+"]":p}).join(n?".":""):t}function n1(e){return ne.isArray(e)&&!e.some(ma)}const i1=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 Ie("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)&&n1(a)||(ne.isFileList(a)||ne.endsWith(f,"[]"))&&(v=ne.toArray(a)))return f=Ad(f),v.forEach(function(R,C){!(ne.isUndefined(R)||R===null)&&t.append(d===!0?hu([f],C,u):d===null?f:f+"[]",h(R))}),!1}return ma(a)?!0:(t.append(hu(m,f,u),h(a)),!1)}const r=[],l=Object.assign(i1,{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,y){(!(ne.isUndefined(v)||v===null)&&p.call(t,v,ne.isString(y)?y.trim():y,f,l))===!0&&c(v,f?f.concat(y):[y])}),r.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return c(e),t}function fu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function wl(e,t){this._pairs=[],e&&as(e,this,t)}const xd=wl.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,fu)}:fu;return this._pairs.map(function(p){return n(p[0])+"="+n(p[1])},"").join("&")};function r1(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||r1,p=n&&n.serialize;let u;if(p?u=p(t,n):u=ne.isURLSearchParams(t)?t.toString():new wl(t,n).toString(i),u){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class o1{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 du=o1,Ed={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},s1=typeof URLSearchParams<"u"?URLSearchParams:wl,a1=typeof FormData<"u"?FormData:null,l1=typeof Blob<"u"?Blob:null,c1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),u1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ut={isBrowser:!0,classes:{URLSearchParams:s1,FormData:a1,Blob:l1},isStandardBrowserEnv:c1,isStandardBrowserWebWorkerEnv:u1,protocols:["http","https","file","blob","url","data"]};function h1(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 f1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function d1(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 Rd(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]=d1(p[d])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,p)=>{t(f1(i),p,n,0)}),n}return null}function p1(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 $l={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(Rd(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 h1(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),p1(t)):t}],transformResponse:[function(t){const n=this.transitional||$l.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"?Ie.from(g,Ie.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=>{$l.headers[e]={}});const _l=$l,g1=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"]),m1=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]&&g1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},pu=Symbol("internals");function Hi(e){return e&&String(e).trim().toLowerCase()}function ao(e){return e===!1||e==null?e:ne.isArray(e)?e.map(ao):String(e)}function v1(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 y1=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 b1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function w1(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=Hi(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]=ao(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())&&!y1(t)?d(m1(t),n):t!=null&&u(n,t,i),this}get(t,n){if(t=Hi(t),t){const i=ne.findKey(this,t);if(i){const p=this[i];if(!n)return p;if(n===!0)return v1(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=Hi(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=Hi(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]=ao(p),delete n[u];return}const g=t?b1(u):String(u).trim();g!==u&&delete n[u],n[g]=ao(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[pu]=this[pu]={accessors:{}}).accessors,p=this.prototype;function u(d){const g=Hi(d);i[g]||(w1(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 Ls(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 Mr(e,t,n){Ie.call(this,e??"canceled",Ie.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Mr,Ie,{__CANCEL__:!0});function $1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const _1=Ut.isStandardBrowserEnv?function(){return{write:function(n,i,p,u,d,g){const s=[];s.push(n+"="+encodeURIComponent(i)),ne.isNumber(p)&&s.push("expires="+new Date(p).toGMTString()),ne.isString(u)&&s.push("path="+u),ne.isString(d)&&s.push("domain="+d),g===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function C1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function S1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Td(e,t){return e&&!C1(t)?S1(e,t):t}const A1=Ut.isStandardBrowserEnv?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 x1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function k1(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 gu(e,t){let n=0;const i=k1(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 E1=typeof XMLHttpRequest<"u",R1=E1&&function(e){return new Promise(function(n,i){let p=e.data;const u=rn.from(e.headers).normalize(),d=e.responseType;let g;function s(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}let h;ne.isFormData(p)&&(Ut.isStandardBrowserEnv||Ut.isStandardBrowserWebWorkerEnv?u.setContentType(!1):u.getContentType(/^\s*multipart\/form-data/)?ne.isString(h=u.getContentType())&&u.setContentType(h.replace(/^\s*(multipart\/form-data);+/,"$1")):u.setContentType("multipart/form-data"));let o=new XMLHttpRequest;if(e.auth){const a=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(a+":"+f))}const r=Td(e.baseURL,e.url);o.open(e.method.toUpperCase(),kd(r,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function l(){if(!o)return;const a=rn.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),m={data:!d||d==="text"||d==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:a,config:e,request:o};$1(function(y){n(y),s()},function(y){i(y),s()},m),o=null}if("onloadend"in o?o.onloadend=l:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(l)},o.onabort=function(){o&&(i(new Ie("Request aborted",Ie.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new Ie("Network Error",Ie.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Ed;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),i(new Ie(f,m.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,o)),o=null},Ut.isStandardBrowserEnv){const a=(e.withCredentials||A1(r))&&e.xsrfCookieName&&_1.read(e.xsrfCookieName);a&&u.set(e.xsrfHeaderName,a)}p===void 0&&u.setContentType(null),"setRequestHeader"in o&&ne.forEach(u.toJSON(),function(f,m){o.setRequestHeader(m,f)}),ne.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),d&&d!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",gu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",gu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=a=>{o&&(i(!a||a.type?new Mr(null,e,o):a),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const c=x1(r);if(c&&Ut.protocols.indexOf(c)===-1){i(new Ie("Unsupported protocol "+c+":",Ie.ERR_BAD_REQUEST,e));return}o.send(p||null)})},va={http:t1,xhr:R1};ne.forEach(va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mu=e=>`- ${e}`,L1=e=>ne.isFunction(e)||e===null||e===!1,Md={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,!L1(n)&&(i=va[(d=String(n)).toLowerCase()],i===void 0))throw new Ie(`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 :
765
+ */const si=typeof window<"u";function K0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function xs(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 ir=()=>{},Pt=Array.isArray,Y0=/\/$/,X0=e=>e.replace(Y0,"");function ks(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=q0(i??t,n),{fullPath:i+(u&&"?")+u+d,path:i,query:p,hash:d}}function Z0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function jc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Q0(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])&&Wf(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 Wf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!J0(e[n],t[n]))return!1;return!0}function J0(e,t){return Pt(e)?Gc(e,t):Pt(t)?Gc(t,e):e===t}function Gc(e,t){return Pt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function q0(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 br;(function(e){e.pop="pop",e.push="push"})(br||(br={}));var rr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rr||(rr={}));function eb(e){if(!e)if(si){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),X0(e)}const tb=/^[^#]+#/;function nb(e,t){return e.replace(tb,"#")+t}function ib(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 es=()=>({left:window.pageXOffset,top:window.pageYOffset});function rb(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=ib(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 Kc(e,t){return(history.state?history.state.position-t:-1)+e}const fa=new Map;function ob(e,t){fa.set(e,t)}function sb(e){const t=fa.get(e);return fa.delete(e),t}let ab=()=>location.protocol+"//"+location.host;function Hf(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),jc(s,"")}return jc(n,e)+i+p}function lb(e,t,n,i){let p=[],u=[],d=null;const g=({state:l})=>{const c=Hf(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:br.pop,direction:m?m>0?rr.forward:rr.back:rr.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:es()}),"")}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 Yc(e,t,n,i=!1,p=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:p?es():null}}function cb(e){const{history:t,location:n}=window,i={value:Hf(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:ab()+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,Yc(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:es()});u(o.current,o,!0);const r=Pe({},Yc(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 ub(e){e=eb(e);const t=cb(e),n=lb(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:nb.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 hb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ub(e)}function fb(e){return typeof e=="string"||e&&typeof e=="object"}function Uf(e){return typeof e=="string"||typeof e=="symbol"}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},zf=Symbol("");var Xc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Xc||(Xc={}));function Si(e,t){return Pe(new Error,{type:e,[zf]:!0},t)}function Yt(e,t){return e instanceof Error&&zf in e&&(t==null||!!(e.type&t))}const Zc="[^/]+?",db={sensitive:!1,strict:!1,start:!0,end:!0},pb=/[.+*?^${}()[\]/\\]/g;function gb(e,t){const n=Pe({},db,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(pb,"\\$&"),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||Zc;if(b!==Zc){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 mb(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 vb(e,t){let n=0;const i=e.score,p=t.score;for(;n<i.length&&n<p.length;){const u=mb(i[n],p[n]);if(u)return u;n++}if(Math.abs(p.length-i.length)===1){if(Qc(i))return 1;if(Qc(p))return-1}return p.length-i.length}function Qc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const yb={type:0,value:""},bb=/[a-zA-Z0-9_]/;function wb(e){if(!e)return[[]];if(e==="/")return[[yb]];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:bb.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 $b(e,t,n){const i=gb(wb(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 _b(e,t){const n=[],i=new Map;t=eu({strict:!1,end:!0,sensitive:!1},t);function p(o){return i.get(o)}function u(o,r,l){const c=!l,a=Cb(o);a.aliasOf=l&&l.record;const f=eu(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=$b(x,r,f),l?l.alias.push(v):(b=b||v,b!==v&&b.alias.push(v),c&&o.name&&!qc(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)}:ir}function d(o){if(Uf(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&&vb(o,n[r])>=0&&(o.record.path!==n[r].record.path||!Vf(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!qc(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(Jc(r.params,l.keys.filter(b=>!b.optional).map(b=>b.name)),o.params&&Jc(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:Ab(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:h,removeRoute:d,getRoutes:g,getRecordMatcher:p}}function Jc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Cb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Sb(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 Sb(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 qc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ab(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function eu(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Vf(e,t){return t.children.some(n=>n===e||Vf(e,n))}const jf=/#/g,xb=/&/g,kb=/\//g,Eb=/=/g,Rb=/\?/g,Gf=/\+/g,Lb=/%5B/g,Tb=/%5D/g,Kf=/%5E/g,Mb=/%60/g,Yf=/%7B/g,Ob=/%7C/g,Xf=/%7D/g,Ib=/%20/g;function pl(e){return encodeURI(""+e).replace(Ob,"|").replace(Lb,"[").replace(Tb,"]")}function Fb(e){return pl(e).replace(Yf,"{").replace(Xf,"}").replace(Kf,"^")}function da(e){return pl(e).replace(Gf,"%2B").replace(Ib,"+").replace(jf,"%23").replace(xb,"%26").replace(Mb,"`").replace(Yf,"{").replace(Xf,"}").replace(Kf,"^")}function Nb(e){return da(e).replace(Eb,"%3D")}function Pb(e){return pl(e).replace(jf,"%23").replace(Rb,"%3F")}function Db(e){return e==null?"":Pb(e).replace(kb,"%2F")}function So(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Bb(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(Gf," "),d=u.indexOf("="),g=So(d<0?u:u.slice(0,d)),s=d<0?null:So(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 tu(e){let t="";for(let n in e){const i=e[n];if(n=Nb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Pt(i)?i.map(u=>u&&da(u)):[i&&da(i)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function Wb(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 Hb=Symbol(""),nu=Symbol(""),ts=Symbol(""),gl=Symbol(""),pa=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):fb(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 Es(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(Ub(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=K0(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 Ub(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function iu(e){const t=kt(ts),n=kt(gl),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=ru(s[h-2]);return h>1&&ru(o)===c&&r[r.length-1].path!==c?r.findIndex(Ci.bind(null,s[h-2])):l}),u=Ee(()=>p.value>-1&&Gb(n.params,i.value.params)),d=Ee(()=>p.value>-1&&p.value===n.matched.length-1&&Wf(n.params,i.value.params));function g(s={}){return jb(s)?t[tn(e.replace)?"replace":"push"](tn(e.to)).catch(ir):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:u,isExactActive:d,navigate:g}}const zb=$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:iu,setup(e,{slots:t}){const n=Mi(iu(e)),{options:i}=kt(ts),p=Ee(()=>({[ou(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[ou(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)}}}),Vb=zb;function jb(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 Gb(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 ru(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ou=(e,t,n)=>e??t??n,Kb=$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(pa),p=Ee(()=>e.route||i.value),u=kt(nu,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]);qi(nu,Ee(()=>d.value+1)),qi(Hb,g),qi(pa,p);const s=Te();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 su(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 su(n.default,{Component:m,route:h})||m}}});function su(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Yb=Kb;function Xb(e){const t=_b(e.routes,e),n=e.parseQuery||Bb,i=e.stringifyQuery||tu,p=e.history,u=Wi(),d=Wi(),g=Wi(),s=bh(yn);let h=yn;si&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=xs.bind(null,z=>""+z),r=xs.bind(null,Db),l=xs.bind(null,So);function c(z,X){let Y,V;return Uf(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=ks(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:So(G.hash),redirectedFrom:void 0,href:te})}let Y;if("path"in z)Y=Pe({},z,{path:ks(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 N=Z0(i,Pe({},z,{hash:Fb(ee),path:V.path})),B=p.createHref(N);return Pe({fullPath:N,hash:ee,query:i===tu?Wb(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function b(z){return typeof z=="string"?ks(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 T(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 T(z,X){const Y=h=v(z),V=s.value,ee=z.state,N=z.force,B=z.replace===!0,G=$(Y);if(G)return T(Pe(b(G),{state:typeof G=="object"?Pe({},ee,G.state):ee,force:N,replace:B}),X||Y);const Q=Y;Q.redirectedFrom=X;let te;return!N&&Q0(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 T(Pe({replace:B},b(ie.to),{state:typeof ie.to=="object"?Pe({},ee,ie.to.state):ee,force:N}),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,N]=Zb(z,X);Y=Es(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=Es(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 N)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=Es(N,"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 N=x(z,X);if(N)return N;const B=X===yn,G=si?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){T(Pe(ee,{replace:!0}),V).catch(ir);return}h=V;const N=s.value;si&&ob(Kc(N.fullPath,Y.delta),es()),M(V,N).catch(B=>Yt(B,12)?B:Yt(B,2)?(T(B.to,V).then(G=>{Yt(G,20)&&!Y.delta&&Y.type===br.pop&&p.go(-1,!1)}).catch(ir),Promise.reject()):(Y.delta&&p.go(-Y.delta,!1),I(B,V,N))).then(B=>{B=B||A(V,N,!1),B&&(Y.delta&&!Yt(B,8)?p.go(-Y.delta,!1):Y.type===br.pop&&Yt(B,20)&&p.go(-1,!1)),y(V,N,B)}).catch(ir)}))}let E=Wi(),L=Wi(),O;function I(z,X,Y){D(z);const V=L.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(!si||!ee)return Promise.resolve();const N=!Y&&sb(Kc(z.fullPath,0))||(V||!Y)&&history.state&&history.state.scroll||null;return Vt().then(()=>ee(z,X,N)).then(B=>B&&rb(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:L.add,isReady:F,install(z){const X=this;z.component("RouterLink",Vb),z.component("RouterView",Yb),z.config.globalProperties.$router=X,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>tn(s)}),si&&!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(ts,X),z.provide(gl,Va(Y)),z.provide(pa,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 Zb(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(ts)}function ns(){return kt(gl)}function Zf(e){return Ha()?(sh(e),!0):!1}function Ao(e){return typeof e=="function"?e():tn(e)}const Qf=typeof window<"u"&&typeof document<"u",Qb=()=>{};function Jb(...e){if(e.length!==1)return Qn(...e);const t=e[0];return typeof t=="function"?Bo(Xa(()=>({get:t,set:Qb}))):Te(t)}function qb(e){var t;const n=Ao(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ew=Qf?window:void 0,tw=Qf?window.document:void 0;function nw(){const e=Te(!1);return Dt()&&nt(()=>{e.value=!0}),e}function iw(e){const t=nw();return Ee(()=>(t.value,!!e()))}function rw(e,t,n={}){const{window:i=ew,...p}=n;let u;const d=iw(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>qb(e),o=>{g(),d.value&&i&&o&&(u=new MutationObserver(t),u.observe(o,p))},{immediate:!0}),h=()=>{g(),s()};return Zf(h),{isSupported:d,stop:h}}function ii(e=null,t={}){var n,i;const{document:p=tw}=t,u=Jb((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):Ao(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&&rw((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 Jf(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:{}},St={exports:{}};const qt=Symbol("Cleanup Function"),qf=Symbol("Timeout Token"),ci=Symbol("Signal Reason"),$t=Symbol("Unset"),[oo,ow]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,vl(t.signal.reason)]}();let xo=class{constructor(t=new AbortController){this.controller=t,this.signal=t.signal,this.signal[ci]=$t;var n,i=(p,u)=>{var d=()=>{if(u&&this.signal){let g=is(this.signal);this._trackSignalReason(g),u(g!==$t?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]:$t;this._trackSignalReason(n),this.controller&&(oo&&n!==$t?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[ci],oo||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==$t&&(!oo&&!("reason"in this.signal)&&(this.signal.reason=t),this.signal[ci]===$t&&(this.signal[ci]=t))}};St.exports={CLEANUP_FN:qt,TIMEOUT_TOKEN:qf,UNSET:$t,getSignalReason:is,cancelToken:xo,signalPromise:ml,processTokenOrSignal:ed,deferred:td,isFunction:nd,isPromise:id,invokeAbort:rd};St.exports.CLEANUP_FN=qt;St.exports.TIMEOUT_TOKEN=qf;St.exports.UNSET=$t;St.exports.getSignalReason=is;St.exports.cancelToken=xo;St.exports.signalPromise=ml;St.exports.processTokenOrSignal=ed;St.exports.deferred=td;St.exports.isFunction=nd;St.exports.isPromise=id;St.exports.invokeAbort=rd;function is(e){return e&&e.aborted?oo&&ow?vl(e.reason)?$t:e.reason:ci in e?e[ci]:$t:$t}function ml(e){if(e.pr)return e.pr;var t,n=new Promise(function(p,u){t=()=>{if(u&&e){let d=is(e);u(d!==$t?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 ed(e){e instanceof AbortController&&(e=new xo(e));var t=e&&e instanceof xo?e.signal:e,n=ml(t);return{tokenOrSignal:e,signal:t,signalPr:n}}function td(){var e,t=new Promise(n=>e=n);return{pr:t,resolve:e}}function nd(e){return typeof e=="function"}function id(e){return e&&typeof e=="object"&&typeof e.then=="function"}function vl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function rd(e,t){!vl(t)&&t!==$t?e.abort(t):e.abort()}var sw=St.exports,{CLEANUP_FN:au,TIMEOUT_TOKEN:od,UNSET:wr,getSignalReason:sd,cancelToken:Fi,signalPromise:aw,processTokenOrSignal:ad,isFunction:lw,invokeAbort:rs}=sw;Nn.exports=Object.assign(uw,{cancelToken:Fi,delay:yl,timeout:ld,signalRace:fd,signalAll:dd,tokenCycle:pd});var cw=Nn.exports.cancelToken=Fi;Nn.exports.delay=yl;Nn.exports.timeout=ld;Nn.exports.signalRace=fd;Nn.exports.signalAll=dd;Nn.exports.tokenCycle=pd;function uw(e){return function(n,...i){var p,u;if({tokenOrSignal:n,signal:p,signalPr:u}=ad(n),p.aborted)return u;var d=u.catch(function(r){var l=sd(p);l=l!==wr?l:r;try{var c=g.return();throw c.value!==void 0?c.value:l!==wr?l:void 0}finally{g=s=d=h=null}}),{it:g,result:s}=hw.call(this,e,p,...i),h=Promise.race([s,d]);if(n!==p&&n[od]){let o=function(l){rs(n,l),lw(n.discard)&&n.discard(),n=o=null};h.then(o,o)}else h.catch(()=>{}),n=null;return i=null,h}}function yl(e,t){typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]);var n,i;return e&&({tokenOrSignal:e,signal:n,signalPr:i}=ad(e)),n&&n.aborted?i:new Promise(function(u,d){n&&(i.catch(function(){if(d&&n&&g){let h=sd(n);clearTimeout(g),d(h!==wr?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 ld(e,t="Timeout"){e=Number(e)||0;var n=new Fi;return yl(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,od,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...p){rs(n,p.length>0?p[0]:wr),n.discard(),n=null}}function cd(e){return e.reduce(function(n,i){var p=aw(i);return n[0].push(p),i.pr||n[1].push(p),n},[[],[]])}function ud(e,t,n){e.then(function(p){rs(t,p),t.discard(),t=null}).then(function(){for(let p of n)p[au]&&p[au]();n=null})}function hd(e){return e.catch(t=>t)}function fd(e){var t=new Fi,[n,i]=cd(e);return ud(hd(Promise.race(n)),t,i),t.signal}function dd(e){var t=new Fi,[n,i]=cd(e);return ud(Promise.all(n.map(hd)),t,i),t.signal}function pd(){var e;return function(...n){return e&&(rs(e,n.length>0?n[0]:wr),e.discard()),e=new Fi}}function hw(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 fw=Nn.exports;const dw=un(fw);function ga(){ga=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 T(_||[]);return w._invoke=function(L,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(L,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,L,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,L,O)},function(W){A("throw",W,L,O)}):y.resolve(D).then(function(W){F.value=W,L(F)},function(W){return A("throw",W,L,O)})}O(I.arg)}var _;this._invoke=function(w,E){function L(){return new y(function(O,I){A(w,E,O,I)})}return _=_?_.then(L,L):L()}}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 T(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(L){return L.done?L.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,T.prototype={constructor:T,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 L=n.call(w,"catchLoc"),O=n.call(w,"finallyLoc");if(L&&O){if(this.prev<w.catchLoc)return A(w.catchLoc,!0);if(this.prev<w.finallyLoc)return A(w.finallyLoc)}else if(L){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 pw=function(e){return e._runningInstances.length>=e._maxConcurrency},gw=function(e){var t=e._activeInstances[0];t&&t.cancel()},mw=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 vw(e){return Ee(function(){return e().length})}function lu(e){return Ee(function(){var t=e();return t[t.length-1]})}function yw(e){return Ee(function(){return e()[0]})}function gd(e){return Mi(e)}function ut(e){return ww(ga().mark(function t(n){var i=arguments;return ga().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 bw(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 cw,c=dw(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=gd(u),g=n.modifiers;return g.drop?d.isDropped=!0:g.enqueue?d.isEnqueued=!0:d._run(),d}function ww(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Dt(),i=rh(),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:vw(function(){return u._instances}),last:lu(function(){return u._notDroppedInstances}),lastSuccessful:lu(function(){return u._successfulInstances}),firstEnqueued:yw(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&&pw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&gw(u),u._isKeepingLatest&&mw(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return $w(u)},h=function(){return bw(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=gd(p);return n&&t.cancelOnUnmount&&Lr(function(){u._instances&&u.destroy()}),u}function $w(e){if(e._isEnqueuing||e._isKeepingLatest){var t=e.firstEnqueued;t&&t._run()}}function md(e,t){return function(){return e.apply(t,arguments)}}const{toString:_w}=Object.prototype,{getPrototypeOf:bl}=Object,os=(e=>t=>{const n=_w.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>os(t)===e),ss=e=>t=>typeof t===e,{isArray:Ni}=Array,$r=ss("undefined");function Cw(e){return e!==null&&!$r(e)&&e.constructor!==null&&!$r(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vd=Kt("ArrayBuffer");function Sw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vd(e.buffer),t}const Aw=ss("string"),Rt=ss("function"),yd=ss("number"),as=e=>e!==null&&typeof e=="object",xw=e=>e===!0||e===!1,so=e=>{if(os(e)!=="object")return!1;const t=bl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kw=Kt("Date"),Ew=Kt("File"),Rw=Kt("Blob"),Lw=Kt("FileList"),Tw=e=>as(e)&&Rt(e.pipe),Mw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=os(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},Ow=Kt("URLSearchParams"),Iw=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 bd(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 wd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$d=e=>!$r(e)&&e!==wd;function ma(){const{caseless:e}=$d(this)&&this||{},t={},n=(i,p)=>{const u=e&&bd(t,p)||p;so(t[u])&&so(i)?t[u]=ma(t[u],i):so(i)?t[u]=ma({},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 Fw=(e,t,n,{allOwnKeys:i}={})=>(Tr(t,(p,u)=>{n&&Rt(p)?e[u]=md(p,n):e[u]=p},{allOwnKeys:i}),e),Nw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pw=(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)},Dw=(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&&bl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Bw=(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},Ww=e=>{if(!e)return null;if(Ni(e))return e;let t=e.length;if(!yd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bl(Uint8Array)),Uw=(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])}},zw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Vw=Kt("HTMLFormElement"),jw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,p){return i.toUpperCase()+p}),cu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gw=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)},Kw=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+"'")})}})},Yw=(e,t)=>{const n={},i=p=>{p.forEach(u=>{n[u]=!0})};return Ni(e)?i(e):i(String(e).split(t)),n},Xw=()=>{},Zw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Rs="abcdefghijklmnopqrstuvwxyz",uu="0123456789",Cd={DIGIT:uu,ALPHA:Rs,ALPHA_DIGIT:Rs+Rs.toUpperCase()+uu},Qw=(e=16,t=Cd.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Jw(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qw=e=>{const t=new Array(10),n=(i,p)=>{if(as(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);!$r(s)&&(u[g]=s)}),t[p]=void 0,u}}return i};return n(e,0)},e1=Kt("AsyncFunction"),t1=e=>e&&(as(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),ne={isArray:Ni,isArrayBuffer:vd,isBuffer:Cw,isFormData:Mw,isArrayBufferView:Sw,isString:Aw,isNumber:yd,isBoolean:xw,isObject:as,isPlainObject:so,isUndefined:$r,isDate:kw,isFile:Ew,isBlob:Rw,isRegExp:Gw,isFunction:Rt,isStream:Tw,isURLSearchParams:Ow,isTypedArray:Hw,isFileList:Lw,forEach:Tr,merge:ma,extend:Fw,trim:Iw,stripBOM:Nw,inherits:Pw,toFlatObject:Dw,kindOf:os,kindOfTest:Kt,endsWith:Bw,toArray:Ww,forEachEntry:Uw,matchAll:zw,isHTMLForm:Vw,hasOwnProperty:cu,hasOwnProp:cu,reduceDescriptors:_d,freezeMethods:Kw,toObjectSet:Yw,toCamelCase:jw,noop:Xw,toFiniteNumber:Zw,findKey:bd,global:wd,isContextDefined:$d,ALPHABET:Cd,generateString:Qw,isSpecCompliantForm:Jw,toJSONObject:qw,isAsyncFn:e1,isThenable:t1};function Ie(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(Ie,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 Sd=Ie.prototype,Ad={};["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=>{Ad[e]={value:e}});Object.defineProperties(Ie,Ad);Object.defineProperty(Sd,"isAxiosError",{value:!0});Ie.from=(e,t,n,i,p,u)=>{const d=Object.create(Sd);return ne.toFlatObject(e,d,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Ie.call(d,e.message,t,n,i,p),d.cause=e,d.name=e.name,u&&Object.assign(d,u),d};const n1=null;function va(e){return ne.isPlainObject(e)||ne.isArray(e)}function xd(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function hu(e,t,n){return e?e.concat(t).map(function(p,u){return p=xd(p),!n&&u?"["+p+"]":p}).join(n?".":""):t}function i1(e){return ne.isArray(e)&&!e.some(va)}const r1=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function ls(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 Ie("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)&&i1(a)||(ne.isFileList(a)||ne.endsWith(f,"[]"))&&(v=ne.toArray(a)))return f=xd(f),v.forEach(function(x,C){!(ne.isUndefined(x)||x===null)&&t.append(d===!0?hu([f],C,u):d===null?f:f+"[]",h(x))}),!1}return va(a)?!0:(t.append(hu(m,f,u),h(a)),!1)}const r=[],l=Object.assign(r1,{defaultVisitor:o,convertValue:h,isVisitable:va});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 fu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function wl(e,t){this._pairs=[],e&&ls(e,this,t)}const kd=wl.prototype;kd.append=function(t,n){this._pairs.push([t,n])};kd.toString=function(t){const n=t?function(i){return t.call(this,i,fu)}:fu;return this._pairs.map(function(p){return n(p[0])+"="+n(p[1])},"").join("&")};function o1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ed(e,t,n){if(!t)return e;const i=n&&n.encode||o1,p=n&&n.serialize;let u;if(p?u=p(t,n):u=ne.isURLSearchParams(t)?t.toString():new wl(t,n).toString(i),u){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class s1{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 du=s1,Rd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},a1=typeof URLSearchParams<"u"?URLSearchParams:wl,l1=typeof FormData<"u"?FormData:null,c1=typeof Blob<"u"?Blob:null,u1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),h1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ut={isBrowser:!0,classes:{URLSearchParams:a1,FormData:l1,Blob:c1},isStandardBrowserEnv:u1,isStandardBrowserWebWorkerEnv:h1,protocols:["http","https","file","blob","url","data"]};function f1(e,t){return ls(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 d1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function p1(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 Ld(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]=p1(p[d])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,p)=>{t(d1(i),p,n,0)}),n}return null}function g1(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 $l={transitional:Rd,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(Ld(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 f1(t,this.formSerializer).toString();if((g=ne.isFileList(t))||i.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ls(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||p?(n.setContentType("application/json",!1),g1(t)):t}],transformResponse:[function(t){const n=this.transitional||$l.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"?Ie.from(g,Ie.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=>{$l.headers[e]={}});const _l=$l,m1=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"]),v1=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]&&m1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},pu=Symbol("internals");function Ui(e){return e&&String(e).trim().toLowerCase()}function ao(e){return e===!1||e==null?e:ne.isArray(e)?e.map(ao):String(e)}function y1(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 b1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ls(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 w1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function $1(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 cs{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]=ao(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())&&!b1(t)?d(v1(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 y1(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||Ls(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||Ls(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||Ls(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]=ao(p),delete n[u];return}const g=t?w1(u):String(u).trim();g!==u&&delete n[u],n[g]=ao(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[pu]=this[pu]={accessors:{}}).accessors,p=this.prototype;function u(d){const g=Ui(d);i[g]||($1(p,d),i[g]=!0)}return ne.isArray(t)?t.forEach(u):u(t),this}}cs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(cs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ne.freezeMethods(cs);const rn=cs;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 Td(e){return!!(e&&e.__CANCEL__)}function Mr(e,t,n){Ie.call(this,e??"canceled",Ie.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Mr,Ie,{__CANCEL__:!0});function _1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const C1=Ut.isStandardBrowserEnv?function(){return{write:function(n,i,p,u,d,g){const s=[];s.push(n+"="+encodeURIComponent(i)),ne.isNumber(p)&&s.push("expires="+new Date(p).toGMTString()),ne.isString(u)&&s.push("path="+u),ne.isString(d)&&s.push("domain="+d),g===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function S1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function A1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Md(e,t){return e&&!S1(t)?A1(e,t):t}const x1=Ut.isStandardBrowserEnv?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 k1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function E1(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 gu(e,t){let n=0;const i=E1(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 R1=typeof XMLHttpRequest<"u",L1=R1&&function(e){return new Promise(function(n,i){let p=e.data;const u=rn.from(e.headers).normalize(),d=e.responseType;let g;function s(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}let h;ne.isFormData(p)&&(Ut.isStandardBrowserEnv||Ut.isStandardBrowserWebWorkerEnv?u.setContentType(!1):u.getContentType(/^\s*multipart\/form-data/)?ne.isString(h=u.getContentType())&&u.setContentType(h.replace(/^\s*(multipart\/form-data);+/,"$1")):u.setContentType("multipart/form-data"));let o=new XMLHttpRequest;if(e.auth){const a=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(a+":"+f))}const r=Md(e.baseURL,e.url);o.open(e.method.toUpperCase(),Ed(r,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function l(){if(!o)return;const a=rn.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),m={data:!d||d==="text"||d==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:a,config:e,request:o};_1(function(b){n(b),s()},function(b){i(b),s()},m),o=null}if("onloadend"in o?o.onloadend=l:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(l)},o.onabort=function(){o&&(i(new Ie("Request aborted",Ie.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new Ie("Network Error",Ie.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Rd;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),i(new Ie(f,m.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,o)),o=null},Ut.isStandardBrowserEnv){const a=x1(r)&&e.xsrfCookieName&&C1.read(e.xsrfCookieName);a&&u.set(e.xsrfHeaderName,a)}p===void 0&&u.setContentType(null),"setRequestHeader"in o&&ne.forEach(u.toJSON(),function(f,m){o.setRequestHeader(m,f)}),ne.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),d&&d!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",gu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",gu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=a=>{o&&(i(!a||a.type?new Mr(null,e,o):a),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const c=k1(r);if(c&&Ut.protocols.indexOf(c)===-1){i(new Ie("Unsupported protocol "+c+":",Ie.ERR_BAD_REQUEST,e));return}o.send(p||null)})},ya={http:n1,xhr:L1};ne.forEach(ya,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mu=e=>`- ${e}`,T1=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,!T1(n)&&(i=ya[(d=String(n)).toLowerCase()],i===void 0))throw new Ie(`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
768
  `+u.map(mu).join(`
769
- `):" "+mu(u[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:va};function Ts(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mr(null,e)}function vu(e){return Ts(e),e.headers=rn.from(e.headers),e.data=Ls.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Md.getAdapter(e.adapter||_l.adapter)(e).then(function(i){return Ts(e),i.data=Ls.call(e,e.transformResponse,i),i.headers=rn.from(i.headers),i},function(i){return Ld(i)||(Ts(e),i&&i.response&&(i.response.data=Ls.call(e,e.transformResponse,i.response),i.response.headers=rn.from(i.response.headers))),Promise.reject(i)})}const yu=e=>e instanceof rn?e.toJSON():e;function Si(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,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(yu(h),yu(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 Od="1.5.1",Cl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const bu={};Cl.transitional=function(t,n,i){function p(u,d){return"[Axios v"+Od+"] Transitional option '"+u+"'"+d+(i?". "+i:"")}return(u,d,g)=>{if(t===!1)throw new Ie(p(d," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!bu[d]&&(bu[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 T1(e,t,n){if(typeof e!="object")throw new Ie("options must be an object",Ie.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 Ie("option "+u+" must be "+s,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+u,Ie.ERR_BAD_OPTION)}}const ya={assertOptions:T1,validators:Cl},bn=ya.validators;class xo{constructor(t){this.defaults=t,this.interceptors={request:new du,response:new du}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Si(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=[vu.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=vu.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=Si(this.defaults,t);const n=Td(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(Si(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(Si(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 lo=xo;class Sl{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 Mr(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 Sl(function(p){t=p}),cancel:t}}}const M1=Sl;function O1(e){return function(n){return e.apply(null,n)}}function I1(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 F1=ba;function Id(e){const t=new lo(e),n=gd(lo.prototype.request,t);return ne.extend(n,lo.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(p){return Id(Si(e,p))},n}const Je=Id(_l);Je.Axios=lo;Je.CanceledError=Mr;Je.CancelToken=M1;Je.isCancel=Ld;Je.VERSION=Od;Je.toFormData=as;Je.AxiosError=Ie;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=O1;Je.isAxiosError=I1;Je.mergeConfig=Si;Je.AxiosHeaders=rn;Je.formToJSON=e=>Rd(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Md.getAdapter;Je.HttpStatusCode=F1;Je.default=Je;const N1=Je,st=N1.create({headers:{Accept:"application/json"}}),ht={async getConfigs(){return(await st.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await st.get("/api/alerts",{params:e})).data},async getTags(){return(await st.get("/api/tags")).data.tags},async getRuleSet(){return(await st.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await st.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await st.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await st.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await st.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await st.get("/api/rules",{params:e})).data},async getRule(e){return(await st.get(`/api/rules/${e}`)).data},async runRule(e){await st.get(`/api/rules/${e}/run`)},async createRule(e){return(await st.post("/api/rules/",e)).data},async updateRule(e){return(await st.put("/api/rules/",e)).data},async deleteRule(e){await st.delete(`/api/rules/${e}`)},async deleteTag(e){await st.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await st.get(`/api/ip_addresses/${e}`)).data}};function Al(){return ut(async(e,t)=>await ht.getAlerts(t))}function P1(){return ut(async(e,t)=>await ht.deleteAlert(t))}function Fd(){return ut(async()=>await ht.getTags())}function D1(){return ut(async(e,t)=>await ht.deleteTag(t))}function B1(){return ut(async()=>await ht.getRuleSet())}function W1(){return ut(async(e,t)=>await ht.getArtifact(t))}function Nd(){return ut(async(e,t)=>await ht.deleteArtifact(t))}function H1(){return ut(async(e,t)=>await ht.enrichArtifact(t))}function U1(){return ut(async()=>await ht.getConfigs())}function z1(){return ut(async(e,t)=>await ht.getIPInfo(t))}function V1(){return ut(async(e,t)=>await ht.getRules(t))}function Pd(){return ut(async(e,t)=>await ht.getRule(t))}function j1(){return ut(async(e,t)=>await ht.deleteRule(t))}function G1(){return ut(async(e,t)=>await ht.runRule(t))}function K1(){return ut(async(e,t)=>await ht.createRule(t))}function Y1(){return ut(async(e,t)=>await ht.updateRule(t))}const X1=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Te(!1),n=Te(!1),i=Nd();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}}}),Z1={key:0,class:"control"};function Q1(e,t,n,i,p,u){const d=ue("router-link");return e.isDeleted?we("",!0):(q(),oe("div",Z1,[P("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:dt(()=>[et(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 J1=xe(X1,[["render",Q1]]),q1=$e({name:"ArtifactTags",components:{ArtifactComponent:J1},props:{artifacts:{type:Array,required:!0}}}),e$={class:"field is-grouped is-grouped-multiline"};function t$(e,t,n,i,p,u){const d=ue("ArtifactComponent");return q(),oe("div",e$,[(q(!0),oe(Se,null,ct(e.artifacts,g=>(q(),Me(d,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const n$=xe(q1,[["render",t$]]),i$=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Te(!1),i=Te(!1),p=D1();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}?`)&&(await p.perform(e.tag.name),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),r$={key:0,class:"control"};function o$(e,t,n,i,p,u){return e.isDeleted?we("",!0):(q(),oe("div",r$,[P("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))},[P("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 s$=xe(i$,[["render",o$]]),a$=$e({name:"TagsItem",components:{TagComponent:s$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),l$={class:"field is-grouped is-grouped-multiline"};function c$(e,t,n,i,p,u){const d=ue("TagComponent");return q(),oe("div",l$,[(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 Dd=xe(a$,[["render",c$]]);var Bd={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,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var E=["th","st","nd","rd"],T=b%100;return"["+b+(E[(T-20)%10]||E[T]||E[0])+"]"}},R=function(b,E,T){var O=String(b);return!O||O.length>=E?b:""+Array(E+1-O.length).join(T)+b},C={s:R,z:function(b){var E=-b.utcOffset(),T=Math.abs(E),O=Math.floor(T/60),I=T%60;return(E<=0?"+":"-")+R(O,2,"0")+":"+R(I,2,"0")},m:function b(E,T){if(E.date()<T.date())return-b(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(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:r,y:c,w:o,d:h,D:a,h:s,m:g,s:d,ms:u,Q:l}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},S="en",$={};$[S]=y;var L="$isDayjsObject",x=function(b){return b instanceof A||!(!b||!b[L])},k=function b(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 b(D[0])}else{var W=E.name;$[W]=E,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(b,E){if(x(b))return b.clone();var T=typeof E=="object"?E:{};return T.date=b,T.args=arguments,new A(T)},w=C;w.l=k,w.i=x,w.w=function(b,E){return M(b,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var A=function(){function b(T){this.$L=k(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[L]=!0}var E=b.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(w.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 w},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 w.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=!!w.u(O)||O,D=w.p(T),W=function(Y,V){var ee=w.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 w.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=w.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[w.p(T)]()},E.add=function(T,O){var I,F=this;T=Number(T);var D=w.p(O),W=function(U){var K=M(F);return w.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 w.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=w.z(this),W=this.$H,j=this.$m,H=this.$M,U=I.weekdays,K=I.months,Z=I.meridiem,z=function(V,ee,N,B){return V&&(V[ee]||V(O,F))||N[ee].slice(0,B)},X=function(V){return w.s(W%12||12,V,"0")},Y=Z||function(V,ee,N){var B=V<12?"AM":"PM";return N?B.toLowerCase():B};return F.replace(v,function(V,ee){return ee||function(N){switch(N){case"YY":return String(O.$y).slice(-2);case"YYYY":return w.s(O.$y,4,"0");case"M":return H+1;case"MM":return w.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 w.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 w.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 w.s(j,2,"0");case"s":return String(O.$s);case"ss":return w.s(O.$s,2,"0");case"SSS":return w.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=w.p(O),j=M(T),H=(j.utcOffset()-this.utcOffset())*i,U=this-j,K=function(){return w.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:w.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 w.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()},b}(),_=A.prototype;return M.prototype=_,[["$ms",u],["$s",d],["$m",g],["$H",s],["$W",h],["$M",r],["$y",c],["$D",a]].forEach(function(b){_[b[1]]=function(E){return this.$g(E,b[0],b[1])}}),M.extend=function(b,E){return b.$i||(b(E,A,M),b.$i=!0),M},M.locale=k,M.isDayjs=x,M.unix=function(b){return M(1e3*b)},M.en=$[S],M.Ls=$,M.p={},M})})(Bd);var u$=Bd.exports;const Ni=un(u$);var Wd={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,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],R=y.length,C=0;C<R;C+=1){var S=y[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=y[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 x=m?v.future:v.past;return typeof x=="function"?x(f):x.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)}}})})(Wd);var h$=Wd.exports;const f$=un(h$);var Hd={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,y){y===void 0&&(y={});var R=y.timeZoneName||"short",C=v+"|"+R,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:R}),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],y=v.type,R=v.value,C=n[y];C>=0&&(f[C]=parseInt(R,10))}var S=f[3],$=S===24?0:S,L=f[0]+"-"+f[1]+"-"+f[2]+" "+$+":"+f[4]+":"+f[5]+":000",x=+l;return(d.utc(L).valueOf()-(x-=x%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),y=d(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-v,!0);if(c){var R=y.utcOffset();y=y.add(a-R,"minute")}return y.$x.$timezone=l,y},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 y=function($,L,x){var k=$-60*L*1e3,M=h(k,x);if(L===M)return[k,L];var w=h(k-=60*(M-L)*1e3,x);return M===w?[k,M]:[$-60*Math.min(M,w)*1e3,Math.max(M,w)]}(d.utc(l,f).valueOf(),v,m),R=y[0],C=y[1],S=d(R).utcOffset(C);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(l){g=l}}})})(Hd);var d$=Hd.exports;const p$=un(d$);var Ud={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],x=L[0],k=60*+L[1]+ +L[2];return k===0?0:x==="+"?k:-k}(f),f===null))return this;var y=Math.abs(f)<=16?60*f:f,R=this;if(m)return R.$offset=y,R.$u=f===0,R;if(f!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(R=this.local().add(y+C,n)).$offset=y,R.$x.$localOffset=C}else R=this.utc();return R};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 y=this.local(),R=g(f).local();return a.call(y,R,m,v)}}})})(Ud);var g$=Ud.exports;const m$=un(g$),v$=[{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 y$(e){return v$.find(n=>n.code===e)}Ni.extend(f$);Ni.extend(p$);Ni.extend(m$);function b$(e){return Ni(e).local().format("YYYY-MM-DD HH:mm:ss")}function w$(e){return Ni(e).local().fromNow()}function zd(e){const t=y$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function $$(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 zd(e.countryCode)}function Gi(e){if(e!=null)return typeof e=="string"?e:e.toString()}const _$=$e({name:"AlertItem",components:{Artifacts:n$,Tags:Dd},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=P1();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:b$,getHumanizedRelativeTime:w$}}}),C$={class:"box"},S$={class:"table is-fullwidth is-completely-borderless"},A$=P("th",null,"ID",-1),x$=P("span",null,"Delete",-1),k$={class:"icon is-small"},E$=P("th",null,"Rule",-1),R$=P("th",null,"Artifacts",-1),L$={key:0},T$=P("th",null,"Tags",-1),M$={class:"help"};function O$(e,t,n,i,p,u){const d=ue("font-awesome-icon"),g=ue("router-link"),s=ue("Artifacts"),h=ue("Tags");return q(),oe("div",C$,[P("table",S$,[P("tr",null,[A$,P("td",null,[et(Ae(e.alert.id)+" ",1),P("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[x$,P("span",k$,[he(d,{icon:"times"})])])])]),P("tr",null,[E$,P("td",null,[he(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:dt(()=>[et(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[R$,P("td",null,[he(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",L$,[T$,P("td",null,[he(h,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),P("p",M$,"Created at: "+Ae(e.alert.createdAt),1)])}const I$=xe(_$,[["render",O$]]),Ms=new WeakMap;function wu(e,t,n={}){const{mode:i="replace",route:p=ts(),router:u=Oi(),transform:d=o=>o}=n;Ms.has(p)||Ms.set(p,new Map);const g=Ms.get(p);Xf(()=>{g.delete(e)}),g.set(e,p.query[e]);let s;const h=Ya((o,r)=>(s=r,{get(){o();const l=g.get(e);return d(l!==void 0?l:So(t))},set(l){g.get(e)!==l&&(g.set(e,l),r(),Vt(()=>{const{params:c,query:a,hash:f}=p;u[So(i)]({params:c,query:{...a,...Object.fromEntries(g.entries())},hash:f})}))}}));return Ye(()=>p.query[e],o=>{g.set(e,o),s()},{flush:"sync"}),h}const F$=$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=Oi(),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=wu("page",l.toString(),p);c.value=l.toString(),t.emit("update-page",l)};return nt(()=>{const l=wu("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}}}),N$={key:0,class:"message is-warning"},P$=P("div",{class:"message-body"},"There is no result to show.",-1),D$=[P$],B$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},W$={key:0,class:"pagination-list"},H$={key:1,class:"pagination-list"},U$={key:0},z$={key:1},V$=P("span",{class:"pagination-ellipsis"},"…",-1),j$=[V$],G$={key:2},K$={key:3},Y$={key:4},X$=P("span",{class:"pagination-ellipsis"},"…",-1),Z$=[X$],Q$={key:5};function J$(e,t,n,i,p,u){return e.total===0?(q(),oe("article",N$,D$)):(q(),oe("nav",B$,[e.hasOnlyOnePage?(q(),oe("ul",W$,[P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=d=>e.updatePage(1))},"1")])])):(q(),oe("ul",H$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",U$,[P("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",z$,j$)):we("",!0),e.hasPreviousPage?(q(),oe("li",G$,[P("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=d=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),P("li",null,[P("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",K$,[P("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",Y$,Z$)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",Q$,[P("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=d=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const Vd=xe(F$,[["render",J$]]),q$=$e({name:"AlertsItem",components:{Alert:I$,Pagination:Vd},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")}}}}),e_={class:"help"};function t_(e,t,n,i,p,u){const d=ue("Alert"),g=ue("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"]),P("p",e_,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const jd=xe(q$,[["render",t_]]),n_=$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=Te(void 0),i=Te(void 0),p=Qn(e,"tag"),u=Te(void 0),d=Te(void 0),g=Te(void 0),s=Te(void 0),h=Te(void 0),o=()=>{const l=t.query.asn,c=Gi(l);g.value=c===void 0?void 0:parseInt(c);const a=t.query.dnsRecord;s.value=Gi(a);const f=t.query.reverseDnsName;h.value=Gi(f);const m=t.query.tag;p.value===void 0&&(p.value=Gi(m))},r=()=>(o(),{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:r,ruleId:u,toAt:d,tagInput:p}}}),i_={class:"columns"},r_={class:"column"},o_={class:"field is-horizontal"},s_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Rule")],-1),a_={class:"field-body"},l_={class:"field"},c_={class:"control"},u_={class:"select"},h_=P("option",null,null,-1),f_={class:"column"},d_={class:"field is-horizontal"},p_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Artifact")],-1),g_={class:"field-body"},m_={class:"field"},v_={class:"control"},y_={class:"columns"},b_={class:"column"},w_={class:"field is-horizontal"},$_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),__={class:"field-body"},C_={class:"field"},S_={class:"control"},A_={class:"select"},x_=P("option",null,null,-1),k_=P("div",{class:"column"},null,-1),E_={class:"columns"},R_={class:"column"},L_={class:"field is-horizontal"},T_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),M_={class:"field-body"},O_={class:"field"},I_={class:"control"},F_={class:"column"},N_={class:"field is-horizontal"},P_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),D_={class:"field-body"},B_={class:"field"},W_={class:"control"};function H_(e,t,n,i,p,u){return q(),oe(Se,null,[P("div",i_,[P("div",r_,[P("div",o_,[s_,P("div",a_,[P("div",l_,[P("div",c_,[P("div",u_,[Mt(P("select",{"onUpdate:modelValue":t[0]||(t[0]=d=>e.ruleId=d)},[h_,(q(!0),oe(Se,null,ct(e.ruleSet,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[yr,e.ruleId]])])])])])])]),P("div",f_,[P("div",d_,[p_,P("div",g_,[P("div",m_,[P("p",v_,[Mt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.artifact=d)},null,512),[[Ft,e.artifact]])])])])])])]),P("div",y_,[P("div",b_,[P("div",w_,[$_,P("div",__,[P("div",C_,[P("div",S_,[P("div",A_,[Mt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[x_,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[yr,e.tagInput]])])])])])])]),k_]),P("div",E_,[P("div",R_,[P("div",L_,[T_,P("div",M_,[P("div",O_,[P("p",I_,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),P("div",F_,[P("div",N_,[P_,P("div",D_,[P("div",B_,[P("p",W_,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const U_=xe(n_,[["render",H_]]);var Gd={exports:{}};const z_=Qf(w0);(function(e,t){(function(n,i){e.exports=i(z_)})(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(w,A){(A==null||A>w.length)&&(A=w.length);for(var _=0,b=new Array(A);_<A;_++)b[_]=w[_];return b}function s(w,A){if(w){if(typeof w=="string")return g(w,A);var _=Object.prototype.toString.call(w).slice(8,-1);return _==="Object"&&w.constructor&&(_=w.constructor.name),_==="Map"||_==="Set"?Array.from(w):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?g(w,A):void 0}}function h(w){return function(A){if(Array.isArray(A))return g(A)}(w)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}(w)||s(w)||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(w,A,_){return A in w?Object.defineProperty(w,A,{value:_,enumerable:!0,configurable:!0,writable:!0}):w[A]=_,w}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 w=this.data,A=this.onClick;return(0,r.createVNode)("span",{class:"vjs-tree-brackets",onClick:A},[w])}}),c=(0,r.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(w,A){var _=A.emit;return{uiType:(0,r.computed)(function(){return w.isMultiple?"checkbox":"radio"}),model:(0,r.computed)({get:function(){return w.checked},set:function(b){return _("update:modelValue",b)}})}},render:function(){var w=this.uiType,A=this.model,_=this.$emit;return(0,r.createVNode)("label",{class:["vjs-check-controller",A?"is-checked":""],onClick:function(b){return b.stopPropagation()}},[(0,r.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(w)},null),(0,r.createVNode)("input",{checked:A,class:"vjs-check-controller-original is-".concat(w),type:w,onChange:function(){return _("change",A)}},null)])}}),a=(0,r.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var w=this.nodeType,A=this.onClick,_=w==="objectStart"||w==="arrayStart";return _||w==="objectCollapsed"||w==="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(w){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(w)}function m(w){return Object.prototype.toString.call(w).slice(8,-1).toLowerCase()}function v(w){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,b=arguments.length>3?arguments[3]:void 0,E=b||{},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(w);if(U==="array"){var K=y(w.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:w.length,type:"arrayStart"})[0]].concat(K,v("]",A,_,{showComma:W,length:w.length,type:"arrayEnd"})[0])}if(U==="object"){var Z=Object.keys(w),z=y(Z.map(function(X,Y,V){return v(w[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:w,level:_,key:T,index:O,path:A,showComma:W,length:H,type:F}]}function y(w){if(typeof Array.prototype.flat=="function")return w.flat();for(var A=h(w),_=[];A.length;){var b=A.shift();Array.isArray(b)?A.unshift.apply(A,h(b)):_.push(b)}return _}function R(w){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(w==null)return w;if(w instanceof Date)return new Date(w);if(w instanceof RegExp)return new RegExp(w);if(f(w)!=="object")return w;if(A.get(w))return A.get(w);if(Array.isArray(w)){var _=w.map(function(T){return R(T,A)});return A.set(w,_),_}var b={};for(var E in w)b[E]=R(w[E],A);return A.set(w,b),b}function C(w,A){var _=Object.keys(w);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(w);A&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(w,E).enumerable})),_.push.apply(_,b)}return _}function S(w){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?C(Object(_),!0).forEach(function(b){o(w,b,_[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(_)):C(Object(_)).forEach(function(b){Object.defineProperty(w,b,Object.getOwnPropertyDescriptor(_,b))})}return w}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(w,A){var _=A.emit,b=(0,r.computed)(function(){return m(w.node.content)}),E=(0,r.computed)(function(){return"vjs-value vjs-value-".concat(b.value)}),T=(0,r.computed)(function(){return w.showDoubleQuotes?'"'.concat(w.node.key,'"'):w.node.key}),O=(0,r.computed)(function(){return w.selectableType==="multiple"}),I=(0,r.computed)(function(){return w.selectableType==="single"}),F=(0,r.computed)(function(){return w.nodeSelectable(w.node)&&(O.value||I.value)}),D=(0,r.reactive)({editing:!1}),W=function(Y){var V,ee,N=(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",N,w.node.path)},j=(0,r.computed)(function(){var Y,V=(Y=w.node)===null||Y===void 0?void 0:Y.content;return V===null?V="null":V===void 0&&(V="undefined"),b.value==="string"?'"'.concat(V,'"'):V+""}),H=function(){var Y=w.renderNodeValue;return Y?Y({node:w.node,defaultValue:j.value}):j.value},U=function(){_("bracketsClick",!w.collapsed,w.node.path)},K=function(){_("iconClick",!w.collapsed,w.node.path)},Z=function(){_("selectedChange",w.node)},z=function(){_("nodeClick",w.node),F.value&&w.selectOnClickNode&&_("selectedChange",w.node)},X=function(Y){if(w.editable&&!D.editing){D.editing=!0;var V=function ee(N){var B;N.target!==Y.target&&((B=N.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=w.node;return(0,r.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":w.showSelectController,"has-carets":w.showIcon,"is-highlight":w.highlightSelectedNode&&w.checked},onClick:z,style:w.style},[w.showLineNumber&&(0,r.createVNode)("span",{class:"vjs-node-index"},[V.id+1]),w.showSelectController&&F.value&&V.type!=="objectEnd"&&V.type!=="arrayEnd"&&(0,r.createVNode)(c,{isMultiple:O.value,checked:w.checked,onChange:Z},null),(0,r.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(V.level)).map(function(ee,N){return(0,r.createVNode)("div",{key:N,class:{"vjs-indent-unit":!0,"has-line":w.showLine}},null)}),w.showIcon&&(0,r.createVNode)(a,{nodeType:V.type,onClick:K},null)]),V.key&&(0,r.createVNode)("span",{class:"vjs-key"},[(Y=w.renderNodeKey,Y?Y({node:w.node,defaultKey:T.value||""}):T.value),(0,r.createVNode)("span",{class:"vjs-colon"},[":".concat(w.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:!w.editable||w.editableTrigger&&w.editableTrigger!=="click"?void 0:X,onDblclick:w.editable&&w.editableTrigger==="dblclick"?X:void 0},[w.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,[","]),w.showLength&&w.collapsed&&(0,r.createVNode)("span",{class:"vjs-comment"},[(0,r.createTextVNode)(" // "),V.length,(0,r.createTextVNode)(" items ")])])])}}});function x(w,A){var _=Object.keys(w);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(w);A&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(w,E).enumerable})),_.push.apply(_,b)}return _}function k(w){for(var A=1;A<arguments.length;A++){var _=arguments[A]!=null?arguments[A]:{};A%2?x(Object(_),!0).forEach(function(b){o(w,b,_[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(_)):x(Object(_)).forEach(function(b){Object.defineProperty(w,b,Object.getOwnPropertyDescriptor(_,b))})}return w}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(w,A){var _=A.emit,b=A.slots,E=(0,r.ref)(),T=(0,r.computed)(function(){return v(w.data,w.rootPath)}),O=function(V){return T.value.reduce(function(ee,N){var B,G=N.level>=V,Q=(B=w.pathCollapsible)===null||B===void 0?void 0:B.call(w,N);return N.type!=="objectStart"&&N.type!=="arrayStart"||!G&&!Q?ee:k(k({},ee),{},o({},N.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(w.deep)}),F=(0,r.computed)(function(){for(var V=null,ee=[],N=T.value.length,B=0;B<N;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=w.selectedValue;return V&&w.selectableType==="multiple"&&Array.isArray(V)?V:[V]}),W=(0,r.computed)(function(){return!w.selectableType||w.selectOnClickNode||w.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(w.virtual){var ee,N=w.height/w.itemHeight,B=((ee=E.value)===null||ee===void 0?void 0:ee.scrollTop)||0,G=Math.floor(B/w.itemHeight),Q=G<0?0:G+N>V.length?V.length-N:G;Q<0&&(Q=0);var te=Q+N;I.translateY=Q*w.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,N,B=V.path,G=w.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,N=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,N)||s(ee,N)||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 N=k({},I.hiddenPaths);delete N[ee],I.hiddenPaths=N}},z=function(V,ee){w.collapsedOnClickBrackets&&Z(V,ee),_("bracketsClick",V)},X=function(V,ee){Z(V,ee),_("iconClick",V)},Y=function(V,ee){var N=R(w.data),B=w.rootPath;new Function("data","val","data".concat(ee.slice(B.length),"=val"))(N,V),_("update:data",N)};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 w.deep},function(V){V&&(I.hiddenPaths=O(V))}),function(){var V,ee,N=(V=w.renderNodeKey)!==null&&V!==void 0?V:b.renderNodeKey,B=(ee=w.renderNodeValue)!==null&&ee!==void 0?ee:b.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:w.showDoubleQuotes,showLength:w.showLength,checked:D.value.includes(Q.path),selectableType:w.selectableType,showLine:w.showLine,showLineNumber:w.showLineNumber,showSelectController:w.showSelectController,selectOnClickNode:w.selectOnClickNode,nodeSelectable:w.nodeSelectable,highlightSelectedNode:w.highlightSelectedNode,editable:w.editable,editableTrigger:w.editableTrigger,showIcon:w.showIcon,showKeyValueSpace:w.showKeyValueSpace,renderNodeKey:N,renderNodeValue:B,onNodeClick:K,onBracketsClick:z,onIconClick:X,onSelectedChange:U,onValueChange:Y,style:w.itemHeight&&w.itemHeight!==20?{lineHeight:"".concat(w.itemHeight,"px")}:{}},null)});return(0,r.createVNode)("div",{ref:E,class:{"vjs-tree":!0,"is-virtual":w.virtual},onScroll:w.virtual?H:void 0,style:w.showLineNumber?k({paddingLeft:"".concat(12*Number(T.value.length.toString().length),"px")},w.style):w.style},[w.virtual?(0,r.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(w.height,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(F.value.length*w.itemHeight,"px")}},[(0,r.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(I.translateY,"px)")}},[G])])]):G])}}})}(),d}()})})(Gd);var V_=Gd.exports;const Kd=un(V_),j_=$e({name:"ErrorItem",props:{error:{type:Object,required:!0}},components:{VueJsonPretty:Kd}}),G_={class:"notification is-danger is-light"},K_={key:0},Y_={key:1},X_={key:0,class:"message"},Z_={class:"message-body"};function Q_(e,t,n,i,p,u){var g,s;const d=ue("VueJsonPretty");return q(),oe(Se,null,[P("div",G_,[(g=e.error.response.data)!=null&&g.message?(q(),oe("p",K_,Ae(e.error.response.data.message),1)):(q(),oe("p",Y_,Ae(e.error),1))]),(s=e.error.response.data)!=null&&s.details?(q(),oe("article",X_,[P("div",Z_,[he(d,{data:e.error.response.data.details},null,8,["data"])])])):we("",!0)],64)}const hn=xe(j_,[["render",Q_]]),J_=$e({name:"LoadingItem"}),q_={class:"has-text-centered"},eC={class:"fa-3x"};function tC(e,t,n,i,p,u){const d=ue("font-awesome-icon");return q(),oe("div",q_,[P("div",eC,[he(d,{icon:"spinner",spin:""})])])}const fn=xe(J_,[["render",tC]]),nC=$e({name:"AlertsWrapper",components:{AlertsComponent:jd,FormComponent:U_,Loading:fn,ErrorMessage:hn},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=Al(),p=Fd(),u=B1(),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 nt(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}}}),iC={class:"box mb-6"},rC=P("hr",null,null,-1),oC={class:"columns"},sC={class:"column"},aC={class:"field is-grouped is-grouped-centered"},lC={class:"control"},cC={class:"icon is-small"},uC=P("span",null,"Search",-1),hC={key:0},fC=P("hr",null,null,-1);function dC(e,t,n,i,p,u){var r,l,c,a;const d=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("AlertsComponent");return q(),oe(Se,null,[P("div",iC,[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"]),rC,P("div",oC,[P("div",sC,[P("div",aC,[P("p",lC,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...f)=>e.search&&e.search(...f))},[P("span",cC,[he(g,{icon:"search"})]),uC])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",hC,[fC,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 pC=xe(nC,[["render",dC]]),gC=$e({name:"AlertsView",components:{Alerts:pC},setup(){ii("Alerts - Mihari")}});function mC(e,t,n,i,p,u){const d=ue("Alerts",!0);return q(),Me(d)}const vC=xe(gC,[["render",mC]]),yC=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:jd,Loading:fn},setup(e){const t=Te(1),n=Te(void 0),i=Al(),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 nt(async()=>{await p()}),Ye([e,t,n],async()=>{Vt(async()=>await p())}),{getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function bC(e,t,n,i,p,u){var s;const d=ue("Loading"),g=ue("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 Yd=xe(yC,[["render",bC]]),wC=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),$C={class:"tags are-medium"};function _C(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",$C,[he(d,{class:"tag",to:{name:"Alerts",query:{asn:e.autonomousSystem.asn}}},{default:dt(()=>[et(Ae(e.autonomousSystem.asn),1)]),_:1},8,["to"])])}const CC=xe(wC,[["render",_C]]),SC=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),AC={class:"tags are-medium"};function xC(e,t,n,i,p,u){return q(),oe("div",AC,[(q(!0),oe(Se,null,ct(e.cpes,d=>(q(),oe("span",{class:"tag",key:d.cpe},Ae(d.cpe),1))),128))])}const kC=xe(SC,[["render",xC]]);var Xd={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)})(Xd);var EC=Xd.exports;const RC=un(EC),LC=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:RC}}}),TC={class:"field is-grouped is-grouped-multiline"},MC={class:"tags has-addons are-medium"},OC={class:"tag is-dark"};function IC(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",TC,[(q(!0),oe(Se,null,ct(e.dnsRecords,(g,s)=>(q(),oe("div",{class:"control",key:s},[P("div",MC,[P("span",OC,Ae(g.resource),1),he(d,{class:"tag",to:{name:"Alerts",query:{dnsRecord:g.value}}},{default:dt(()=>[et(Ae(e.truncate(g.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const FC=xe(LC,[["render",IC]]),NC=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),PC={class:"tags are-medium"};function DC(e,t,n,i,p,u){return q(),oe("div",PC,[(q(!0),oe(Se,null,ct(e.ports,d=>(q(),oe("span",{class:"tag",key:d.port},Ae(d.port),1))),128))])}const BC=xe(NC,[["render",DC]]),WC=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),HC={class:"tags are-medium"};function UC(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",HC,[(q(!0),oe(Se,null,ct(e.reverseDnsNames,g=>(q(),Me(d,{class:"tag",key:g.name,to:{name:"Alerts",query:{reverseDnsName:g.name}}},{default:dt(()=>[et(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const zC=xe(WC,[["render",UC]]),VC=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),jC={class:"tags are-medium"};function GC(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",jC,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(d,{class:"tag is-info is-light",key:g,to:{name:"Alerts",query:{tag:g}}},{default:dt(()=>[et(Ae(g),1)]),_:2},1032,["to"]))),128))])}const KC=xe(VC,[["render",GC]]),YC=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),XC={class:"field is-grouped is-grouped-multiline"},ZC={class:"control"},QC={class:"tags has-addons are-medium"},JC=P("span",{class:"tag is-dark"},"Registrar",-1),qC={class:"tag is-light"},eS={class:"control"},tS={class:"tags has-addons are-medium"},nS=P("span",{class:"tag is-dark"},"Created on",-1),iS={class:"tag is-light"},rS={class:"control"},oS={class:"tags has-addons are-medium"},sS=P("span",{class:"tag is-dark"},"Updated on",-1),aS={class:"tag is-light"},lS={class:"control"},cS={class:"tags has-addons are-medium"},uS=P("span",{class:"tag is-dark"},"Exipres on",-1),hS={class:"tag is-light"};function fS(e,t,n,i,p,u){var d;return q(),oe("div",XC,[P("div",ZC,[P("div",QC,[JC,P("span",qC,Ae(((d=e.whoisRecord.registrar)==null?void 0:d.name)||"N/A"),1)])]),P("div",eS,[P("div",tS,[nS,P("span",iS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),P("div",rS,[P("div",oS,[sS,P("span",aS,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),P("div",lS,[P("div",cS,[uS,P("span",hS,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const dS=xe(YC,[["render",fS]]),pS=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}});const gS=["href"],mS=["src"];function vS(e,t,n,i,p,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[P("img",{src:e.link.favicon(),alt:"favicon"},null,8,mS),P("span",null,Ae(e.link.name),1)],8,gS)}const yS=xe(pS,[["render",vS],["__scopeId","data-v-66270500"]]);class Lt{constructor(){Le(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 bS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class wS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class $S extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class _S extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class CS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class SS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(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 AS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Zd extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class xS extends Zd{constructor(){super();Le(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class Qd extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class kS extends Qd{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class ES extends Qd{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class RS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class xl extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class LS extends xl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class TS extends xl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class MS extends xl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Jd={exports:{}};const OS={},IS=Object.freeze(Object.defineProperty({__proto__:null,default:OS},Symbol.toStringTag,{value:"Module"})),$u=Qf(IS);/**
769
+ `):" "+mu(u[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:ya};function Ms(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mr(null,e)}function vu(e){return Ms(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 Ms(e),i.data=Ts.call(e,e.transformResponse,i),i.headers=rn.from(i.headers),i},function(i){return Td(i)||(Ms(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 yu=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,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(yu(h),yu(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.0",Cl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const bu={};Cl.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 Ie(p(d," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!bu[d]&&(bu[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 M1(e,t,n){if(typeof e!="object")throw new Ie("options must be an object",Ie.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 Ie("option "+u+" must be "+s,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+u,Ie.ERR_BAD_OPTION)}}const ba={assertOptions:M1,validators:Cl},bn=ba.validators;class ko{constructor(t){this.defaults=t,this.interceptors={request:new du,response:new du}}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&&ba.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}:ba.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=[vu.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=vu.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 Ed(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){ko.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}))}}ko.prototype[t]=n(),ko.prototype[t+"Form"]=n(!0)});const lo=ko;class Sl{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 Mr(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 Sl(function(p){t=p}),cancel:t}}}const O1=Sl;function I1(e){return function(n){return e.apply(null,n)}}function F1(e){return ne.isObject(e)&&e.isAxiosError===!0}const wa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wa).forEach(([e,t])=>{wa[t]=e});const N1=wa;function Fd(e){const t=new lo(e),n=md(lo.prototype.request,t);return ne.extend(n,lo.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=lo;Je.CanceledError=Mr;Je.CancelToken=O1;Je.isCancel=Td;Je.VERSION=Id;Je.toFormData=ls;Je.AxiosError=Ie;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=I1;Je.isAxiosError=F1;Je.mergeConfig=Ai;Je.AxiosHeaders=rn;Je.formToJSON=e=>Ld(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Od.getAdapter;Je.HttpStatusCode=N1;Je.default=Je;const P1=Je,st=P1.create({headers:{Accept:"application/json"}}),ht={async getConfigs(){return(await st.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await st.get("/api/alerts",{params:e})).data},async getTags(){return(await st.get("/api/tags")).data.tags},async getRuleSet(){return(await st.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await st.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await st.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await st.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await st.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await st.get("/api/rules",{params:e})).data},async getRule(e){return(await st.get(`/api/rules/${e}`)).data},async runRule(e){await st.get(`/api/rules/${e}/run`)},async createRule(e){return(await st.post("/api/rules/",e)).data},async updateRule(e){return(await st.put("/api/rules/",e)).data},async deleteRule(e){await st.delete(`/api/rules/${e}`)},async deleteTag(e){await st.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await st.get(`/api/ip_addresses/${e}`)).data}};function Al(){return ut(async(e,t)=>await ht.getAlerts(t))}function D1(){return ut(async(e,t)=>await ht.deleteAlert(t))}function Nd(){return ut(async()=>await ht.getTags())}function B1(){return ut(async(e,t)=>await ht.deleteTag(t))}function W1(){return ut(async()=>await ht.getRuleSet())}function H1(){return ut(async(e,t)=>await ht.getArtifact(t))}function Pd(){return ut(async(e,t)=>await ht.deleteArtifact(t))}function U1(){return ut(async(e,t)=>await ht.enrichArtifact(t))}function z1(){return ut(async()=>await ht.getConfigs())}function V1(){return ut(async(e,t)=>await ht.getIPInfo(t))}function j1(){return ut(async(e,t)=>await ht.getRules(t))}function Dd(){return ut(async(e,t)=>await ht.getRule(t))}function G1(){return ut(async(e,t)=>await ht.deleteRule(t))}function K1(){return ut(async(e,t)=>await ht.runRule(t))}function Y1(){return ut(async(e,t)=>await ht.createRule(t))}function X1(){return ut(async(e,t)=>await ht.updateRule(t))}const Z1=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Te(!1),n=Te(!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}}}),Q1={key:0,class:"control"};function J1(e,t,n,i,p,u){const d=ue("router-link");return e.isDeleted?we("",!0):(q(),oe("div",Q1,[P("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:dt(()=>[et(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 q1=xe(Z1,[["render",J1]]),e$=$e({name:"ArtifactTags",components:{ArtifactComponent:q1},props:{artifacts:{type:Array,required:!0}}}),t$={class:"field is-grouped is-grouped-multiline"};function n$(e,t,n,i,p,u){const d=ue("ArtifactComponent");return q(),oe("div",t$,[(q(!0),oe(Se,null,ct(e.artifacts,g=>(q(),Me(d,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const i$=xe(e$,[["render",n$]]),r$=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Te(!1),i=Te(!1),p=B1();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}?`)&&(await p.perform(e.tag.name),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),o$={key:0,class:"control"};function s$(e,t,n,i,p,u){return e.isDeleted?we("",!0):(q(),oe("div",o$,[P("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))},[P("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 a$=xe(r$,[["render",s$]]),l$=$e({name:"TagsItem",components:{TagComponent:a$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),c$={class:"field is-grouped is-grouped-multiline"};function u$(e,t,n,i,p,u){const d=ue("TagComponent");return q(),oe("div",c$,[(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(l$,[["render",u$]]);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"],L=w%100;return"["+w+(E[(L-20)%10]||E[L]||E[0])+"]"}},x=function(w,E,L){var O=String(w);return!O||O.length>=E?w:""+Array(E+1-O.length).join(L)+w},C={s:x,z:function(w){var E=-w.utcOffset(),L=Math.abs(E),O=Math.floor(L/60),I=L%60;return(E<=0?"+":"-")+x(O,2,"0")+":"+x(I,2,"0")},m:function w(E,L){if(E.date()<L.date())return-w(L,E);var O=12*(L.year()-E.year())+(L.month()-E.month()),I=E.clone().add(O,r),F=L-I<0,D=E.clone().add(O+(F?-1:1),r);return+(-(O+(L-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 T="$isDayjsObject",R=function(w){return w instanceof A||!(!w||!w[T])},k=function w(E,L,O){var I;if(!E)return S;if(typeof E=="string"){var F=E.toLowerCase();$[F]&&(I=F),L&&($[F]=L,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 L=typeof E=="object"?E:{};return L.date=w,L.args=arguments,new A(L)},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(L){this.$L=k(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[T]=!0}var E=w.prototype;return E.parse=function(L){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)}(L),this.init()},E.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},E.$utils=function(){return y},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(L,O){var I=M(L);return this.startOf(O)<=I&&I<=this.endOf(O)},E.isAfter=function(L,O){return M(L)<this.startOf(O)},E.isBefore=function(L,O){return this.endOf(O)<M(L)},E.$g=function(L,O,I){return y.u(L)?this[O]:this.set(I,L)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(L,O){var I=this,F=!!y.u(O)||O,D=y.p(L),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(L){return this.startOf(L,!1)},E.$set=function(L,O){var I,F=y.p(L),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(L,O){return this.clone().$set(L,O)},E.get=function(L){return this[y.p(L)]()},E.add=function(L,O){var I,F=this;L=Number(L);var D=y.p(O),W=function(U){var K=M(F);return y.w(K.date(K.date()+Math.round(U*L)),F)};if(D===r)return this.set(r,this.$M+L);if(D===c)return this.set(c,this.$y+L);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()+L*j;return y.w(H,this)},E.subtract=function(L,O){return this.add(-1*L,O)},E.format=function(L){var O=this,I=this.$locale();if(!this.isValid())return I.invalidDate||f;var F=L||"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,N,B){return V&&(V[ee]||V(O,F))||N[ee].slice(0,B)},X=function(V){return y.s(W%12||12,V,"0")},Y=Z||function(V,ee,N){var B=V<12?"AM":"PM";return N?B.toLowerCase():B};return F.replace(v,function(V,ee){return ee||function(N){switch(N){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(L,O,I){var F,D=this,W=y.p(O),j=M(L),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(L,O){if(!L)return this.$L;var I=this.clone(),F=k(L,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 h$=Wd.exports;const Pi=un(h$);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 T=v[S.l];c&&($=c(""+$)),f=typeof T=="string"?T.replace("%d",$):T($,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 f$=Hd.exports;const d$=un(f$);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,T=f[0]+"-"+f[1]+"-"+f[2]+" "+$+":"+f[4]+":"+f[5]+":000",R=+l;return(d.utc(T).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($,T,R){var k=$-60*T*1e3,M=h(k,R);if(T===M)return[k,T];var y=h(k-=60*(M-T)*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 p$=Ud.exports;const g$=un(p$);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 T=(""+$[0]).match(p)||["-",0,0],R=T[0],k=60*+T[1]+ +T[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 m$=zd.exports;const v$=un(m$),y$=[{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 b$(e){return y$.find(n=>n.code===e)}Pi.extend(d$);Pi.extend(g$);Pi.extend(v$);function w$(e){return Pi(e).local().format("YYYY-MM-DD HH:mm:ss")}function $$(e){return Pi(e).local().fromNow()}function Vd(e){const t=b$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function _$(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 Ki(e){if(e!=null)return typeof e=="string"?e:e.toString()}const C$=$e({name:"AlertItem",components:{Artifacts:i$,Tags:Bd},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=D1();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:w$,getHumanizedRelativeTime:$$}}}),S$={class:"box"},A$={class:"table is-fullwidth is-completely-borderless"},x$=P("th",null,"ID",-1),k$=P("span",null,"Delete",-1),E$={class:"icon is-small"},R$=P("th",null,"Rule",-1),L$=P("th",null,"Artifacts",-1),T$={key:0},M$=P("th",null,"Tags",-1),O$={class:"help"};function I$(e,t,n,i,p,u){const d=ue("font-awesome-icon"),g=ue("router-link"),s=ue("Artifacts"),h=ue("Tags");return q(),oe("div",S$,[P("table",A$,[P("tr",null,[x$,P("td",null,[et(Ae(e.alert.id)+" ",1),P("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[k$,P("span",E$,[he(d,{icon:"times"})])])])]),P("tr",null,[R$,P("td",null,[he(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:dt(()=>[et(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[L$,P("td",null,[he(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",T$,[M$,P("td",null,[he(h,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),P("p",O$,"Created at: "+Ae(e.alert.createdAt),1)])}const F$=xe(C$,[["render",I$]]),Os=new WeakMap;function wu(e,t,n={}){const{mode:i="replace",route:p=ns(),router:u=Ii(),transform:d=o=>o}=n;Os.has(p)||Os.set(p,new Map);const g=Os.get(p);Zf(()=>{g.delete(e)}),g.set(e,p.query[e]);let s;const h=Xa((o,r)=>(s=r,{get(){o();const l=g.get(e);return d(l!==void 0?l:Ao(t))},set(l){g.get(e)!==l&&(g.set(e,l),r(),Vt(()=>{const{params:c,query:a,hash:f}=p;u[Ao(i)]({params:c,query:{...a,...Object.fromEntries(g.entries())},hash:f})}))}}));return Ye(()=>p.query[e],o=>{g.set(e,o),s()},{flush:"sync"}),h}const N$=$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=ns(),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=wu("page",l.toString(),p);c.value=l.toString(),t.emit("update-page",l)};return nt(()=>{const l=wu("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}}}),P$={key:0,class:"message is-warning"},D$=P("div",{class:"message-body"},"There is no result to show.",-1),B$=[D$],W$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},H$={key:0,class:"pagination-list"},U$={key:1,class:"pagination-list"},z$={key:0},V$={key:1},j$=P("span",{class:"pagination-ellipsis"},"…",-1),G$=[j$],K$={key:2},Y$={key:3},X$={key:4},Z$=P("span",{class:"pagination-ellipsis"},"…",-1),Q$=[Z$],J$={key:5};function q$(e,t,n,i,p,u){return e.total===0?(q(),oe("article",P$,B$)):(q(),oe("nav",W$,[e.hasOnlyOnePage?(q(),oe("ul",H$,[P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=d=>e.updatePage(1))},"1")])])):(q(),oe("ul",U$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",z$,[P("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",V$,G$)):we("",!0),e.hasPreviousPage?(q(),oe("li",K$,[P("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=d=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),P("li",null,[P("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",Y$,[P("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",X$,Q$)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",J$,[P("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=d=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const jd=xe(N$,[["render",q$]]),e_=$e({name:"AlertsItem",components:{Alert:F$,Pagination:jd},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")}}}}),t_={class:"help"};function n_(e,t,n,i,p,u){const d=ue("Alert"),g=ue("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"]),P("p",t_,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const Gd=xe(e_,[["render",n_]]),i_=$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=ns(),n=Te(void 0),i=Te(void 0),p=Qn(e,"tag"),u=Te(void 0),d=Te(void 0),g=Te(void 0),s=Te(void 0),h=Te(void 0),o=()=>{const l=t.query.asn,c=Ki(l);g.value=c===void 0?void 0:parseInt(c);const a=t.query.dnsRecord;s.value=Ki(a);const f=t.query.reverseDnsName;h.value=Ki(f);const m=t.query.tag;p.value===void 0&&(p.value=Ki(m))},r=()=>(o(),{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:r,ruleId:u,toAt:d,tagInput:p}}}),r_={class:"columns"},o_={class:"column"},s_={class:"field is-horizontal"},a_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Rule")],-1),l_={class:"field-body"},c_={class:"field"},u_={class:"control"},h_={class:"select"},f_=P("option",null,null,-1),d_={class:"column"},p_={class:"field is-horizontal"},g_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Artifact")],-1),m_={class:"field-body"},v_={class:"field"},y_={class:"control"},b_={class:"columns"},w_={class:"column"},$_={class:"field is-horizontal"},__=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),C_={class:"field-body"},S_={class:"field"},A_={class:"control"},x_={class:"select"},k_=P("option",null,null,-1),E_=P("div",{class:"column"},null,-1),R_={class:"columns"},L_={class:"column"},T_={class:"field is-horizontal"},M_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),O_={class:"field-body"},I_={class:"field"},F_={class:"control"},N_={class:"column"},P_={class:"field is-horizontal"},D_=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),B_={class:"field-body"},W_={class:"field"},H_={class:"control"};function U_(e,t,n,i,p,u){return q(),oe(Se,null,[P("div",r_,[P("div",o_,[P("div",s_,[a_,P("div",l_,[P("div",c_,[P("div",u_,[P("div",h_,[Mt(P("select",{"onUpdate:modelValue":t[0]||(t[0]=d=>e.ruleId=d)},[f_,(q(!0),oe(Se,null,ct(e.ruleSet,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[yr,e.ruleId]])])])])])])]),P("div",d_,[P("div",p_,[g_,P("div",m_,[P("div",v_,[P("p",y_,[Mt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.artifact=d)},null,512),[[Ft,e.artifact]])])])])])])]),P("div",b_,[P("div",w_,[P("div",$_,[__,P("div",C_,[P("div",S_,[P("div",A_,[P("div",x_,[Mt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[k_,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[yr,e.tagInput]])])])])])])]),E_]),P("div",R_,[P("div",L_,[P("div",T_,[M_,P("div",O_,[P("div",I_,[P("p",F_,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),P("div",N_,[P("div",P_,[D_,P("div",B_,[P("div",W_,[P("p",H_,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const z_=xe(i_,[["render",U_]]);var Kd={exports:{}};const V_=Jf($0);(function(e,t){(function(n,i){e.exports=i(V_)})(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||{},L=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:L,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:L,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:L,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(L){return x(L,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}},T=(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)}),L=(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,N=(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",N,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(N){var B;N.target!==Y.target&&((B=N.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,N){return(0,r.createVNode)("div",{key:N,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:L.value||""}):L.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)(),L=(0,r.computed)(function(){return v(y.data,y.rootPath)}),O=function(V){return L.value.reduce(function(ee,N){var B,G=N.level>=V,Q=(B=y.pathCollapsible)===null||B===void 0?void 0:B.call(y,N);return N.type!=="objectStart"&&N.type!=="arrayStart"||!G&&!Q?ee:k(k({},ee),{},o({},N.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(y.deep)}),F=(0,r.computed)(function(){for(var V=null,ee=[],N=L.value.length,B=0;B<N;B++){var G=k(k({},L.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,N=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+N>V.length?V.length-N:G;Q<0&&(Q=0);var te=Q+N;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,N,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,N=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,N)||s(ee,N)||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 N=k({},I.hiddenPaths);delete N[ee],I.hiddenPaths=N}},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 N=x(y.data),B=y.rootPath;new Function("data","val","data".concat(ee.slice(B.length),"=val"))(N,V),_("update:data",N)};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,N=(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)(T,{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:N,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(L.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}()})})(Kd);var j_=Kd.exports;const Yd=un(j_),G_=$e({name:"ErrorItem",props:{error:{type:Object,required:!0}},components:{VueJsonPretty:Yd}}),K_={class:"notification is-danger is-light"},Y_={key:0},X_={key:1},Z_={key:0,class:"message"},Q_={class:"message-body"};function J_(e,t,n,i,p,u){var g,s;const d=ue("VueJsonPretty");return q(),oe(Se,null,[P("div",K_,[(g=e.error.response.data)!=null&&g.message?(q(),oe("p",Y_,Ae(e.error.response.data.message),1)):(q(),oe("p",X_,Ae(e.error),1))]),(s=e.error.response.data)!=null&&s.details?(q(),oe("article",Z_,[P("div",Q_,[he(d,{data:e.error.response.data.details},null,8,["data"])])])):we("",!0)],64)}const hn=xe(G_,[["render",J_]]),q_=$e({name:"LoadingItem"}),eC={class:"has-text-centered"},tC={class:"fa-3x"};function nC(e,t,n,i,p,u){const d=ue("font-awesome-icon");return q(),oe("div",eC,[P("div",tC,[he(d,{icon:"spinner",spin:""})])])}const fn=xe(q_,[["render",nC]]),iC=$e({name:"AlertsWrapper",components:{AlertsComponent:Gd,FormComponent:z_,Loading:fn,ErrorMessage:hn},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=Al(),p=Nd(),u=W1(),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 nt(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}}}),rC={class:"box mb-6"},oC=P("hr",null,null,-1),sC={class:"columns"},aC={class:"column"},lC={class:"field is-grouped is-grouped-centered"},cC={class:"control"},uC={class:"icon is-small"},hC=P("span",null,"Search",-1),fC={key:0},dC=P("hr",null,null,-1);function pC(e,t,n,i,p,u){var r,l,c,a;const d=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("AlertsComponent");return q(),oe(Se,null,[P("div",rC,[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"]),oC,P("div",sC,[P("div",aC,[P("div",lC,[P("p",cC,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...f)=>e.search&&e.search(...f))},[P("span",uC,[he(g,{icon:"search"})]),hC])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",fC,[dC,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 gC=xe(iC,[["render",pC]]),mC=$e({name:"AlertsView",components:{Alerts:gC},setup(){ii("Alerts - Mihari")}});function vC(e,t,n,i,p,u){const d=ue("Alerts",!0);return q(),Me(d)}const yC=xe(mC,[["render",vC]]),bC=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:Gd,Loading:fn},setup(e){const t=Te(1),n=Te(void 0),i=Al(),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 nt(async()=>{await p()}),Ye([e,t,n],async()=>{Vt(async()=>await p())}),{getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function wC(e,t,n,i,p,u){var s;const d=ue("Loading"),g=ue("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 Xd=xe(bC,[["render",wC]]),$C=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),_C={class:"tags are-medium"};function CC(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",_C,[he(d,{class:"tag",to:{name:"Alerts",query:{asn:e.autonomousSystem.asn}}},{default:dt(()=>[et(Ae(e.autonomousSystem.asn),1)]),_:1},8,["to"])])}const SC=xe($C,[["render",CC]]),AC=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),xC={class:"tags are-medium"};function kC(e,t,n,i,p,u){return q(),oe("div",xC,[(q(!0),oe(Se,null,ct(e.cpes,d=>(q(),oe("span",{class:"tag",key:d.cpe},Ae(d.cpe),1))),128))])}const EC=xe(AC,[["render",kC]]);var Zd={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)})(Zd);var RC=Zd.exports;const LC=un(RC),TC=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:LC}}}),MC={class:"field is-grouped is-grouped-multiline"},OC={class:"tags has-addons are-medium"},IC={class:"tag is-dark"};function FC(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",MC,[(q(!0),oe(Se,null,ct(e.dnsRecords,(g,s)=>(q(),oe("div",{class:"control",key:s},[P("div",OC,[P("span",IC,Ae(g.resource),1),he(d,{class:"tag",to:{name:"Alerts",query:{dnsRecord:g.value}}},{default:dt(()=>[et(Ae(e.truncate(g.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const NC=xe(TC,[["render",FC]]),PC=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),DC={class:"tags are-medium"};function BC(e,t,n,i,p,u){return q(),oe("div",DC,[(q(!0),oe(Se,null,ct(e.ports,d=>(q(),oe("span",{class:"tag",key:d.port},Ae(d.port),1))),128))])}const WC=xe(PC,[["render",BC]]),HC=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),UC={class:"tags are-medium"};function zC(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",UC,[(q(!0),oe(Se,null,ct(e.reverseDnsNames,g=>(q(),Me(d,{class:"tag",key:g.name,to:{name:"Alerts",query:{reverseDnsName:g.name}}},{default:dt(()=>[et(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const VC=xe(HC,[["render",zC]]),jC=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),GC={class:"tags are-medium"};function KC(e,t,n,i,p,u){const d=ue("router-link");return q(),oe("div",GC,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(d,{class:"tag is-info is-light",key:g,to:{name:"Alerts",query:{tag:g}}},{default:dt(()=>[et(Ae(g),1)]),_:2},1032,["to"]))),128))])}const YC=xe(jC,[["render",KC]]),XC=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),ZC={class:"field is-grouped is-grouped-multiline"},QC={class:"control"},JC={class:"tags has-addons are-medium"},qC=P("span",{class:"tag is-dark"},"Registrar",-1),eS={class:"tag is-light"},tS={class:"control"},nS={class:"tags has-addons are-medium"},iS=P("span",{class:"tag is-dark"},"Created on",-1),rS={class:"tag is-light"},oS={class:"control"},sS={class:"tags has-addons are-medium"},aS=P("span",{class:"tag is-dark"},"Updated on",-1),lS={class:"tag is-light"},cS={class:"control"},uS={class:"tags has-addons are-medium"},hS=P("span",{class:"tag is-dark"},"Exipres on",-1),fS={class:"tag is-light"};function dS(e,t,n,i,p,u){var d;return q(),oe("div",ZC,[P("div",QC,[P("div",JC,[qC,P("span",eS,Ae(((d=e.whoisRecord.registrar)==null?void 0:d.name)||"N/A"),1)])]),P("div",tS,[P("div",nS,[iS,P("span",rS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),P("div",oS,[P("div",sS,[aS,P("span",lS,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),P("div",cS,[P("div",uS,[hS,P("span",fS,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const pS=xe(XC,[["render",dS]]),gS=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}});const mS=["href"],vS=["src"];function yS(e,t,n,i,p,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[P("img",{src:e.link.favicon(),alt:"favicon"},null,8,vS),P("span",null,Ae(e.link.name),1)],8,mS)}const bS=xe(gS,[["render",yS],["__scopeId","data-v-66270500"]]);class Lt{constructor(){Le(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 wS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class $S extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class _S extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class CS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class SS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class AS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(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 xS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Qd extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class kS extends Qd{constructor(){super();Le(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class Jd extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class ES extends Jd{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class RS extends Jd{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class LS extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class xl extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class TS extends xl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class MS extends xl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class OS extends xl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var qd={exports:{}};const IS={},FS=Object.freeze(Object.defineProperty({__proto__:null,default:IS},Symbol.toStringTag,{value:"Module"})),$u=Jf(FS);/**
772
772
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
773
773
  *
774
774
  * @version 0.10.1
775
775
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
776
776
  * @copyright Chen, Yi-Cyuan 2014-2023
777
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(x){return new R(L,!0).update(x)[$]()}},f=function($){var L=a("hex",$);u&&(L=m(L,$)),L.create=function(){return new R($)},L.update=function(M){return L.create().update(M)};for(var x=0;x<l.length;++x){var k=l[x];L[k]=a(k,$)}return L},m=function($,L){var x=$u,k=$u.Buffer,M=L?"sha224":"sha256",w;k.from&&!i.JS_SHA256_NO_BUFFER_FROM?w=k.from:w=function(_){return new k(_)};var A=function(_){if(typeof _=="string")return x.createHash(M).update(_,"utf8").digest("hex");if(_==null)throw new Error(t);return _.constructor===ArrayBuffer&&(_=new Uint8Array(_)),Array.isArray(_)||ArrayBuffer.isView(_)||_.constructor===k?x.createHash(M).update(w(_)).digest("hex"):$(_)};return A},v=function($,L){return function(x,k){return new C(x,L,!0).update(k)[$]()}},y=function($){var L=v("hex",$);L.create=function(M){return new C(M,$)},L.update=function(M,w){return L.create(M).update(w)};for(var x=0;x<l.length;++x){var k=l[x];L[k]=v(k,$)}return L};function R($,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=$}R.prototype.update=function($){if(!this.finalized){var L,x=typeof $;if(x!=="string"){if(x==="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,w,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(w=this.start;M<A&&w<64;++M)_[w>>2]|=$[M]<<o[w++&3];else for(w=this.start;M<A&&w<64;++M)k=$.charCodeAt(M),k<128?_[w>>2]|=k<<o[w++&3]:k<2048?(_[w>>2]|=(192|k>>6)<<o[w++&3],_[w>>2]|=(128|k&63)<<o[w++&3]):k<55296||k>=57344?(_[w>>2]|=(224|k>>12)<<o[w++&3],_[w>>2]|=(128|k>>6&63)<<o[w++&3],_[w>>2]|=(128|k&63)<<o[w++&3]):(k=65536+((k&1023)<<10|$.charCodeAt(++M)&1023),_[w>>2]|=(240|k>>18)<<o[w++&3],_[w>>2]|=(128|k>>12&63)<<o[w++&3],_[w>>2]|=(128|k>>6&63)<<o[w++&3],_[w>>2]|=(128|k&63)<<o[w++&3]);this.lastByteIndex=w,this.bytes+=w-this.start,w>=64?(this.block=_[16],this.start=w-64,this.hash(),this.hashed=!0):this.start=w}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},R.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()}},R.prototype.hash=function(){var $=this.h0,L=this.h1,x=this.h2,k=this.h3,M=this.h4,w=this.h5,A=this.h6,_=this.h7,b=this.blocks,E,T,O,I,F,D,W,j,H,U,K;for(E=16;E<64;++E)F=b[E-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=b[E-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,b[E]=b[E-16]+T+b[E-7]+O<<0;for(K=L&x,E=0;E<64;E+=4)this.first?(this.is224?(j=300032,F=b[0]-1413257819,_=F-150054599<<0,k=F+24177077<<0):(j=704751109,F=b[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^$&x^K,W=M&w^~M&A,F=_+O+W+r[E]+b[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^~_&w,F=A+O+W+r[E+1]+b[E+1],D=T+I,A=x+F<<0,x=F+D<<0,T=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),U=x&k,I=U^x&$^H,W=A&_^~A&M,F=w+O+W+r[E+2]+b[E+2],D=T+I,w=L+F<<0,L=F+D<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7),K=L&x,I=K^L&k^U,W=w&A^~w&_,F=M+O+W+r[E+3]+b[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+x<<0,this.h3=this.h3+k<<0,this.h4=this.h4+M<<0,this.h5=this.h5+w<<0,this.h6=this.h6+A<<0,this.h7=this.h7+_<<0},R.prototype.hex=function(){this.finalize();var $=this.h0,L=this.h1,x=this.h2,k=this.h3,M=this.h4,w=this.h5,A=this.h6,_=this.h7,b=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[x>>28&15]+s[x>>24&15]+s[x>>20&15]+s[x>>16&15]+s[x>>12&15]+s[x>>8&15]+s[x>>4&15]+s[x&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[w>>28&15]+s[w>>24&15]+s[w>>20&15]+s[w>>16&15]+s[w>>12&15]+s[w>>8&15]+s[w>>4&15]+s[w&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||(b+=s[_>>28&15]+s[_>>24&15]+s[_>>20&15]+s[_>>16&15]+s[_>>12&15]+s[_>>8&15]+s[_>>4&15]+s[_&15]),b},R.prototype.toString=R.prototype.hex,R.prototype.digest=function(){this.finalize();var $=this.h0,L=this.h1,x=this.h2,k=this.h3,M=this.h4,w=this.h5,A=this.h6,_=this.h7,b=[$>>24&255,$>>16&255,$>>8&255,$&255,L>>24&255,L>>16&255,L>>8&255,L&255,x>>24&255,x>>16&255,x>>8&255,x&255,k>>24&255,k>>16&255,k>>8&255,k&255,M>>24&255,M>>16&255,M>>8&255,M&255,w>>24&255,w>>16&255,w>>8&255,w&255,A>>24&255,A>>16&255,A>>8&255,A&255];return this.is224||b.push(_>>24&255,_>>16&255,_>>8&255,_&255),b},R.prototype.array=R.prototype.digest,R.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,x){var k,M=typeof $;if(M==="string"){var w=[],A=$.length,_=0,b;for(k=0;k<A;++k)b=$.charCodeAt(k),b<128?w[_++]=b:b<2048?(w[_++]=192|b>>6,w[_++]=128|b&63):b<55296||b>=57344?(w[_++]=224|b>>12,w[_++]=128|b>>6&63,w[_++]=128|b&63):(b=65536+((b&1023)<<10|$.charCodeAt(++k)&1023),w[_++]=240|b>>18,w[_++]=128|b>>12&63,w[_++]=128|b>>6&63,w[_++]=128|b&63);$=w}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 R(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}R.call(this,L,x),this.update(T),this.oKeyPad=E,this.inner=!0,this.sharedMemory=x}C.prototype=new R,C.prototype.finalize=function(){if(R.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();R.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),R.prototype.finalize.call(this)}};var S=f();S.sha256=S,S.sha224=f(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),d?e.exports=S:(i.sha256=S.sha256,i.sha224=S.sha224)})()})(Jd);var FS=Jd.exports,NS=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},kl={},PS=Object.prototype.hasOwnProperty,DS;function _u(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Cu(e){try{return encodeURIComponent(e)}catch{return null}}function BS(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 WS(e,t){t=t||"";var n=[],i,p;typeof t!="string"&&(t="?");for(p in e)if(PS.call(e,p)){if(i=e[p],!i&&(i===null||i===DS||isNaN(i))&&(i=""),p=Cu(p),i=Cu(i),p===null||i===null)continue;n.push(p+"="+i)}return n.length?t+n.join("&"):""}kl.stringify=WS;kl.parse=BS;var qd=NS,cs=kl,HS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,ep=/[\n\r\t]/g,US=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,tp=/:\d+$/,zS=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,VS=/^[a-zA-Z]:/;function El(e){return(e||"").toString().replace(HS,"")}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]],Su={hash:1,query:1};function np(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 Su)delete i[u]}else if(p==="object"){for(u in e)u in Su||(i[u]=e[u]);i.slashes===void 0&&(i.slashes=US.test(e.href))}return i}function zt(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function ip(e,t){e=El(e),e=e.replace(ep,""),t=t||{};var n=zS.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 jS(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=El(e),e=e.replace(ep,""),!(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=np(t),p=ip(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||VS.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=jS(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&zt(r.protocol)&&(r.pathname="/"+r.pathname),qd(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 GS(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,qd(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,tp.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 KS(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]===":"||tp.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:GS,toString:KS};Gt.extractProtocol=ip;Gt.location=np;Gt.trimLeft=El;Gt.qs=cs;var YS=Gt;const XS=un(YS);class us extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class ZS extends us{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class QS extends us{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class JS extends us{constructor(){super(),this.type="url"}href(t){const n=FS.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new XS(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class qS extends us{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const eA=[new bS,new wS,new $S,new CS,new _S,new SS,new AS,new xS,new Zd,new kS,new ES,new RS,new LS,new TS,new MS,new ZS,new qS,new QS,new JS],tA=$e({name:"LinksItem",components:{LinkComponent:yS},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=eA;return{selectedLinks:Ee(()=>e.type===void 0?t:t.filter(i=>i.type===e.type))}}}),nA={class:"tags are-medium"};function iA(e,t,n,i,p,u){const d=ue("LinkComponent");return q(),oe("div",nA,[(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 rA=xe(tA,[["render",iA]]),oA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Yd,AS:CC,DnsRecords:FC,Links:rA,Loading:fn,ReverseDnsNames:zC,Tags:KC,VueJsonPretty:Kd,WhoisRecord:dS,CPEs:kC,Ports:BC},emits:["refresh"],setup(e,t){const n=Te(void 0),i=Te(void 0),p=Te(!1),u=Oi(),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=z1(),h=Al(),o=Nd(),r=H1(),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 nt(async()=>{if(e.artifact.dataType==="ip"){let f;if(e.artifact.geolocation===null){const m=await s.perform(e.artifact.data);f=$$(m),i.value=m.countryCode}else f=zd(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=>(Qa("data-v-1a7db503"),e=e(),Ja(),e),sA={class:"column"},aA={key:0},lA=Ze(()=>P("hr",null,null,-1)),cA=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),uA={class:"columns"},hA={key:0,class:"column is-half"},fA={key:0},dA={class:"is-size-4 mb-2"},pA={class:"has-text-grey"},gA=["src"],mA={key:1},vA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},[et(" Live screenshot "),P("span",{class:"has-text-grey"},"Hover to expand")],-1)),yA=["src"],bA={class:"column"},wA={class:"block"},$A=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Information",-1)),_A={class:"table is-fullwidth is-completely-borderless"},CA=Ze(()=>P("th",null,"ID",-1)),SA={class:"buttons is-pulled-right"},AA=Ze(()=>P("span",null,"Enrich",-1)),xA={class:"icon is-small"},kA=Ze(()=>P("span",null,"Metadata",-1)),EA={class:"icon is-small"},RA=Ze(()=>P("span",null,"Delete",-1)),LA={class:"icon is-small"},TA=Ze(()=>P("th",null,"Data type",-1)),MA=Ze(()=>P("th",null,"Data",-1)),OA=Ze(()=>P("th",null,"Source",-1)),IA={key:0},FA=Ze(()=>P("th",null,"Tags",-1)),NA={key:0},PA={class:"modal is-active"},DA={class:"modal-card"},BA={class:"modal-card-head"},WA=Ze(()=>P("p",{class:"modal-card-title"},"Metadata",-1)),HA={class:"modal-card-body"},UA={key:1,class:"block"},zA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"AS",-1)),VA={key:2,class:"block"},jA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),GA={key:3,class:"block"},KA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),YA={key:4,class:"block"},XA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),ZA={key:5,class:"block"},QA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Ports",-1)),JA={key:6,class:"block"},qA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),e2={class:"block"},t2=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Links",-1)),n2=Ze(()=>P("hr",null,null,-1)),i2={class:"column"},r2=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function o2(e,t,n,i,p,u){var y;const d=ue("Loading"),g=ue("font-awesome-icon"),s=ue("Tags"),h=ue("VueJsonPretty"),o=ue("AS"),r=ue("ReverseDnsNames"),l=ue("DnsRecords"),c=ue("CPEs"),a=ue("Ports"),f=ue("WhoisRecord"),m=ue("Links"),v=ue("Alerts");return q(),oe(Se,null,[P("div",sA,[e.enrichArtifactTask.isRunning?(q(),oe("div",aA,[he(d),lA])):we("",!0),cA,P("div",uA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",hA,[e.googleMapSrc?(q(),oe("div",fA,[P("h4",dA,[et(" Geolocation "),P("span",pA,Ae(e.countryCode||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),P("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,gA)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",mA,[vA,P("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,yA)])):we("",!0)])):we("",!0),P("div",bA,[P("div",wA,[$A,P("table",_A,[P("tr",null,[CA,P("td",null,[et(Ae(e.artifact.id)+" ",1),P("span",SA,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...R)=>e.enrichArtifact&&e.enrichArtifact(...R))},[AA,P("span",xA,[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]=(...R)=>e.flipShowMetadata&&e.flipShowMetadata(...R))},[kA,P("span",EA,[he(g,{icon:"info-circle"})])])):we("",!0),P("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...R)=>e.deleteArtifact&&e.deleteArtifact(...R))},[RA,P("span",LA,[he(g,{icon:"times"})])])])])]),P("tr",null,[TA,P("td",null,Ae(e.artifact.dataType),1)]),P("tr",null,[MA,P("td",null,Ae(e.artifact.data),1)]),P("tr",null,[OA,P("td",null,Ae(e.artifact.source),1)]),e.artifact.tags.length>0?(q(),oe("tr",IA,[FA,P("td",null,[he(s,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",NA,[P("div",PA,[P("div",{class:"modal-background",onClick:t[3]||(t[3]=(...R)=>e.flipShowMetadata&&e.flipShowMetadata(...R))}),P("div",DA,[P("header",BA,[WA,P("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...R)=>e.flipShowMetadata&&e.flipShowMetadata(...R))})]),P("section",HA,[he(h,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",UA,[zA,he(o,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",VA,[jA,he(r,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",GA,[KA,he(l,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",YA,[XA,he(c,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",ZA,[QA,he(a,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",JA,[qA,he(f,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),P("div",e2,[t2,he(m,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),n2,P("div",i2,[r2,he(v,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const s2=xe(oA,[["render",o2],["__scopeId","data-v-1a7db503"]]),a2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:s2,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=W1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function l2(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 c2=xe(a2,[["render",l2]]),u2=$e({name:"ArtifactView",components:{Artifact:c2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Artifact:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function h2(e,t,n,i,p,u){const d=ue("Artifact",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const f2=xe(u2,[["render",h2]]),d2=$e({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),p2={class:"box"},g2={class:"table-container"},m2={class:"table is-fullwidth"},v2=P("thead",null,[P("tr",null,[P("th",null,"Name"),P("th",null,"Type"),P("th",null,"Configured"),P("th",null,"Key-value(s)")])],-1),y2={key:0,class:"button is-success is-small ml-1"},b2={class:"icon is-small"},w2=P("span",null,"Yes",-1),$2={key:1,class:"button is-warning is-small ml-1"},_2={class:"icon is-small"},C2=P("span",null,"No",-1),S2={key:0},A2={key:1};function x2(e,t,n,i,p,u){const d=ue("font-awesome-icon");return q(),oe("div",p2,[P("div",g2,[P("table",m2,[v2,P("tbody",null,[(q(!0),oe(Se,null,ct(e.configs,g=>(q(),oe("tr",{key:g.name},[P("td",null,Ae(g.name),1),P("td",null,Ae(g.type),1),P("td",null,[g.isConfigured?(q(),oe("button",y2,[P("span",b2,[he(d,{icon:"check"})]),w2])):(q(),oe("button",$2,[P("span",_2,[he(d,{icon:"exclamation"})]),C2]))]),P("td",null,[P("ul",null,[(q(!0),oe(Se,null,ct(g.values,(s,h)=>(q(),oe("li",{key:h},[P("strong",null,Ae(s.key),1),et(": "),s.value?(q(),oe("code",S2,Ae(s.value),1)):(q(),oe("span",A2,"N/A"))]))),128))])])]))),128))])])])])}const k2=xe(d2,[["render",x2]]),E2=$e({name:"ConfigsWrapper",components:{Configs:k2,Loading:fn,ErrorMessage:hn},setup(){const e=U1();return nt(async()=>{await e.perform()}),{getConfigsTask:e}}});function R2(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 L2=xe(E2,[["render",R2]]),T2=$e({name:"ConfigView",components:{Configs:L2},setup(){ii("Config - Mihari")}});function M2(e,t,n,i,p,u){const d=ue("Configs",!0);return q(),Me(d)}const O2=xe(T2,[["render",M2]]);var rp={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,y){return u(r,v,y)},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=[],y=0;y<c.length;y++){var R=l(c[y],a,f);R&&v.push(R)}return v}var C=document.createElement(c[0]),S=c[1],$=1;S&&typeof S=="object"&&!Array.isArray(S)&&($=2);for(var y=$;y<c.length;y++)l(c[y],C,f);return $==2&&Object.keys(S).forEach(function(L){var x=S[L];L==="class"?C.className=Array.isArray(x)?x.join(" "):x:typeof x=="function"||L=="value"||L[0]=="$"?C[L]=x:L==="ref"?f&&(f[x]=C):L==="style"?typeof x=="string"&&(C.style.cssText=x):x!=null&&C.setAttribute(L,x)}),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 y=c.offsetWidth;return v===y&&(y=a.clientWidth),m.removeChild(a),v-y},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){/*
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($,T){return function(R){return new x(T,!0).update(R)[$]()}},f=function($){var T=a("hex",$);u&&(T=m(T,$)),T.create=function(){return new x($)},T.update=function(M){return T.create().update(M)};for(var R=0;R<l.length;++R){var k=l[R];T[k]=a(k,$)}return T},m=function($,T){var R=$u,k=$u.Buffer,M=T?"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($,T){return function(R,k){return new C(R,T,!0).update(k)[$]()}},b=function($){var T=v("hex",$);T.create=function(M){return new C(M,$)},T.update=function(M,y){return T.create(M).update(y)};for(var R=0;R<l.length;++R){var k=l[R];T[k]=v(k,$)}return T};function x($,T){T?(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 T,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);T=!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),T)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,T=this.lastByteIndex;$[16]=this.block,$[T>>2]|=h[T&3],this.block=$[16],T>=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,T=this.h1,R=this.h2,k=this.h3,M=this.h4,y=this.h5,A=this.h6,_=this.h7,w=this.blocks,E,L,O,I,F,D,W,j,H,U,K;for(E=16;E<64;++E)F=w[E-15],L=(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]+L+w[E-7]+O<<0;for(K=T&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):(L=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=$&T,I=j^$&R^K,W=M&y^~M&A,F=_+O+W+r[E]+w[E],D=L+I,_=k+F<<0,k=F+D<<0),L=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),H=k&$,I=H^k&T^j,W=_&M^~_&y,F=A+O+W+r[E+1]+w[E+1],D=L+I,A=R+F<<0,R=F+D<<0,L=(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=L+I,y=T+F<<0,T=F+D<<0,L=(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10),O=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),K=T&R,I=K^T&k^U,W=y&A^~y&_,F=M+O+W+r[E+3]+w[E+3],D=L+I,M=$+F<<0,$=F+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+T<<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,T=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[T>>28&15]+s[T>>24&15]+s[T>>20&15]+s[T>>16&15]+s[T>>12&15]+s[T>>8&15]+s[T>>4&15]+s[T&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,T=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,T>>24&255,T>>16&255,T>>8&255,T&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),T=new DataView($);return T.setUint32(0,this.h0),T.setUint32(4,this.h1),T.setUint32(8,this.h2),T.setUint32(12,this.h3),T.setUint32(16,this.h4),T.setUint32(20,this.h5),T.setUint32(24,this.h6),this.is224||T.setUint32(28,this.h7),$};function C($,T,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(T,!0).update($).array());var E=[],L=[];for(k=0;k<64;++k){var O=$[k]||0;E[k]=92^O,L[k]=54^O}x.call(this,T,R),this.update(L),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)})()})(qd);var NS=qd.exports,PS=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},kl={},DS=Object.prototype.hasOwnProperty,BS;function _u(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Cu(e){try{return encodeURIComponent(e)}catch{return null}}function WS(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 HS(e,t){t=t||"";var n=[],i,p;typeof t!="string"&&(t="?");for(p in e)if(DS.call(e,p)){if(i=e[p],!i&&(i===null||i===BS||isNaN(i))&&(i=""),p=Cu(p),i=Cu(i),p===null||i===null)continue;n.push(p+"="+i)}return n.length?t+n.join("&"):""}kl.stringify=HS;kl.parse=WS;var ep=PS,us=kl,US=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,tp=/[\n\r\t]/g,zS=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,np=/:\d+$/,VS=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,jS=/^[a-zA-Z]:/;function El(e){return(e||"").toString().replace(US,"")}var $a=[["#","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]],Su={hash:1,query:1};function ip(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 Su)delete i[u]}else if(p==="object"){for(u in e)u in Su||(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 rp(e,t){e=El(e),e=e.replace(tp,""),t=t||{};var n=VS.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 GS(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=El(e),e=e.replace(tp,""),!(this instanceof Gt))return new Gt(e,t,n);var i,p,u,d,g,s,h=$a.slice(),o=typeof t,r=this,l=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=us.parse),t=ip(t),p=rp(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=GS(r.pathname,t.pathname)),r.pathname.charAt(0)!=="/"&&zt(r.protocol)&&(r.pathname="/"+r.pathname),ep(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 KS(e,t,n){var i=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||us.parse)(t)),i[e]=t;break;case"port":i[e]=t,ep(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,np.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<$a.length;d++){var g=$a[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 YS(e){(!e||typeof e!="function")&&(e=us.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]===":"||np.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:KS,toString:YS};Gt.extractProtocol=rp;Gt.location=ip;Gt.trimLeft=El;Gt.qs=us;var XS=Gt;const ZS=un(XS);class hs extends Lt{constructor(){super();Le(this,"baseURL");Le(this,"name");Le(this,"type");this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class QS extends hs{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class JS extends hs{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class qS extends hs{constructor(){super(),this.type="url"}href(t){const n=NS.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new ZS(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class eA extends hs{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const tA=[new wS,new $S,new _S,new SS,new CS,new AS,new xS,new kS,new Qd,new ES,new RS,new LS,new TS,new MS,new OS,new QS,new eA,new JS,new qS],nA=$e({name:"LinksItem",components:{LinkComponent:bS},props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=tA;return{selectedLinks:Ee(()=>e.type===void 0?t:t.filter(i=>i.type===e.type))}}}),iA={class:"tags are-medium"};function rA(e,t,n,i,p,u){const d=ue("LinkComponent");return q(),oe("div",iA,[(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 oA=xe(nA,[["render",rA]]),sA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Xd,AS:SC,DnsRecords:NC,Links:oA,Loading:fn,ReverseDnsNames:VC,Tags:YC,VueJsonPretty:Yd,WhoisRecord:pS,CPEs:EC,Ports:WC},emits:["refresh"],setup(e,t){const n=Te(void 0),i=Te(void 0),p=Te(!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=V1(),h=Al(),o=Pd(),r=U1(),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 nt(async()=>{if(e.artifact.dataType==="ip"){let f;if(e.artifact.geolocation===null){const m=await s.perform(e.artifact.data);f=_$(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=>(Qa("data-v-1a7db503"),e=e(),Ja(),e),aA={class:"column"},lA={key:0},cA=Ze(()=>P("hr",null,null,-1)),uA=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),hA={class:"columns"},fA={key:0,class:"column is-half"},dA={key:0},pA={class:"is-size-4 mb-2"},gA={class:"has-text-grey"},mA=["src"],vA={key:1},yA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},[et(" Live screenshot "),P("span",{class:"has-text-grey"},"Hover to expand")],-1)),bA=["src"],wA={class:"column"},$A={class:"block"},_A=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Information",-1)),CA={class:"table is-fullwidth is-completely-borderless"},SA=Ze(()=>P("th",null,"ID",-1)),AA={class:"buttons is-pulled-right"},xA=Ze(()=>P("span",null,"Enrich",-1)),kA={class:"icon is-small"},EA=Ze(()=>P("span",null,"Metadata",-1)),RA={class:"icon is-small"},LA=Ze(()=>P("span",null,"Delete",-1)),TA={class:"icon is-small"},MA=Ze(()=>P("th",null,"Data type",-1)),OA=Ze(()=>P("th",null,"Data",-1)),IA=Ze(()=>P("th",null,"Source",-1)),FA={key:0},NA=Ze(()=>P("th",null,"Tags",-1)),PA={key:0},DA={class:"modal is-active"},BA={class:"modal-card"},WA={class:"modal-card-head"},HA=Ze(()=>P("p",{class:"modal-card-title"},"Metadata",-1)),UA={class:"modal-card-body"},zA={key:1,class:"block"},VA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"AS",-1)),jA={key:2,class:"block"},GA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),KA={key:3,class:"block"},YA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),XA={key:4,class:"block"},ZA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),QA={key:5,class:"block"},JA=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Ports",-1)),qA={key:6,class:"block"},e2=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),t2={class:"block"},n2=Ze(()=>P("h4",{class:"is-size-4 mb-2"},"Links",-1)),i2=Ze(()=>P("hr",null,null,-1)),r2={class:"column"},o2=Ze(()=>P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function s2(e,t,n,i,p,u){var b;const d=ue("Loading"),g=ue("font-awesome-icon"),s=ue("Tags"),h=ue("VueJsonPretty"),o=ue("AS"),r=ue("ReverseDnsNames"),l=ue("DnsRecords"),c=ue("CPEs"),a=ue("Ports"),f=ue("WhoisRecord"),m=ue("Links"),v=ue("Alerts");return q(),oe(Se,null,[P("div",aA,[e.enrichArtifactTask.isRunning?(q(),oe("div",lA,[he(d),cA])):we("",!0),uA,P("div",hA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",fA,[e.googleMapSrc?(q(),oe("div",dA,[P("h4",pA,[et(" Geolocation "),P("span",gA,Ae(e.countryCode||((b=e.artifact.geolocation)==null?void 0:b.countryCode)),1)]),P("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,mA)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",vA,[yA,P("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,bA)])):we("",!0)])):we("",!0),P("div",wA,[P("div",$A,[_A,P("table",CA,[P("tr",null,[SA,P("td",null,[et(Ae(e.artifact.id)+" ",1),P("span",AA,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...x)=>e.enrichArtifact&&e.enrichArtifact(...x))},[xA,P("span",kA,[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))},[EA,P("span",RA,[he(g,{icon:"info-circle"})])])):we("",!0),P("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...x)=>e.deleteArtifact&&e.deleteArtifact(...x))},[LA,P("span",TA,[he(g,{icon:"times"})])])])])]),P("tr",null,[MA,P("td",null,Ae(e.artifact.dataType),1)]),P("tr",null,[OA,P("td",null,Ae(e.artifact.data),1)]),P("tr",null,[IA,P("td",null,Ae(e.artifact.source),1)]),e.artifact.tags.length>0?(q(),oe("tr",FA,[NA,P("td",null,[he(s,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",PA,[P("div",DA,[P("div",{class:"modal-background",onClick:t[3]||(t[3]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))}),P("div",BA,[P("header",WA,[HA,P("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))})]),P("section",UA,[he(h,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",zA,[VA,he(o,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",jA,[GA,he(r,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",KA,[YA,he(l,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",XA,[ZA,he(c,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",QA,[JA,he(a,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",qA,[e2,he(f,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),P("div",t2,[n2,he(m,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),i2,P("div",r2,[o2,he(v,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const a2=xe(sA,[["render",s2],["__scopeId","data-v-1a7db503"]]),l2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:a2,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=H1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function c2(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 u2=xe(l2,[["render",c2]]),h2=$e({name:"ArtifactView",components:{Artifact:u2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Artifact:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function f2(e,t,n,i,p,u){const d=ue("Artifact",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const d2=xe(h2,[["render",f2]]),p2=$e({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),g2={class:"box"},m2={class:"table-container"},v2={class:"table is-fullwidth"},y2=P("thead",null,[P("tr",null,[P("th",null,"Name"),P("th",null,"Type"),P("th",null,"Configured"),P("th",null,"Key-value(s)")])],-1),b2={key:0,class:"button is-success is-small ml-1"},w2={class:"icon is-small"},$2=P("span",null,"Yes",-1),_2={key:1,class:"button is-warning is-small ml-1"},C2={class:"icon is-small"},S2=P("span",null,"No",-1),A2={key:0},x2={key:1};function k2(e,t,n,i,p,u){const d=ue("font-awesome-icon");return q(),oe("div",g2,[P("div",m2,[P("table",v2,[y2,P("tbody",null,[(q(!0),oe(Se,null,ct(e.configs,g=>(q(),oe("tr",{key:g.name},[P("td",null,Ae(g.name),1),P("td",null,Ae(g.type),1),P("td",null,[g.isConfigured?(q(),oe("button",b2,[P("span",w2,[he(d,{icon:"check"})]),$2])):(q(),oe("button",_2,[P("span",C2,[he(d,{icon:"exclamation"})]),S2]))]),P("td",null,[P("ul",null,[(q(!0),oe(Se,null,ct(g.values,(s,h)=>(q(),oe("li",{key:h},[P("strong",null,Ae(s.key),1),et(": "),s.value?(q(),oe("code",A2,Ae(s.value),1)):(q(),oe("span",x2,"N/A"))]))),128))])])]))),128))])])])])}const E2=xe(p2,[["render",k2]]),R2=$e({name:"ConfigsWrapper",components:{Configs:E2,Loading:fn,ErrorMessage:hn},setup(){const e=z1();return nt(async()=>{await e.perform()}),{getConfigsTask:e}}});function L2(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 T2=xe(R2,[["render",L2]]),M2=$e({name:"ConfigView",components:{Configs:T2},setup(){ii("Config - Mihari")}});function O2(e,t,n,i,p,u){const d=ue("Configs",!0);return q(),Me(d)}const I2=xe(M2,[["render",O2]]);var op={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(T){var R=S[T];T==="class"?C.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||T=="value"||T[0]=="$"?C[T]=R:T==="ref"?f&&(f[R]=C):T==="style"?typeof R=="string"&&(C.style.cssText=R):R!=null&&C.setAttribute(T,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
780
  * based on code from:
781
781
  *
782
782
  * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
@@ -940,7 +940,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
940
940
  .ace-tm .ace_indent-guide-active {
941
941
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
942
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 y=new RegExp("^"+a+"[\\-_]|[\\-_]"+a+"$","g");v=v.replace(y,"")}(!v||v==a)&&f.length>1&&(v=f[f.length-2]);var R=h[a+"Path"];return R==null?R=h.basePath:m=="/"&&(a=m=""),R&&R.slice(-1)!="/"&&(R+="/"),R+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(y){if(y&&!i.$loading[c])return a&&a(y);if(i.$loading[c]||(i.$loading[c]=[]),i.$loading[c].push(a),!(i.$loading[c].length>1)){var R=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 R();d.loadScript(i.moduleUrl(c,m),R),l()}};if(i.dynamicModules[c])i.dynamicModules[c]().then(function(y){y.default?v(y.default):v(y)});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.30.0"}),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 y=m.attributes,R=0,C=y.length;R<C;R++){var S=y[R];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
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(T){T&&T(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.0"}),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 T in o)typeof o[T]<"u"&&u.set(T,o[T])}}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
944
  ==========================================================================
945
945
  SproutCore -- JavaScript Application Framework
946
946
  copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
@@ -969,49 +969,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
969
969
 
970
970
 
971
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(R,C,S){this.elem=R,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(R,C,S,$){R.addEventListener(C,S,r()),$&&$.$toDestroy.push(new l(R,C,S))},a=i.removeListener=function(R,C,S){R.removeEventListener(C,S,r())};i.stopEvent=function(R){return i.stopPropagation(R),i.preventDefault(R),!1},i.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},i.preventDefault=function(R){R.preventDefault&&R.preventDefault()},i.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||d.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},i.capture=function(R,C,S){var $=R&&R.ownerDocument||document;function L(x){C&&C(x),S&&S(x),a($,"mousemove",C),a($,"mouseup",L),a($,"dragstart",L)}return c($,"mousemove",C),c($,"mouseup",L),c($,"dragstart",L),L},i.addMouseWheelListener=function(R,C,S){c(R,"wheel",function($){var L=.15,x=$.deltaX||0,k=$.deltaY||0;switch($.deltaMode){case $.DOM_DELTA_PIXEL:$.wheelX=x*L,$.wheelY=k*L;break;case $.DOM_DELTA_LINE:var M=15;$.wheelX=x*M,$.wheelY=k*M;break;case $.DOM_DELTA_PAGE:var w=150;$.wheelX=x*w,$.wheelY=k*w;break}C($)},S)},i.addMultiMouseDownListener=function(R,C,S,$,L){var x=0,k,M,w,A={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(b){if(i.getButton(b)!==0?x=0:b.detail>1?(x++,x>4&&(x=1)):x=1,d.isIE){var E=Math.abs(b.clientX-k)>5||Math.abs(b.clientY-M)>5;(!w||E)&&(x=1),w&&clearTimeout(w),w=setTimeout(function(){w=null},C[x-1]||600),x==1&&(k=b.clientX,M=b.clientY)}if(b._clicks=x,S[$]("mousedown",b),x>4)x=0;else if(x>1)return S[$](A[x],b)}Array.isArray(R)||(R=[R]),R.forEach(function(b){c(b,"mousedown",_,L)})};var f=function(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)};i.getModifierString=function(R){return u.KEY_MODS[f(R)]};function m(R,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 x=C.timeStamp-s;x<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&&(R(C,$,-S),C.defaultPrevented))return}if(d.isChromeOS&&$&8){if(R(C,$,S),C.defaultPrevented)return;$&=-9}return!$&&!(S in u.FUNCTION_KEYS)&&!(S in u.PRINTABLE_KEYS)?!1:R(C,$,S)}i.addCommandKeyListener=function(R,C,S){if(d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)){var $=null;c(R,"keydown",function(x){$=x.keyCode},S),c(R,"keypress",function(x){return m(C,x,$)},S)}else{var L=null;c(R,"keydown",function(x){g[x.keyCode]=(g[x.keyCode]||0)+1;var k=m(C,x,x.keyCode);return L=x.defaultPrevented,k},S),c(R,"keypress",function(x){L&&(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&(i.stopEvent(x),L=null)},S),c(R,"keyup",function(x){g[x.keyCode]=null},S),g||(v(),c(window,"focus",v))}};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var y=1;i.nextTick=function(R,C){C=C||window;var S="zero-timeout-message-"+y++,$=function(L){L.data==S&&(i.stopPropagation(L),a(C,"message",$),R())};c(C,"message",$),C.postMessage(S,"*")}}i.$idleBlocked=!1,i.onIdle=function(R,C){return setTimeout(function S(){i.$idleBlocked?setTimeout(S,100):R()},C)},i.$idleBlockId=null,i.blockIdle=function(R){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},R||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(R){setTimeout(R,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,y=v?/\s/:/\n/,R=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 x=!1,k=!1,M=!1,w=!1,A="";R||(L.style.fontSize="1px");var _=!1,b=!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){b||($.onBlur(J),j=!1)},$),u.addListener(L,"focus",function(J){if(!b){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 fe=[];if(ae)for(var be=L.parentElement;be&&be.nodeType==1;)fe.push(be),be.setAttribute("ace_nocontext",!0),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;L.focus({preventScroll:!0}),ae&&fe.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 fe=ae&&(J.docChanged||J.selectionChanged);M&&fe&&(E=L.value="",le()),U()}});var H=function(J,ae){for(var fe=ae,be=1;be<=J-F&&be<2*W+1;be++)fe+=$.session.getLine(J-be).length+1;return fe},U=v?function(J){if(!(!j||x&&!J||w)){J||(J="");var ae=`
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 T(R){C&&C(R),S&&S(R),a($,"mousemove",C),a($,"mouseup",T),a($,"dragstart",T)}return c($,"mousemove",C),c($,"mouseup",T),c($,"dragstart",T),T},i.addMouseWheelListener=function(x,C,S){c(x,"wheel",function($){var T=.15,R=$.deltaX||0,k=$.deltaY||0;switch($.deltaMode){case $.DOM_DELTA_PIXEL:$.wheelX=R*T,$.wheelY=k*T;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,$,T){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",_,T)})};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 T="location"in C?C.location:C.keyLocation;if(S===17&&T===1)g[S]==1&&(s=C.timeStamp);else if(S===18&&$===3&&T===2){var R=C.timeStamp-s;R<50&&(g.altGr=!0)}}}if(S in u.MODIFIER_KEYS&&(S=-1),!$&&S===13){var T="location"in C?C.location:C.keyLocation;if(T===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 T=null;c(x,"keydown",function(R){g[R.keyCode]=(g[R.keyCode]||0)+1;var k=m(C,R,R.keyCode);return T=R.defaultPrevented,k},S),c(x,"keypress",function(R){T&&(R.ctrlKey||R.altKey||R.shiftKey||R.metaKey)&&(i.stopEvent(R),T=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(T){T.data==S&&(i.stopPropagation(T),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 T=s.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck",!1),T.style.opacity="0",S.insertBefore(T,S.firstChild);var R=!1,k=!1,M=!1,y=!1,A="";x||(T.style.fontSize="1px");var _=!1,w=!1,E="",L=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===T}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?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",J.inline?"both":"list"),T.setAttribute("aria-activedescendant",J.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),J.role&&T.setAttribute("role",J.role),J.setLabel&&(T.setAttribute("aria-roledescription",d("editor")),$.session)){var ae=$.session.selection.cursor.row;T.setAttribute("aria-label",d("Cursor at row $0",[ae+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(T,"blur",function(J){w||($.onBlur(J),j=!1)},$),u.addListener(T,"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 T.focus({preventScroll:!0});var J=T.style.top;T.style.position="fixed",T.style.top="0px";try{var ae=T.getBoundingClientRect().top!=0}catch{return}var fe=[];if(ae)for(var be=T.parentElement;be&&be.nodeType==1;)fe.push(be),be.setAttribute("ace_nocontext",!0),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;T.focus({preventScroll:!0}),ae&&fe.forEach(function(Re){Re.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=J)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return j},$.on("beforeEndOperation",function(){var J=$.curOp,ae=J&&J.command&&J.command.name;if(ae!="insertstring"){var fe=ae&&(J.docChanged||J.selectionChanged);M&&fe&&(E=T.value="",le()),U()}});var H=function(J,ae){for(var fe=ae,be=1;be<=J-F&&be<2*W+1;be++)fe+=$.session.getLine(J-be).length+1;return fe},U=v?function(J){if(!(!j||R&&!J||y)){J||(J="");var ae=`
973
973
  ab`+J+`cde fg
974
- `;ae!=L.value&&(L.value=E=ae);var fe=4,be=4+(J.length||($.selection.isEmpty()?0:1));(T!=fe||O!=be)&&L.setSelectionRange(fe,be),T=fe,O=be}}:function(){if(!(M||w)&&!(!j&&!X)){M=!0;var J=0,ae=0,fe="";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(fe=Ke.join(`
974
+ `;ae!=T.value&&(T.value=E=ae);var fe=4,be=4+(J.length||($.selection.isEmpty()?0:1));(L!=fe||O!=be)&&T.setSelectionRange(fe,be),L=fe,O=be}}:function(){if(!(M||y)&&!(!j&&!X)){M=!0;var J=0,ae=0,fe="";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(fe=Ke.join(`
975
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,fe=He+`
976
976
  `+fe}else if(Re.end.row>D){var ke=$.session.getLine(D+1);ae=Re.end.row>D+1?ke.length:Re.end.column,ae+=fe.length+1,fe=fe+`
977
- `+ke}else R&&Ne>0&&(fe=`
977
+ `+ke}else x&&Ne>0&&(fe=`
978
978
  `+fe,ae+=1,J+=1);fe.length>a&&(J<a&&ae<a?fe=fe.slice(0,a):(fe=`
979
979
  `,J==ae?J=ae=0:(J=0,ae=1)));var Ue=fe+`
980
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||(x?x=!1:K(L)?($.selectAll(),U()):R&&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 fe=L.selectionStart,be=L.selectionEnd,Re=T,Ne=E.length-O,Ke=J,De=J.length-fe,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"";w=!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}),w=!1,E=J,T=fe,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,fe=Y(ae,!0);(ae.length>a+100||y.test(fe)||R&&T<1&&T==O)&&U()},ee=function(J,ae,fe){var be=J.clipboardData||window.clipboardData;if(!(!be||r)){var Re=l||fe?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Ne){if(!fe)return ee(Ne,ae,!0)}}},N=function(J,ae){var fe=$.getCopyText();if(!fe)return u.preventDefault(J);ee(J,fe)?(v&&(U(fe),x=fe,setTimeout(function(){x=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(J)):(x=!0,L.value=fe,L.select(),setTimeout(function(){x=!1,U(),ae?$.onCut():$.onCopy()}))},B=function(J){N(J,!0)},G=function(J){N(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(){b=!0,L.blur(),L.focus(),b=!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 fe=$.container.getBoundingClientRect(),be=s.computedStyle($.container),Re=fe.top+(parseInt(be.borderTopWidth)||0),Ne=fe.left+(parseInt(fe.borderLeftWidth)||0),Ke=fe.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,fe){var be=null,Re=!1;fe.addEventListener("keydown",function(Ke){be&&clearTimeout(be),Re=!0},!0),fe.addEventListener("keyup",function(Ke){be=setTimeout(function(){Re=!1},100)},!0);var Ne=function(Ke){if(document.activeElement===fe&&!(Re||M||ae.$mouseHandler.isMousePressed)&&!x){var De=fe.selectionStart,He=fe.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 Ll=ae.commands.findKeyCommand(Ue,ke);Ll&&ae.execCommand(Ll)}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,$){R=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(),y=v.isEmpty();(y||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),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)c=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)c=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&y==1)f=m.end,c=m.start;else{var R=o(this.$clickSelection,f);f=R.cursor,c=R.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,y=m?l.wheelY/m:a.vy;m<g&&(v=(v+a.vx)/2,y=(y+a.vy)/2);var R=Math.abs(v/y),C=!1;if(R>=1&&c.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(C=!0),R<=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(y)<=1.5*Math.abs(a.vy);S?(C=!0,a.allowed=f):a.allowed=0}if(a.t=f,a.vx=v,a.vy=y,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,y){v.__proto__=y}||function(v,y){for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(v[R]=y[R])},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,y;this.popups.sort(function(w,A){return A.priority-w.priority});var R=[];try{for(var C=d(this.popups),S=C.next();!S.done;S=C.next()){var $=S.value,L=!0;try{for(var x=(v=void 0,d(R)),k=x.next();!k.done;k=x.next()){var M=k.value;if(this.doPopupsOverlap(M,$)){L=!1;break}}}catch(w){v={error:w}}finally{try{k&&!k.done&&(y=x.return)&&y.call(x)}finally{if(v)throw v.error}}L?R.push($):$.hide()}}catch(w){f={error:w}}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(),y=m.getElement().getBoundingClientRect();return v.left<y.right&&v.right>y.left&&v.top<y.bottom&&v.bottom>y.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 y=v.getElement();return y.style.whiteSpace="pre-wrap",y.style.pointerEvents="auto",y.addEventListener("mouseout",v.onMouseOut),y.tabIndex=-1,y.addEventListener("blur",(function(){y.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 y=v.$mouseHandler.isMousePressed;if(this.isOpen){var R=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(R.row,R.column)||y||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||y||(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,y=m.getDocumentPosition(),R=v.session.getLine(y.row);if(y.column==R.length){var C=v.renderer.pixelToScreenCoordinates(m.clientX,m.clientY),S=v.session.documentToScreenPosition(y.row,y.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,y,R){if(!(R&&R!=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(y),S.style.display="block";var $=C.textToScreenCoordinates(v.start.row,v.start.column),L=S.clientHeight,x=C.scroller.getBoundingClientRect(),k=!0;$.pageY-L<0&&(k=!1),k?$.pageY-=L:$.pageY+=C.lineHeight,S.style.maxWidth=x.width-($.pageX-x.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 y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},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 x=$.getDocumentPosition().row,k=a.session.selection;if($.getShiftKey())k.selectTo(x,0);else{if($.domEvent.detail==2)return a.selectAll(),$.preventDefault();c.$clickSelection=a.selection.getLineRange(x)}return c.setState("selectByLines"),c.captureMouse($),$.preventDefault()}}});var v,y;function R(){var $=y.getDocumentPosition().row,L=a.session.getLength();if($==L){var x=a.renderer.pixelToScreenCoordinates(0,y.y).row,k=y.$pos;if(x>a.session.documentToScreenRow(k.row,k.column))return C()}if(m.showTooltip($),!!m.isOpen)if(a.on("mousewheel",C),c.$tooltipFollowsMouse)S(y);else{var M=y.getGutterRow(),w=f.$lines.get(M);if(w){var A=w.element.querySelector(".ace_gutter_annotation"),_=A.getBoundingClientRect(),b=m.getElement().style;b.left=_.right+"px",b.top=_.bottom+"px"}else S(y)}}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($),y=$,!v&&(v=setTimeout(function(){v=null,y&&!c.isMousePressed?R():C()},50))}),s.addListener(a.renderer.$gutter,"mouseout",function($){y=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,y=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),C=this.getHeight();f+=15,m+=15,f+R>v&&(f-=f+R-v),m+C>y&&(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],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var R=m.session.getFoldLine(f);if(R&&m.$showFoldedAnnotations){for(var C={error:[],warning:[],info:[]},S,$=f+1;$<=R.end.row;$++)if(m.$annotations[$])for(var L=0;L<m.$annotations[$].text.length;L++){var x=m.$annotations[$].type[L];if(C[x].push(m.$annotations[$].text[L]),x==="error"){S="error_fold";continue}if(x==="warning"){S="warning_fold";continue}}if(S==="error_fold"||S==="warning_fold"){var k="".concat(a.annotationsToSummaryString(C)," in folded code.");y.text.push(k),y.type.push(S)}}if(y.text.length===0)return this.hide();for(var M={error:[],warning:[],info:[]},w=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",$=0;$<y.text.length;$++){var A="<span class='ace_".concat(y.type[$]," ").concat(w,"' aria-label='").concat(a.annotationLabels[y.type[$].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[$]);M[y.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,y=[],R=["error","warning","info"];try{for(var C=d(R),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;y.push("".concat(f[$].length," ").concat(L))}}}catch(x){m={error:x}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(m)throw m.error}}return y.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,y,R,C,S,$,L,x=0,k,M,w,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 R=H.clientX,C=H.clientY,y||O(),x++,H.dataTransfer.dropEffect=k=j(H),d.preventDefault(H)},this.onDragOver=function(H){if(!(a.getReadOnly()||!W(H.dataTransfer)))return R=H.clientX,C=H.clientY,y||(O(),x++),F!==null&&(F=null),H.dataTransfer.dropEffect=k=j(H),d.preventDefault(H)},this.onDragLeave=function(H){if(x--,x<=0&&y)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 b(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:R,y:C};else{var X=l(_.x,_.y,R,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:R-X.left,right:X.right-R},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),N={row:H.row,column:H.column};V/z<=2&&(N.column+=Y.x.left<Y.x.right?-3:2),ee/Z<=1&&(N.row+=Y.y.top<Y.y.bottom?-1:1);var B=H.row!=N.row,G=H.column!=N.column,Q=!U||H.row!=U.row;B||G&&!Q?w?K-w>=s&&a.renderer.scrollCursorIntoView(N):w=K:w=null}function T(){var H=L;L=a.renderer.screenToTextCoordinates(R,C),b(L,H),E(L,H)}function O(){$=a.selection.toOrientedRange(),y=a.session.addMarker($,"ace_selection",a.getSelectionStyle()),a.clearSelection(),a.isFocused()&&a.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),x=0,d.addListener(document,"mousemove",D)}function I(){clearInterval(S),a.session.removeMarker(y),y=null,a.selection.fromOrientedRange($),a.isFocused()&&!M&&a.$resetCursorStyle(),$=null,L=null,x=0,w=null,A=null,d.removeListener(document,"mousemove",D)}var F=null;function D(){F==null&&(F=setTimeout(function(){F!=null&&y&&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 y=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),a.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var R=a.container;R.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,y,R=0,C=0,S=0,$,L;function x(){var b=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"],b&&["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:"openCommandPallete"},"Palette"]]:["span"]),L.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!E)return E=!E,T();F=="paste"?b.readText().then(function(D){h.execCommand(F,D)}):F&&((F=="cut"||F=="copy")&&(b?b.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(F)),L.firstChild.style.display="none",E=!1,F!="openCommandPallete"&&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||x();var b=h.selection.cursor,E=h.renderer.textToScreenCoordinates(b.row,b.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(b){L&&(L.style.display="none"),h.off("input",M)}function w(){f=null,clearTimeout(f);var b=h.selection.getRange(),E=b.contains(y.row,y.column);(b.isEmpty()||!E)&&(h.selection.moveToPosition(y),h.selection.selectWord()),o="wait",k()}function A(){f=null,clearTimeout(f),h.selection.moveToPosition(y);var b=R>=2?h.selection.getLineRange(y.row):h.session.getBracketRange(y);b&&!b.isEmpty()?h.selection.setRange(b):h.selection.selectWord(),o="wait"}d.addListener(s,"contextmenu",function(b){if($){var E=h.textInput.getElement();E.focus()}},h),d.addListener(s,"touchstart",function(b){var E=b.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=b.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=b.clientX=D,l=b.clientY=W,C=S=0;var j=new u(b,h);if(y=j.getDocumentPosition(),I-c<500&&E.length==1&&!v)R++,b.preventDefault(),b.button=0,A();else{R=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(b.clientX<z.left){o="zoom";return}var ee=V(b.clientX-z.left-K.left+Y,b.clientY-z.top-K.top+X),N=V(b.clientX-z.left-Z.left+Y,b.clientY-z.top-Z.top+X);ee<3.5&&N<3.5&&(o=ee>N?"cursor":"anchor"),N<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",f=setTimeout(w,450)}c=I},h),d.addListener(s,"touchend",function(b){$=h.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):f?(h.selection.moveToPosition(y),v=0,k()):o=="scroll"?(_(),M()):k(),clearTimeout(f),f=null},h),d.addListener(s,"touchmove",function(b){f&&(clearTimeout(f),f=null);var E=b.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 b.preventDefault();r=T.clientX,l=T.clientY,b.clientX=T.clientX,b.clientY=T.clientY;var F=b.timeStamp,D=F-a;if(a=F,o=="scroll"){var W=new u(b,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(b,h),H=j.getDocumentPosition();o=="cursor"?h.selection.moveCursorToPosition(H):o=="anchor"&&h.selection.setSelectionAnchor(H.row,H.column),h.renderer.scrollCursorIntoView(H),b.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 b=h.session.getScrollTop();h.renderer.scrollBy(10*C,10*S),b==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()})},y=f.renderer.getMouseEventTarget();u.addListener(y,"click",this.onMouseEvent.bind(this,"click"),f),u.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),u.addMultiMouseDownListener([y,f.renderer.scrollBarV&&f.renderer.scrollBarV.inner,f.renderer.scrollBarH&&f.renderer.scrollBarH.inner,f.textInput&&f.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",f),u.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),r(f.container,f);var R=f.renderer.$gutter;u.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),u.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),f),u.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),u.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),u.addListener(y,"mousedown",v,f),u.addListener(R,"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,y=this.editor.renderer;y.$isMousePressed=!0;var R=this,C=function(k){if(k){if(d.isWebKit&&!k.which&&R.releaseMouse)return R.releaseMouse();R.x=k.clientX,R.y=k.clientY,m&&m(k),R.mouseEvent=new h(k,R.editor),R.$mouseMoved=!0}},S=function(k){v.off("beforeEndOperation",L),clearInterval(x),v.session&&$(),R[R.state+"End"]&&R[R.state+"End"](k),R.state="",R.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,k&&R.onMouseEvent("mouseup",k),v.endOperation()},$=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(d.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){S(f)});var L=function(k){R.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};v.on("beforeEndOperation",L),v.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=C,R.releaseMouse=u.capture(this.editor.container,C,S);var x=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,y=4,R=5,C=6,S=7,$=8,L=9,x=10,k=11,M=12,w=13,A=14,_=15,b=16,E=17,T=18,O=[T,T,T,T,T,T,T,T,T,C,R,C,$,R,T,T,T,T,T,T,T,T,T,T,T,T,T,T,R,R,R,C,$,y,y,k,k,k,y,y,y,y,y,x,L,x,L,L,m,m,m,m,m,m,m,m,m,m,L,y,y,y,y,y,y,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,y,y,y,y,y,y,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,y,y,y,y,T,T,T,T,T,T,R,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,y,k,k,k,k,y,y,y,y,a,y,y,T,y,y,k,k,m,m,y,a,y,y,y,m,a,y,y,y,y,y],I=[$,$,$,$,$,$,$,$,$,$,$,T,T,T,a,f,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,$,R,w,A,_,b,E,L,k,k,k,k,k,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,L,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,$];function F(H,U,K,Z){var z=u?r:o,X=null,Y=null,V=null,ee=0,N=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],N=ee&240,ee&=15,U[te]=V=z[ee][5],N>0)if(N==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]==R&&(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 y:case v:return z;case m:return g?v:m;case S:return g=!0,f;case $:return y;case L:return Z<1||Z+1>=U.length||(X=K[Z-1])!=m&&X!=v||(Y=U[Z+1])!=m&&Y!=v?y:(g&&(Y=v),Y==X?Y:y);case x:return X=Z>0?K[Z-1]:R,X==m&&Z+1<U.length&&U[Z+1]==m?m:y;case k:if(Z>0&&K[Z-1]==m)return m;if(g)return y;for(ee=Z+1,V=U.length;ee<V&&U[ee]==k;)ee++;return ee<V&&U[ee]==m?m:y;case M:for(V=U.length,ee=Z+1;ee<V&&U[ee]==M;)ee++;if(ee<V){var N=H[Z],B=N>=1425&&N<=2303||N==64286;if(X=U[ee],B&&(X==f||X==S))return f}return Z<1||(X=U[Z-1])==R?y:K[Z-1];case R:return g=!1,s=!0,u;case C:return h=!0,y;case w:case A:case b:case E:case _:g=!1;case T:return y}}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:y}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]<w||U[V]===y||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(y,R){return y===" "||f.isFullWidth(y.charCodeAt(0))?(v=y===" "?f.getScreenTabSize(R+m):2,m+=v-1,d.stringRepeat(u.DOT,v)):y}),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,y=Math.max(o,r)-this.wrapIndent,R=!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],R=$>=v&&$<y,R&&!C?S=m:!R&&C&&f.push({left:S,width:m-S}),m+=this.charWidths[a],C=R;if(R&&L===c.length&&f.push({left:S,width:m-S}),this.isRtlDir)for(var x=0;x<f.length;x++)f[x].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 y=r[v];if(y.defaultToken&&(a.defaultToken=y.defaultToken),y.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),y.unicode&&f.indexOf("u")===-1&&(f+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var R=y.regex,C=new RegExp("(?:("+R+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||C==1?y.token=y.token[0]:C-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:C-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(C>1?y.onMatch=this.$applyToken:y.onMatch=y.token),C>1&&(/\\\d/.test(y.regex)?R=y.regex.replace(/\\([0-9]+)/g,function(S,$){return"\\"+(parseInt($,10)+c+1)}):(C=1,R=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),a[c]=v,c+=C,l.push(R),y.onMatch||(y.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,y,R){return l?l=y!="]":y?l=!0:v?(r==c.stack&&(c.end=R+1,c.stack=-1),r--):m&&(r++,m.length!=1&&(c.stack=r,c.start=R)),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=[],y=0,R=0,C={type:null,value:""};m=f.exec(h);){var S=a.defaultToken,$=null,L=m[0],x=f.lastIndex;if(x-L.length>y){var k=h.substring(y,x-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],y=x,f=this.regExps[l],f.lastIndex=x),$.consumeLineEnd&&(y=x);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(y==h.length)break;if(y=x,R++>d){for(R>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:h});y<h.length;)C.type&&v.push(C),C={value:h.substring(y,y+=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 y=f.stateName;y||(y=f.token,typeof y!="string"&&(y=y[0]||""),o[y]&&(y+=h++)),o[y]=v,f.next=y,r(y)}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 R in f.rules)o[R]?o[R].push&&o[R].push.apply(o[R],f.rules[R]):o[R]=f.rules[R];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 y=m[v];this.$keywordList.push(y),r&&(y=y.toLowerCase()),c[y]=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 y=-1;if(v.multiSelect&&(y=v.selection.index,l.rangeCount!=v.multiSelect.rangeCount&&(l={rangeCount:v.multiSelect.rangeCount})),l[y])return r=l[y];r=l[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,R,C){var S=v.end.row-v.start.row;return{text:R+y+C,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m=function(v){v=v||{},this.add("braces","insertion",function(y,R,C,S,$){var L=C.getCursorPosition(),x=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(x[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 w=x.substring(L.column,L.column+1);if(w=="}"){var A=S.$findOpeningBracket("}",{column:L.column+1,row:L.row});if(A!==null&&m.isAutoInsertedClosing(L,x,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==`
981
+ `;Ue!=E&&(T.value=E=Ue,L=O=Ue.length)}if(X&&(L=T.selectionStart,O=T.selectionEnd),O!=ae||L!=J||T.selectionEnd!=O)try{T.setSelectionRange(J,ae),L=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(T)?($.selectAll(),U()):x&&T.selectionStart!=L&&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 fe=T.selectionStart,be=T.selectionEnd,Re=L,Ne=E.length-O,Ke=J,De=J.length-fe,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>L-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,L=fe,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=T.value,fe=Y(ae,!0);(ae.length>a+100||b.test(fe)||x&&L<1&&L==O)&&U()},ee=function(J,ae,fe){var be=J.clipboardData||window.clipboardData;if(!(!be||r)){var Re=l||fe?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Ne){if(!fe)return ee(Ne,ae,!0)}}},N=function(J,ae){var fe=$.getCopyText();if(!fe)return u.preventDefault(J);ee(J,fe)?(v&&(U(fe),R=fe,setTimeout(function(){R=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(J)):(R=!0,T.value=fe,T.select(),setTimeout(function(){R=!1,U(),ae?$.onCut():$.onCopy()}))},B=function(J){N(J,!0)},G=function(J){N(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)):(T.value="",k=!0))};u.addCommandKeyListener(T,$.onCommandKey.bind($),$),u.addListener(T,"select",Z,$),u.addListener(T,"input",V,$),u.addListener(T,"cut",B,$),u.addListener(T,"copy",G,$),u.addListener(T,"paste",Q,$),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&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=L,$.onCompositionStart(M),M.useTextareaForIME?(E=T.value="",L=0,O=0):(T.msGetInputContext&&(M.context=T.msGetInputContext()),T.getInputContext&&(M.context=T.getInputContext()))}},ie=function(){if(!(!M||!$.onCompositionUpdate||$.$readOnly)){if(_)return se();if(M.useTextareaForIME)$.onCompositionUpdate(T.value);else{var J=T.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,T.blur(),T.focus(),w=!1}var ce=h.delayedCall(ie,50).schedule.bind(null,null);function re(J){J.keyCode==27&&T.value.length<T.selectionStart&&(M||(E=T.value),L=O=-1,U()),ce()}u.addListener(T,"compositionstart",te,$),u.addListener(T,"compositionupdate",ie,$),u.addListener(T,"keyup",re,$),u.addListener(T,"keydown",ce,$),u.addListener(T,"compositionend",le,$),this.getElement=function(){return T},this.setCommandMode=function(J){_=J,T.readOnly=!1},this.setReadOnly=function(J){_||(T.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=T.style.cssText),T.style.cssText=(ae?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(L+O)*$.renderer.characterWidth*.5+"px;";var fe=$.container.getBoundingClientRect(),be=s.computedStyle($.container),Re=fe.top+(parseInt(be.borderTopWidth)||0),Ne=fe.left+(parseInt(fe.borderLeftWidth)||0),Ke=fe.bottom-Re-T.clientHeight-2,De=function(He){s.translate(T,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&&(T.style.cssText=A,A=""),$.renderer.$isMousePressed=!1,$.renderer.$keepTextAreaAtCursor&&$.renderer.$moveTextAreaToCursor()},0)}var me=function(J){$.textInput.onContextMenu(J),de()};u.addListener(T,"mouseup",me,$),u.addListener(T,"mousedown",function(J){J.preventDefault(),de()},$),u.addListener($.renderer.scroller,"contextmenu",me,$),u.addListener(T,"contextmenu",me,$),v&&_e(S,$,T);function _e(J,ae,fe){var be=null,Re=!1;fe.addEventListener("keydown",function(Ke){be&&clearTimeout(be),Re=!0},!0),fe.addEventListener("keyup",function(Ke){be=setTimeout(function(){Re=!1},100)},!0);var Ne=function(Ke){if(document.activeElement===fe&&!(Re||M||ae.$mouseHandler.isMousePressed)&&!R){var De=fe.selectionStart,He=fe.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<L&&E[De-1]==" "?(ke=f.left,Ue=m.option):De<L||De==L&&O!=L&&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!=L&&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 Ll=ae.commands.findKeyCommand(Ue,ke);Ll&&ae.execCommand(Ll)}L=De,O=He,U("")}}};document.addEventListener("selectionchange",Ne),ae.on("destroy",function(){document.removeEventListener("selectionchange",Ne)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}};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,T=!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,$)){T=!1;break}}}catch(y){v={error:y}}finally{try{k&&!k.done&&(b=R.return)&&b.call(R)}finally{if(v)throw v.error}}T?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),T=S.clientHeight,R=C.scroller.getBoundingClientRect(),k=!0;$.pageY-T<0&&(k=!1),k?$.pageY-=T:$.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 T=f.getRegion($);if(T!="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,T=a.session.getLength();if($==T){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 T=$.domEvent.target||$.domEvent.srcElement;if(g.hasCssClass(T,"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 T=0;T<m.$annotations[$].text.length;T++){var R=m.$annotations[$].type[T];if(C[R].push(m.$annotations[$].text[T]),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 T=f[$].length===1?a.annotationLabels[$].singular:a.annotationLabels[$].plural;b.push("".concat(f[$].length," ").concat(T))}}}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,$,T,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(T){var U=H.dataTransfer;if(M)switch(k){case"move":$.contains(T.row,T.column)?$={start:T,end:T}:$=a.moveText($,T);break;case"copy":$=a.moveText($,T,!0);break}else{var K=U.getData("Text");$={start:T,end:a.session.insert(T,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),N={row:H.row,column:H.column};V/z<=2&&(N.column+=Y.x.left<Y.x.right?-3:2),ee/Z<=1&&(N.row+=Y.y.top<Y.y.bottom?-1:1);var B=H.row!=N.row,G=H.column!=N.column,Q=!U||H.row!=U.row;B||G&&!Q?y?K-y>=s&&a.renderer.scrollCursorIntoView(N):y=K:y=null}function L(){var H=T;T=a.renderer.screenToTextCoordinates(x,C),w(T,H),E(T,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),L(),S=setInterval(L,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,T=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,$,T;function R(){var w=window.navigator&&window.navigator.clipboard,E=!1,L=function(){var I=h.getCopyText(),F=h.session.getUndoManager().hasUndo();T.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:"openCommandPallete"},"Palette"]]:["span"]),T.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!E)return E=!E,L();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)),T.firstChild.style.display="none",E=!1,F!="openCommandPallete"&&h.focus()};T=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(){T||R();var w=h.selection.cursor,E=h.renderer.textToScreenCoordinates(w.row,w.column),L=h.renderer.textToScreenCoordinates(0,0).pageX,O=h.renderer.scrollLeft,I=h.container.getBoundingClientRect();T.style.top=E.pageY-I.top-3+"px",E.pageX-I.left<I.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=L+O-I.left+"px"),T.style.display="",T.firstChild.style.display="none",h.on("input",M)}function M(w){T&&(T.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 L=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)>L&&(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/L-.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),N=V(w.clientX-z.left-Z.left+Y,w.clientY-z.top-Z.top+X);ee<3.5&&N<3.5&&(o=ee>N?"cursor":"anchor"),N<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 L=E[0],O=r-L.clientX,I=l-L.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();r=L.clientX,l=L.clientY,w.clientX=L.clientX,w.clientY=L.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(),T=f.renderer;!$.isEmpty()&&$.insideStart(S.row,S.column)?T.setCursorStyle("default"):T.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",T),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 T=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",T),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,T=9,R=10,k=11,M=12,y=13,A=14,_=15,w=16,E=17,L=18,O=[L,L,L,L,L,L,L,L,L,C,x,C,$,x,L,L,L,L,L,L,L,L,L,L,L,L,L,L,x,x,x,C,$,b,b,k,k,k,b,b,b,b,b,R,T,R,T,T,m,m,m,m,m,m,m,m,m,m,T,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,L,L,L,L,L,L,x,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,T,b,k,k,k,k,b,b,b,b,a,b,b,L,b,b,k,k,m,m,b,a,b,b,b,m,a,b,b,b,b,b],I=[$,$,$,$,$,$,$,$,$,$,$,L,L,L,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,T,k,k,k,k,k,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,T,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,N=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],N=ee&240,ee&=15,U[te]=V=z[ee][5],N>0)if(N==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 T: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 N=H[Z],B=N>=1425&&N<=2303||N==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 L: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]===L)?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 $,T=0;T<c.length;T++)$=l.logicalFromVisual[T],a=c[T],x=$>=v&&$<b,x&&!C?S=m:!x&&C&&f.push({left:S,width:m-S}),m+=this.charWidths[a],C=x;if(x&&T===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,T=m[0],R=f.lastIndex;if(R-T.length>b){var k=h.substring(b,R-T.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(T,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(T){if(typeof S=="string")(!$||$.merge!==!1)&&C.type===S?C.value+=T:(C.type&&v.push(C),C={type:S,value:T});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 T=C.getCursorPosition(),R=S.doc.getLine(T.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[T.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(T.column,T.column+1);if(y=="}"){var A=S.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(A!==null&&m.isAutoInsertedClosing(T,R,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==`
986
986
  `||$==`\r
987
- `){a(C);var _="";m.isMaybeInsertedClosing(L,x)&&(_=s.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var w=x.substring(L.column,L.column+1);if(w==="}"){var b=S.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!b)return null;var E=this.$getIndent(S.getLine(b.row))}else if(_)var E=this.$getIndent(x);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(y,R,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="{"){a(C);var x=S.doc.getLine($.start.row),k=x.substring($.end.column,$.end.column+1);if(k=="}")return $.end.column++,$;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,R,C,S,$){if($=="("){a(C);var L=C.getSelectionRange(),x=S.doc.getTextRange(L);if(x!==""&&C.getWrapBehavioursEnabled())return f(L,x,"(",")");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),w=M.substring(k.column,k.column+1);if(w==")"){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(y,R,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="("){a(C);var x=S.doc.getLine($.start.row),k=x.substring($.start.column+1,$.start.column+2);if(k==")")return $.end.column++,$}}),this.add("brackets","insertion",function(y,R,C,S,$){if($=="["){a(C);var L=C.getSelectionRange(),x=S.doc.getTextRange(L);if(x!==""&&C.getWrapBehavioursEnabled())return f(L,x,"[","]");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),w=M.substring(k.column,k.column+1);if(w=="]"){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(y,R,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="["){a(C);var x=S.doc.getLine($.start.row),k=x.substring($.start.column+1,$.start.column+2);if(k=="]")return $.end.column++,$}}),this.add("string_dquotes","insertion",function(y,R,C,S,$){var L=S.$mode.$quotes||c;if($.length==1&&L[$]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($)!=-1)return;a(C);var x=$,k=C.getSelectionRange(),M=S.doc.getTextRange(k);if(M!==""&&(M.length!=1||!L[M])&&C.getWrapBehavioursEnabled())return f(k,M,x,x);if(!M){var w=C.getCursorPosition(),A=S.doc.getLine(w.row),_=A.substring(w.column-1,w.column),b=A.substring(w.column,w.column+1),E=S.getTokenAt(w.row,w.column),T=S.getTokenAt(w.row,w.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(b==x)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(b),H=S.$mode.$pairQuotesAfter,U=H&&H[x]&&H[x].test(_);if(!U&&W||j||b&&!/[\s;,.})\]\\]/.test(b))return null;var K=A[w.column-2];if(_==x&&(K==x||D.test(K)))return null;F=!0}return{text:F?x+x:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,R,C,S,$){var L=S.$mode.$quotes||c,x=S.doc.getTextRange($);if(!$.isMultiLine()&&L.hasOwnProperty(x)){a(C);var k=S.doc.getLine($.start.row),M=k.substring($.start.column+1,$.start.column+2);if(M==x)return $.end.column++,$}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,R,C,S,$){if(y==="doc-start"&&($===`
987
+ `){a(C);var _="";m.isMaybeInsertedClosing(T,R)&&(_=s.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var y=R.substring(T.column,T.column+1);if(y==="}"){var w=S.findMatchingBracket({row:T.row,column:T.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 L=E+S.getTabString();return{text:`
988
+ `+L+`
989
+ `+E+_,selection:[1,L.length,1,L.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,x,C,S,$){var T=S.doc.getTextRange($);if(!$.isMultiLine()&&T=="{"){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 T=C.getSelectionRange(),R=S.doc.getTextRange(T);if(R!==""&&C.getWrapBehavioursEnabled())return f(T,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 T=S.doc.getTextRange($);if(!$.isMultiLine()&&T=="("){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 T=C.getSelectionRange(),R=S.doc.getTextRange(T);if(R!==""&&C.getWrapBehavioursEnabled())return f(T,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 T=S.doc.getTextRange($);if(!$.isMultiLine()&&T=="["){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 T=S.$mode.$quotes||c;if($.length==1&&T[$]){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||!T[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),L=S.getTokenAt(y.row,y.column+1);if(_=="\\"&&E&&/escape/.test(E.type))return null;var O=E&&/string|escape/.test(E.type),I=!L||/string|escape/.test(L.type),F;if(w==R)F=O!==I,F&&/string\.end/.test(L.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 T=S.$mode.$quotes||c,R=S.doc.getTextRange($);if(!$.isMultiLine()&&T.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
990
  `||$===`\r
991
- `)&&C.selection.isEmpty()){var L=C.getCursorPosition(),x=S.doc.getLine(L.row),k=S.doc.getLine(L.row+1),M=this.$getIndent(x);if(/\s*\*/.test(k))return/^\s*\*/.test(x)?{text:$+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:$+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(x.substring(0,L.column)))return{text:$+M+" * "+$+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})};m.isSaneInsertion=function(v,y){var R=v.getCursorPosition(),C=new g(y,R.row,R.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",h)){if(/[)}\]]/.test(v.session.getLine(R.row)[R.column]))return!0;var S=new g(y,R.row,R.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",h))return!1}return C.stepForward(),C.getCurrentTokenRow()!==R.row||this.$matchTokenType(C.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,R){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isAutoInsertedClosing(C,S,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=C.row,r.autoInsertedLineEnd=R+S.substr(C.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,R){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=C.row,r.maybeInsertedLineStart=S.substr(0,C.column)+R,r.maybeInsertedLineEnd=S.substr(C.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,R){return r.autoInsertedBrackets>0&&v.row===r.autoInsertedRow&&R===r.autoInsertedLineEnd[0]&&y.substr(v.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return r.maybeInsertedBrackets>0&&v.row===r.maybeInsertedRow&&y.substr(v.column)===r.maybeInsertedLineEnd&&y.substr(0,v.column)==r.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},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 y=f.doc,R=!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("|"),x=this.lineCommentStart[0];else var M=o.escapeRegExp(this.lineCommentStart),x=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--,y.removeInLine(H,K,Z)}},E=x+" ",A=function(j,H){(!R||/\S/.test(j))&&(T(j,S,S)?y.insertInLine({row:H,column:S},E):y.insertInLine({row:H,column:S},x))},b=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 x=this.blockComment.start,k=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(x)+")"),w=new RegExp("(?:"+o.escapeRegExp(k)+")\\s*$"),A=function(F,D){b(F,D)||(!R||/\S/.test(F))&&(y.insertInLine({row:D,column:F.length},k),y.insertInLine({row:D,column:S},x))},_=function(F,D){var W;(W=F.match(w))&&y.removeInLine(D,F.length-W[0].length,F.length),(W=F.match(M))&&y.removeInLine(D,W[1].length,W[0].length)},b=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(y.getLine(D),D)}var I=1/0;O(function(F,D){var W=F.search(/\S/);W!==-1?(W<S&&(S=W),C&&!b(F,D)&&(C=!1)):I>F.length&&(I=F.length)}),S==1/0&&(S=I,R=!1,C=!1),L&&S%$!=0&&(S=Math.floor(S/$)*$),O(C?_:A)},this.toggleBlockComment=function(a,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var R=new r(f,v.row,v.column),C=R.getCurrentToken();f.selection;var S=f.selection.toOrientedRange(),$,L;if(C&&/comment/.test(C.type)){for(var x,k;C&&/comment/.test(C.type);){var M=C.value.indexOf(y.start);if(M!=-1){var w=R.getCurrentTokenRow(),A=R.getCurrentTokenColumn()+M;x=new l(w,A,w,A+y.start.length);break}C=R.stepBackward()}for(var R=new r(f,v.row,v.column),C=R.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(y.end);if(M!=-1){var w=R.getCurrentTokenRow(),A=R.getCurrentTokenColumn()+M;k=new l(w,A,w,A+y.end.length);break}C=R.stepForward()}k&&f.remove(k),x&&(f.remove(x),$=x.start.row,L=-y.start.length)}else L=y.start.length,$=m.start.row,f.insert(m.end,y.end),f.insert(m.start,y.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,y=u.$modes[v];y||(u.$modes[v]=y=new m),u.$modes[f]||(u.$modes[f]=y),this.$embeds.push(f),this.$modes[f]=y}for(var R=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],f=0;f<R.length;f++)(function(S){var $=R[f],L=S[$];S[R[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 y=v[2][v[2].length-1],R=this.$modes[y];if(R)return R[a].apply(R,[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 R=this.$modes[this.$embeds[C]];return R[a].apply(R,f)}}var $=m.apply(this,f);return m?$:void 0},this.transformAction=function(a,f,m,v,y){if(this.$behaviour){var R=this.$behaviour.getBehaviours();for(var C in R)if(R[C][f]){var S=R[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 y=f[v],R=0,C=y.length;R<C;R++)if(typeof y[R].token=="string")/keyword|support|storage/.test(y[R].token)&&m.push(y[R].regex);else if(typeof y[R].token=="object"){for(var S=0,$=y[R].token.length;S<$;S++)if(/keyword|support|storage/.test(y[R].token[S])){var v=y[R].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 y=this.$keywordList||this.$createKeywordList();return y.map(function(R){return{name:R,value:R,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]:`
991
+ `)&&C.selection.isEmpty()){var T=C.getCursorPosition(),R=S.doc.getLine(T.row),k=S.doc.getLine(T.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,T.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(),T=!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+") ?"),T=f.getUseSoftTabs();var _=function(j,H){var U=j.match(M);if(U){var K=U[1].length,Z=U[0].length;!L(j,K,Z)&&U[0][Z-1]==" "&&Z--,b.removeInLine(H,K,Z)}},E=R+" ",A=function(j,H){(!x||/\S/.test(j))&&(L(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)},L=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),T&&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(),$,T;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,T=-b.start.length)}else T=b.start.length,$=m.start.row,f.insert(m.end,b.end),f.insert(m.start,b.start);S.start.row==$&&(S.start.column+=T),S.end.row==$&&(S.end.column+=T),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],T=S[$];S[x[f]]=function(){return this.$delegator($,arguments,T)}})(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
992
  `,this._signal("changeNewLineMode")},r.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
993
993
  `;case"unix":return`
994
994
  `;default:return this.$autoNewLine||`
995
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
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,y=f?c+1:c,R=f?0:this.getLine(y).length,C=new s(m,v,y,R),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,y=0,R=0;y<f;y=R){R+=c-1;var C=a.slice(y,R);C.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+R,v=0),action:l.action,lines:C},!0)}l.lines=a.slice(y),l.start.row=m+y,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),y=c||0;y<v;++y)m+=a[y].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(),y=0;for(r.running=!1;c<v;){r.$tokenizeRow(c),a=c;do c++;while(r.lines[c]);if(y++,y%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 y=v.length;y--;){var R=v[y].toScreenRange(r),C=R.toString();f[C]||(f[C]=!0,o.drawSingleLineMarker(h,R,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,x){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 x=this.$undoStack,k=x.length;k--;){var M=x[k][0];if(M.id<=$)break;M.id<L&&(M.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function($,L){for(var x=this.selections,k=x.length;k--;){var M=x[k];if(M.rev<$)return L&&(M=x[k+1]),M}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function($,L){L==null&&(L=this.$rev+1);for(var x=this.$undoStack,k=null,M=0,w=x.length;w--;){var A=x[w][0];if(A.id<L&&!k&&(k=w+1),A.id<=$){M=w+1;break}}return x.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 x=this.$undoStack;if(d(x,x.length)){$||($=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=x.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 x=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,x),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(w){w[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],x=L&&L[0].id||0;this.$redoStackBaseRev=x,this.$rev=x},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)+`
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($,T,R){if(!this.$fromUndo&&$!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!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($,T){this.selections.push({value:$,rev:T||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function($,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,k=R.length;k--;){var M=R[k][0];if(M.id<=$)break;M.id<T&&(M.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function($,T){for(var R=this.selections,k=R.length;k--;){var M=R[k];if(M.rev<$)return T&&(M=R[k+1]),M}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function($,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,k=null,M=0,y=R.length;y--;){var A=R[y][0];if(A.id<T&&!k&&(k=y+1),A.id<=$){M=y+1;break}}return R.slice(M,k)},S.prototype.getChangedRanges=function($,T){T==null&&(T=this.$rev+1)},S.prototype.getChangedLines=function($,T){T==null&&(T=this.$rev+1)},S.prototype.undo=function($,T){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,T),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M}},S.prototype.redo=function($,T){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,T),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,M},S.prototype.$syncRev=function(){var $=this.$undoStack,T=$[$.length-1],R=T&&T[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
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 x=S[L];if(x&&!x[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(`
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 T=$;T--;){var R=S[T];if(R&&!R[0].ignore){for(;T<$-1;){var k=a(S[T],S[T+1]);S[T]=k[0],S[T+1]=k[1],T++}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
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",x=$.action=="insert";if(L&&x)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&&!x)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&&x)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&&!x)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 x=0;x<$.length;x++)if(!c(S[L],$[x])){for(;L<S.length;){for(;x--;)c($[x],S[L]);x=$.length,L++}return[S,$]}return S.selectionBefore=$.selectionBefore=S.selectionAfter=$.selectionAfter=null,[$,S]}function f(S,$){var L=S.action=="insert",x=$.action=="insert";if(L&&x)s(S.start,$.start)<0?m($,S,1):m(S,$,1);else if(L&&!x)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&&x)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&&!x)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=y(S,$.start)),s(S.end,$.end)>0&&(M=y(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,x){S.row==(x==1?$:L).row&&(S.column+=x*(L.column-$.column)),S.row+=x*(L.row-$.row)}function y(S,$){var L=S.lines,x=S.end;S.end=h($);var k=S.end.row-S.start.row,M=L.splice(k,L.length),w=k?$.column:$.column-S.start.column;L.push(M[0].substring(0,w)),M[0]=M[0].substr(w);var A={start:h($),end:x,lines:M,action:S.action};return A}function R(S,$){$=o($);for(var L=S.length;L--;){for(var x=S[L],k=0;k<x.length;k++){var M=x[k],w=f(M,$);$=w[0],w.length!=2&&(w[2]?(x.splice(k+1,1,w[1],w[2]),k++):w[1]||(x.splice(k,1),k--))}x.length||S.splice(L,1)}return S}function C(S,$){for(var L=0;L<$.length;L++)for(var x=$[L],k=0;k<x.length;k++)R(S,x[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 y=c-l,R=-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+=R,v.start.row+=y)),v.end.row==l&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&R>0&&f<m-1&&v.end.column>v.start.column&&v.end.column==a[f+1].start.column&&(v.end.column-=R),v.end.column+=R,v.end.row+=y}}else for(var y=l-c,R=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?(y||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=R,v.end.row+=y):v.end.row>c&&(v.end.row+=y),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?(y||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=R,v.start.row+=y):v.start.row>c&&(v.start.row+=y)}if(y!=0&&f<m)for(;f<m;f++){var v=a[f];v.start.row+=y,v.end.row+=y}},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 R=a.start.row,C=a.start.column,f=0,m=-1;f<this.subFolds.length&&(m=this.subFolds[f].range.compare(R,C),m==1);f++);var v=this.subFolds[f],y=0;if(m==0){if(v.range.containsRange(a))return v.addSubFold(a);y=1}for(var R=a.range.end.row,C=a.range.end.column,S=f,m=-1;S<this.subFolds.length&&(m=this.subFolds[S].range.compare(R,C),m==1);S++);m==0&&S++;for(var $=this.subFolds.splice(f,S-f,a),L=m==0?$.length-1:$.length,x=y;x<L;x++)a.addSubFold($[x]);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 y=a[m].folds,R=0;R<y.length;R++){var C=y[R];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,y=0;y<a.folds.length;y++){v=a.folds[y];var R=v.range.compareEnd(r,l);if(R==-1){m=this.getLine(v.start.row).substring(f.end.column,v.start.column);break}else if(R===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,y=m.start.row;if(v>=l){y<l&&(y>=r?a-=l-y:a=0);break}else v>=r&&(y>=r?a-=v-y: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,y=f.end.row,R=f.end.column,C=this.getFoldAt(m,v,1),S=this.getFoldAt(y,R,-1);if(C&&S==C)return C.addSubFold(f);C&&!C.range.isStart(m,v)&&this.removeFold(C),S&&!S.range.isEnd(y,R)&&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 x=c[L];if(y==x.start.row){x.addFold(f),a=!0;break}else if(m==x.end.row){if(x.addFold(f),a=!0,!f.sameRow){var k=c[L+1];if(k&&k.start.row==y){x.merge(k);break}}break}else if(y<=x.start.row)break}return a||(x=this.$addFoldLine(new d(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(x.start.row,x.start.row):this.$updateRowLengthCache(x.start.row,x.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(y,R,C,S){if(!(R<a)){if(R==a){if(C<f)return;S=Math.max(f,S)}y!=null?v+=y:v+=m.getLine(R).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 y="...";if(!c.isMultiLine()){if(y=this.getTextRange(c),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,c)},this.getCommentFoldRange=function(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),y=new u;if(c!=1){do f=a.stepBackward();while(f&&v.test(f.type)&&!/^comment.end/.test(f.type));f=a.stepForward()}if(y.start.row=a.getCurrentTokenRow(),y.start.column=a.getCurrentTokenColumn()+(/^comment.start/.test(f.type)?f.value.length:2),a=new s(this,r,l),c!=-1){var R=-1;do if(f=a.stepForward(),R==-1){var C=this.getState(a.$row);v.test(C)||(R=a.$row)}else if(a.$row>R)break;while(f&&v.test(f.type)&&!/^comment.start/.test(f.type));f=a.stepBackward()}else f=a.getCurrentToken();return y.end.row=a.getCurrentTokenRow(),y.end.column=a.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(y.end.column+=f.value.length-2),y}},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 y=this.getParentFoldRangeData(r);if(y.range)var R=y.range.start.row+1,C=y.range.end.row;this.foldAll(R,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 y=m.charAt(f);if(y==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else y==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 y=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);h=s.stepForward();var R=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 y=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),R=y,C=R,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}while(h&&c>=0);if(a&&v&&y&&C&&f&&R)return{openTag:new d(a.start.row,a.start.column,v.end.row,v.end.column),closeTag:new d(y.start.row,y.start.column,C.end.row,C.end.column),openTagName:f,closeTagName:R}},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 y=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 R=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 x=0;x<$;x++)s.stepForward()}}while(o&&l<=0);if(C&&S&&m&&y&&R&&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,y.end.row,y.end.column),openTagName:R,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 w(A,_){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++w.$uid,this.$foldData.toString=function(){return this.join(`
1003
- `)},this.bgTokenizer=new a(new r().getTokenizer(),this);var b=this;this.bgTokenizer.on("update",function(E){b._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 w.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()},w.prototype.getDocument=function(){return this.doc},w.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var _=this.$docRowCache.length,b=this.$getRowCacheIndex(this.$docRowCache,A)+1;_>b&&(this.$docRowCache.splice(b,_),this.$screenRowCache.splice(b,_))},w.prototype.$getRowCacheIndex=function(A,_){for(var b=0,E=A.length-1;b<=E;){var T=b+E>>1,O=A[T];if(_>O)b=T+1;else if(_<O)E=T-1;else return T}return b-1},w.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},w.prototype.onChangeFold=function(A){var _=A.data;this.$resetRowCache(_.start.row)},w.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)},w.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},w.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 b=new w(A.value);return A.folds.forEach(function(E){b.addFold("...",l.fromPoints(E.start,E.end))}),b.setAnnotations(A.annotations),b.setBreakpoints(A.breakpoints),b.setMode(A.mode),b.setScrollLeft(A.scrollLeft),b.setScrollTop(A.scrollTop),b.setUndoManager(_),b.selection.fromJSON(A.selection),b},w.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()}},w.prototype.toString=function(){return this.doc.getValue()},w.prototype.getSelection=function(){return this.selection},w.prototype.getState=function(A){return this.bgTokenizer.getState(A)},w.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},w.prototype.getTokenAt=function(A,_){var b=this.bgTokenizer.getTokens(A),E,T=0;if(_==null){var O=b.length-1;T=this.getLine(A).length}else for(var O=0;O<b.length&&(T+=b[O].value.length,!(T>=_));O++);return E=b[O],E?(E.index=O,E.start=T-E.value.length,E):null},w.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(){}},w.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},w.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},w.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},w.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},w.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},w.prototype.setTabSize=function(A){this.setOption("tabSize",A)},w.prototype.getTabSize=function(){return this.$tabSize},w.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},w.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},w.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},w.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},w.prototype.getOverwrite=function(){return this.$overwrite},w.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},w.prototype.addGutterDecoration=function(A,_){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+_,this._signal("changeBreakpoint",{})},w.prototype.removeGutterDecoration=function(A,_){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+_,""),this._signal("changeBreakpoint",{})},w.prototype.getBreakpoints=function(){return this.$breakpoints},w.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var _=0;_<A.length;_++)this.$breakpoints[A[_]]="ace_breakpoint";this._signal("changeBreakpoint",{})},w.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},w.prototype.setBreakpoint=function(A,_){_===void 0&&(_="ace_breakpoint"),_?this.$breakpoints[A]=_:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},w.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},w.prototype.addMarker=function(A,_,b,E){var T=this.$markerId++,O={range:A,type:b||"line",renderer:typeof b=="function"?b:null,clazz:_,inFront:!!E,id:T};return E?(this.$frontMarkers[T]=O,this._signal("changeFrontMarker")):(this.$backMarkers[T]=O,this._signal("changeBackMarker")),T},w.prototype.addDynamicMarker=function(A,_){if(A.update){var b=this.$markerId++;return A.id=b,A.inFront=!!_,_?(this.$frontMarkers[b]=A,this._signal("changeFrontMarker")):(this.$backMarkers[b]=A,this._signal("changeBackMarker")),A}},w.prototype.removeMarker=function(A){var _=this.$frontMarkers[A]||this.$backMarkers[A];if(_){var b=_.inFront?this.$frontMarkers:this.$backMarkers;delete b[A],this._signal(_.inFront?"changeFrontMarker":"changeBackMarker")}},w.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},w.prototype.highlight=function(A){if(!this.$searchHighlight){var _=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(_)}this.$searchHighlight.setRegexp(A)},w.prototype.highlightLines=function(A,_,b,E){typeof _!="number"&&(b=_,_=A),b||(b="ace_step");var T=new l(A,0,_,1/0);return T.id=this.addMarker(T,b,"fullLine",E),T},w.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},w.prototype.getAnnotations=function(){return this.$annotations||[]},w.prototype.clearAnnotations=function(){this.setAnnotations([])},w.prototype.$detectNewLine=function(A){var _=A.match(/^.*?(\r?\n)/m);_?this.$autoNewLine=_[1]:this.$autoNewLine=`
1004
- `},w.prototype.getWordRange=function(A,_){var b=this.getLine(A),E=!1;if(_>0&&(E=!!b.charAt(_-1).match(this.tokenRe)),E||(E=!!b.charAt(_).match(this.tokenRe)),E)var T=this.tokenRe;else if(/^\s+$/.test(b.slice(_-1,_+1)))var T=/\s/;else var T=this.nonTokenRe;var O=_;if(O>0){do O--;while(O>=0&&b.charAt(O).match(T));O++}for(var I=_;I<b.length&&b.charAt(I).match(T);)I++;return new l(A,O,A,I)},w.prototype.getAWordRange=function(A,_){for(var b=this.getWordRange(A,_),E=this.getLine(b.end.row);E.charAt(b.end.column).match(/[ \t]/);)b.end.column+=1;return b},w.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},w.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},w.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},w.prototype.getUseWorker=function(){return this.$useWorker},w.prototype.onReloadTokenizer=function(A){var _=A.data;this.bgTokenizer.start(_.first),this._signal("tokenizerUpdate",A)},w.prototype.setMode=function(A,_){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var b=A,E=b.path}else E=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new r),this.$modes[E]&&!b){this.$onChangeMode(this.$modes[E]),_&&_();return}this.$modeId=E,s.loadModule(["mode",E],(function(T){if(this.$modeId!==E)return _&&_();this.$modes[E]&&!b?this.$onChangeMode(this.$modes[E]):T&&T.Mode&&(T=new T.Mode(b),b||(this.$modes[E]=T,T.$id=E),this.$onChangeMode(T)),_&&_()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},w.prototype.$onChangeMode=function(A,_){if(_||(this.$modeId=A.$id),this.$mode!==A){var b=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:b,mode:A}))}},w.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},w.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){s.warn("Could not load worker",A),this.$worker=null}},w.prototype.getMode=function(){return this.$mode},w.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},w.prototype.getScrollTop=function(){return this.$scrollTop},w.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},w.prototype.getScrollLeft=function(){return this.$scrollLeft},w.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},w.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},w.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _=this.doc.getAllLines(),b=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}b[D]==null&&(b[D]=this.$getStringScreenWidth(_[D])[0]),b[D]>E&&(E=b[D])}this.screenWidth=E}},w.prototype.getLine=function(A){return this.doc.getLine(A)},w.prototype.getLines=function(A,_){return this.doc.getLines(A,_)},w.prototype.getLength=function(){return this.doc.getLength()},w.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},w.prototype.insert=function(A,_){return this.doc.insert(A,_)},w.prototype.remove=function(A){return this.doc.remove(A)},w.prototype.removeFullLines=function(A,_){return this.doc.removeFullLines(A,_)},w.prototype.undoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var b=A.length-1;b!=-1;b--){var E=A[b];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}},w.prototype.redoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var b=0;b<A.length;b++){var E=A[b];(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}},w.prototype.setUndoSelect=function(A){this.$undoSelect=A},w.prototype.$getUndoSelection=function(A,_){function b(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){b(I)?E=l.fromPoints(I.start,I.end):E=l.fromPoints(I.start,I.start);continue}b(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},w.prototype.replace=function(A,_){return this.doc.replace(A,_)},w.prototype.moveText=function(A,_,b){var E=this.getTextRange(A),T=this.getFoldsInRange(A),O=l.fromPoints(_,_);if(!b){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},w.prototype.indentRows=function(A,_,b){b=b.replace(/\t/g,this.getTabString());for(var E=A;E<=_;E++)this.doc.insertInLine({row:E,column:0},b)},w.prototype.outdentRows=function(A){for(var _=A.collapseRows(),b=new l(0,0,0,0),E=this.getTabSize(),T=_.start.row;T<=_.end.row;++T){var O=this.getLine(T);b.start.row=T,b.end.row=T;for(var I=0;I<E&&O.charAt(I)==" ";++I);I<E&&O.charAt(I)==" "?(b.start.column=I,b.end.column=I+1):(b.start.column=0,b.end.column=I),this.remove(b)}},w.prototype.$moveLines=function(A,_,b){if(A=this.getRowFoldStart(A),_=this.getRowFoldEnd(_),b<0){var E=this.getRowFoldStart(A+b);if(E<0)return 0;var T=E-A}else if(b>0){var E=this.getRowFoldEnd(_+b);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=b==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+T,F),I.length&&this.addFolds(I),T},w.prototype.moveLinesUp=function(A,_){return this.$moveLines(A,_,-1)},w.prototype.moveLinesDown=function(A,_){return this.$moveLines(A,_,1)},w.prototype.duplicateLines=function(A,_){return this.$moveLines(A,_,0)},w.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},w.prototype.$clipColumnToRow=function(A,_){return _<0?0:Math.min(this.doc.getLine(A).length,_)},w.prototype.$clipPositionToDocument=function(A,_){if(_=Math.max(0,_),A<0)A=0,_=0;else{var b=this.doc.getLength();A>=b?(A=b-1,_=this.doc.getLine(b-1).length):_=Math.min(this.doc.getLine(A).length,_)}return{row:A,column:_}},w.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},w.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")}},w.prototype.getUseWrapMode=function(){return this.$useWrapMode},w.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"))},w.prototype.adjustWrapLimit=function(A,_){var b=this.$wrapLimitRange;b.max<0&&(b={min:_,max:_});var E=this.$constrainWrapLimit(A,b.min,b.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},w.prototype.$constrainWrapLimit=function(A,_,b){return _&&(A=Math.max(_,A)),b&&(A=Math.min(b,A)),A},w.prototype.getWrapLimit=function(){return this.$wrapLimit},w.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},w.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},w.prototype.$updateInternalDataOnChange=function(A){var _=this.$useWrapMode,b=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(b==="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),b==="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},w.prototype.$updateRowLengthCache=function(A,_,b){this.$rowLengthCache[A]=null,this.$rowLengthCache[_]=null},w.prototype.$updateWrapData=function(A,_){var b=this.doc.getAllLines(),E=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,F,D=A;for(_=Math.min(_,b.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(b[j].substring(U,H),I.length);I=I.concat(K)}).bind(this),F.end.row,b[F.end.row].length+1),T[F.start.row]=this.$computeWrapSplits(I,O,E),D=F.end.row+1):(I=this.$getDisplayTokens(b[D]),T[D]=this.$computeWrapSplits(I,O,E),D++)},w.prototype.$computeWrapSplits=function(A,_,b){if(A.length==0)return[];var E=[],T=A.length,O=0,I=0,F=this.$wrapAsCode,D=this.$indentedSoftWrap,W=_<=Math.max(2*b,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==x)z+=b;else{if(Y==k)continue;break}}return F&&D!==!1&&(z+=b),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]==R&&K--,H(K-U)}return E},w.prototype.$getDisplayTokens=function(A,_){var b=[],E;_=_||0;for(var T=0;T<A.length;T++){var O=A.charCodeAt(T);if(O==9){E=this.getScreenTabSize(b.length+_),b.push(x);for(var I=1;I<E;I++)b.push(k)}else O==32?b.push(L):O>39&&O<48||O>57&&O<64?b.push($):O>=4352&&M(O)?b.push(y,R):b.push(y)}return b},w.prototype.$getStringScreenWidth=function(A,_,b){if(_==0)return[0,0];_==null&&(_=1/0),b=b||0;var E,T;for(T=0;T<A.length&&(E=A.charCodeAt(T),E==9?b+=this.getScreenTabSize(b):E>=4352&&M(E)?b+=2:b+=1,!(b>_));T++);return[b,T]},w.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+_},w.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},w.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE),b=this.$wrapData[_.row];return b.length&&b[0]<_.column?b.indent:0}else return 0},w.prototype.getScreenLastRowColumn=function(A){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},w.prototype.getDocumentLastRowColumn=function(A,_){var b=this.documentToScreenRow(A,_);return this.getScreenLastRowColumn(b)},w.prototype.getDocumentLastRowColumnPosition=function(A,_){var b=this.documentToScreenRow(A,_);return this.screenToDocumentPosition(b,Number.MAX_VALUE/10)},w.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},w.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},w.prototype.screenToDocumentRow=function(A,_){return this.screenToDocumentPosition(A,_).row},w.prototype.screenToDocumentColumn=function(A,_){return this.screenToDocumentPosition(A,_).column},w.prototype.screenToDocumentPosition=function(A,_,b){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 b!==void 0&&this.$bidiHandler.isBidiRow(F+Y,T,Y)&&(_=this.$bidiHandler.offsetToCol(b)),O+=this.$getStringScreenWidth(E,_-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Z?Z.idxToPosition(O):{row:T,column:O}},w.prototype.documentToScreenPosition=function(A,_){if(typeof _>"u")var b=this.$clipPositionToDocument(A.row,A.column);else b=this.$clipPositionToDocument(A,_);A=b.row,_=b.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]}},w.prototype.documentToScreenColumn=function(A,_){return this.documentToScreenPosition(A,_).column},w.prototype.documentToScreenRow=function(A,_){return this.documentToScreenPosition(A,_).row},w.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 b=this.$foldData,E=0;E<b.length;E++)_=b[E],A-=_.end.row-_.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},w.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(_,b,E){if(b===0)return[0,0];b||(b=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>b));O++);return[E,O]})},w.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()},w}();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 y=1,R=2,C=3,S=4,$=9,L=10,x=11,k=12;function M(w){return w<4352?!1:w>=4352&&w<=4447||w>=4515&&w<=4519||w>=4602&&w<=4607||w>=9001&&w<=9002||w>=11904&&w<=11929||w>=11931&&w<=12019||w>=12032&&w<=12245||w>=12272&&w<=12283||w>=12288&&w<=12350||w>=12353&&w<=12438||w>=12441&&w<=12543||w>=12549&&w<=12589||w>=12593&&w<=12686||w>=12688&&w<=12730||w>=12736&&w<=12771||w>=12784&&w<=12830||w>=12832&&w<=12871||w>=12880&&w<=13054||w>=13056&&w<=19903||w>=19968&&w<=42124||w>=42128&&w<=42182||w>=43360&&w<=43388||w>=44032&&w<=55203||w>=55216&&w<=55238||w>=55243&&w<=55291||w>=63744&&w<=64255||w>=65040&&w<=65049||w>=65072&&w<=65106||w>=65108&&w<=65126||w>=65128&&w<=65131||w>=65281&&w<=65376||w>=65504&&w<=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(w){if(!w||w=="off"?w=!1:w=="free"?w=!0:w=="printMargin"?w=-1:typeof w=="string"&&(w=parseInt(w,10)||!1),this.$wrap!=w)if(this.$wrap=w,!w)this.setUseWrapMode(!1);else{var A=typeof w=="number"?w: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(w){w=w=="auto"?this.$mode.type!="text":w!="text",w!=this.$wrapAsCode&&(this.$wrapAsCode=w,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(w){this.$useWorker=w,this.$stopWorker(),w&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(w){w=parseInt(w),w>0&&this.$tabSize!==w&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=w,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(w){this.setFoldStyle(w)},handlesSet:!0},overwrite:{set:function(w){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(w){this.doc.setNewLineMode(w)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(w){this.setMode(w)},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,y){return a=new g(f,m,v,y),m==y&&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,y=a.length-v,R;e:for(var C=m.offset||0;C<=y;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],x=$.length-$.match(m[0])[0].length,k=L.match(m[v-1])[0].length;R&&R.end.row===C&&R.end.column>x||(f.push(R=new g(C,x,C+v-1,k)),v>2&&(C=C+v-2))}}else for(var M=0;M<a.length;M++)for(var w=u.getMatchOffsets(a[M],m),S=0;S<w.length;S++){var A=w[S];f.push(new g(M,A.offset,M,A.offset+A.length))}if(c){for(var _=c.start.column,b=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>b&&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,`$
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 T=S.action=="insert",R=$.action=="insert";if(T&&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(T&&!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(!T&&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(!T&&!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 T=S.length;T--;)for(var R=0;R<$.length;R++)if(!c(S[T],$[R])){for(;T<S.length;){for(;R--;)c($[R],S[T]);R=$.length,T++}return[S,$]}return S.selectionBefore=$.selectionBefore=S.selectionAfter=$.selectionAfter=null,[$,S]}function f(S,$){var T=S.action=="insert",R=$.action=="insert";if(T&&R)s(S.start,$.start)<0?m($,S,1):m(S,$,1);else if(T&&!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(!T&&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(!T&&!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,$,T){v(S.start,$.start,$.end,T),v(S.end,$.start,$.end,T)}function v(S,$,T,R){S.row==(R==1?$:T).row&&(S.column+=R*(T.column-$.column)),S.row+=R*(T.row-$.row)}function b(S,$){var T=S.lines,R=S.end;S.end=h($);var k=S.end.row-S.start.row,M=T.splice(k,T.length),y=k?$.column:$.column-S.start.column;T.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 T=S.length;T--;){for(var R=S[T],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(T,1)}return S}function C(S,$){for(var T=0;T<$.length;T++)for(var R=$[T],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),T=m==0?$.length-1:$.length,R=b;R<T;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 T=0;T<c.length;T++){var R=c[T];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[T+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,T=o;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===r){l--;break}else if(T.value==="<")break;T=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 L=w+E>>1,O=A[L];if(_>O)w=L+1;else if(_<O)E=L-1;else return L}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,L=0;if(_==null){var O=w.length-1;L=this.getLine(A).length}else for(var O=0;O<w.length&&(L+=w[O].value.length,!(L>=_));O++);return E=w[O],E?(E.index=O,E.start=L-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 L=this.$markerId++,O={range:A,type:w||"line",renderer:typeof w=="function"?w:null,clazz:_,inFront:!!E,id:L};return E?(this.$frontMarkers[L]=O,this._signal("changeFrontMarker")):(this.$backMarkers[L]=O,this._signal("changeBackMarker")),L},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 L=new l(A,0,_,1/0);return L.id=this.addMarker(L,w,"fullLine",E),L},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 L=this.tokenRe;else if(/^\s+$/.test(w.slice(_-1,_+1)))var L=/\s/;else var L=this.nonTokenRe;var O=_;if(O>0){do O--;while(O>=0&&w.charAt(O).match(L));O++}for(var I=_;I<w.length&&w.charAt(I).match(L);)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(L){if(this.$modeId!==E)return _&&_();this.$modes[E]&&!w?this.$onChangeMode(this.$modes[E]):L&&L.Mode&&(L=new L.Mode(w),w||(this.$modes[E]=L,L.$id=E),this.$onChangeMode(L)),_&&_()}).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 L=this.onReloadTokenizer.bind(this);E.on("update",L)}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,L=0,O=this.$foldData[L],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[L++],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,L,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)?(L=I.start,E.compare(L.row,L.column)==-1&&E.setStart(L),L=I.end,E.compare(L.row,L.column)==1&&E.setEnd(L)):(L=I.start,E.compare(L.row,L.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),L=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),L.length){var D=A.start,W=O.start,I=W.row-D.row,F=W.column-D.column;this.addFolds(L.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(),L=_.start.row;L<=_.end.row;++L){var O=this.getLine(L);w.start.row=L,w.end.row=L;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 L=E-A}else if(w>0){var E=this.getRowFoldEnd(_+w);if(E>this.doc.getLength()-1)return 0;var L=E-_}else{A=this.$clipRowToDocument(A),_=this.$clipRowToDocument(_);var L=_-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+=L,D.end.row+=L,D}),F=w==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+L,F),I.length&&this.addFolds(I),L},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,L=A.end,O=E.row,I=L.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(L.row),H=0;if(j){j.addRemoveChars(L.row,L.column,E.column-L.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>=L.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,L.column-E.column))):z==-1&&(j.addRemoveChars(O,0,L.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(),L=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),L[F.start.row]=this.$computeWrapSplits(I,O,E),D=F.end.row+1):(I=this.$getDisplayTokens(w[D]),L[D]=this.$computeWrapSplits(I,O,E),D++)},y.prototype.$computeWrapSplits=function(A,_,w){if(A.length==0)return[];var E=[],L=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==T)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;L-O>_-U;){var K=O+_-U;if(A[K-1]>=T&&A[K]>=T){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]<T;)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 L=0;L<A.length;L++){var O=A.charCodeAt(L);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(T):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,L;for(L=0;L<A.length&&(E=A.charCodeAt(L),E==9?w+=this.getScreenTabSize(w):E>=4352&&M(E)?w+=2:w+=1,!(w>_));L++);return[w,L]},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,L=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],L=this.$docRowCache[j],U=A>W[H-1];else var U=!H;for(var K=this.getLength()-1,Z=this.getNextFoldLine(L),z=Z?Z.start.row:1/0;F<=A&&(D=this.getRowLength(L),!(F+D>A||L>=K));)F+=D,L++,L>z&&(L=Z.end.row+1,Z=this.getNextFoldLine(L,Z),z=Z?Z.start.row:1/0),U&&(this.$docRowCache.push(L),this.$screenRowCache.push(F));if(Z&&Z.start.row<=L)E=this.getFoldDisplayLine(Z),L=Z.start.row;else{if(F+D<=A||L>K)return{row:K,column:this.getLine(K).length};E=this.getLine(L),Z=null}var X=0,Y=Math.floor(A-F);if(this.$useWrapMode){var V=this.$wrapData[L];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,L,Y)&&(_=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(E,_-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Z?Z.idxToPosition(O):{row:L,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,L=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,_),L=U.start.row):(Z=this.getLine(A).substring(0,_),L=A);var z=0;if(this.$useWrapMode){var X=this.$wrapData[L];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 L=this.$wrapData.length,O=0,E=0,_=this.$foldData[E++],I=_?_.start.row:1/0;O<L;){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 L,O;for(O=0;O<_.length&&(L=_.charAt(O),L===" "?E+=this.getScreenTabSize(E):E+=A.getCharacterWidth(L),!(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,T=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],T=a[C+v-1],R=$.length-$.match(m[0])[0].length,k=T.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
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 y=m?m.start.row:0,R=m?m.end.row:r.getLength()-1;if(a)var C=function(L){var x=v.row;if(!$(x,v.column,L)){for(x--;x>=y;x--)if($(x,Number.MAX_VALUE,L))return;if(l.wrap!=!1){for(x=R,y=v.row;x>=y;x--)if($(x,Number.MAX_VALUE,L))return}}};else var C=function(x){var k=v.row;if(!$(k,v.column,x)){for(k=k+1;k<=R;k++)if($(k,0,x))return;if(l.wrap!=!1){for(k=y,R=v.row;k<=R;k++)if($(k,0,x))return}}};if(l.$isMultiLine)var S=c.length,$=function(L,x,k){var M=a?L-S+1:L;if(!(M<0||M+S>r.getLength())){var w=r.getLine(M),A=w.search(c[0]);if(!(!a&&A<x||A===-1)){for(var _=1;_<S;_++)if(w=r.getLine(M+_),w.search(c[_])==-1)return;var b=w.match(c[S-1])[0].length;if(!(a&&b>x)&&k(M,A,M+S-1,b))return!0}}};else if(a)var $=function(x,k,M){var w=r.getLine(x),A=[],_,b=0;for(c.lastIndex=0;_=c.exec(w);){var E=_[0].length;if(b=_.index,!E){if(b>=w.length)break;c.lastIndex=b+=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(x,O,x,O+E))return!0}};else var $=function(x,k,M){var w=r.getLine(x),A,_;for(c.lastIndex=k;_=c.exec(w);){var b=_[0].length;if(A=_.index,M(x,A,x,A+b))return!0;if(!b&&(c.lastIndex=A+=1,A>=w.length))return!1}};return{forEach:C}},o}();function h(o,r){var l=u.supportsLookbehind();function c(v,y){y===void 0&&(y=!0);var R=l&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return R.test(v)||r.regExp?l&&r.$supportsUnicodeFlag?y?"(?<=^|[^\\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 y=m[v];if(y==c)delete m[v];else if(Array.isArray(y)){var R=y.indexOf(c);R!=-1&&(y.splice(R,1),y.length==1&&(m[v]=y[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 y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var $=this.parseKeys(S),L=s[$.hashId]+$.key;v+=(v?" ":"")+L,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var R=this.parseKeys(m),C=s[R.hashId]+R.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 y=m[c];for(v=0;v<y.length;v++){var R=y[v],C=o(R);if(C>f)break}y.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,y=a.length;y--;){var R=d.KEY_MODS[a[y]];if(R==null)return typeof console<"u"&&console.error("invalid modifier "+a[y]+" in "+c),!1;v|=R}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,y=this.commandKeyBinding[v];return c.$keyChain&&(c.$keyChain+=" "+v,y=this.commandKeyBinding[c.$keyChain]||y),y&&(y=="chainKeys"||y[y.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:y})}},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),y=l.row+1;y<=c.row+1;y++){var R=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(y)));R.length!==0&&(R=" "+R),v+=R}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(`
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(T){var R=v.row;if(!$(R,v.column,T)){for(R--;R>=b;R--)if($(R,Number.MAX_VALUE,T))return;if(l.wrap!=!1){for(R=x,b=v.row;R>=b;R--)if($(R,Number.MAX_VALUE,T))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(T,R,k){var M=a?T-S+1:T;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 L=A.length-1;L>=0;L-=2){var O=A[L-1],E=A[L];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),T=s[$.hashId]+$.key;v+=(v?" ":"")+T,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
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",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 b=typeof Symbol=="function"&&Symbol.iterator,E=b&&_[b],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(b?"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,y=n("./commands/command_manager").CommandManager,R=n("./commands/default_commands").commands,C=n("./config"),S=n("./token_iterator").TokenIterator,$=n("./line_widgets").LineWidgets,L=n("./keyboard/gutter_handler").GutterKeyboardHandler,x=n("./config").nls,k=n("./clipboard"),M=n("./lib/keys"),w=function(){function _(b,E,T){this.$toDestroy=[];var O=b.getContainerElement();this.container=O,this.renderer=b,this.id="editor"+ ++_.$uid,this.commands=new y(h.isMac?"mac":"win",R),typeof document=="object"&&(this.textInput=new o(b.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(b){if(this.curOp){if(!b||this.curOp.command)return;this.prevOp=this.curOp}b||(this.previousCommand=null,b={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:b.command||{},args:b.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},_.prototype.endOperation=function(b){if(this.curOp&&this.session){if(b&&b.returnValue===!1||!this.session)return this.curOp=null;if(b==!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(b){if(this.$mergeUndoDeltas){var E=this.prevOp,T=this.$mergeableCommands,O=E.command&&b.command.name==E.command.name;if(b.command.name=="insertstring"){var I=b.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(b.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(b.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},_.prototype.setKeyboardHandler=function(b,E){if(b&&typeof b=="string"&&b!="ace"){this.$keybindingId=b;var T=this;C.loadModule(["keybinding",b],function(O){T.$keybindingId==b&&T.keyBinding.setKeyboardHandler(O&&O.handler),E&&E()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(b),E&&E()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(b){if(this.session!=b){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=b,b?(this.$onDocumentChange=this.onDocumentChange.bind(this),b.on("change",this.$onDocumentChange),this.renderer.setSession(b),this.$onChangeMode=this.onChangeMode.bind(this),b.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),b.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),b.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),b.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),b.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),b.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=b.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(b)),this._signal("changeSession",{session:b,oldSession:E}),this.curOp=null,E&&E._signal("changeEditor",{oldEditor:this}),b&&b._signal("changeEditor",{editor:this}),b&&!b.destroyed&&b.bgTokenizer.scheduleStart()}},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(b,E){return this.session.doc.setValue(b),E?E==1?this.navigateFileEnd():E==-1&&this.navigateFileStart():this.selectAll(),b},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(b){this.renderer.onResize(b)},_.prototype.setTheme=function(b,E){this.renderer.setTheme(b,E)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(b){this.renderer.setStyle(b)},_.prototype.unsetStyle=function(b){this.renderer.unsetStyle(b)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(b){this.setOption("fontSize",b)},_.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var b=this;this.$highlightPending=!0,setTimeout(function(){b.$highlightPending=!1;var E=b.session;if(!(!E||E.destroyed)){E.$bracketHighlight&&(E.$bracketHighlight.markerIds.forEach(function(U){E.removeMarker(U)}),E.$bracketHighlight=null);var T=b.getCursorPosition(),O=b.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(b),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(b.session)),!F){b.getHighlightIndentGuides()&&b.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")})},b.getHighlightIndentGuides()&&b.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(b){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",b))},_.prototype.onBlur=function(b){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",b))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(b){var E=this.session.$useWrapMode,T=b.start.row==b.end.row?b.end.row:1/0;this.renderer.updateLines(b.start.row,T,E),this._signal("change",b),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(b){var E=b.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 b=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)),b.$highlightLineMarker&&!E)b.removeMarker(b.$highlightLineMarker.id),b.$highlightLineMarker=null;else if(!b.$highlightLineMarker&&E){var T=new m(E.row,E.column,E.row,1/0);T.id=b.addMarker(T,"ace_active-line","screenLine"),b.$highlightLineMarker=T}else E&&(b.$highlightLineMarker.start.row=E.row,b.$highlightLineMarker.end.row=E.row,b.$highlightLineMarker.start.column=E.column,b._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(b){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 b=this.session,E=this.getSelectionRange();if(!(E.isEmpty()||E.isMultiLine())){var T=E.start.column,O=E.end.column,I=b.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(b){this.renderer.updateText(),this._emit("changeMode",b)},_.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 b=this.getSelectedText(),E=this.session.doc.getNewLineCharacter(),T=!1;if(!b&&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||(b+=this.session.getLine(F.start.row)+E)}}var D={text:b};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(b,E){var T={text:b,event:E};this.commands.exec("paste",this,T)},_.prototype.$handlePaste=function(b){typeof b=="string"&&(b={text:b}),this._signal("paste",b);var E=b.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(b,E){return this.commands.exec(b,this,E)},_.prototype.insert=function(b,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,b);F&&(b!==F.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),b=F.text)}if(b==" "&&(b=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&b.indexOf(`
1009
- `)==-1){var D=new m.fromPoints(I,I);D.end.column+=b.length,this.session.remove(D)}}else{var D=this.getSelectionRange();I=this.session.remove(D),this.clearSelection()}if(b==`
1010
- `||b==`\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,b);if(T.insert(I,b),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(b)){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 b=this.session,E=b.getMode(),T,O;if(this.selection.isEmpty())T=0,O=b.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=b.getTabString(),Z=T;Z<=O;Z++)Z>0&&(F=b.getState(Z-1),D=b.getLine(Z-1),W=E.getNextLineIndent(F,D,K)),j=b.getLine(Z),H=E.$getIndent(j),W!==H&&(H.length>0&&(U=new m(Z,0,Z,H.length),b.remove(U)),W.length>0&&b.insert({row:Z,column:0},W)),E.autoOutdent(F,b,Z)},_.prototype.onTextInput=function(b,E){if(!E)return this.keyBinding.onTextInput(b);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,b,E);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},_.prototype.applyComposition=function(b,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),!b&&!T.isEmpty()&&this.remove()}if((b||!this.selection.isEmpty())&&this.insert(b,!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(b,E,T){return this.keyBinding.onCommandKey(b,E,T)},_.prototype.setOverwrite=function(b){this.session.setOverwrite(b)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(b){this.setOption("scrollSpeed",b)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(b){this.setOption("dragDelay",b)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(b){this.setOption("selectionStyle",b)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(b){this.setOption("highlightActiveLine",b)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(b){this.setOption("highlightGutterLine",b)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(b){this.setOption("highlightSelectedWord",b)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(b){this.renderer.setAnimatedScroll(b)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(b){this.renderer.setShowInvisibles(b)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(b){this.renderer.setDisplayIndentGuides(b)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(b){this.renderer.setHighlightIndentGuides(b)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(b){this.renderer.setShowPrintMargin(b)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(b){this.renderer.setPrintMarginColumn(b)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(b){this.setOption("readOnly",b)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(b){this.setOption("behavioursEnabled",b)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(b){this.setOption("wrapBehavioursEnabled",b)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(b){this.setOption("showFoldWidgets",b)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(b){this.setOption("fadeFoldWidgets",b)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(b){this.selection.isEmpty()&&(b=="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 b=this.getSelectionRange();b.start.column==b.end.column&&b.start.row==b.end.row&&(b.end.column=0,b.end.row++),this.session.remove(b),this.clearSelection()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var b=this.getCursorPosition();this.insert(`
1013
- `),this.moveCursorToPosition(b)},_.prototype.setGhostText=function(b,E){this.session.widgetManager||(this.session.widgetManager=new $(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(b,E)},_.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var b=this.getCursorPosition(),E=b.column;if(E!==0){var T=this.session.getLine(b.row),O,I;E<T.length?(O=T.charAt(E)+T.charAt(E-1),I=new m(b.row,E-1,b.row,E+1)):(O=T.charAt(E-1)+T.charAt(E-2),I=new m(b.row,E-2,b.row,E)),this.session.replace(I,O),this.session.selection.moveToPosition(I.end)}}},_.prototype.toLowerCase=function(){var b=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(b)},_.prototype.toUpperCase=function(){var b=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(b)},_.prototype.indent=function(){var b=this.session,E=this.getSelectionRange();if(E.start.row<E.end.row){var T=this.$getSelectedRows();b.indentRows(T.first,T.last," ");return}else if(E.start.column<E.end.column){var O=b.getTextRange(E);if(!/^\s+$/.test(O)){var T=this.$getSelectedRows();b.indentRows(T.first,T.last," ");return}}var I=b.getLine(E.start.row),F=E.start,D=b.getTabSize(),W=b.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 b=this.$getSelectedRows();this.session.indentRows(b.first,b.last," ")},_.prototype.blockOutdent=function(){var b=this.session.getSelection();this.session.outdentRows(b.getRange())},_.prototype.sortLines=function(){for(var b=this.$getSelectedRows(),E=this.session,T=[],O=b.first;O<=b.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=b.first;O<=b.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-b.first])}},_.prototype.toggleCommentLines=function(){var b=this.session.getState(this.getCursorPosition().row),E=this.$getSelectedRows();this.session.getMode().toggleCommentLines(b,this.session,E.first,E.last)},_.prototype.toggleBlockComment=function(){var b=this.getCursorPosition(),E=this.session.getState(b.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,T,b)},_.prototype.getNumberAt=function(b,E){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(b);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(b){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?b*=Math.pow(10,F.end-T-1):b*=Math.pow(10,F.end-T),j+=b,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 b=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,N){W=D+ee.length,F>=D&&F<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(b,D+O),j.selection.selectTo(b,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 N=Z[X];return ee.toUpperCase()==ee?N=N.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(N=N.substr(0,0)+Z[X].charAt(0).toUpperCase()+N.substr(1)),N}),this.insert(U),U="")}}},_.prototype.findLinkAt=function(b,E){var T,O,I=this.session.getLine(b),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 b=this.selection.getCursor(),E=this.findLinkAt(b.row,b.column);return E&&window.open(E,"_blank"),E!=null},_.prototype.removeLines=function(){var b=this.$getSelectedRows();this.session.removeFullLines(b.first,b.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var b=this.selection,E=this.session,T=b.getRange(),O=b.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,b.setSelectionRange(T,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(b,E,T){return this.session.moveText(b,E,T)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(b,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:b),E&&b==-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:b),E&&b==-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(b){return b=(b||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(b.start.row),last:this.session.getRowFoldEnd(b.end.row)}},_.prototype.onCompositionStart=function(b){this.renderer.showComposition(b)},_.prototype.onCompositionUpdate=function(b){this.renderer.setCompositionText(b)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(b){return b>=this.getFirstVisibleRow()&&b<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(b){return b>=this.renderer.getFirstFullyVisibleRow()&&b<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(b,E){var T=this.renderer,O=this.renderer.layerConfig,I=b*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(b){this.renderer.scrollToRow(b)},_.prototype.scrollToLine=function(b,E,T,O){this.renderer.scrollToLine(b,E,T,O)},_.prototype.centerSelection=function(){var b=this.getSelectionRange(),E={row:Math.floor(b.start.row+(b.end.row-b.start.row)/2),column:Math.floor(b.start.column+(b.end.column-b.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(b,E){this.selection.moveCursorTo(b,E)},_.prototype.moveCursorToPosition=function(b){this.selection.moveCursorToPosition(b)},_.prototype.jumpToMatching=function(b,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&&(b?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(b,E,T){this.selection.clearSelection(),this.session.unfold({row:b-1,column:E||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(b-1,E||0),this.isRowFullyVisible(b-1)||this.scrollToLine(b-1,!0,T)},_.prototype.navigateTo=function(b,E){this.selection.moveTo(b,E)},_.prototype.navigateUp=function(b){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(-b||-1,0)},_.prototype.navigateDown=function(b){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(b||1,0)},_.prototype.navigateLeft=function(b){if(this.selection.isEmpty())for(b=b||1;b--;)this.selection.moveCursorLeft();else{var E=this.getSelectionRange().start;this.moveCursorToPosition(E)}this.clearSelection()},_.prototype.navigateRight=function(b){if(this.selection.isEmpty())for(b=b||1;b--;)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(b,E){E&&this.$search.set(E);var T=this.$search.find(this.session),O=0;return T&&(this.$tryReplace(T,b)&&(O=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),O},_.prototype.replaceAll=function(b,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],b)&&O++;return this.selection.setSelectionRange(I),O},_.prototype.$tryReplace=function(b,E){var T=this.session.getTextRange(b);return E=this.$search.replace(T,E),E!==null?(b.end=this.session.replace(b,E),b):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(b,E,T){E||(E={}),typeof b=="string"||b instanceof RegExp?E.needle=b:typeof b=="object"&&d.mixin(E,b);var O=this.selection.getRange();E.needle==null&&(b=this.session.getTextRange(O)||this.$search.$options.needle,b||(O=this.session.getWordRange(O.start.row,O.start.column),b=this.session.getTextRange(O)),this.$search.set({needle:b})),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(b,E){this.find({skipCurrent:!0,backwards:!1},b,E)},_.prototype.findPrevious=function(b,E){this.find(b,{skipCurrent:!0,backwards:!0},E)},_.prototype.revealRange=function(b,E){this.session.unfold(b),this.selection.setSelectionRange(b);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(b.start,b.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(b){b.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(b){if(b){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 b=this.$cursorStyle||"ace",E=this.renderer.$cursorLayer;E&&(E.setSmoothBlinking(/smooth/.test(b)),E.isBlinking=!this.$readOnly&&b!="wide",g.setCssClass(E.element,"ace_slim-cursors",/slim/.test(b)))},_.prototype.prompt=function(b,E,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,b,E,T)})},_}();w.$uid=0,w.prototype.curOp=null,w.prototype.prevOp={},w.prototype.$mergeableCommands=["backspace","del","insertstring"],w.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(w.prototype,v),C.defineOptions(w.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 b=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(b&&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(!b&&!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!b&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(_){var b={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",x("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",x("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",E.bind(this)),this.commands.addCommand(b),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",x("editor")),this.renderer.$gutter.setAttribute("aria-label",x("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(b),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(_,b){return(Math.abs(_.selection.lead.row-b)||b+1+(b<9?"·":""))+""},getWidth:function(_,b,E){return Math.max(b.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(_,b){b.renderer.$loop.schedule(b.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=w}),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,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[]});var R=m.text,C=m.type;R=R?g.escapeHTML(R):m.html||"",y.text.indexOf(R)===-1&&(y.text.push(R),y.type.push(C));var S=m.className;S?y.className=S:C=="error"?y.className=" ace_error":C=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":C=="info"&&!y.className&&(y.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 y=f.getNextFoldLine(m),R=y?y.start.row:1/0,C=null,S=-1,$=m;;){if($>R&&($=y.end.row+1,y=f.getNextFoldLine($,y),R=y?y.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,y,$),$++}this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$updateGutterWidth=function(a){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(y=f.getLength()+v-1);var R=m?m.getWidth(f,y,a):y.toString().length*a.characterWidth,C=this.$padding||this.$computePadding();R+=C.left+C.right,R!==this.gutterWidth&&!isNaN(R)&&(this.gutterWidth=R,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",R))},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 y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==f[m-1].row)v=f[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},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 y=this.session.getFoldedRowCount(f.firstRow,a.firstRow-1);y>0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();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=[],y=f,R=this.session.getNextFoldLine(y),C=R?R.start.row:1/0;y>C&&(y=R.end.row+1,R=this.session.getNextFoldLine(y,R),C=R?R.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,a,this.session,l);this.$renderCell(S,a,R,y),v.push(S),y++}return v},c.prototype.$renderCell=function(a,f,m,v){var y=a.element,R=this.session,C=y.childNodes[0],S=y.childNodes[1],$=y.childNodes[2],L=$.firstChild,x=R.$firstLineNumber,k=R.$breakpoints,M=R.$decorations,w=R.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&R.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,b=f.lineHeight+"px",E=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(w?w.getText(R,v):v+x).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]=R.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",b),u.setStyle(S.style,"display","inline-block"),S.setAttribute("role","button"),S.setAttribute("tabindex","-1");var U=R.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",b),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",b),$.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:y.classList.add(this.$annotations[v].className.replace(" ","")),u.setStyle(L.style,"height",b),u.setStyle($.style,"display","block"),u.setStyle($.style,"height",b),$.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),y.className!=E&&(y.className=E),u.setStyle(a.element.style,"height",this.$lines.computeLineHeight(v,f,R)+"px"),u.setStyle(a.element.style,"top",this.$lines.computeLineTop(v,f,R)+"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,y=m,R=0,C=0,S=f.getScreenLastRowColumn(y),$=new u(y,r.start.column,y,C);y<=v;y++)$.start.row=$.end.row=y,$.start.column=y==m?r.start.column:f.getRowWrapIndent(y),$.end.column=S,R=C,C=S,S=y+1<v?f.getScreenLastRowColumn(y+1):y==v?0:r.end.column,this.drawSingleLineMarker(o,$,l+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&r.start.column,R<C,C>S,y==v),c,y==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),y=f+r.start.column*c.characterWidth;if(a=a||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var R=r.clone();R.end.row=R.start.row,R.end.column=this.session.getLine(R.start.row).length,this.drawBidiSingleLineMarker(o,R,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:"+y+"px;"+(a||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var R=r.clone();R.start.row=R.end.row,R.start.column=0,this.drawBidiSingleLineMarker(o,R,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,y=this.$getTop(r.start.row,c),R=this.$padding+r.start.column*c.characterWidth;this.elt(l,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+R+"px;"+(f||""))},h.prototype.drawBidiSingleLineMarker=function(o,r,l,c,a,f){var m=c.lineHeight,v=this.$getTop(r.start.row,c),y=this.$padding,R=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);R.forEach(function(C){this.elt(l,"height:"+m+"px;width:"+(C.width+(a||0))+"px;top:"+v+"px;left:"+(y+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 y="ace_indent-guide",R=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=y+R,v.textContent=C,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+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),y=Math.min(m,a.lastRow),R=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($),x=L?L.start.row:1/0;$>x&&($=L.end.row+1,L=this.session.getNextFoldLine($,L),x=L?L.start.row:1/0),!($>y);){var k=R[C++];if(k){this.dom.removeChildren(k),this.$renderLine(k,$,$==x?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 w=this.$lines.cells[C++];w.element.style.top=this.$lines.computeLineTop(w.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 y=this.session.getFoldedRowCount(f.firstRow,a.firstRow-1);y>0;y--)this.$lines.shift();if(f.lastRow>a.lastRow)for(var y=this.session.getFoldedRowCount(a.lastRow+1,f.lastRow);y>0;y--)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=[],y=f,R=this.session.getNextFoldLine(y),C=R?R.start.row:1/0;y>C&&(y=R.end.row+1,R=this.session.getNextFoldLine(y,R),C=R?R.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,a,this.session),$=S.element;this.dom.removeChildren($),d.setStyle($.style,"height",this.$lines.computeLineHeight(y,a,this.session)+"px"),d.setStyle($.style,"top",this.$lines.computeLineTop(y,a,this.session)+"px"),this.$renderLine($,y,y==C?R:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",v.push(S),y++}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 y=this,R=/(\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=R.exec(v);){var L=S[1],x=S[2],k=S[3],M=S[4],w=S[5];if(!(!y.showSpaces&&x)){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 _=y.session.getScreenTabSize(f+S.index);C.appendChild(y.$tabStrings[_].cloneNode(!0)),f+=_-1}else if(x)if(y.showSpaces){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space",b.textContent=g.stringRepeat(y.SPACE_CHAR,x.length),C.appendChild(b)}else C.appendChild(this.dom.createTextNode(x,this.element));else if(k){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space ace_invalid",b.textContent=g.stringRepeat(y.SPACE_CHAR,k.length),C.appendChild(b)}else if(M){f+=1;var b=this.dom.createElement("span");b.style.width=y.config.characterWidth*2+"px",b.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=y.showSpaces?y.SPACE_CHAR:M,C.appendChild(b)}else if(w){f+=1;var b=this.dom.createElement("span");b.style.width=y.config.characterWidth*2+"px",b.className="ace_cjk",b.textContent=w,C.appendChild(b)}}}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_"),b=this.dom.createElement("span");m.type=="fold"&&(b.style.width=m.value.length*this.config.characterWidth+"px",b.setAttribute("title",o("Unfold code"))),b.className=E,b.appendChild(C),a.appendChild(b)}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 y=v/this.tabSize,R=0;R<y;R++)a.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(v)}else if(f[0]==" "){for(var R=0;R<v;R++)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 y=this.session.$bracketHighlight;if(y){for(var R=this.session.$bracketHighlight.ranges,C=0;C<R.length;C++)if(f.row!==R[C].start.row){this.$highlightIndentGuideMarker.end=R[C].start.row,f.row>R[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 y=0;y<v.length;y++)if(v[y].classList&&v[y].classList.contains("ace_indent-guide-active")){v[y].classList.remove("ace_indent-guide-active");break}}}},c.prototype.$setIndentGuideActive=function(a,f){var m=this.session.doc.getLine(a.row);if(m!==""){var v=a.element.childNodes;if(v){var y=v[f-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},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,y=0,R=m[0],C=0,S=this.$createLineElement();a.appendChild(S);for(var $=0;$<f.length;$++){var L=f[$],x=L.value;if($==0&&this.displayIndentGuides){if(v=x.length,x=this.renderIndentGuide(S,x,R),!x)continue;v-=x.length}if(v+x.length<R)C=this.$renderToken(S,C,L,x),v+=x.length;else{for(;v+x.length>=R;)C=this.$renderToken(S,C,L,x.substring(0,R-v)),x=x.substring(R-v),v=R,S=this.$createLineElement(),a.appendChild(S),S.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,C=0,R=m[y]||Number.MAX_VALUE;x.length!=0&&(v+=x.length,C=this.$renderToken(S,C,L,x))}}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 y=f[v],R=y.value;if(!(v==0&&this.displayIndentGuides&&(R=this.renderIndentGuide(a,R),!R))){if(m+R.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(a,m,y,R);m=this.$renderToken(a,m,y,R)}}},c.prototype.$renderOverflowMessage=function(a,f,m,v,y){m&&this.$renderToken(a,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var R=this.dom.createElement("span");R.className="ace_inline_button ace_keyword ace_toggle_wrap",R.textContent=y?"<hide>":"<click to see more...>",a.appendChild(R)},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 y=a;if(v.length){var R=this.session.getRowSplitData(f);if(R&&R.length){this.$renderWrappedLine(a,v,R);var y=a.lastChild}else{var y=a;this.$useLineGroups()&&(y=this.$createLineElement(),a.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),a.appendChild(y));if(this.showEOL&&y){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,y.appendChild(C)}},c.prototype.$getFoldLineTokens=function(a,f){var m=this.session,v=[];function y(C,S,$){for(var L=0,x=0;x+C[L].value.length<S;)if(x+=C[L].value.length,L++,L==C.length)return;if(x!=S){var k=C[L].value.substring(S-x);k.length>$-S&&(k=k.substring(0,$-S)),v.push({type:C[L].type,value:k}),x=S+k.length,L+=1}for(;x<$&&L<C.length;){var k=C[L].value;k.length+x>$?v.push({type:C[L].type,value:k.substring(0,$-x)}):v.push(C[L]),x+=k.length,L+=1}}var R=m.getTokens(a);return f.walk(function(C,S,$,L,x){C!=null?v.push({type:"fold",value:C}):(x&&(R=m.getTokens(S)),R.length&&y(R,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,y){v.__proto__=y}||function(v,y){for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(v[R]=y[R])},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 y=a.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=g.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>o?(this.coeff=o/m,m=o):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(r);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(a){u(f,a);function f(m,v){var y=a.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(m){this.element.style.width=m+"px"},f.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},f}(r);i.ScrollBar=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 y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},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{
1008
+ `),r.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",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],L=0;if(E)return E.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&L>=_.length&&(_=void 0),{value:_&&_[L++],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,T=n("./keyboard/gutter_handler").GutterKeyboardHandler,R=n("./config").nls,k=n("./clipboard"),M=n("./lib/keys"),y=function(){function _(w,E,L){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||L&&L.session||new a("")),C.resetOptions(this),L&&this.setOptions(L),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,L=E&&E.scrollIntoView;if(L){switch(L){case"center-animate":L="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}L=="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,L=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&&L.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:L.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 L=this;C.loadModule(["keybinding",w],function(O){L.$keybindingId==w&&L.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 L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.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 L=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=E.getMatchingBracketRanges(L,I);if(!F){var D=new S(E,L.row,L.column),W=D.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=E.getMatchingTags(L);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,L=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,L,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 L=new m(E.row,E.column,E.row,1/0);L.id=w.addMarker(L,"ace_active-line","screenLine"),w.$highlightLineMarker=L}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 L=this.selection.getRange(),O=this.getSelectionStyle();E.$selectionMarker=E.addMarker(L,"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 L=E.start.column,O=E.end.column,I=w.getLine(E.start.row),F=I.substring(L,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(L-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(),L=!1;if(!w&&this.$copyWithEmptySelection){L=!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=L?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 L={text:w,event:E};this.commands.exec("paste",this,L)},_.prototype.$handlePaste=function(w){typeof w=="string"&&(w={text:w}),this._signal("paste",w);var E=w.text,L=E===k.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?O.insert({row:this.selection.lead.row,column:0},E):this.insert(E);else if(L)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 L=this.session,O=L.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!E){var F=O.transformAction(L.getState(I.row),"insertion",this,L,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=L.getLine(I.row);if(I.column>U.search(/\S|$/)){var W=U.substr(I.column).search(/\S|$/);L.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var j=I.column,H=L.getState(I.row),U=L.getLine(I.row),K=O.checkOutdent(H,U,w);if(L.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(L.getDocument().isNewLine(w)){var Z=O.getNextLineIndent(H,U.slice(0,I.column),L.getTabString());L.insert({row:I.row+1,column:0},Z)}K&&O.autoOutdent(H,L,I.row)}},_.prototype.autoIndent=function(){var w=this.session,E=w.getMode(),L,O;if(this.selection.isEmpty())L=0,O=w.doc.getLength()-1;else{var I=this.getSelectionRange();L=I.start.row,O=I.end.row}for(var F="",D="",W="",j,H,U,K=w.getTabString(),Z=L;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 L=this.applyComposition.bind(this,w,E);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},_.prototype.applyComposition=function(w,E){if(E.extendLeft||E.extendRight){var L=this.selection.getRange();L.start.column-=E.extendLeft,L.end.column+=E.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!w&&!L.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),E.restoreStart||E.restoreEnd){var L=this.selection.getRange();L.start.column-=E.restoreStart,L.end.column-=E.restoreEnd,this.selection.setRange(L)}},_.prototype.onCommandKey=function(w,E,L){return this.keyBinding.onCommandKey(w,E,L)},_.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 L=this.session,O=L.getState(E.start.row),I=L.getMode().transformAction(O,"deletion",this,L,E);if(E.end.column===0){var F=L.getTextRange(E);if(F[F.length-1]==`
1012
+ `){var D=L.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 L=this.session.getLine(w.row),O,I;E<L.length?(O=L.charAt(E)+L.charAt(E-1),I=new m(w.row,E-1,w.row,E+1)):(O=L.charAt(E-1)+L.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(),L=this.session.getTextRange(E);this.session.replace(E,L.toLowerCase()),this.selection.setSelectionRange(w)},_.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),L=this.session.getTextRange(E);this.session.replace(E,L.toUpperCase()),this.selection.setSelectionRange(w)},_.prototype.indent=function(){var w=this.session,E=this.getSelectionRange();if(E.start.row<E.end.row){var L=this.$getSelectedRows();w.indentRows(L.first,L.last," ");return}else if(E.start.column<E.end.column){var O=w.getTextRange(E);if(!/^\s+$/.test(O)){var L=this.$getSelectedRows();w.indentRows(L.first,L.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,L=[],O=w.first;O<=w.last;O++)L.push(E.getLine(O));L.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,L[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),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,L,w)},_.prototype.getNumberAt=function(w,E){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var O=this.session.getLine(w);L.lastIndex<E;){var I=L.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,L=this.selection.getCursor().column,O=new m(E,L-1,E,L),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(E,L);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&&L<D?w*=Math.pow(10,F.end-L-1):w*=Math.pow(10,F.end-L),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,L+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 L=this.getSelectedText(),O=this.selection.getWordRange().start.column,I=L.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;L.match(/[A-Za-z0-9_]+/)&&I.forEach(function(ee,N){W=D+ee.length,F>=D&&F<=W&&(L=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=L.match(new RegExp("^\\s?_?("+s.escapeRegExp(Z[z])+")\\s?$","i"));if(Y){var V=L.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Y[1])+")($|\\s)","g"));V&&(U=L.replace(new RegExp(s.escapeRegExp(Z[z]),"i"),function(ee){var N=Z[X];return ee.toUpperCase()==ee?N=N.toUpperCase():ee.charAt(0).toUpperCase()==ee.charAt(0)&&(N=N.substr(0,0)+Z[X].charAt(0).toUpperCase()+N.substr(1)),N}),this.insert(U),U="")}}},_.prototype.findLinkAt=function(w,E){var L,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){L={error:z}}finally{try{K&&!K.done&&(O=U.return)&&O.call(U)}finally{if(L)throw L.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,L=w.getRange(),O=w.isBackwards();if(L.isEmpty()){var I=L.start.row;E.duplicateLines(I,I)}else{var F=O?L.start:L.end,D=E.insert(F,E.getTextRange(L),!1);L.start=F,L.end=D,w.setSelectionRange(L,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(w,E,L){return this.session.moveText(w,E,L)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(w,E){var L,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();L=this.$getSelectedRows(F),O=this.session.$moveLines(L.first,L.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),L=this.$getSelectedRows(D[U]);for(var Z=L.first,z=L.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 L=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=L.scrollTop;L.scrollBy(0,I*O.lineHeight),E!=null&&L.scrollCursorIntoView(null,.5),L.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,L,O){this.renderer.scrollToLine(w,E,L,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 L=this.getCursorPosition(),O=new S(this.session,L.row,L.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=L.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(L),z||(z=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+U-1),X=z.start,(E||X.row===L.row&&Math.abs(X.column-L.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(L.row,L.column)===0){var Y=this.session.getMatchingTags(L);Y&&(Y.openTag.contains(L.row,L.column)?(z=Y.closeTag,X=z.start):(z=Y.openTag,Y.closeTag.start.row===L.row&&Y.closeTag.start.column===L.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,L){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,L)},_.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 L=this.$search.find(this.session),O=0;return L&&(this.$tryReplace(L,w)&&(O=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),O},_.prototype.replaceAll=function(w,E){E&&this.$search.set(E);var L=this.$search.findAll(this.session),O=0;if(!L.length)return O;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var F=L.length-1;F>=0;--F)this.$tryReplace(L[F],w)&&O++;return this.selection.setSelectionRange(I),O},_.prototype.$tryReplace=function(w,E){var L=this.session.getTextRange(w);return E=this.$search.replace(L,E),E!==null?(w.end=this.session.replace(w,E),w):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(w,E,L){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,L),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 L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),E!==!1&&this.renderer.animateScrolling(L)},_.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,L=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=L.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&E&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var j=L.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,L){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,E,L)})},_}();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()}},L;_?(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),L||(L=new T(this)),L.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),L&&L.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],T=$.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 ",L=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",T.className=L,T.className+=W,u.setStyle(T.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",T.className=L,this.$useSvgGutterIcons?T.className+=this.$annotations[v].className:b.classList.add(this.$annotations[v].className.replace(" ","")),u.setStyle(T.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 T=this.session.getFoldLine($);if(T)if(T.containsRow(v)){v=T.start.row;break}else $=T.end.row;C++}for(var S=!1,$=v,T=this.session.getNextFoldLine($),R=T?T.start.row:1/0;$>R&&($=T.end.row+1,T=this.session.getNextFoldLine($,T),R=T?T.start.row:1/0),!($>b);){var k=x[C++];if(k){this.dom.removeChildren(k),this.$renderLine(k,$,$==R?T:!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 T=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)),T){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 T=f[$],R=T.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,T,R),v+=R.length;else{for(;v+R.length>=x;)C=this.$renderToken(S,C,T,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,T,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 T=0,R=0;R+C[T].value.length<S;)if(R+=C[T].value.length,T++,T==C.length)return;if(R!=S){var k=C[T].value.substring(S-R);k.length>$-S&&(k=k.substring(0,$-S)),v.push({type:C[T].type,value:k}),R=S+k.length,T+=1}for(;R<$&&T<C.length;){var k=C[T].value;k.length+R>$?v.push({type:C[T].type,value:k.substring(0,$-R)}):v.push(C[T]),R+=k.length,T+=1}}var x=m.getTokens(a);return f.walk(function(C,S,$,T,R){C!=null?v.push({type:"fold",value:C}):(R&&(x=m.getTokens(S)),x.length&&b(x,T,$))},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
1015
  position: absolute;
1016
1016
  background: rgba(128, 128, 128, 0.6);
1017
1017
  -moz-box-sizing: border-box;
@@ -1049,7 +1049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1049
1049
  .ace_editor>.ace_sb_grabbed {
1050
1050
  z-index: 8;
1051
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,y=m.clientY,R=function(M){y=M.clientY},C=function(){clearInterval(x)},S=m.clientY,$=this.thumbTop,L=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop($+y-S);M!==v.scrollTop&&v._emit("scroll",{data:M})}};s.capture(this.inner,R,C);var x=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,y=m.clientX,R=function(M){y=M.clientX},C=function(){clearInterval(x)},S=m.clientX,$=this.thumbLeft,L=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft($+y-S);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};s.capture(this.inner,R,C);var x=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,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"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 y=this.$getZoom(this.el);m=$(1/y,m)}function R(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 x=L(this.els[0]),k=L(this.els[1]),M=L(this.els[2]),w=L(this.els[3]),A=R(C(w,k),C(w,M),C(S(k,M),S(w,x))),_=$(1+A[0],C(k,x)),b=$(1+A[1],C(M,x));if(v){var E=v,T=A[0]*E[0]/c+A[1]*E[1]/c+1,O=S($(E[0],_),$(E[1],b));return S($(1/T/c,O),x)}var I=C(m,x),F=R(C(_,$(A[0],I)),C(b,$(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=`
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,T=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(T,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,T=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(T,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 T(D){var W=D.getBoundingClientRect();return[W.left,W.top]}var R=T(this.els[0]),k=T(this.els[1]),M=T(this.els[2]),y=T(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,L=A[0]*E[0]/c+A[1]*E[1]/c+1,O=S($(E[0],_),$(E[1],w));return S($(1/L/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
1053
  .ace_br1 {border-top-left-radius : 3px;}
1054
1054
  .ace_br2 {border-top-right-radius : 3px;}
1055
1055
  .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
@@ -1700,11 +1700,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1700
1700
  width:1px;
1701
1701
  height:1px;
1702
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(w,A){return w.priority<A.priority?-1:w.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(w){w.priority=m[w.type]||null}),f=f.sort(a);for(var v=this.renderer.session.$foldData,y=0;y<f.length;y++){var R=f[y].row,C=this.compensateFoldRows(R,v),S=Math.round((R-C)*this.lineHeight*this.heightRatio),$=Math.round((R-C)*this.lineHeight*this.heightRatio),L=Math.round(((R-C)*this.lineHeight+this.lineHeight)*this.heightRatio),x=L-$;if(x<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[y].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,y=n("./layer/font_metrics").FontMetrics,R=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 x(k,M){var w=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(_){w.$scrollAnimation||w.session.setScrollTop(_.data-w.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){w.$scrollAnimation||w.session.setScrollLeft(_.data-w.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(_){w.updateCharacterSize(),w.onResize(!0,w.gutterWidth,w.$size.width,w.$size.height),w._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 x.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")},x.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))},x.prototype.updateLines=function(k,M,w){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(w)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},x.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},x.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},x.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},x.prototype.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},x.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},x.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},x.prototype.onResize=function(k,M,w,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var _=this.container;A||(A=_.clientHeight||_.scrollHeight),w||(w=_.clientWidth||_.scrollWidth);var b=this.$updateCachedSize(k,M,w,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!w&&!A)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(b|this.$changes,!0):this.$loop.schedule(b|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},x.prototype.$updateCachedSize=function(k,M,w,A){A-=this.$extraHeight||0;var _=0,b=this.$size,E={width:b.width,height:b.height,scrollerHeight:b.scrollerHeight,scrollerWidth:b.scrollerWidth};if(A&&(k||b.height!=A)&&(b.height=A,_|=this.CHANGE_SIZE,b.scrollerHeight=b.height,this.$horizScroll&&(b.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(b.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",_=_|this.CHANGE_SCROLL),w&&(k||b.width!=w)){_|=this.CHANGE_SIZE,b.width=w,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"),b.scrollerWidth=Math.max(0,w-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(b.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(_|=this.CHANGE_FULL)}return b.$dirty=!w||!A,_&&this._signal("resize",E),_},x.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()},x.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)},x.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},x.prototype.getAnimatedScroll=function(){return this.$animatedScroll},x.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},x.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},x.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},x.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},x.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},x.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},x.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},x.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},x.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},x.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},x.prototype.getShowGutter=function(){return this.getOption("showGutter")},x.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},x.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},x.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},x.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},x.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},x.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()}},x.prototype.getContainerElement=function(){return this.container},x.prototype.getMouseEventTarget=function(){return this.scroller},x.prototype.getTextAreaContainer=function(){return this.container},x.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 w=this.$cursorLayer.$pixelPos;if(w){M&&M.markerRange&&(w=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,_=w.top,b=w.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;b-=this.scrollLeft,b>this.$size.scrollerWidth-T&&(b=this.$size.scrollerWidth-T),b+=this.gutterWidth+this.margin.left,d.setStyle(k,"height",E+"px"),d.setStyle(k,"width",T+"px"),d.translate(this.textarea,Math.min(b,this.$size.scrollerWidth-T),Math.min(_,O))}}},x.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},x.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},x.prototype.getLastFullyVisibleRow=function(){var k=this.layerConfig,M=k.lastRow,w=this.session.documentToScreenRow(M,0)*k.lineHeight;return w-this.session.getScrollTop()>k.height-k.lineHeight?M-1:M},x.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},x.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()},x.prototype.setScrollMargin=function(k,M,w,A){var _=this.scrollMargin;_.top=k|0,_.bottom=M|0,_.right=A|0,_.left=w|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},x.prototype.setMargin=function(k,M,w,A){var _=this.margin;_.top=k|0,_.bottom=M|0,_.right=A|0,_.left=w|0,_.v=_.top+_.bottom,_.h=_.left+_.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},x.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},x.prototype.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},x.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},x.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},x.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)},x.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},x.prototype.freeze=function(){this.$frozen=!0},x.prototype.unfreeze=function(){this.$frozen=!1},x.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 w=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(),w.firstRow!=this.layerConfig.firstRow&&w.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(w.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())}w=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-w.offset);var _=w.width+2*this.$padding+"px",b=w.minHeight+"px";d.setStyle(this.content.style,"width",_),d.setStyle(this.content.style,"height",b)}if(k&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-w.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(w),this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w),this.$markerBack.update(w),this.$markerFront.update(w),this.$cursorLayer.update(w),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(w):this.$textLayer.scrollLines(w),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(w):this.$gutterLayer.scrollLines(w)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w),this.$markerBack.update(w),this.$markerFront.update(w),this.$cursorLayer.update(w),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(w),this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(w),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(w),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(w),this._signal("afterRender",k)},x.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,w=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(w+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&w>this.$maxPixelHeight&&(w=this.$maxPixelHeight);var A=w<=2*this.lineHeight,_=!A&&k>M;if(w!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var b=this.container.clientWidth;this.container.style.height=w+"px",this.$updateCachedSize(!0,this.$gutterWidth,b,w),this.desiredHeight=w,this._signal("autosize")}},x.prototype.$computeLayerConfig=function(){var k=this.session,M=this.$size,w=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),_=A*this.lineHeight,b=this.$getLongestLine(),E=!w&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-b-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,b+2*this.$padding-M.scrollerWidth+D.right)));var W=!w&&(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!=b||T)&&(ee=this.CHANGE_H_SCROLL),(T||j)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),j&&(b=this.$getLongestLine())),this.layerConfig={width:b,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(b-this.$padding),ee},x.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var w=this.layerConfig;if(!(k>w.lastRow+1)&&!(M<w.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(w),this.$textLayer.update(w);return}return this.$textLayer.updateLines(w,k,M),!0}}},x.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))},x.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},x.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},x.prototype.addGutterDecoration=function(k,M){this.$gutterLayer.addGutterDecoration(k,M)},x.prototype.removeGutterDecoration=function(k,M){this.$gutterLayer.removeGutterDecoration(k,M)},x.prototype.updateBreakpoints=function(k){this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},x.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},x.prototype.showCursor=function(){this.$cursorLayer.showCursor()},x.prototype.scrollSelectionIntoView=function(k,M,w){this.scrollCursorIntoView(k,w),this.scrollCursorIntoView(M,w)},x.prototype.scrollCursorIntoView=function(k,M,w){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(k),_=A.left,b=A.top,E=w&&w.top||0,T=w&&w.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+E>b?(M&&O+E>b+this.lineHeight&&(b-=M*this.$size.scrollerHeight),b===0&&(b=-this.scrollMargin.top),this.session.setScrollTop(b)):O+this.$size.scrollerHeight-T<b+this.lineHeight&&(M&&O+this.$size.scrollerHeight-T<b-this.lineHeight&&(b+=M*this.$size.scrollerHeight),this.session.setScrollTop(b+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))}},x.prototype.getScrollTop=function(){return this.session.getScrollTop()},x.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},x.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},x.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},x.prototype.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},x.prototype.alignCursor=function(k,M){typeof k=="number"&&(k={row:k,column:0});var w=this.$cursorLayer.getPixelPosition(k),A=this.$size.scrollerHeight-this.lineHeight,_=w.top-A*(M||0);return this.session.setScrollTop(_),_},x.prototype.$calcSteps=function(k,M){var w=0,A=this.STEPS,_=[],b=function(E,T,O){return O*(Math.pow(E-1,3)+1)+T};for(w=0;w<A;++w)_.push(b(w/this.STEPS,k,M-k));return _},x.prototype.scrollToLine=function(k,M,w,A){var _=this.$cursorLayer.getPixelPosition({row:k,column:0}),b=_.top;M&&(b-=this.$size.scrollerHeight/2);var E=this.scrollTop;this.session.setScrollTop(b),w!==!1&&this.animateScrolling(E,A)},x.prototype.animateScrolling=function(k,M){var w=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(k==w)return;if(this.$scrollAnimation){var _=this.$scrollAnimation.steps;if(_.length&&(k=_[0],k==w))return}var b=A.$calcSteps(k,w);this.$scrollAnimation={from:k,to:w,steps:b},clearInterval(this.$timer),A.session.setScrollTop(b.shift()),A.session.$scrollTop=w;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);b.length?(A.session.setScrollTop(b.shift()),A.session.$scrollTop=w):w!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(w),w=null):E()},10)},x.prototype.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},x.prototype.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},x.prototype.scrollTo=function(k,M){this.session.setScrollTop(M),this.session.setScrollLeft(k)},x.prototype.scrollBy=function(k,M){M&&this.session.setScrollTop(this.session.getScrollTop()+M),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},x.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},x.prototype.pixelToScreenCoordinates=function(k,M){var w;if(this.$hasCssTransforms){w={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([k,M]);k=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else w=this.scroller.getBoundingClientRect();var _=k+this.scrollLeft-w.left-this.$padding,b=_/this.characterWidth,E=Math.floor((M+this.scrollTop-w.top)/this.lineHeight),T=this.$blockCursor?Math.floor(b):Math.round(b);return{row:E,column:T,side:b-T>0?1:-1,offsetX:_}},x.prototype.screenToTextCoordinates=function(k,M){var w;if(this.$hasCssTransforms){w={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([k,M]);k=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else w=this.scroller.getBoundingClientRect();var _=k+this.scrollLeft-w.left-this.$padding,b=_/this.characterWidth,E=this.$blockCursor?Math.floor(b):Math.round(b),T=Math.floor((M+this.scrollTop-w.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(E,0),_)},x.prototype.textToScreenCoordinates=function(k,M){var w=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)),b=A.row*this.lineHeight;return{pageX:w.left+_-this.scrollLeft,pageY:w.top+b-this.scrollTop}},x.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},x.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},x.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")},x.prototype.setCompositionText=function(k){var M=this.session.selection.cursor;this.addToken(k,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},x.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=""}},x.prototype.setGhostText=function(k,M){var w=this.session.selection.cursor,A=M||{row:w.row,column:w.column};this.removeGhostText();var _=k.split(`
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),T=Math.round(((x-C)*this.lineHeight+this.lineHeight)*this.heightRatio),R=T-$;if(R<this.minDecorationHeight){var k=($+T)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),$=Math.round(k-this.halfMinDecorationHeight),T=Math.round(k+this.halfMinDecorationHeight)}c.fillStyle=r[f[b].type]||null,c.fillRect(0,S,this.canvasWidth,T-$)}}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 T=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 L=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",L),d.setStyle(this.scroller.style,"right",L),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 L=1,O=this.$size.height-E;if(!M)_+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;L=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else _+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-L&&(w=this.$size.scrollerWidth-L),w+=this.gutterWidth+this.margin.left,d.setStyle(k,"height",E+"px"),d.setStyle(k,"width",L+"px"),d.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-L),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),L=this.$horizScroll!==E;L&&(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||L)&&(ee=this.CHANGE_H_SCROLL),(L||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,L=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-L<w+this.lineHeight&&(M&&O+this.$size.scrollerHeight-L<w-this.lineHeight&&(w+=M*this.$size.scrollerHeight),this.session.setScrollTop(w+this.lineHeight+L-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,L,O){return O*(Math.pow(E-1,3)+1)+L};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),L=this.$blockCursor?Math.floor(w):Math.round(w);return{row:E,column:L,side:w-L>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),L=Math.floor((M+this.scrollTop-y.top)/this.lineHeight);return this.session.screenToDocumentPosition(L,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
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))},x.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}},x.prototype.addToken=function(k,M,w,A){var _=this.session;_.bgTokenizer.lines[w]=null;var b={type:M,value:k},E=_.getTokens(w);if(A==null||!E.length)E.push(b);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},b,{type:I.type,value:W});break}}this.updateLines(w,w)},x.prototype.removeExtraToken=function(k,M){this.session.bgTokenizer.lines[k]=null,this.updateLines(k,k)},x.prototype.setTheme=function(k,M){var w=this;if(this.$themeId=k,w._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var A=k||this.$options.theme.initialValue;s.loadModule(["theme",A],_)}else _(k);function _(b){if(w.$themeId!=k)return M&&M();if(!b||!b.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");b.$id&&(w.$themeId=b.$id),d.importCssString(b.cssText,b.cssClass,w.container),w.theme&&d.removeCssClass(w.container,w.theme.cssClass);var E="padding"in b?b.padding:"padding"in(w.theme||{})?4:w.$padding;w.$padding&&E!=w.$padding&&w.setPadding(E),w.$theme=b.cssClass,w.theme=b,d.addCssClass(w.container,b.cssClass),d.setCssClass(w.container,"ace_dark",b.isDark),w.$size&&(w.$size.width=0,w.$updateSizeAsync()),w._dispatchEvent("themeLoaded",{theme:b}),M&&M()}},x.prototype.getTheme=function(){return this.$themeId},x.prototype.setStyle=function(k,M){d.setCssClass(this.container,k,M!==!1)},x.prototype.unsetStyle=function(k){d.removeCssClass(this.container,k)},x.prototype.setCursorStyle=function(k){d.setStyle(this.scroller.style,"cursor",k)},x.prototype.setMouseCursor=function(k){d.setStyle(this.scroller.style,"cursor",k)},x.prototype.attachToShadowRoot=function(){d.importCssString(C,"ace_editor.css",this.container)},x.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},x.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(w){M.$scrollAnimation||M.session.setScrollTop(w.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(w){M.$scrollAnimation||M.session.setScrollLeft(w.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(w){M.$scrollAnimation||M.session.setScrollTop(w.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(w){M.$scrollAnimation||M.session.setScrollLeft(w.data-M.scrollMargin.left)}))},x.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 w=M[0].contentRect.width,A=M[0].contentRect.height;Math.abs(k.$size.width-w)>1||Math.abs(k.$size.height-A)>1?k.$resizeTimer.delay():k.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},x}();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,R),s.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function(x){!x&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):x&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(x){this.$textLayer.setShowInvisibles(x)&&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(x){typeof x=="number"&&(this.$printMarginColumn=x),this.$showPrintMargin=!!x,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(x){this.$gutter.style.display=x?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(x){this.$gutterLayer.$useSvgGutterIcons=x},initialValue:!1},showFoldedAnnotations:{set:function(x){this.$gutterLayer.$showFoldedAnnotations=x},initialValue:!1},fadeFoldWidgets:{set:function(x){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",x)},initialValue:!1},showFoldWidgets:{set:function(x){this.$gutterLayer.setShowFoldWidgets(x),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(x){this.$textLayer.setDisplayIndentGuides(x)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(x){this.$textLayer.setHighlightIndentGuides(x)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(x){this.$gutterLayer.setHighlightGutterLine(x),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(x){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(x){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(x){typeof x=="number"&&(x=x+"px"),this.container.style.fontSize=x,this.updateFontSize()},initialValue:12},fontFamily:{set:function(x){this.container.style.fontFamily=x,this.updateFontSize()}},maxLines:{set:function(x){this.updateFull()}},minLines:{set:function(x){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(x){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(x){x=+x||0,this.$scrollPastEnd!=x&&(this.$scrollPastEnd=x,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(x){this.$gutterLayer.$fixedWidth=!!x,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(x){this.$updateCustomScrollbar(x)},initialValue:!1},theme:{set:function(x){this.setTheme(x)},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 y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var R={};c.forEach(function(C){R[C]=y(n.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:R,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,y=Object.create(g),R=[],C=new r({messageBuffer:R,terminate:function(){},postMessage:function($){R.push($),m&&(v?setTimeout(S):S())}});C.setEmitSync=function($){v=$};var S=function(){var $=R.shift();$.command?m[$.command].apply(m,$.args):$.event&&y._signal($.event,$.data)};return y.postMessage=function($){C.onMessage({data:$})},y.callback=function($,L){this.postMessage({type:"call",id:L,data:$})},y.emit=function($,L){this.postMessage({type:"event",name:$,data:L})},s.loadModule(["worker",a],function($){for(m=new $[f](y);R.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,y=m.inMultiSelectMode,R=h.getDocumentPosition(),C=v.getCursor(),S=h.inSelection()||v.isEmpty()&&g(R,C),$=h.x,L=h.y,x=function(W){$=W.clientX,L=W.clientY},k=m.session,M=m.renderer.pixelToScreenCoordinates($,L),w=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",!y&&l)return}else r&&m.$blockSelectEnabled&&(A="block");if(A&&d.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),A=="add"){if(!y&&S)return;if(!y){var _=v.toOrientedRange();m.addSelectionMarker(_)}var b=v.rangeList.rangeAtPoint(R);m.inVirtualSelectionMode=!0,l&&(b=null,_=v.ranges[0]||_,m.removeSelectionMarker(_)),m.once("mouseup",function(){var W=v.toOrientedRange();b&&W.isEmpty()&&g(b.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(w,W)&&g(j,v.lead)||(w=W,m.selection.moveToPosition(j),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(T),T=v.rectangularRangeBlock(w,M),m.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=m.$mouseHandler.$clickSelection.clone()),T.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!a?v.toSingleRange():!y&&a&&(E=v.toOrientedRange(),m.addSelectionMarker(E)),l?M=k.documentToScreenPosition(v.lead):v.moveToPosition(R),w={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,x,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[$],x=L.start.row,k=L.end.row;if(x===k)S.push(L.clone());else{for(S.push(new d(x,L.start.column,x,this.session.getLine(x).length));++x<k;)S.push(this.getLineRange(x,!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),x=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(L,x);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,$){var L=[],x=C.column<S.column;if(x)var k=C.column,M=S.column,w=C.offsetX,A=S.offsetX;else var k=S.column,M=C.column,w=S.offsetX,A=C.offsetX;var _=C.row<S.row;if(_)var b=C.row,E=S.row;else var b=S.row,E=C.row;k<0&&(k=0),b<0&&(b=0),b==E&&($=!0);for(var T,O=b;O<=E;O++){var I=d.fromPoints(this.session.screenToDocumentPosition(O,k,w),this.session.screenToDocumentPosition(O,M,A));if(I.isEmpty()){if(T&&v(I.end,T))break;T=I.end}I.cursor=x?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 x=S.indexOf(L);x!=-1&&S.splice(x,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,x=$==!0||$&&$.$byLines,k=this.session,M=this.selection,w=M.rangeList,A=(L?M:w).ranges,_;if(!A.length)return C.exec?C.exec(this,S||{}):C(this,S||{});var b=M._eventRegistry;M._eventRegistry={};var E=new g(k);this.inVirtualSelectionMode=!0;for(var T=A.length;T--;){if(x)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=b,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 x=this.session.getDocument().getNewLineCharacter();C=$.join(x),C.length==($.length-1)*x.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 x=this.$search.findAll(this.session);if(!x.length)return 0;var k=this.multiSelect;$||k.toSingleRange(x[0]);for(var M=x.length;M--;)k.addRange(x[M],!0);return L&&k.rangeList.rangeAtPoint(L.start)&&k.addRange(L,!0),x.length},this.selectMoreLines=function(C,S){var $=this.selection.toOrientedRange(),L=$.cursor==$.end,x=this.session.documentToScreenPosition($.cursor);this.selection.$desiredColumn&&(x.column=this.selection.$desiredColumn);var k=this.session.screenToDocumentPosition(x.row+C,x.column);if($.isEmpty())var w=k;else var M=this.session.documentToScreenPosition(L?$.end:$.start),w=this.session.screenToDocumentPosition(M.row+C,M.column);if(L){var A=d.fromPoints(k,w);A.cursor=A.start}else{var A=d.fromPoints(w,k);A.cursor=A.end}if(A.desiredColumn=x.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,x=L.length;x--;){var k=L[x];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 w=[],x=L.length;x--;){var k=L[x];w.unshift(S.getTextRange(k))}C<0?w.unshift(w.pop()):w.push(w.shift());for(var x=L.length;x--;){var k=L[x],M=k.clone();S.replace(k,w[x]),k.start.row=M.start.row,k.start.column=M.start.column}$.fromOrientedRange($.ranges[0])},this.selectMore=function(C,S,$){var L=this.session,x=L.multiSelect,k=x.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),w=a(L,M,C);w&&(w.cursor=C==-1?w.start:w.end,this.session.unfold(w),this.multiSelect.addRange(w),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,x=$.filter(function(F){if(F.cursor.row==L)return!0;L=F.cursor.row});if(!$.length||x.length==$.length-1){var k=this.selection.getRange(),M=k.start.row,w=k.end.row,A=M==w;if(A){var _=this.session.getLength(),b;do b=this.session.getLine(w);while(/[=:]/.test(b)&&++w<_);do b=this.session.getLine(M);while(/[=:]/.test(b)&&--M>0);M<0&&(M=0),w>=_&&(w=_-1)}var E=this.session.removeFullLines(M,w);E=this.$reAlignText(E,A),this.session.insert({row:M,column:0},E.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 L=0,O=0;O<E.length;O++){var I=E[O];if(L+=I.value.length,A<=L){var F=I.value.length-(L-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}();T.prototype.CHANGE_CURSOR=1,T.prototype.CHANGE_MARKER=2,T.prototype.CHANGE_GUTTER=4,T.prototype.CHANGE_SCROLL=8,T.prototype.CHANGE_LINES=16,T.prototype.CHANGE_TEXT=32,T.prototype.CHANGE_SIZE=64,T.prototype.CHANGE_MARKER_BACK=128,T.prototype.CHANGE_MARKER_FRONT=256,T.prototype.CHANGE_FULL=512,T.prototype.CHANGE_H_SCROLL=1024,T.prototype.$changes=0,T.prototype.$padding=null,T.prototype.$frozen=!1,T.prototype.STEPS=8,u.implement(T.prototype,x),s.defineOptions(T.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=T}),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($,T){this.postMessage({type:"call",id:T,data:$})},b.emit=function($,T){this.postMessage({type:"event",name:$,data:T})},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,T=h.y,R=function(W){$=W.clientX,T=W.clientY},k=m.session,M=m.renderer.pixelToScreenCoordinates($,T),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,L=[],O=function(){var W=m.renderer.pixelToScreenCoordinates($,T),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(L),L=v.rectangularRangeBlock(y,M),m.$mouseHandler.$clickSelection&&L.length==1&&L[0].isEmpty()&&(L[0]=m.$mouseHandler.$clickSelection.clone()),L.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(L),L.length||(L=[v.toOrientedRange()]),E&&(m.removeSelectionMarker(E),v.toSingleRange(E));for(var j=0;j<L.length;j++)v.addRange(L[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 T=this.rangeList.add(C);return this.$onAddRange(C),T.length&&this.$onRemoveRange(T),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 T=this.ranges.indexOf(C[$]);this.ranges.splice(T,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 T=C[$],R=T.start.row,k=T.end.row;if(R===k)S.push(T.clone());else{for(S.push(new d(R,T.start.column,R,this.session.getLine(R).length));++R<k;)S.push(this.getLineRange(R,!0));S.push(new d(k,0,k,T.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 T=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(T,R);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,$){var T=[],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 L,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(L&&v(I.end,L))break;L=I.end}I.cursor=R?I.start:I.end,T.push(I)}if(_&&T.reverse(),!$){for(var F=T.length-1;T[F].isEmpty()&&F>0;)F--;if(F>0)for(var D=0;T[D].isEmpty();)D++;for(var W=F;W>=D;W--)T[W].isEmpty()&&T.splice(W,1)}return T}}).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 T=C[$];if(T.marker){this.session.removeMarker(T.marker);var R=S.indexOf(T);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"?T=$.forEachSelection(S,C.args):S.multiSelectAction=="forEachLine"?T=$.forEachSelection(S,C.args,!0):S.multiSelectAction=="single"?($.exitMultiSelectMode(),T=S.exec($,C.args||{})):T=S.multiSelectAction($,C.args||{});else{var T=S.exec($,C.args||{});$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(C,S,$){if(!this.inVirtualSelectionMode){var T=$&&$.keepOrder,R=$==!0||$&&$.$byLines,k=this.session,M=this.selection,y=M.rangeList,A=(T?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 L=A.length;L--;){if(R)for(;L>0&&A[L].start.row==A[L-1].end.row;)L--;E.fromOrientedRange(A[L]),E.index=L,this.selection=k.selection=E;var O=C.exec?C.exec(this,S||{}):C(this,S||{});!_&&O!==void 0&&(_=O),E.toOrientedRange(A[L])}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,$=[],T=0;T<S.length;T++)$.push(this.session.getTextRange(S[T]));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 T=S==this.multiSelect.anchor?$.cursor==$.start?$.end:$.start:$.cursor;T.row!=S.row||this.session.$clipPositionToDocument(T.row,T.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 T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(T)}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 T&&k.rangeList.rangeAtPoint(T.start)&&k.addRange(T,!0),R.length},this.selectMoreLines=function(C,S){var $=this.selection.toOrientedRange(),T=$.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(T?$.end:$.start),y=this.session.screenToDocumentPosition(M.row+C,M.column);if(T){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,T=$.ranges,R=T.length;R--;){var k=T[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=T.length;R--;){var k=T[R];y.unshift(S.getTextRange(k))}C<0?y.unshift(y.pop()):y.push(y.shift());for(var R=T.length;R--;){var k=T[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 T=this.session,R=T.multiSelect,k=R.toOrientedRange();if(!(k.isEmpty()&&(k=T.getWordRange(k.start.row,k.start.column),k.cursor=C==-1?k.start:k.end,this.multiSelect.addRange(k),$))){var M=T.getTextRange(k),y=a(T,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,T=-1,R=$.filter(function(F){if(F.cursor.row==T)return!0;T=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
1706
  `)+`
1707
- `),A||(k.start.column=0,k.end.column=E[E.length-1].length),this.selection.setRange(k)}else{x.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,x,k,M;return C.map(function(E){var T=E.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?x==null?(x=T[1].length,k=T[2].length,M=T[3].length,T):(x+k+M!=T[1].length+T[2].length+T[3].length&&(L=!1),x!=T[1].length&&($=!1),x>T[1].length&&(x=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:b);function w(E){return o.stringRepeat(" ",E)}function A(E){return E[2]?w(x)+E[2]+w(k-E[2].length+M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function _(E){return E[2]?w(x+k-E[2].length)+E[2]+w(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function b(E){return E[2]?w(x)+E[2]+w(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 y(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),R(C))}function R(C){if(!C.textInput)return;var S=C.textInput.getElement(),$=!1;h.addListener(S,"keydown",function(x){var k=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.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(x){$&&(C.renderer.setMouseCursor(""),$=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){y(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 y=g.getTokenAt(s,0);if(!y||y.type!=="string")break}m=s}}if(m>f){var R=g.getLine(m).length;return new u(f,c,m,R)}}},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),y;if(v){var R=v[0];a.column=(R.pos&&typeof R.column!="number"?R.pos.sc:R.column)||0,a.row=R.row,y=r.renderer.$gutterLayer.$annotations[a.row]}else{if(m)return;y={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 "+y.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 "+y.className,S.innerHTML=y.text.join("<br>"),S.appendChild(d.createElement("div"));var x=function(k,M,w){if(M===0&&(w==="esc"||w==="return"))return C.destroy(),{command:"null"}};C.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(x),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(x),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(`
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 L=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>L&&(L=D.column),j<O&&(O=j),j});$.forEach(function(F,D){var W=F.cursor,j=L-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=L,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,T=!0,R,k,M;return C.map(function(E){var L=E.match(/(\s*)(.*?)(\s*)([=:].*)/);return L?R==null?(R=L[1].length,k=L[2].length,M=L[3].length,L):(R+k+M!=L[1].length+L[2].length+L[3].length&&(T=!1),R!=L[1].length&&($=!1),R>L[1].length&&(R=L[1].length),k<L[2].length&&(k=L[2].length),M>L[3].length&&(M=L[3].length),L):[E]}).map(S?A:$?T?_: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):$&&T()},C),h.addListener(S,"keyup",T,C),h.addListener(S,"blur",T,C);function T(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 T=r.renderer.$cursorLayer.getPixelPosition(a).left;$.style.left=T+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
1708
  .error_widget_wrapper {
1709
1709
  background: inherit;
1710
1710
  color: inherit;
@@ -1737,13 +1737,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1737
1737
  border-left-color: transparent!important;
1738
1738
  top: -5px;
1739
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),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return f&&(y.textarea=f),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},i.createEditSession=function(r,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)})}()})(rp);var I2=rp.exports;const Rl=un(I2),F2="/assets/mode-yaml-a21faa53.js",N2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Rl.config.setModuleUrl("ace/mode/yaml",F2);Rl.config.setModuleUrl("ace/theme/monokai",N2);var op=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")()}(),P2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ko):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),D2=2;function B2(e,t){var n=!1,i=!1,p=0;function u(){n&&(n=!1,e()),i&&g()}function d(){P2(u)}function g(){var s=Date.now();if(n){if(s-p<D2)return;i=!0}else n=!0,i=!1,setTimeout(d,t);p=s}return g}var W2=20,H2=["top","right","bottom","left","width","height","size","weight"],U2=typeof MutationObserver<"u",z2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=B2(this.refresh.bind(this),W2)}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),U2?(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=H2.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}(),sp=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},Ai=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ko},ap=hs(0,0,0,0);function Eo(e){return parseFloat(e)||0}function Au(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 V2(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 j2(e){var t=e.getBBox();return hs(0,0,t.width,t.height)}function G2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ap;var i=Ai(e).getComputedStyle(e),p=V2(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-=Au(i,"left","right")+u),Math.round(s+d)!==n&&(s-=Au(i,"top","bottom")+d)),!Y2(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 K2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ai(e).SVGGraphicsElement}:function(e){return e instanceof Ai(e).SVGElement&&typeof e.getBBox=="function"}}();function Y2(e){return e===Ai(e).document.documentElement}function X2(e){return $a?K2(e)?j2(e):G2(e):ap}function Z2(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 sp(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 Q2=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=X2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),J2=function(){function e(t,n){var i=Z2(n);sp(this,{target:t,contentRect:i})}return e}(),q2=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new op,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 Ai(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Q2(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 Ai(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 J2(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}(),lp=typeof WeakMap<"u"?new WeakMap:new op,cp=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=z2.getInstance(),i=new q2(t,n,this);lp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){cp.prototype[e]=function(){var t;return(t=lp.get(this))[e].apply(t,arguments)}});var ex=function(){return typeof ko.ResizeObserver<"u"?ko.ResizeObserver:cp}();const xu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],up=$e({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",...xu],render(){return Mi("div")},mounted(){const e=this._editor=Wo(Rl.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)}),xu.forEach(t=>{const n="on"+Ei(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new ex(()=>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()}},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)}}}),tx=$e({name:"RuleInputForm",components:{VAceEditor:up},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Qn(e,"yaml");return Rh(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),nx={class:"block"};function ix(e,t,n,i,p,u){const d=ue("VAceEditor");return q(),oe("div",nx,[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 hp=xe(tx,[["render",ix]]),rx=$e({name:"EditRule",components:{InputForm:hp,ErrorMessage:hn},props:{rule:{type:Object,required:!0}},setup(e){const t=Oi(),n=Qn(e,"rule"),i=Qn(n.value,"yaml"),p=Y1();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}}}),ox={class:"column"},sx={class:"is-size-2 mb-4"},ax={class:"field is-grouped is-grouped-centered"},lx={class:"control"},cx={class:"icon is-small"},ux=P("span",null,"Edit",-1),hx={key:0},fx=P("hr",null,null,-1);function dx(e,t,n,i,p,u){var h,o;const d=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",ox,[P("h2",sx,"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"]),P("div",ax,[P("p",lx,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[P("span",cx,[he(g,{icon:"edit"})]),ux])])]),(h=e.updateRuleTask.last)!=null&&h.error?(q(),oe("div",hx,[fx,he(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const px=xe(rx,[["render",dx]]),gx=$e({name:"EditRuleWrapper",components:{EditRule:px,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Pd(),n=async()=>{await t.perform(e.id)};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function mx(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 vx=xe(gx,[["render",mx]]),yx=$e({name:"EditRuleView",components:{EditRule:vx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Edit rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function bx(e,t,n,i,p,u){const d=ue("EditRule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const wx=xe(yx,[["render",bx]]);function $x(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(`
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)})}()})(op);var F2=op.exports;const Rl=un(F2),N2="/assets/mode-yaml-a21faa53.js",P2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Rl.config.setModuleUrl("ace/mode/yaml",N2);Rl.config.setModuleUrl("ace/theme/monokai",P2);var sp=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,Eo=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")()}(),D2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Eo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),B2=2;function W2(e,t){var n=!1,i=!1,p=0;function u(){n&&(n=!1,e()),i&&g()}function d(){D2(u)}function g(){var s=Date.now();if(n){if(s-p<B2)return;i=!0}else n=!0,i=!1,setTimeout(d,t);p=s}return g}var H2=20,U2=["top","right","bottom","left","width","height","size","weight"],z2=typeof MutationObserver<"u",V2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=W2(this.refresh.bind(this),H2)}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=U2.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}(),ap=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||Eo},lp=fs(0,0,0,0);function Ro(e){return parseFloat(e)||0}function Au(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+Ro(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]=Ro(d)}return n}function G2(e){var t=e.getBBox();return fs(0,0,t.width,t.height)}function K2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return lp;var i=xi(e).getComputedStyle(e),p=j2(i),u=p.left+p.right,d=p.top+p.bottom,g=Ro(i.width),s=Ro(i.height);if(i.boxSizing==="border-box"&&(Math.round(g+u)!==t&&(g-=Au(i,"left","right")+u),Math.round(s+d)!==n&&(s-=Au(i,"top","bottom")+d)),!X2(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 fs(p.left,p.top,g,s)}var Y2=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 X2(e){return e===xi(e).document.documentElement}function Z2(e){return _a?Y2(e)?G2(e):K2(e):lp}function Q2(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 ap(d,{x:t,y:n,width:i,height:p,top:n,right:t+i,bottom:p+n,left:t}),d}function fs(e,t,n,i){return{x:e,y:t,width:n,height:i}}var J2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Z2(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}(),q2=function(){function e(t,n){var i=Q2(n);ap(this,{target:t,contentRect:i})}return e}(),ex=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new sp,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 J2(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 q2(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}(),cp=typeof WeakMap<"u"?new WeakMap:new sp,up=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=V2.getInstance(),i=new ex(t,n,this);cp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){up.prototype[e]=function(){var t;return(t=cp.get(this))[e].apply(t,arguments)}});var tx=function(){return typeof Eo.ResizeObserver<"u"?Eo.ResizeObserver:up}();const xu=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],hp=$e({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",...xu],render(){return Oi("div")},mounted(){const e=this._editor=Ho(Rl.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)}),xu.forEach(t=>{const n="on"+Ri(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new tx(()=>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()}},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)}}}),nx=$e({name:"RuleInputForm",components:{VAceEditor:hp},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Qn(e,"yaml");return Rh(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),ix={class:"block"};function rx(e,t,n,i,p,u){const d=ue("VAceEditor");return q(),oe("div",ix,[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 fp=xe(nx,[["render",rx]]),ox=$e({name:"EditRule",components:{InputForm:fp,ErrorMessage:hn},props:{rule:{type:Object,required:!0}},setup(e){const t=Ii(),n=Qn(e,"rule"),i=Qn(n.value,"yaml"),p=X1();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}}}),sx={class:"column"},ax={class:"is-size-2 mb-4"},lx={class:"field is-grouped is-grouped-centered"},cx={class:"control"},ux={class:"icon is-small"},hx=P("span",null,"Edit",-1),fx={key:0},dx=P("hr",null,null,-1);function px(e,t,n,i,p,u){var h,o;const d=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",sx,[P("h2",ax,"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"]),P("div",lx,[P("p",cx,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[P("span",ux,[he(g,{icon:"edit"})]),hx])])]),(h=e.updateRuleTask.last)!=null&&h.error?(q(),oe("div",fx,[dx,he(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const gx=xe(ox,[["render",px]]),mx=$e({name:"EditRuleWrapper",components:{EditRule:gx,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Dd(),n=async()=>{await t.perform(e.id)};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function vx(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 yx=xe(mx,[["render",vx]]),bx=$e({name:"EditRuleView",components:{EditRule:yx},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Edit rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function wx(e,t,n,i,p,u){const d=ue("EditRule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const $x=xe(bx,[["render",wx]]);function _x(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
1741
  [ ]{`+Math.min.apply(Math,p)+"}","g");i=i.map(function(g){return g.replace(u,`
1742
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
1743
  `)&&(r=String(g).split(`
1744
1744
  `).map(function(l,c){return c===0?l:""+o+l}).join(`
1745
- `)),d+=r+i[s+1]}),d}var eo,_x=new Uint8Array(16);function Cx(){if(!eo&&(eo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!eo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eo(_x)}const Sx=/^(?:[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 Ax(e){return typeof e=="string"&&Sx.test(e)}var rt=[];for(var Os=0;Os<256;++Os)rt.push((Os+256).toString(16).substr(1));function xx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(rt[e[t+0]]+rt[e[t+1]]+rt[e[t+2]]+rt[e[t+3]]+"-"+rt[e[t+4]]+rt[e[t+5]]+"-"+rt[e[t+6]]+rt[e[t+7]]+"-"+rt[e[t+8]]+rt[e[t+9]]+"-"+rt[e[t+10]]+rt[e[t+11]]+rt[e[t+12]]+rt[e[t+13]]+rt[e[t+14]]+rt[e[t+15]]).toLowerCase();if(!Ax(n))throw TypeError("Stringified UUID is invalid");return n}function kx(e,t,n){e=e||{};var i=e.random||(e.rng||Cx)();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 xx(i)}function Ex(){const e=kx(),t=Ni();return $x`id: ${e}
1745
+ `)),d+=r+i[s+1]}),d}var eo,Cx=new Uint8Array(16);function Sx(){if(!eo&&(eo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!eo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eo(Cx)}const Ax=/^(?:[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 xx(e){return typeof e=="string"&&Ax.test(e)}var rt=[];for(var Is=0;Is<256;++Is)rt.push((Is+256).toString(16).substr(1));function kx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(rt[e[t+0]]+rt[e[t+1]]+rt[e[t+2]]+rt[e[t+3]]+"-"+rt[e[t+4]]+rt[e[t+5]]+"-"+rt[e[t+6]]+rt[e[t+7]]+"-"+rt[e[t+8]]+rt[e[t+9]]+"-"+rt[e[t+10]]+rt[e[t+11]]+rt[e[t+12]]+rt[e[t+13]]+rt[e[t+14]]+rt[e[t+15]]).toLowerCase();if(!xx(n))throw TypeError("Stringified UUID is invalid");return n}function Ex(e,t,n){e=e||{};var i=e.random||(e.rng||Sx)();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 kx(i)}function Rx(){const e=Ex(),t=Pi();return _x`id: ${e}
1746
1746
  title: Title goes here
1747
1747
  description: Description goes here
1748
1748
  created_on: ${t.format("YYYY-MM-DD")}
1749
- queries: []`}const Rx=$e({name:"NewRule",components:{InputForm:hp,ErrorMessage:hn},setup(){const e=Oi(),t=Te(Ex()),n=K1();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}}}),Lx={class:"column"},Tx=P("h2",{class:"is-size-2 mb-4"},"New rule",-1),Mx={class:"field is-grouped is-grouped-centered"},Ox={class:"control"},Ix={class:"icon is-small"},Fx=P("span",null,"Create",-1),Nx={key:0},Px=P("hr",null,null,-1);function Dx(e,t,n,i,p,u){var h,o;const d=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",Lx,[Tx,he(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),P("div",Mx,[P("p",Ox,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[P("span",Ix,[he(g,{icon:"plus"})]),Fx])])]),(h=e.createRuleTask.last)!=null&&h.error?(q(),oe("div",Nx,[Px,he(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Bx=xe(Rx,[["render",Dx]]),Wx=$e({name:"NewRuleView",components:{NewRule:Bx},setup(){const e=()=>{ii("New rule - Mihari")};nt(()=>{e()})}});function Hx(e,t,n,i,p,u){const d=ue("NewRule",!0);return q(),Me(d)}const Ux=xe(Wx,[["render",Hx]]),zx=$e({name:"YAML",components:{VAceEditor:up},props:{yaml:{type:String,required:!0}},setup(){}}),Vx={class:"block"};function jx(e,t,n,i,p,u){const d=ue("VAceEditor");return q(),oe("div",Vx,[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 Gx=xe(zx,[["render",jx]]),Kx=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:Gx,Alerts:Yd,Loading:fn,ErrorMessage:hn},emits:["refresh"],setup(e,t){const n=Oi(),i=j1(),p=G1();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}}}),Yx={class:"column"},Xx={key:0},Zx=P("hr",null,null,-1),Qx={key:1},Jx=P("hr",null,null,-1),qx=P("h2",{class:"is-size-2 mb-4"},"Rule",-1),ek={class:"block is-clearfix"},tk={class:"buttons is-pulled-right"},nk=P("span",null,"Run",-1),ik={class:"icon is-small"},rk=P("span",null,"Edit",-1),ok={class:"icon is-small"},sk=P("span",null,"Delete",-1),ak={class:"icon is-small"},lk=P("hr",null,null,-1),ck={class:"column"},uk=P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function hk(e,t,n,i,p,u){var l;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("font-awesome-icon"),h=ue("router-link"),o=ue("YAML"),r=ue("Alerts");return q(),oe(Se,null,[P("div",Yx,[e.runRuleTask.isRunning?(q(),oe("div",Xx,[he(d),Zx])):we("",!0),(l=e.runRuleTask.last)!=null&&l.error?(q(),oe("div",Qx,[he(g,{error:e.runRuleTask.last.error},null,8,["error"]),Jx])):we("",!0),qx,P("p",ek,[P("span",tk,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...c)=>e.runRule&&e.runRule(...c))},[nk,P("span",ik,[he(s,{icon:"arrow-right"})])]),he(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:dt(()=>[rk,P("span",ok,[he(s,{icon:"edit"})])]),_:1},8,["to"]),P("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...c)=>e.deleteRule&&e.deleteRule(...c))},[sk,P("span",ak,[he(s,{icon:"times"})])])])]),he(o,{yaml:e.rule.yaml},null,8,["yaml"])]),lk,P("div",ck,[uk,he(r,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const fk=xe(Kx,[["render",hk]]),dk=$e({name:"RuleWrapper",components:{Rule:fk,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Pd(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function pk(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 gk=xe(dk,[["render",pk]]),mk=$e({name:"RuleView",components:{Rule:gk},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function vk(e,t,n,i,p,u){const d=ue("Rule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const yk=xe(mk,[["render",vk]]),bk=$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=Te(void 0),i=Te(void 0),p=Qn(e,"tag"),u=Te(void 0),d=Te(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=Gi(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}}}),wk={class:"columns"},$k={class:"column"},_k={class:"field is-horizontal"},Ck=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Title")],-1),Sk={class:"field-body"},Ak={class:"field"},xk={class:"control"},kk={class:"column"},Ek={class:"field is-horizontal"},Rk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Description")],-1),Lk={class:"field-body"},Tk={class:"field"},Mk={class:"control"},Ok={class:"columns"},Ik={class:"column"},Fk={class:"field is-horizontal"},Nk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),Pk={class:"field-body"},Dk={class:"field"},Bk={class:"control"},Wk={class:"select"},Hk=P("option",null,null,-1),Uk=P("div",{class:"column"},null,-1),zk={class:"columns"},Vk={class:"column"},jk={class:"field is-horizontal"},Gk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),Kk={class:"field-body"},Yk={class:"field"},Xk={class:"control"},Zk={class:"column"},Qk={class:"field is-horizontal"},Jk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),qk={class:"field-body"},eE={class:"field"},tE={class:"control"};function nE(e,t,n,i,p,u){return q(),oe(Se,null,[P("div",wk,[P("div",$k,[P("div",_k,[Ck,P("div",Sk,[P("div",Ak,[P("p",xk,[Mt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=d=>e.title=d)},null,512),[[Ft,e.title]])])])])])]),P("div",kk,[P("div",Ek,[Rk,P("div",Lk,[P("div",Tk,[P("p",Mk,[Mt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.description=d)},null,512),[[Ft,e.description]])])])])])])]),P("div",Ok,[P("div",Ik,[P("div",Fk,[Nk,P("div",Pk,[P("div",Dk,[P("div",Bk,[P("div",Wk,[Mt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[Hk,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[yr,e.tagInput]])])])])])])]),Uk]),P("div",zk,[P("div",Vk,[P("div",jk,[Gk,P("div",Kk,[P("div",Yk,[P("p",Xk,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),P("div",Zk,[P("div",Qk,[Jk,P("div",qk,[P("div",eE,[P("p",tE,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const iE=xe(bk,[["render",nE]]),rE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Vd,Tags:Dd},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}}}),oE={key:0},sE={class:"table is-fullwidth"},aE=P("tr",null,[P("th",null,"ID"),P("th",null,"Title"),P("th",null,"Description"),P("th",null,"Tags")],-1),lE={class:"help"};function cE(e,t,n,i,p,u){const d=ue("router-link"),g=ue("Tags"),s=ue("Pagination");return q(),oe(Se,null,[e.hasRules?(q(),oe("div",oE,[P("table",sE,[aE,(q(!0),oe(Se,null,ct(e.rules.rules,h=>(q(),oe("tr",{key:h.id},[P("td",null,[he(d,{to:{name:"Rule",params:{id:h.id}}},{default:dt(()=>[et(Ae(h.id),1)]),_:2},1032,["to"])]),P("td",null,Ae(h.title),1),P("td",null,Ae(h.description),1),P("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"]),P("p",lE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const uE=xe(rE,[["render",cE]]),hE=$e({name:"RulesWrapper",components:{Rules:uE,Loading:fn,FormComponent:iE,ErrorMessage:hn},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=V1(),p=Fd(),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 nt(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}}}),fE={class:"box mb-6"},dE=P("hr",null,null,-1),pE={class:"column"},gE={class:"field is-grouped is-grouped-centered"},mE={class:"control"},vE={class:"icon is-small"},yE=P("span",null,"Search",-1),bE={key:0},wE=P("hr",null,null,-1);function $E(e,t,n,i,p,u){var r,l,c;const d=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("Rules");return q(),oe(Se,null,[P("div",fE,[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"]),dE,P("div",pE,[P("div",gE,[P("p",mE,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...a)=>e.search&&e.search(...a))},[P("span",vE,[he(g,{icon:"search"})]),yE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",bE,[wE,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 _E=xe(hE,[["render",$E]]),CE=$e({name:"RulesView",components:{Rules:_E},setup(){ii("Rules - Mihari")}});function SE(e,t,n,i,p,u){const d=ue("Rules",!0);return q(),Me(d)}const AE=xe(CE,[["render",SE]]),xE=[{path:"/",name:"Alerts",component:vC},{path:"/configs",name:"Configs",component:O2},{path:"/artifacts/:id",name:"Artifact",component:f2,props:!0},{path:"/rules",name:"Rules",component:AE},{path:"/rules/new",name:"NewRule",component:Ux},{path:"/rules/:id",name:"Rule",component:yk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:wx,props:!0}],kE=Yb({history:ub(),routes:xE});Kg.add(Jg,am,Qg,lm,em,Xg,im,nm,sm,om);const fp=If(j0);fp.component("font-awesome-icon",L0);fp.use(kE).mount("#app");
1749
+ queries: []`}const Lx=$e({name:"NewRule",components:{InputForm:fp,ErrorMessage:hn},setup(){const e=Ii(),t=Te(Rx()),n=Y1();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}}}),Tx={class:"column"},Mx=P("h2",{class:"is-size-2 mb-4"},"New rule",-1),Ox={class:"field is-grouped is-grouped-centered"},Ix={class:"control"},Fx={class:"icon is-small"},Nx=P("span",null,"Create",-1),Px={key:0},Dx=P("hr",null,null,-1);function Bx(e,t,n,i,p,u){var h,o;const d=ue("InputForm"),g=ue("font-awesome-icon"),s=ue("ErrorMessage");return q(),oe("div",Tx,[Mx,he(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),P("div",Ox,[P("p",Ix,[P("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[P("span",Fx,[he(g,{icon:"plus"})]),Nx])])]),(h=e.createRuleTask.last)!=null&&h.error?(q(),oe("div",Px,[Dx,he(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Wx=xe(Lx,[["render",Bx]]),Hx=$e({name:"NewRuleView",components:{NewRule:Wx},setup(){const e=()=>{ii("New rule - Mihari")};nt(()=>{e()})}});function Ux(e,t,n,i,p,u){const d=ue("NewRule",!0);return q(),Me(d)}const zx=xe(Hx,[["render",Ux]]),Vx=$e({name:"YAML",components:{VAceEditor:hp},props:{yaml:{type:String,required:!0}},setup(){}}),jx={class:"block"};function Gx(e,t,n,i,p,u){const d=ue("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 Kx=xe(Vx,[["render",Gx]]),Yx=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:Kx,Alerts:Xd,Loading:fn,ErrorMessage:hn},emits:["refresh"],setup(e,t){const n=Ii(),i=G1(),p=K1();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}}}),Xx={class:"column"},Zx={key:0},Qx=P("hr",null,null,-1),Jx={key:1},qx=P("hr",null,null,-1),ek=P("h2",{class:"is-size-2 mb-4"},"Rule",-1),tk={class:"block is-clearfix"},nk={class:"buttons is-pulled-right"},ik=P("span",null,"Run",-1),rk={class:"icon is-small"},ok=P("span",null,"Edit",-1),sk={class:"icon is-small"},ak=P("span",null,"Delete",-1),lk={class:"icon is-small"},ck=P("hr",null,null,-1),uk={class:"column"},hk=P("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function fk(e,t,n,i,p,u){var l;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("font-awesome-icon"),h=ue("router-link"),o=ue("YAML"),r=ue("Alerts");return q(),oe(Se,null,[P("div",Xx,[e.runRuleTask.isRunning?(q(),oe("div",Zx,[he(d),Qx])):we("",!0),(l=e.runRuleTask.last)!=null&&l.error?(q(),oe("div",Jx,[he(g,{error:e.runRuleTask.last.error},null,8,["error"]),qx])):we("",!0),ek,P("p",tk,[P("span",nk,[P("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...c)=>e.runRule&&e.runRule(...c))},[ik,P("span",rk,[he(s,{icon:"arrow-right"})])]),he(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:dt(()=>[ok,P("span",sk,[he(s,{icon:"edit"})])]),_:1},8,["to"]),P("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...c)=>e.deleteRule&&e.deleteRule(...c))},[ak,P("span",lk,[he(s,{icon:"times"})])])])]),he(o,{yaml:e.rule.yaml},null,8,["yaml"])]),ck,P("div",uk,[hk,he(r,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const dk=xe(Yx,[["render",fk]]),pk=$e({name:"RuleWrapper",components:{Rule:dk,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 nt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function gk(e,t,n,i,p,u){var h,o;const d=ue("Loading"),g=ue("ErrorMessage"),s=ue("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 mk=xe(pk,[["render",gk]]),vk=$e({name:"RuleView",components:{Rule:mk},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ii(`Rule:${e.id} - Mihari`)};nt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function yk(e,t,n,i,p,u){const d=ue("Rule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const bk=xe(vk,[["render",yk]]),wk=$e({name:"RulesForm",props:{tags:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=ns(),n=Te(void 0),i=Te(void 0),p=Qn(e,"tag"),u=Te(void 0),d=Te(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=Ki(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}}}),$k={class:"columns"},_k={class:"column"},Ck={class:"field is-horizontal"},Sk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Title")],-1),Ak={class:"field-body"},xk={class:"field"},kk={class:"control"},Ek={class:"column"},Rk={class:"field is-horizontal"},Lk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Description")],-1),Tk={class:"field-body"},Mk={class:"field"},Ok={class:"control"},Ik={class:"columns"},Fk={class:"column"},Nk={class:"field is-horizontal"},Pk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"Tag")],-1),Dk={class:"field-body"},Bk={class:"field"},Wk={class:"control"},Hk={class:"select"},Uk=P("option",null,null,-1),zk=P("div",{class:"column"},null,-1),Vk={class:"columns"},jk={class:"column"},Gk={class:"field is-horizontal"},Kk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"From")],-1),Yk={class:"field-body"},Xk={class:"field"},Zk={class:"control"},Qk={class:"column"},Jk={class:"field is-horizontal"},qk=P("div",{class:"field-label is-normal"},[P("label",{class:"label"},"To")],-1),eE={class:"field-body"},tE={class:"field"},nE={class:"control"};function iE(e,t,n,i,p,u){return q(),oe(Se,null,[P("div",$k,[P("div",_k,[P("div",Ck,[Sk,P("div",Ak,[P("div",xk,[P("p",kk,[Mt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=d=>e.title=d)},null,512),[[Ft,e.title]])])])])])]),P("div",Ek,[P("div",Rk,[Lk,P("div",Tk,[P("div",Mk,[P("p",Ok,[Mt(P("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.description=d)},null,512),[[Ft,e.description]])])])])])])]),P("div",Ik,[P("div",Fk,[P("div",Nk,[Pk,P("div",Dk,[P("div",Bk,[P("div",Wk,[P("div",Hk,[Mt(P("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[Uk,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[yr,e.tagInput]])])])])])])]),zk]),P("div",Vk,[P("div",jk,[P("div",Gk,[Kk,P("div",Yk,[P("div",Xk,[P("p",Zk,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),P("div",Qk,[P("div",Jk,[qk,P("div",eE,[P("div",tE,[P("p",nE,[Mt(P("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const rE=xe(wk,[["render",iE]]),oE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:jd,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}}}),sE={key:0},aE={class:"table is-fullwidth"},lE=P("tr",null,[P("th",null,"ID"),P("th",null,"Title"),P("th",null,"Description"),P("th",null,"Tags")],-1),cE={class:"help"};function uE(e,t,n,i,p,u){const d=ue("router-link"),g=ue("Tags"),s=ue("Pagination");return q(),oe(Se,null,[e.hasRules?(q(),oe("div",sE,[P("table",aE,[lE,(q(!0),oe(Se,null,ct(e.rules.rules,h=>(q(),oe("tr",{key:h.id},[P("td",null,[he(d,{to:{name:"Rule",params:{id:h.id}}},{default:dt(()=>[et(Ae(h.id),1)]),_:2},1032,["to"])]),P("td",null,Ae(h.title),1),P("td",null,Ae(h.description),1),P("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"]),P("p",cE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const hE=xe(oE,[["render",uE]]),fE=$e({name:"RulesWrapper",components:{Rules:hE,Loading:fn,FormComponent:rE,ErrorMessage:hn},setup(){const e=Te(1),t=Te(void 0),n=Te(),i=j1(),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 nt(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}}}),dE={class:"box mb-6"},pE=P("hr",null,null,-1),gE={class:"column"},mE={class:"field is-grouped is-grouped-centered"},vE={class:"control"},yE={class:"icon is-small"},bE=P("span",null,"Search",-1),wE={key:0},$E=P("hr",null,null,-1);function _E(e,t,n,i,p,u){var r,l,c;const d=ue("FormComponent"),g=ue("font-awesome-icon"),s=ue("Loading"),h=ue("ErrorMessage"),o=ue("Rules");return q(),oe(Se,null,[P("div",dE,[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"]),pE,P("div",gE,[P("div",mE,[P("p",vE,[P("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...a)=>e.search&&e.search(...a))},[P("span",yE,[he(g,{icon:"search"})]),bE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",wE,[$E,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 CE=xe(fE,[["render",_E]]),SE=$e({name:"RulesView",components:{Rules:CE},setup(){ii("Rules - Mihari")}});function AE(e,t,n,i,p,u){const d=ue("Rules",!0);return q(),Me(d)}const xE=xe(SE,[["render",AE]]),kE=[{path:"/",name:"Alerts",component:yC},{path:"/configs",name:"Configs",component:I2},{path:"/artifacts/:id",name:"Artifact",component:d2,props:!0},{path:"/rules",name:"Rules",component:xE},{path:"/rules/new",name:"NewRule",component:zx},{path:"/rules/:id",name:"Rule",component:bk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:$x,props:!0}],EE=Xb({history:hb(),routes:kE});Yg.add(qg,lm,Jg,cm,tm,Zg,rm,im,am,sm);const dp=Ff(G0);dp.component("font-awesome-icon",T0);dp.use(EE).mount("#app");