mihari 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -1
- data/Dockerfile +3 -3
- data/README.md +0 -1
- data/Rakefile +4 -0
- data/lib/mihari/config.rb +0 -4
- data/lib/mihari/schemas/analyzer.rb +0 -1
- data/lib/mihari/version.rb +1 -3
- data/lib/mihari/web/public/assets/index-C3PsXBg7.js +1617 -0
- data/lib/mihari/web/public/assets/index-DzpJMEJU.css +1 -0
- data/lib/mihari/web/public/index.html +2 -2
- data/lib/mihari/web/public/redoc-static.html +413 -413
- data/lib/mihari.rb +0 -3
- data/mihari.gemspec +41 -42
- data/requirements.txt +1 -1
- metadata +82 -99
- data/lib/mihari/analyzers/binaryedge.rb +0 -42
- data/lib/mihari/clients/binaryedge.rb +0 -66
- data/lib/mihari/structs/binaryedge.rb +0 -83
- data/lib/mihari/web/public/assets/index-Dwa66Ymz.css +0 -1
- data/lib/mihari/web/public/assets/index-sQr_iTap.js +0 -1594
@@ -0,0 +1,1617 @@
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const h of i)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function n(i){const h={};return i.integrity&&(h.integrity=i.integrity),i.referrerPolicy&&(h.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?h.credentials="include":i.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(i){if(i.ep)return;i.ep=!0;const h=n(i);fetch(i.href,h)}})();/*!
|
2
|
+
* Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2025 Fonticons, Inc.
|
5
|
+
*/function zs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kg(e){if(Array.isArray(e))return e}function Eg(e){if(Array.isArray(e))return zs(e)}function Mg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vh(r.key),r)}}function Lg(e,t,n){return t&&Tg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ri(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ra(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h,f=!0,g=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return f=s.done,s},e:function(s){g=!0,h=s},f:function(){try{f||n.return==null||n.return()}finally{if(g)throw h}}}}function Me(e,t,n){return(t=vh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ig(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,h,f,g=[],s=!0,p=!1;try{if(h=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=h.call(n)).done)&&(g.push(r.value),g.length!==t);s=!0);}catch(o){p=!0,i=o}finally{try{if(!s&&n.return!=null&&(f=n.return(),Object(f)!==f))return}finally{if(p)throw i}}return g}}function Og(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ng(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pl(Object(n),!0).forEach(function(r){Me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yo(e,t){return kg(e)||Ig(e,t)||Ra(e,t)||Og()}function Wt(e){return Eg(e)||Rg(e)||Ra(e)||Ng()}function Dg(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vh(e){var t=Dg(e,"string");return typeof t=="symbol"?t:t+""}function Xi(e){"@babel/helpers - typeof";return Xi=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},Xi(e)}function Ra(e,t){if(e){if(typeof e=="string")return zs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zs(e,t):void 0}}var zl=function(){},Ia={},yh={},bh=null,wh={mark:zl,measure:zl};try{typeof window<"u"&&(Ia=window),typeof document<"u"&&(yh=document),typeof MutationObserver<"u"&&(bh=MutationObserver),typeof performance<"u"&&(wh=performance)}catch{}var Fg=Ia.navigator||{},Wl=Fg.userAgent,jl=Wl===void 0?"":Wl,Sn=Ia,Ze=yh,Bl=bh,yi=wh;Sn.document;var hn=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",Sh=~jl.indexOf("MSIE")||~jl.indexOf("Trident/"),is,Pg=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,zg=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Slab Press|Slab|Whiteboard)?.*/i,$h={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"}},Wg={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},_h=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press"],dt="classic",ti="duotone",Ch="sharp",xh="sharp-duotone",Ah="chisel",kh="etch",Eh="jelly",Mh="jelly-duo",Th="jelly-fill",Lh="notdog",Rh="notdog-duo",Ih="slab",Oh="slab-press",Nh="thumbprint",Dh="whiteboard",jg="Classic",Bg="Duotone",Hg="Sharp",Ug="Sharp Duotone",Vg="Chisel",Gg="Etch",Zg="Jelly",Yg="Jelly Duo",Kg="Jelly Fill",Xg="Notdog",Qg="Notdog Duo",Jg="Slab",qg="Slab Press",em="Thumbprint",tm="Whiteboard",Fh=[dt,ti,Ch,xh,Ah,kh,Eh,Mh,Th,Lh,Rh,Ih,Oh,Nh,Dh];is={},Me(Me(Me(Me(Me(Me(Me(Me(Me(Me(is,dt,jg),ti,Bg),Ch,Hg),xh,Ug),Ah,Vg),kh,Gg),Eh,Zg),Mh,Yg),Th,Kg),Lh,Xg),Me(Me(Me(Me(Me(is,Rh,Qg),Ih,Jg),Oh,qg),Nh,em),Dh,tm);var nm={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"}},rm={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"}},im=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),om={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},whiteboard:{semibold:"fawsb"}},Ph=["fak","fa-kit","fakd","fa-kit-duotone"],Hl={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},sm=["kit"],am="kit",lm="kit-duotone",cm="Kit",um="Kit Duotone";Me(Me({},am,cm),lm,um);var hm={kit:{"fa-kit":"fak"}},fm={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},dm={kit:{fak:"fa-kit"}},Ul={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},os,bi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press"],gm="classic",mm="duotone",vm="sharp",ym="sharp-duotone",bm="chisel",wm="etch",Sm="jelly",$m="jelly-duo",_m="jelly-fill",Cm="notdog",xm="notdog-duo",Am="slab",km="slab-press",Em="thumbprint",Mm="whiteboard",Tm="Classic",Lm="Duotone",Rm="Sharp",Im="Sharp Duotone",Om="Chisel",Nm="Etch",Dm="Jelly",Fm="Jelly Duo",Pm="Jelly Fill",zm="Notdog",Wm="Notdog Duo",jm="Slab",Bm="Slab Press",Hm="Thumbprint",Um="Whiteboard";os={},Me(Me(Me(Me(Me(Me(Me(Me(Me(Me(os,gm,Tm),mm,Lm),vm,Rm),ym,Im),bm,Om),wm,Nm),Sm,Dm),$m,Fm),_m,Pm),Cm,zm),Me(Me(Me(Me(Me(os,xm,Wm),Am,jm),km,Bm),Em,Hm),Mm,Um);var Vm="kit",Gm="kit-duotone",Zm="Kit",Ym="Kit Duotone";Me(Me({},Vm,Zm),Gm,Ym);var Km={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"}},Xm={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"]},Ws={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"}},Qm=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],zh=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr"].concat(pm,Qm),Jm=["solid","regular","light","thin","duotone","brands","semibold"],Wh=[1,2,3,4,5,6,7,8,9,10],qm=Wh.concat([11,12,13,14,15,16,17,18,19,20]),ev=["aw","fw","pull-left","pull-right"],tv=[].concat(Wt(Object.keys(Xm)),Jm,ev,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",bi.GROUP,bi.SWAP_OPACITY,bi.PRIMARY,bi.SECONDARY]).concat(Wh.map(function(e){return"".concat(e,"x")})).concat(qm.map(function(e){return"w-".concat(e)})),nv={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},an="___FONT_AWESOME___",js=16,jh="fa",Bh="svg-inline--fa",Wn="data-fa-i2svg",Bs="data-fa-pseudo-element",rv="data-fa-pseudo-element-pending",Oa="data-prefix",Na="data-icon",Vl="fontawesome-i2svg",iv="async",ov=["HTML","HEAD","STYLE","SCRIPT"],Hh=["::before","::after",":before",":after"],Uh=function(){try{return!0}catch{return!1}}();function ni(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[dt]}})}var Vh=ae({},$h);Vh[dt]=ae(ae(ae(ae({},{"fa-duotone":"duotone"}),$h[dt]),Hl.kit),Hl["kit-duotone"]);var sv=ni(Vh),Hs=ae({},om);Hs[dt]=ae(ae(ae(ae({},{duotone:"fad"}),Hs[dt]),Ul.kit),Ul["kit-duotone"]);var Gl=ni(Hs),Us=ae({},Ws);Us[dt]=ae(ae({},Us[dt]),dm.kit);var Gh=ni(Us),Vs=ae({},Km);Vs[dt]=ae(ae({},Vs[dt]),hm.kit);ni(Vs);var av=Pg,Zh="fa-layers-text",lv=zg,cv=ae({},nm);ni(cv);var uv=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ss=Wg,hv=[].concat(Wt(sm),Wt(tv)),Lr=Sn.FontAwesomeConfig||{};function fv(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function dv(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ze&&typeof Ze.querySelector=="function"){var pv=[["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-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];pv.forEach(function(e){var t=yo(e,2),n=t[0],r=t[1],i=dv(fv(n));i!=null&&(Lr[r]=i)})}var Yh={styleDefault:"solid",familyDefault:dt,cssPrefix:jh,replacementClass:Bh,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Lr.familyPrefix&&(Lr.cssPrefix=Lr.familyPrefix);var ar=ae(ae({},Yh),Lr);ar.autoReplaceSvg||(ar.observeMutations=!1);var we={};Object.keys(Yh).forEach(function(e){Object.defineProperty(we,e,{enumerable:!0,set:function(n){ar[e]=n,Rr.forEach(function(r){return r(we)})},get:function(){return ar[e]}})});Object.defineProperty(we,"familyPrefix",{enumerable:!0,set:function(t){ar.cssPrefix=t,Rr.forEach(function(n){return n(we)})},get:function(){return ar.cssPrefix}});Sn.FontAwesomeConfig=we;var Rr=[];function gv(e){return Rr.push(e),function(){Rr.splice(Rr.indexOf(e),1)}}var Zn=js,Xt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function mv(e){if(!(!e||!hn)){var t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ze.head.childNodes,r=null,i=n.length-1;i>-1;i--){var h=n[i],f=(h.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(r=h)}return Ze.head.insertBefore(t,r),e}}var vv="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Zl(){for(var e=12,t="";e-- >0;)t+=vv[Math.random()*62|0];return t}function gr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Da(e){return e.classList?gr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Kh(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function yv(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Kh(e[n]),'" ')},"").trim()}function bo(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Fa(e){return e.size!==Xt.size||e.x!==Xt.x||e.y!==Xt.y||e.rotate!==Xt.rotate||e.flipX||e.flipY}function bv(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},h="translate(".concat(t.x*32,", ").concat(t.y*32,") "),f="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(h," ").concat(f," ").concat(g)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:s,path:p}}function wv(e){var t=e.transform,n=e.width,r=n===void 0?js:n,i=e.height,h=i===void 0?js:i,f="";return Sh?f+="translate(".concat(t.x/Zn-r/2,"em, ").concat(t.y/Zn-h/2,"em) "):f+="translate(calc(-50% + ".concat(t.x/Zn,"em), calc(-50% + ").concat(t.y/Zn,"em)) "),f+="scale(".concat(t.size/Zn*(t.flipX?-1:1),", ").concat(t.size/Zn*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var Sv=`:root, :host {
|
9
|
+
--fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
|
10
|
+
--fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
|
11
|
+
--fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
|
12
|
+
--fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
|
13
|
+
--fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
|
14
|
+
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
|
15
|
+
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
|
16
|
+
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
|
17
|
+
--fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
|
18
|
+
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
|
19
|
+
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
|
20
|
+
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
|
21
|
+
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
|
22
|
+
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
|
23
|
+
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
|
24
|
+
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
|
25
|
+
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
|
26
|
+
--fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
|
27
|
+
--fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
|
28
|
+
--fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
|
29
|
+
--fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
|
30
|
+
--fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
|
31
|
+
--fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
|
32
|
+
--fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
|
33
|
+
--fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
|
34
|
+
--fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
|
35
|
+
--fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
|
36
|
+
--fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
|
37
|
+
}
|
38
|
+
|
39
|
+
.svg-inline--fa {
|
40
|
+
box-sizing: content-box;
|
41
|
+
display: var(--fa-display, inline-block);
|
42
|
+
height: 1em;
|
43
|
+
overflow: visible;
|
44
|
+
vertical-align: -0.125em;
|
45
|
+
width: var(--fa-width, 1.25em);
|
46
|
+
}
|
47
|
+
.svg-inline--fa.fa-2xs {
|
48
|
+
vertical-align: 0.1em;
|
49
|
+
}
|
50
|
+
.svg-inline--fa.fa-xs {
|
51
|
+
vertical-align: 0em;
|
52
|
+
}
|
53
|
+
.svg-inline--fa.fa-sm {
|
54
|
+
vertical-align: -0.0714285714em;
|
55
|
+
}
|
56
|
+
.svg-inline--fa.fa-lg {
|
57
|
+
vertical-align: -0.2em;
|
58
|
+
}
|
59
|
+
.svg-inline--fa.fa-xl {
|
60
|
+
vertical-align: -0.25em;
|
61
|
+
}
|
62
|
+
.svg-inline--fa.fa-2xl {
|
63
|
+
vertical-align: -0.3125em;
|
64
|
+
}
|
65
|
+
.svg-inline--fa.fa-pull-left,
|
66
|
+
.svg-inline--fa .fa-pull-start {
|
67
|
+
float: inline-start;
|
68
|
+
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
69
|
+
}
|
70
|
+
.svg-inline--fa.fa-pull-right,
|
71
|
+
.svg-inline--fa .fa-pull-end {
|
72
|
+
float: inline-end;
|
73
|
+
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
74
|
+
}
|
75
|
+
.svg-inline--fa.fa-li {
|
76
|
+
width: var(--fa-li-width, 2em);
|
77
|
+
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
78
|
+
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
|
79
|
+
}
|
80
|
+
|
81
|
+
.fa-layers-counter, .fa-layers-text {
|
82
|
+
display: inline-block;
|
83
|
+
position: absolute;
|
84
|
+
text-align: center;
|
85
|
+
}
|
86
|
+
|
87
|
+
.fa-layers {
|
88
|
+
display: inline-block;
|
89
|
+
height: 1em;
|
90
|
+
position: relative;
|
91
|
+
text-align: center;
|
92
|
+
vertical-align: -0.125em;
|
93
|
+
width: var(--fa-width, 1.25em);
|
94
|
+
}
|
95
|
+
.fa-layers .svg-inline--fa {
|
96
|
+
inset: 0;
|
97
|
+
margin: auto;
|
98
|
+
position: absolute;
|
99
|
+
transform-origin: center center;
|
100
|
+
}
|
101
|
+
|
102
|
+
.fa-layers-text {
|
103
|
+
left: 50%;
|
104
|
+
top: 50%;
|
105
|
+
transform: translate(-50%, -50%);
|
106
|
+
transform-origin: center center;
|
107
|
+
}
|
108
|
+
|
109
|
+
.fa-layers-counter {
|
110
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
111
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
112
|
+
box-sizing: border-box;
|
113
|
+
color: var(--fa-inverse, #fff);
|
114
|
+
line-height: var(--fa-counter-line-height, 1);
|
115
|
+
max-width: var(--fa-counter-max-width, 5em);
|
116
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
117
|
+
overflow: hidden;
|
118
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
119
|
+
right: var(--fa-right, 0);
|
120
|
+
text-overflow: ellipsis;
|
121
|
+
top: var(--fa-top, 0);
|
122
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
123
|
+
transform-origin: top right;
|
124
|
+
}
|
125
|
+
|
126
|
+
.fa-layers-bottom-right {
|
127
|
+
bottom: var(--fa-bottom, 0);
|
128
|
+
right: var(--fa-right, 0);
|
129
|
+
top: auto;
|
130
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
131
|
+
transform-origin: bottom right;
|
132
|
+
}
|
133
|
+
|
134
|
+
.fa-layers-bottom-left {
|
135
|
+
bottom: var(--fa-bottom, 0);
|
136
|
+
left: var(--fa-left, 0);
|
137
|
+
right: auto;
|
138
|
+
top: auto;
|
139
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
140
|
+
transform-origin: bottom left;
|
141
|
+
}
|
142
|
+
|
143
|
+
.fa-layers-top-right {
|
144
|
+
top: var(--fa-top, 0);
|
145
|
+
right: var(--fa-right, 0);
|
146
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
147
|
+
transform-origin: top right;
|
148
|
+
}
|
149
|
+
|
150
|
+
.fa-layers-top-left {
|
151
|
+
left: var(--fa-left, 0);
|
152
|
+
right: auto;
|
153
|
+
top: var(--fa-top, 0);
|
154
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
155
|
+
transform-origin: top left;
|
156
|
+
}
|
157
|
+
|
158
|
+
.fa-1x {
|
159
|
+
font-size: 1em;
|
160
|
+
}
|
161
|
+
|
162
|
+
.fa-2x {
|
163
|
+
font-size: 2em;
|
164
|
+
}
|
165
|
+
|
166
|
+
.fa-3x {
|
167
|
+
font-size: 3em;
|
168
|
+
}
|
169
|
+
|
170
|
+
.fa-4x {
|
171
|
+
font-size: 4em;
|
172
|
+
}
|
173
|
+
|
174
|
+
.fa-5x {
|
175
|
+
font-size: 5em;
|
176
|
+
}
|
177
|
+
|
178
|
+
.fa-6x {
|
179
|
+
font-size: 6em;
|
180
|
+
}
|
181
|
+
|
182
|
+
.fa-7x {
|
183
|
+
font-size: 7em;
|
184
|
+
}
|
185
|
+
|
186
|
+
.fa-8x {
|
187
|
+
font-size: 8em;
|
188
|
+
}
|
189
|
+
|
190
|
+
.fa-9x {
|
191
|
+
font-size: 9em;
|
192
|
+
}
|
193
|
+
|
194
|
+
.fa-10x {
|
195
|
+
font-size: 10em;
|
196
|
+
}
|
197
|
+
|
198
|
+
.fa-2xs {
|
199
|
+
font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
|
200
|
+
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
201
|
+
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
202
|
+
}
|
203
|
+
|
204
|
+
.fa-xs {
|
205
|
+
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
|
206
|
+
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
207
|
+
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
208
|
+
}
|
209
|
+
|
210
|
+
.fa-sm {
|
211
|
+
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
|
212
|
+
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
213
|
+
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
214
|
+
}
|
215
|
+
|
216
|
+
.fa-lg {
|
217
|
+
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
|
218
|
+
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
219
|
+
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
220
|
+
}
|
221
|
+
|
222
|
+
.fa-xl {
|
223
|
+
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
|
224
|
+
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
225
|
+
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
226
|
+
}
|
227
|
+
|
228
|
+
.fa-2xl {
|
229
|
+
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
|
230
|
+
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
231
|
+
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
232
|
+
}
|
233
|
+
|
234
|
+
.fa-width-auto {
|
235
|
+
--fa-width: auto;
|
236
|
+
}
|
237
|
+
|
238
|
+
.fa-fw,
|
239
|
+
.fa-width-fixed {
|
240
|
+
--fa-width: 1.25em;
|
241
|
+
}
|
242
|
+
|
243
|
+
.fa-ul {
|
244
|
+
list-style-type: none;
|
245
|
+
margin-inline-start: var(--fa-li-margin, 2.5em);
|
246
|
+
padding-inline-start: 0;
|
247
|
+
}
|
248
|
+
.fa-ul > li {
|
249
|
+
position: relative;
|
250
|
+
}
|
251
|
+
|
252
|
+
.fa-li {
|
253
|
+
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
254
|
+
position: absolute;
|
255
|
+
text-align: center;
|
256
|
+
width: var(--fa-li-width, 2em);
|
257
|
+
line-height: inherit;
|
258
|
+
}
|
259
|
+
|
260
|
+
/* Heads Up: Bordered Icons will not be supported in the future!
|
261
|
+
- This feature will be deprecated in the next major release of Font Awesome (v8)!
|
262
|
+
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
|
263
|
+
*/
|
264
|
+
/* Notes:
|
265
|
+
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
|
266
|
+
* --@{v.$css-prefix}-border-padding =
|
267
|
+
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
|
268
|
+
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
|
269
|
+
*/
|
270
|
+
.fa-border {
|
271
|
+
border-color: var(--fa-border-color, #eee);
|
272
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
273
|
+
border-style: var(--fa-border-style, solid);
|
274
|
+
border-width: var(--fa-border-width, 0.0625em);
|
275
|
+
box-sizing: var(--fa-border-box-sizing, content-box);
|
276
|
+
padding: var(--fa-border-padding, 0.1875em 0.25em);
|
277
|
+
}
|
278
|
+
|
279
|
+
.fa-pull-left,
|
280
|
+
.fa-pull-start {
|
281
|
+
float: inline-start;
|
282
|
+
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
283
|
+
}
|
284
|
+
|
285
|
+
.fa-pull-right,
|
286
|
+
.fa-pull-end {
|
287
|
+
float: inline-end;
|
288
|
+
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
289
|
+
}
|
290
|
+
|
291
|
+
.fa-beat {
|
292
|
+
animation-name: fa-beat;
|
293
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
294
|
+
animation-direction: var(--fa-animation-direction, normal);
|
295
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
296
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
297
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
298
|
+
}
|
299
|
+
|
300
|
+
.fa-bounce {
|
301
|
+
animation-name: fa-bounce;
|
302
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
303
|
+
animation-direction: var(--fa-animation-direction, normal);
|
304
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
305
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
306
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
307
|
+
}
|
308
|
+
|
309
|
+
.fa-fade {
|
310
|
+
animation-name: fa-fade;
|
311
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
312
|
+
animation-direction: var(--fa-animation-direction, normal);
|
313
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
314
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
315
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
316
|
+
}
|
317
|
+
|
318
|
+
.fa-beat-fade {
|
319
|
+
animation-name: fa-beat-fade;
|
320
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
321
|
+
animation-direction: var(--fa-animation-direction, normal);
|
322
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
323
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
324
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
325
|
+
}
|
326
|
+
|
327
|
+
.fa-flip {
|
328
|
+
animation-name: fa-flip;
|
329
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
330
|
+
animation-direction: var(--fa-animation-direction, normal);
|
331
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
332
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
333
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
334
|
+
}
|
335
|
+
|
336
|
+
.fa-shake {
|
337
|
+
animation-name: fa-shake;
|
338
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
339
|
+
animation-direction: var(--fa-animation-direction, normal);
|
340
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
341
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
342
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
343
|
+
}
|
344
|
+
|
345
|
+
.fa-spin {
|
346
|
+
animation-name: fa-spin;
|
347
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
348
|
+
animation-direction: var(--fa-animation-direction, normal);
|
349
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
350
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
351
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
352
|
+
}
|
353
|
+
|
354
|
+
.fa-spin-reverse {
|
355
|
+
--fa-animation-direction: reverse;
|
356
|
+
}
|
357
|
+
|
358
|
+
.fa-pulse,
|
359
|
+
.fa-spin-pulse {
|
360
|
+
animation-name: fa-spin;
|
361
|
+
animation-direction: var(--fa-animation-direction, normal);
|
362
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
363
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
364
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
365
|
+
}
|
366
|
+
|
367
|
+
@media (prefers-reduced-motion: reduce) {
|
368
|
+
.fa-beat,
|
369
|
+
.fa-bounce,
|
370
|
+
.fa-fade,
|
371
|
+
.fa-beat-fade,
|
372
|
+
.fa-flip,
|
373
|
+
.fa-pulse,
|
374
|
+
.fa-shake,
|
375
|
+
.fa-spin,
|
376
|
+
.fa-spin-pulse {
|
377
|
+
animation: none !important;
|
378
|
+
transition: none !important;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
@keyframes fa-beat {
|
382
|
+
0%, 90% {
|
383
|
+
transform: scale(1);
|
384
|
+
}
|
385
|
+
45% {
|
386
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
387
|
+
}
|
388
|
+
}
|
389
|
+
@keyframes fa-bounce {
|
390
|
+
0% {
|
391
|
+
transform: scale(1, 1) translateY(0);
|
392
|
+
}
|
393
|
+
10% {
|
394
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
395
|
+
}
|
396
|
+
30% {
|
397
|
+
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
398
|
+
}
|
399
|
+
50% {
|
400
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
401
|
+
}
|
402
|
+
57% {
|
403
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
404
|
+
}
|
405
|
+
64% {
|
406
|
+
transform: scale(1, 1) translateY(0);
|
407
|
+
}
|
408
|
+
100% {
|
409
|
+
transform: scale(1, 1) translateY(0);
|
410
|
+
}
|
411
|
+
}
|
412
|
+
@keyframes fa-fade {
|
413
|
+
50% {
|
414
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
415
|
+
}
|
416
|
+
}
|
417
|
+
@keyframes fa-beat-fade {
|
418
|
+
0%, 100% {
|
419
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
420
|
+
transform: scale(1);
|
421
|
+
}
|
422
|
+
50% {
|
423
|
+
opacity: 1;
|
424
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
425
|
+
}
|
426
|
+
}
|
427
|
+
@keyframes fa-flip {
|
428
|
+
50% {
|
429
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
430
|
+
}
|
431
|
+
}
|
432
|
+
@keyframes fa-shake {
|
433
|
+
0% {
|
434
|
+
transform: rotate(-15deg);
|
435
|
+
}
|
436
|
+
4% {
|
437
|
+
transform: rotate(15deg);
|
438
|
+
}
|
439
|
+
8%, 24% {
|
440
|
+
transform: rotate(-18deg);
|
441
|
+
}
|
442
|
+
12%, 28% {
|
443
|
+
transform: rotate(18deg);
|
444
|
+
}
|
445
|
+
16% {
|
446
|
+
transform: rotate(-22deg);
|
447
|
+
}
|
448
|
+
20% {
|
449
|
+
transform: rotate(22deg);
|
450
|
+
}
|
451
|
+
32% {
|
452
|
+
transform: rotate(-12deg);
|
453
|
+
}
|
454
|
+
36% {
|
455
|
+
transform: rotate(12deg);
|
456
|
+
}
|
457
|
+
40%, 100% {
|
458
|
+
transform: rotate(0deg);
|
459
|
+
}
|
460
|
+
}
|
461
|
+
@keyframes fa-spin {
|
462
|
+
0% {
|
463
|
+
transform: rotate(0deg);
|
464
|
+
}
|
465
|
+
100% {
|
466
|
+
transform: rotate(360deg);
|
467
|
+
}
|
468
|
+
}
|
469
|
+
.fa-rotate-90 {
|
470
|
+
transform: rotate(90deg);
|
471
|
+
}
|
472
|
+
|
473
|
+
.fa-rotate-180 {
|
474
|
+
transform: rotate(180deg);
|
475
|
+
}
|
476
|
+
|
477
|
+
.fa-rotate-270 {
|
478
|
+
transform: rotate(270deg);
|
479
|
+
}
|
480
|
+
|
481
|
+
.fa-flip-horizontal {
|
482
|
+
transform: scale(-1, 1);
|
483
|
+
}
|
484
|
+
|
485
|
+
.fa-flip-vertical {
|
486
|
+
transform: scale(1, -1);
|
487
|
+
}
|
488
|
+
|
489
|
+
.fa-flip-both,
|
490
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
491
|
+
transform: scale(-1, -1);
|
492
|
+
}
|
493
|
+
|
494
|
+
.fa-rotate-by {
|
495
|
+
transform: rotate(var(--fa-rotate-angle, 0));
|
496
|
+
}
|
497
|
+
|
498
|
+
.svg-inline--fa .fa-primary {
|
499
|
+
fill: var(--fa-primary-color, currentColor);
|
500
|
+
opacity: var(--fa-primary-opacity, 1);
|
501
|
+
}
|
502
|
+
|
503
|
+
.svg-inline--fa .fa-secondary {
|
504
|
+
fill: var(--fa-secondary-color, currentColor);
|
505
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
506
|
+
}
|
507
|
+
|
508
|
+
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
509
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
510
|
+
}
|
511
|
+
|
512
|
+
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
513
|
+
opacity: var(--fa-primary-opacity, 1);
|
514
|
+
}
|
515
|
+
|
516
|
+
.svg-inline--fa mask .fa-primary,
|
517
|
+
.svg-inline--fa mask .fa-secondary {
|
518
|
+
fill: black;
|
519
|
+
}
|
520
|
+
|
521
|
+
.svg-inline--fa.fa-inverse {
|
522
|
+
fill: var(--fa-inverse, #fff);
|
523
|
+
}
|
524
|
+
|
525
|
+
.fa-stack {
|
526
|
+
display: inline-block;
|
527
|
+
height: 2em;
|
528
|
+
line-height: 2em;
|
529
|
+
position: relative;
|
530
|
+
vertical-align: middle;
|
531
|
+
width: 2.5em;
|
532
|
+
}
|
533
|
+
|
534
|
+
.fa-inverse {
|
535
|
+
color: var(--fa-inverse, #fff);
|
536
|
+
}
|
537
|
+
|
538
|
+
.svg-inline--fa.fa-stack-1x {
|
539
|
+
height: 1em;
|
540
|
+
width: 1.25em;
|
541
|
+
}
|
542
|
+
.svg-inline--fa.fa-stack-2x {
|
543
|
+
height: 2em;
|
544
|
+
width: 2.5em;
|
545
|
+
}
|
546
|
+
|
547
|
+
.fa-stack-1x,
|
548
|
+
.fa-stack-2x {
|
549
|
+
bottom: 0;
|
550
|
+
left: 0;
|
551
|
+
margin: auto;
|
552
|
+
position: absolute;
|
553
|
+
right: 0;
|
554
|
+
top: 0;
|
555
|
+
z-index: var(--fa-stack-z-index, auto);
|
556
|
+
}`;function Xh(){var e=jh,t=Bh,n=we.cssPrefix,r=we.replacementClass,i=Sv;if(n!==e||r!==t){var h=new RegExp("\\.".concat(e,"\\-"),"g"),f=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");i=i.replace(h,".".concat(n,"-")).replace(f,"--".concat(n,"-")).replace(g,".".concat(r))}return i}var Yl=!1;function as(){we.autoAddCss&&!Yl&&(mv(Xh()),Yl=!0)}var $v={mixout:function(){return{dom:{css:Xh,insertCss:as}}},hooks:function(){return{beforeDOMElementCreation:function(){as()},beforeI2svg:function(){as()}}}},ln=Sn||{};ln[an]||(ln[an]={});ln[an].styles||(ln[an].styles={});ln[an].hooks||(ln[an].hooks={});ln[an].shims||(ln[an].shims=[]);var Pt=ln[an],Qh=[],Jh=function(){Ze.removeEventListener("DOMContentLoaded",Jh),Qi=1,Qh.map(function(t){return t()})},Qi=!1;hn&&(Qi=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),Qi||Ze.addEventListener("DOMContentLoaded",Jh));function _v(e){hn&&(Qi?setTimeout(e,0):Qh.push(e))}function ri(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,h=i===void 0?[]:i;return typeof e=="string"?Kh(e):"<".concat(t," ").concat(yv(r),">").concat(h.map(ri).join(""),"</").concat(t,">")}function Kl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ls=function(t,n,r,i){var h=Object.keys(t),f=h.length,g=n,s,p,o;for(r===void 0?(s=1,o=t[h[0]]):(s=0,o=r);s<f;s++)p=h[s],o=g(o,t[p],p,t);return o};function qh(e){return Wt(e).length!==1?null:e.codePointAt(0).toString(16)}function Xl(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function ef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,h=Xl(t);typeof Pt.hooks.addPack=="function"&&!i?Pt.hooks.addPack(e,Xl(t)):Pt.styles[e]=ae(ae({},Pt.styles[e]||{}),h),e==="fas"&&ef("fa",t)}var Br=Pt.styles,Cv=Pt.shims,tf=Object.keys(Gh),xv=tf.reduce(function(e,t){return e[t]=Object.keys(Gh[t]),e},{}),Pa=null,nf={},rf={},of={},sf={},af={};function Av(e){return~hv.indexOf(e)}function kv(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Av(i)?i:null}var lf=function(){var t=function(h){return ls(Br,function(f,g,s){return f[s]=ls(g,h,{}),f},{})};nf=t(function(i,h,f){if(h[3]&&(i[h[3]]=f),h[2]){var g=h[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){i[s.toString(16)]=f})}return i}),rf=t(function(i,h,f){if(i[f]=f,h[2]){var g=h[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){i[s]=f})}return i}),af=t(function(i,h,f){var g=h[2];return i[f]=f,g.forEach(function(s){i[s]=f}),i});var n="far"in Br||we.autoFetchSvg,r=ls(Cv,function(i,h){var f=h[0],g=h[1],s=h[2];return g==="far"&&!n&&(g="fas"),typeof f=="string"&&(i.names[f]={prefix:g,iconName:s}),typeof f=="number"&&(i.unicodes[f.toString(16)]={prefix:g,iconName:s}),i},{names:{},unicodes:{}});of=r.names,sf=r.unicodes,Pa=wo(we.styleDefault,{family:we.familyDefault})};gv(function(e){Pa=wo(e.styleDefault,{family:we.familyDefault})});lf();function za(e,t){return(nf[e]||{})[t]}function Ev(e,t){return(rf[e]||{})[t]}function On(e,t){return(af[e]||{})[t]}function cf(e){return of[e]||{prefix:null,iconName:null}}function Mv(e){var t=sf[e],n=za("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return Pa}var uf=function(){return{prefix:null,iconName:null,rest:[]}};function Tv(e){var t=dt,n=tf.reduce(function(r,i){return r[i]="".concat(we.cssPrefix,"-").concat(i),r},{});return Fh.forEach(function(r){(e.includes(n[r])||e.some(function(i){return xv[r].includes(i)}))&&(t=r)}),t}function wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?dt:n,i=sv[r][e];if(r===ti&&!e)return"fad";var h=Gl[r][e]||Gl[r][i],f=e in Pt.styles?e:null,g=h||f||null;return g}function Lv(e){var t=[],n=null;return e.forEach(function(r){var i=kv(we.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Ql(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var Jl=zh.concat(Ph);function So(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,h=Ql(e.filter(function(l){return Jl.includes(l)})),f=Ql(e.filter(function(l){return!Jl.includes(l)})),g=h.filter(function(l){return i=l,!_h.includes(l)}),s=yo(g,1),p=s[0],o=p===void 0?null:p,a=Tv(h),u=ae(ae({},Lv(f)),{},{prefix:wo(o,{family:a})});return ae(ae(ae({},u),Nv({values:e,family:a,styles:Br,config:we,canonical:u,givenPrefix:i})),Rv(r,i,u))}function Rv(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var h=t==="fa"?cf(i):{},f=On(r,i);return i=h.iconName||f||i,r=h.prefix||r,r==="far"&&!Br.far&&Br.fas&&!we.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Iv=Fh.filter(function(e){return e!==dt||e!==ti}),Ov=Object.keys(Ws).filter(function(e){return e!==dt}).map(function(e){return Object.keys(Ws[e])}).flat();function Nv(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,h=i===void 0?"":i,f=e.styles,g=f===void 0?{}:f,s=e.config,p=s===void 0?{}:s,o=n===ti,a=t.includes("fa-duotone")||t.includes("fad"),u=p.familyDefault==="duotone",l=r.prefix==="fad"||r.prefix==="fa-duotone";if(!o&&(a||u||l)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&Iv.includes(n)){var c=Object.keys(g).find(function(m){return Ov.includes(m)});if(c||p.autoFetchSvg){var d=im.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=On(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||h==="fa")&&(r.prefix=$n()||"fas"),r}var Dv=function(){function e(){Mg(this,e),this.definitions={}}return Lg(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),h=0;h<r;h++)i[h]=arguments[h];var f=i.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(g){n.definitions[g]=ae(ae({},n.definitions[g]||{}),f[g]),ef(g,f[g]),lf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(h){var f=i[h],g=f.prefix,s=f.iconName,p=f.icon,o=p[2];n[g]||(n[g]={}),o.length>0&&o.forEach(function(a){typeof a=="string"&&(n[g][a]=p)}),n[g][s]=p}),n}}])}(),ql=[],Jn={},tr={},Fv=Object.keys(tr);function Pv(e,t){var n=t.mixoutsTo;return ql=e,Jn={},Object.keys(tr).forEach(function(r){Fv.indexOf(r)===-1&&delete tr[r]}),ql.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(f){typeof i[f]=="function"&&(n[f]=i[f]),Xi(i[f])==="object"&&Object.keys(i[f]).forEach(function(g){n[f]||(n[f]={}),n[f][g]=i[f][g]})}),r.hooks){var h=r.hooks();Object.keys(h).forEach(function(f){Jn[f]||(Jn[f]=[]),Jn[f].push(h[f])})}r.provides&&r.provides(tr)}),n}function Gs(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var h=Jn[e]||[];return h.forEach(function(f){t=f.apply(null,[t].concat(r))}),t}function jn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Jn[e]||[];i.forEach(function(h){h.apply(null,n)})}function _n(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return tr[e]?tr[e].apply(null,t):void 0}function Zs(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$n();if(t)return t=On(n,t)||t,Kl(hf.definitions,n,t)||Kl(Pt.styles,n,t)}var hf=new Dv,zv=function(){we.autoReplaceSvg=!1,we.observeMutations=!1,jn("noAuto")},Wv={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return hn?(jn("beforeI2svg",t),_n("pseudoElements2svg",t),_n("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;we.autoReplaceSvg===!1&&(we.autoReplaceSvg=!0),we.observeMutations=!0,_v(function(){Bv({autoReplaceSvgRoot:n}),jn("watch",t)})}},jv={icon:function(t){if(t===null)return null;if(Xi(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:On(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],r=wo(t[0]);return{prefix:r,iconName:On(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(we.cssPrefix,"-"))>-1||t.match(av))){var i=So(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||$n(),iconName:On(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var h=$n();return{prefix:h,iconName:On(h,t)||t}}}},Lt={noAuto:zv,config:we,dom:Wv,parse:jv,library:hf,findIconDefinition:Zs,toHtml:ri},Bv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Ze:n;(Object.keys(Pt.styles).length>0||we.autoFetchSvg)&&hn&&we.autoReplaceSvg&&Lt.dom.i2svg({node:r})};function $o(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ri(r)})}}),Object.defineProperty(e,"node",{get:function(){if(hn){var r=Ze.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Hv(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,h=e.styles,f=e.transform;if(Fa(f)&&n.found&&!r.found){var g=n.width,s=n.height,p={x:g/s/2,y:.5};i.style=bo(ae(ae({},h),{},{"transform-origin":"".concat(p.x+f.x/16,"em ").concat(p.y+f.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function Uv(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,h=e.symbol,f=h===!0?"".concat(t,"-").concat(we.cssPrefix,"-").concat(n):h;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ae(ae({},i),{},{id:f}),children:r}]}]}function Vv(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Wa(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,h=e.iconName,f=e.transform,g=e.symbol,s=e.maskId,p=e.extra,o=e.watchable,a=o===void 0?!1:o,u=r.found?r:n,l=u.width,c=u.height,d=[we.replacementClass,h?"".concat(we.cssPrefix,"-").concat(h):""].filter(function(w){return p.classes.indexOf(w)===-1}).filter(function(w){return w!==""||!!w}).concat(p.classes).join(" "),m={children:[],attributes:ae(ae({},p.attributes),{},{"data-prefix":i,"data-icon":h,class:d,role:p.attributes.role||"img",viewBox:"0 0 ".concat(l," ").concat(c)})};!Vv(p.attributes)&&!p.attributes["aria-hidden"]&&(m.attributes["aria-hidden"]="true"),a&&(m.attributes[Wn]="");var v=ae(ae({},m),{},{prefix:i,iconName:h,main:n,mask:r,maskId:s,transform:f,symbol:g,styles:ae({},p.styles)}),y=r.found&&n.found?_n("generateAbstractMask",v)||{children:[],attributes:{}}:_n("generateAbstractIcon",v)||{children:[],attributes:{}},_=y.children,$=y.attributes;return v.children=_,v.attributes=$,g?Uv(v):Hv(v)}function ec(e){var t=e.content,n=e.width,r=e.height,i=e.transform,h=e.extra,f=e.watchable,g=f===void 0?!1:f,s=ae(ae({},h.attributes),{},{class:h.classes.join(" ")});g&&(s[Wn]="");var p=ae({},h.styles);Fa(i)&&(p.transform=wv({transform:i,width:n,height:r}),p["-webkit-transform"]=p.transform);var o=bo(p);o.length>0&&(s.style=o);var a=[];return a.push({tag:"span",attributes:s,children:[t]}),a}function Gv(e){var t=e.content,n=e.extra,r=ae(ae({},n.attributes),{},{class:n.classes.join(" ")}),i=bo(n.styles);i.length>0&&(r.style=i);var h=[];return h.push({tag:"span",attributes:r,children:[t]}),h}var cs=Pt.styles;function Ys(e){var t=e[0],n=e[1],r=e.slice(4),i=yo(r,1),h=i[0],f=null;return Array.isArray(h)?f={tag:"g",attributes:{class:"".concat(we.cssPrefix,"-").concat(ss.GROUP)},children:[{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(ss.SECONDARY),fill:"currentColor",d:h[0]}},{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(ss.PRIMARY),fill:"currentColor",d:h[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:h}},{found:!0,width:t,height:n,icon:f}}var Zv={found:!1,width:512,height:512};function Yv(e,t){!Uh&&!we.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ks(e,t){var n=t;return t==="fa"&&we.styleDefault!==null&&(t=$n()),new Promise(function(r,i){if(n==="fa"){var h=cf(e)||{};e=h.iconName||e,t=h.prefix||t}if(e&&t&&cs[t]&&cs[t][e]){var f=cs[t][e];return r(Ys(f))}Yv(e,t),r(ae(ae({},Zv),{},{icon:we.showMissingIcons&&e?_n("missingIconAbstract")||{}:{}}))})}var tc=function(){},Xs=we.measurePerformance&&yi&&yi.mark&&yi.measure?yi:{mark:tc,measure:tc},Mr='FA "7.0.0"',Kv=function(t){return Xs.mark("".concat(Mr," ").concat(t," begins")),function(){return ff(t)}},ff=function(t){Xs.mark("".concat(Mr," ").concat(t," ends")),Xs.measure("".concat(Mr," ").concat(t),"".concat(Mr," ").concat(t," begins"),"".concat(Mr," ").concat(t," ends"))},ja={begin:Kv,end:ff},Ii=function(){};function nc(e){var t=e.getAttribute?e.getAttribute(Wn):null;return typeof t=="string"}function Xv(e){var t=e.getAttribute?e.getAttribute(Oa):null,n=e.getAttribute?e.getAttribute(Na):null;return t&&n}function Qv(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(we.replacementClass)}function Jv(){if(we.autoReplaceSvg===!0)return Oi.replace;var e=Oi[we.autoReplaceSvg];return e||Oi.replace}function qv(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function ey(e){return Ze.createElement(e)}function df(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?qv:ey:n;if(typeof e=="string")return Ze.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(f){i.setAttribute(f,e.attributes[f])});var h=e.children||[];return h.forEach(function(f){i.appendChild(df(f,{ceFn:r}))}),i}function ty(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Oi={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(df(i),n)}),n.getAttribute(Wn)===null&&we.keepOriginalSource){var r=Ze.createComment(ty(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Da(n).indexOf(we.replacementClass))return Oi.replace(t);var i=new RegExp("".concat(we.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var h=r[0].attributes.class.split(" ").reduce(function(g,s){return s===we.replacementClass||s.match(i)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});r[0].attributes.class=h.toSvg.join(" "),h.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",h.toNode.join(" "))}var f=r.map(function(g){return ri(g)}).join(`
|
557
|
+
`);n.setAttribute(Wn,""),n.innerHTML=f}};function rc(e){e()}function pf(e,t){var n=typeof t=="function"?t:Ii;if(e.length===0)n();else{var r=rc;we.mutateApproach===iv&&(r=Sn.requestAnimationFrame||rc),r(function(){var i=Jv(),h=ja.begin("mutate");e.map(i),h(),n()})}}var Ba=!1;function gf(){Ba=!0}function Qs(){Ba=!1}var Ji=null;function ic(e){if(Bl&&we.observeMutations){var t=e.treeCallback,n=t===void 0?Ii:t,r=e.nodeCallback,i=r===void 0?Ii:r,h=e.pseudoElementsCallback,f=h===void 0?Ii:h,g=e.observeMutationsRoot,s=g===void 0?Ze:g;Ji=new Bl(function(p){if(!Ba){var o=$n();gr(p).forEach(function(a){if(a.type==="childList"&&a.addedNodes.length>0&&!nc(a.addedNodes[0])&&(we.searchPseudoElements&&f(a.target),n(a.target)),a.type==="attributes"&&a.target.parentNode&&we.searchPseudoElements&&f([a.target],!0),a.type==="attributes"&&nc(a.target)&&~uv.indexOf(a.attributeName))if(a.attributeName==="class"&&Xv(a.target)){var u=So(Da(a.target)),l=u.prefix,c=u.iconName;a.target.setAttribute(Oa,l||o),c&&a.target.setAttribute(Na,c)}else Qv(a.target)&&i(a.target)})}}),hn&&Ji.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ny(){Ji&&Ji.disconnect()}function ry(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var h=i.split(":"),f=h[0],g=h.slice(1);return f&&g.length>0&&(r[f]=g.join(":").trim()),r},{})),n}function iy(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=So(Da(e));return i.prefix||(i.prefix=$n()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Ev(i.prefix,e.innerText)||za(i.prefix,qh(e.innerText))),!i.iconName&&we.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function oy(e){var t=gr(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function sy(){return{iconName:null,prefix:null,transform:Xt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function oc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=iy(e),r=n.iconName,i=n.prefix,h=n.rest,f=oy(e),g=Gs("parseNodeAttributes",{},e),s=t.styleParser?ry(e):[];return ae({iconName:r,prefix:i,transform:Xt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:h,styles:s,attributes:f}},g)}var ay=Pt.styles;function mf(e){var t=we.autoReplaceSvg==="nest"?oc(e,{styleParser:!1}):oc(e);return~t.extra.classes.indexOf(Zh)?_n("generateLayersText",e,t):_n("generateSvgReplacementMutation",e,t)}function ly(){return[].concat(Wt(Ph),Wt(zh))}function sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!hn)return Promise.resolve();var n=Ze.documentElement.classList,r=function(a){return n.add("".concat(Vl,"-").concat(a))},i=function(a){return n.remove("".concat(Vl,"-").concat(a))},h=we.autoFetchSvg?ly():_h.concat(Object.keys(ay));h.includes("fa")||h.push("fa");var f=[".".concat(Zh,":not([").concat(Wn,"])")].concat(h.map(function(o){return".".concat(o,":not([").concat(Wn,"])")})).join(", ");if(f.length===0)return Promise.resolve();var g=[];try{g=gr(e.querySelectorAll(f))}catch{}if(g.length>0)r("pending"),i("complete");else return Promise.resolve();var s=ja.begin("onTree"),p=g.reduce(function(o,a){try{var u=mf(a);u&&o.push(u)}catch(l){Uh||l.name==="MissingIcon"&&console.error(l)}return o},[]);return new Promise(function(o,a){Promise.all(p).then(function(u){pf(u,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(u){s(),a(u)})})}function cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;mf(e).then(function(n){n&&pf([n],t)})}function uy(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Zs(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Zs(i||{})),e(r,ae(ae({},n),{},{mask:i}))}}var hy=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Xt:r,h=n.symbol,f=h===void 0?!1:h,g=n.mask,s=g===void 0?null:g,p=n.maskId,o=p===void 0?null:p,a=n.classes,u=a===void 0?[]:a,l=n.attributes,c=l===void 0?{}:l,d=n.styles,m=d===void 0?{}:d;if(t){var v=t.prefix,y=t.iconName,_=t.icon;return $o(ae({type:"icon"},t),function(){return jn("beforeDOMElementCreation",{iconDefinition:t,params:n}),Wa({icons:{main:Ys(_),mask:s?Ys(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:y,transform:ae(ae({},Xt),i),symbol:f,maskId:o,extra:{attributes:c,styles:m,classes:u}})})}},fy={mixout:function(){return{icon:uy(hy)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=sc,n.nodeCallback=cy,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Ze:r,h=n.callback,f=h===void 0?function(){}:h;return sc(i,f)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,h=r.prefix,f=r.transform,g=r.symbol,s=r.mask,p=r.maskId,o=r.extra;return new Promise(function(a,u){Promise.all([Ks(i,h),s.iconName?Ks(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(l){var c=yo(l,2),d=c[0],m=c[1];a([n,Wa({icons:{main:d,mask:m},prefix:h,iconName:i,transform:f,symbol:g,maskId:p,extra:o,watchable:!0})])}).catch(u)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,h=n.main,f=n.transform,g=n.styles,s=bo(g);s.length>0&&(i.style=s);var p;return Fa(f)&&(p=_n("generateAbstractTransformGrouping",{main:h,transform:f,containerWidth:h.width,iconWidth:h.width})),r.push(p||h.icon),{children:r,attributes:i}}}},dy={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,h=i===void 0?[]:i;return $o({type:"layer"},function(){jn("beforeDOMElementCreation",{assembler:n,params:r});var f=[];return n(function(g){Array.isArray(g)?g.map(function(s){f=f.concat(s.abstract)}):f=f.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(we.cssPrefix,"-layers")].concat(Wt(h)).join(" ")},children:f}]})}}}},py={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,h=i===void 0?[]:i,f=r.attributes,g=f===void 0?{}:f,s=r.styles,p=s===void 0?{}:s;return $o({type:"counter",content:n},function(){return jn("beforeDOMElementCreation",{content:n,params:r}),Gv({content:n.toString(),extra:{attributes:g,styles:p,classes:["".concat(we.cssPrefix,"-layers-counter")].concat(Wt(h))}})})}}}},gy={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,h=i===void 0?Xt:i,f=r.classes,g=f===void 0?[]:f,s=r.attributes,p=s===void 0?{}:s,o=r.styles,a=o===void 0?{}:o;return $o({type:"text",content:n},function(){return jn("beforeDOMElementCreation",{content:n,params:r}),ec({content:n,transform:ae(ae({},Xt),h),extra:{attributes:p,styles:a,classes:["".concat(we.cssPrefix,"-layers-text")].concat(Wt(g))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,h=r.extra,f=null,g=null;if(Sh){var s=parseInt(getComputedStyle(n).fontSize,10),p=n.getBoundingClientRect();f=p.width/s,g=p.height/s}return Promise.resolve([n,ec({content:n.innerHTML,width:f,height:g,transform:i,extra:h,watchable:!0})])}}},vf=new RegExp('"',"ug"),ac=[1105920,1112319],lc=ae(ae(ae(ae({},{FontAwesome:{normal:"fas",400:"fas"}}),rm),nv),fm),Js=Object.keys(lc).reduce(function(e,t){return e[t.toLowerCase()]=lc[t],e},{}),my=Object.keys(Js).reduce(function(e,t){var n=Js[t];return e[t]=n[900]||Wt(Object.entries(n))[0][1],e},{});function vy(e){var t=e.replace(vf,"");return qh(Wt(t)[0]||"")}function yy(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(vf,""),i=r.codePointAt(0),h=i>=ac[0]&&i<=ac[1],f=r.length===2?r[0]===r[1]:!1;return h||f||t}function by(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Js[n]||{})[i]||my[n]}function cc(e,t){var n="".concat(rv).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var h=gr(e.children),f=h.filter(function(b){return b.getAttribute(Bs)===t})[0],g=Sn.getComputedStyle(e,t),s=g.getPropertyValue("font-family"),p=s.match(lv),o=g.getPropertyValue("font-weight"),a=g.getPropertyValue("content");if(f&&!p)return e.removeChild(f),r();if(p&&a!=="none"&&a!==""){var u=g.getPropertyValue("content"),l=by(s,o),c=vy(u),d=p[0].startsWith("FontAwesome"),m=yy(g),v=za(l,c),y=v;if(d){var _=Mv(c);_.iconName&&_.prefix&&(v=_.iconName,l=_.prefix)}if(v&&!m&&(!f||f.getAttribute(Oa)!==l||f.getAttribute(Na)!==y)){e.setAttribute(n,y),f&&e.removeChild(f);var $=sy(),w=$.extra;w.attributes[Bs]=t,Ks(v,l).then(function(b){var A=Wa(ae(ae({},$),{},{icons:{main:b,mask:uf()},prefix:l,iconName:y,extra:w,watchable:!0})),R=Ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=A.map(function(E){return ri(E)}).join(`
|
558
|
+
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function wy(e){return Promise.all([cc(e,"::before"),cc(e,"::after")])}function Sy(e){return e.parentNode!==document.head&&!~ov.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Bs)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var $y=function(t){return!!t&&Hh.some(function(n){return t.includes(n)})},_y=function(t){if(!t)return[];for(var n=new Set,r=[t],i=[/(?=\s:)/,new RegExp("(?<=\\)\\)?[^,]*,)")],h=function(){var l=g[f];r=r.flatMap(function(c){return c.split(l).map(function(d){return d.replace(/,\s*$/,"").trim()})})},f=0,g=i;f<g.length;f++)h();r=r.flatMap(function(u){return u.includes("(")?u:u.split(",").map(function(l){return l.trim()})});var s=Ri(r),p;try{for(s.s();!(p=s.n()).done;){var o=p.value;if($y(o)){var a=Hh.reduce(function(u,l){return u.replace(l,"")},o);a!==""&&a!=="*"&&n.add(a)}}}catch(u){s.e(u)}finally{s.f()}return n};function uc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(hn){var n;if(t)n=e;else if(we.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Ri(document.styleSheets),h;try{for(i.s();!(h=i.n()).done;){var f=h.value;try{var g=Ri(f.cssRules),s;try{for(g.s();!(s=g.n()).done;){var p=s.value,o=_y(p.selectorText),a=Ri(o),u;try{for(a.s();!(u=a.n()).done;){var l=u.value;r.add(l)}}catch(d){a.e(d)}finally{a.f()}}}catch(d){g.e(d)}finally{g.f()}}catch(d){we.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(f.href," (").concat(d.message,`)
|
559
|
+
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(d){i.e(d)}finally{i.f()}if(!r.size)return;var c=Array.from(r).join(", ");try{n=e.querySelectorAll(c)}catch{}}return new Promise(function(d,m){var v=gr(n).filter(Sy).map(wy),y=ja.begin("searchPseudoElements");gf(),Promise.all(v).then(function(){y(),Qs(),d()}).catch(function(){y(),Qs(),m()})})}}var Cy={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=uc,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Ze:r;we.searchPseudoElements&&uc(i)}}},hc=!1,xy={mixout:function(){return{dom:{unwatch:function(){gf(),hc=!0}}}},hooks:function(){return{bootstrap:function(){ic(Gs("mutationObserverCallbacks",{}))},noAuto:function(){ny()},watch:function(n){var r=n.observeMutationsRoot;hc?Qs():ic(Gs("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},fc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var h=i.toLowerCase().split("-"),f=h[0],g=h.slice(1).join("-");if(f&&g==="h")return r.flipX=!0,r;if(f&&g==="v")return r.flipY=!0,r;if(g=parseFloat(g),isNaN(g))return r;switch(f){case"grow":r.size=r.size+g;break;case"shrink":r.size=r.size-g;break;case"left":r.x=r.x-g;break;case"right":r.x=r.x+g;break;case"up":r.y=r.y-g;break;case"down":r.y=r.y+g;break;case"rotate":r.rotate=r.rotate+g;break}return r},n)},Ay={mixout:function(){return{parse:{transform:function(n){return fc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=fc(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,h=n.containerWidth,f=n.iconWidth,g={transform:"translate(".concat(h/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),p="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),o="rotate(".concat(i.rotate," 0 0)"),a={transform:"".concat(s," ").concat(p," ").concat(o)},u={transform:"translate(".concat(f/2*-1," -256)")},l={outer:g,inner:a,path:u};return{tag:"g",attributes:ae({},l.outer),children:[{tag:"g",attributes:ae({},l.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ae(ae({},r.icon.attributes),l.path)}]}]}}}},us={x:0,y:0,width:"100%",height:"100%"};function dc(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 ky(e){return e.tag==="g"?e.children:[e]}var Ey={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),h=i?So(i.split(" ").map(function(f){return f.trim()})):uf();return h.prefix||(h.prefix=$n()),n.mask=h,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,h=n.main,f=n.mask,g=n.maskId,s=n.transform,p=h.width,o=h.icon,a=f.width,u=f.icon,l=bv({transform:s,containerWidth:a,iconWidth:p}),c={tag:"rect",attributes:ae(ae({},us),{},{fill:"white"})},d=o.children?{children:o.children.map(dc)}:{},m={tag:"g",attributes:ae({},l.inner),children:[dc(ae({tag:o.tag,attributes:ae(ae({},o.attributes),l.path)},d))]},v={tag:"g",attributes:ae({},l.outer),children:[m]},y="mask-".concat(g||Zl()),_="clip-".concat(g||Zl()),$={tag:"mask",attributes:ae(ae({},us),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[c,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:ky(u)},$]};return r.push(w,{tag:"rect",attributes:ae({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(y,")")},us)}),{children:r,attributes:i}}}},My={provides:function(t){var n=!1;Sn.matchMedia&&(n=Sn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},h={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ae(ae({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var f=ae(ae({},h),{},{attributeName:"opacity"}),g={tag:"circle",attributes:ae(ae({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:ae(ae({},h),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ae(ae({},f),{},{values:"1;0;1;1;0;1;"})}),r.push(g),r.push({tag:"path",attributes:ae(ae({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ae(ae({},f),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ae(ae({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ae(ae({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Ty={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),h=i===null?!1:i===""?!0:i;return n.symbol=h,n}}}},Ly=[$v,fy,dy,py,gy,Cy,xy,Ay,Ey,My,Ty];Pv(Ly,{mixoutsTo:Lt});Lt.noAuto;Lt.config;var Ry=Lt.library;Lt.dom;var qs=Lt.parse;Lt.findIconDefinition;Lt.toHtml;var Iy=Lt.icon;Lt.layer;Lt.text;Lt.counter;/*!
|
560
|
+
* Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com
|
561
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
562
|
+
* Copyright 2025 Fonticons, Inc.
|
563
|
+
*/var Oy={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-53 43-96 96-96s96 43 96 96c0 42.7-27.9 78.9-66.5 91.4-28.4 9.2-61.5 35.3-61.5 76.6l0 24c0 17.7 14.3 32 32 32s32-14.3 32-32l0-24c0-1.7 .6-4.1 3.5-7.3 3-3.3 7.9-6.5 13.7-8.4 64.3-20.7 110.8-81 110.8-152.3 0-88.4-71.6-160-160-160S0 71.6 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm96 352c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},Ny={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},Dy={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 32C96 14.3 81.7 0 64 0S32 14.3 32 32l0 320c0 17.7 14.3 32 32 32s32-14.3 32-32L96 32zM64 512c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},yf={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 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Fy=yf,Py={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 0L368 46.1 465.9 144 490.3 119.6c21.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.5L432 177.9 334.1 80 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},zy=Py,Wy={prefix:"fas",iconName:"sun",icon:[576,512,[9728],"f185","M178.2-10.1c7.4-3.1 15.8-2.2 22.5 2.2l87.8 58.2 87.8-58.2c6.7-4.4 15.1-5.2 22.5-2.2S411.4-.5 413 7.3l20.9 103.2 103.2 20.9c7.8 1.6 14.4 7 17.4 14.3s2.2 15.8-2.2 22.5l-58.2 87.8 58.2 87.8c4.4 6.7 5.2 15.1 2.2 22.5s-9.6 12.8-17.4 14.3L433.8 401.4 413 504.7c-1.6 7.8-7 14.4-14.3 17.4s-15.8 2.2-22.5-2.2l-87.8-58.2-87.8 58.2c-6.7 4.4-15.1 5.2-22.5 2.2s-12.8-9.6-14.3-17.4L143 401.4 39.7 380.5c-7.8-1.6-14.4-7-17.4-14.3s-2.2-15.8 2.2-22.5L82.7 256 24.5 168.2c-4.4-6.7-5.2-15.1-2.2-22.5s9.6-12.8 17.4-14.3L143 110.6 163.9 7.3c1.6-7.8 7-14.4 14.3-17.4zM207.6 256a80.4 80.4 0 1 1 160.8 0 80.4 80.4 0 1 1 -160.8 0zm208.8 0a128.4 128.4 0 1 0 -256.8 0 128.4 128.4 0 1 0 256.8 0z"]},jy={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M292.9 384c7.3-22.3 21.9-42.5 38.4-59.9 32.7-34.4 52.7-80.9 52.7-132.1 0-106-86-192-192-192S0 86 0 192c0 51.2 20 97.7 52.7 132.1 16.5 17.4 31.2 37.6 38.4 59.9l201.7 0zM288 432l-192 0 0 16c0 44.2 35.8 80 80 80l32 0c44.2 0 80-35.8 80-80l0-16zM184 112c-39.8 0-72 32.2-72 72 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-66.3 53.7-120 120-120 13.3 0 24 10.7 24 24s-10.7 24-24 24z"]},By={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-277.5c0-17-6.7-33.3-18.7-45.3L258.7 18.7C246.7 6.7 230.5 0 213.5 0L64 0zM325.5 176L232 176c-13.3 0-24-10.7-24-24L208 58.5 325.5 176z"]},Hy={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},Uy={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M208 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm0 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM48 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm368 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zM75 75A48 48 0 1 1 142.9 142.9 48 48 0 1 1 75 75zM437 369.1A48 48 0 1 1 369.1 437 48 48 0 1 1 437 369.1z"]},Vy={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128l0 64C0 200.8 7.4 207.7 15.7 210.6 34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320l0 64c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-64c0-8.8-7.4-15.7-15.7-18.6-18.8-6.5-32.3-24.4-32.3-45.4s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6l0-64c0-35.3-28.7-64-64-64L64 64zM416 336l0-160-256 0 0 160 256 0zM112 160c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32l0-192z"]},Gy={prefix:"fas",iconName:"barcode",icon:[448,512,[],"f02a","M32 32C14.3 32 0 46.3 0 64L0 448c0 17.7 14.3 32 32 32s32-14.3 32-32L64 64c0-17.7-14.3-32-32-32zm88 0c-13.3 0-24 10.7-24 24l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24zm72 32l0 384c0 17.7 14.3 32 32 32s32-14.3 32-32l0-384c0-17.7-14.3-32-32-32s-32 14.3-32 32zm208-8l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24s-24 10.7-24 24zm-96 0l0 400c0 13.3 10.7 24 24 24s24-10.7 24-24l0-400c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Zy={prefix:"fas",iconName:"arrow-right",icon:[512,512,[8594],"f061","M502.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.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},Yy={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Ky=Yy,Xy={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]},Qy={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.1-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 168c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm26.7 216a26.7 26.7 0 1 0 -53.3 0 26.7 26.7 0 1 0 53.3 0z"]},Jy={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},qy={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},e0=qy;/**
|
564
|
+
* @vue/shared v3.5.20
|
565
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
566
|
+
* @license MIT
|
567
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Ha(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Pe={},nr=[],Qt=()=>{},bf=()=>!1,_o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ua=e=>e.startsWith("onUpdate:"),pt=Object.assign,Va=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},t0=Object.prototype.hasOwnProperty,Ie=(e,t)=>t0.call(e,t),Ae=Array.isArray,rr=e=>Co(e)==="[object Map]",wf=e=>Co(e)==="[object Set]",xe=e=>typeof e=="function",et=e=>typeof e=="string",An=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",Sf=e=>(Ye(e)||xe(e))&&xe(e.then)&&xe(e.catch),$f=Object.prototype.toString,Co=e=>$f.call(e),n0=e=>Co(e).slice(8,-1),_f=e=>Co(e)==="[object Object]",Ga=e=>et(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ir=Ha(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},r0=/-(\w)/g,Nt=xo(e=>e.replace(r0,(t,n)=>n?n.toUpperCase():"")),i0=/\B([A-Z])/g,Gn=xo(e=>e.replace(i0,"-$1").toLowerCase()),ii=xo(e=>e.charAt(0).toUpperCase()+e.slice(1)),hs=xo(e=>e?`on${ii(e)}`:""),wn=(e,t)=>!Object.is(e,t),Ni=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Cf=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ea=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let pc;const Ao=()=>pc||(pc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Za(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=et(r)?l0(r):Za(r);if(i)for(const h in i)t[h]=i[h]}return t}else if(et(e)||Ye(e))return e}const o0=/;(?![^(]*\))/g,s0=/:([^]+)/,a0=/\/\*[^]*?\*\//g;function l0(e){const t={};return e.replace(a0,"").split(o0).forEach(n=>{if(n){const r=n.split(s0);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function oi(e){let t="";if(et(e))t=e;else if(Ae(e))for(let n=0;n<e.length;n++){const r=oi(e[n]);r&&(t+=r+" ")}else if(Ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const c0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",u0=Ha(c0);function xf(e){return!!e||e===""}const Af=e=>!!(e&&e.__v_isRef===!0),pe=e=>et(e)?e:e==null?"":Ae(e)||Ye(e)&&(e.toString===$f||!xe(e.toString))?Af(e)?pe(e.value):JSON.stringify(e,kf,2):String(e),kf=(e,t)=>Af(t)?kf(e,t.value):rr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],h)=>(n[fs(r,h)+" =>"]=i,n),{})}:wf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>fs(n))}:An(t)?fs(t):Ye(t)&&!Ae(t)&&!_f(t)?String(t):t,fs=(e,t="")=>{var n;return An(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
568
|
+
* @vue/reactivity v3.5.20
|
569
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
570
|
+
* @license MIT
|
571
|
+
**/let lt;class Ef{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=lt,!t&<&&(this.index=(lt.scopes||(lt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=lt;try{return lt=this,t()}finally{lt=n}}}on(){++this._on===1&&(this.prevScope=lt,lt=this)}off(){this._on>0&&--this._on===0&&(lt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function h0(e){return new Ef(e)}function Ya(){return lt}function Mf(e,t=!1){lt&<.cleanups.push(e)}let We;const ds=new WeakSet;class Tf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,lt&<.active&<.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ds.has(this)&&(ds.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Rf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,gc(this),If(this);const t=We,n=zt;We=this,zt=!0;try{return this.fn()}finally{Of(this),We=t,zt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Qa(t);this.deps=this.depsTail=void 0,gc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ds.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ta(this)&&this.run()}get dirty(){return ta(this)}}let Lf=0,Or,Nr;function Rf(e,t=!1){if(e.flags|=8,t){e.next=Nr,Nr=e;return}e.next=Or,Or=e}function Ka(){Lf++}function Xa(){if(--Lf>0)return;if(Nr){let t=Nr;for(Nr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Or;){let t=Or;for(Or=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function If(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Of(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Qa(r),f0(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function ta(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Nf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Nf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hr)||(e.globalVersion=Hr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ta(e))))return;e.flags|=2;const t=e.dep,n=We,r=zt;We=e,zt=!0;try{If(e);const i=e.fn(e._value);(t.version===0||wn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{We=n,zt=r,Of(e),e.flags&=-3}}function Qa(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let h=n.computed.deps;h;h=h.nextDep)Qa(h,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function f0(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const Df=[];function cn(){Df.push(zt),zt=!1}function un(){const e=Df.pop();zt=e===void 0?!0:e}function gc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=We;We=void 0;try{t()}finally{We=n}}}let Hr=0,d0=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class ko{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!zt||We===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==We)n=this.activeLink=new d0(We,this),We.deps?(n.prevDep=We.depsTail,We.depsTail.nextDep=n,We.depsTail=n):We.deps=We.depsTail=n,Ff(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=We.depsTail,n.nextDep=void 0,We.depsTail.nextDep=n,We.depsTail=n,We.deps===n&&(We.deps=r)}return n}trigger(t){this.version++,Hr++,this.notify(t)}notify(t){Ka();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Xa()}}}function Ff(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ff(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qi=new WeakMap,Dn=Symbol(""),na=Symbol(""),Ur=Symbol("");function ct(e,t,n){if(zt&&We){let r=qi.get(e);r||qi.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new ko),i.map=r,i.key=n),i.track()}}function nn(e,t,n,r,i,h){const f=qi.get(e);if(!f){Hr++;return}const g=s=>{s&&s.trigger()};if(Ka(),t==="clear")f.forEach(g);else{const s=Ae(e),p=s&&Ga(n);if(s&&n==="length"){const o=Number(r);f.forEach((a,u)=>{(u==="length"||u===Ur||!An(u)&&u>=o)&&g(a)})}else switch((n!==void 0||f.has(void 0))&&g(f.get(n)),p&&g(f.get(Ur)),t){case"add":s?p&&g(f.get("length")):(g(f.get(Dn)),rr(e)&&g(f.get(na)));break;case"delete":s||(g(f.get(Dn)),rr(e)&&g(f.get(na)));break;case"set":rr(e)&&g(f.get(Dn));break}}Xa()}function p0(e,t){const n=qi.get(e);return n&&n.get(t)}function Yn(e){const t=Le(e);return t===e?t:(ct(t,"iterate",Ur),It(e)?t:t.map(it))}function Eo(e){return ct(e=Le(e),"iterate",Ur),e}const g0={__proto__:null,[Symbol.iterator](){return ps(this,Symbol.iterator,it)},concat(...e){return Yn(this).concat(...e.map(t=>Ae(t)?Yn(t):t))},entries(){return ps(this,"entries",e=>(e[1]=it(e[1]),e))},every(e,t){return qt(this,"every",e,t,void 0,arguments)},filter(e,t){return qt(this,"filter",e,t,n=>n.map(it),arguments)},find(e,t){return qt(this,"find",e,t,it,arguments)},findIndex(e,t){return qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qt(this,"findLast",e,t,it,arguments)},findLastIndex(e,t){return qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return gs(this,"includes",e)},indexOf(...e){return gs(this,"indexOf",e)},join(e){return Yn(this).join(e)},lastIndexOf(...e){return gs(this,"lastIndexOf",e)},map(e,t){return qt(this,"map",e,t,void 0,arguments)},pop(){return Cr(this,"pop")},push(...e){return Cr(this,"push",e)},reduce(e,...t){return mc(this,"reduce",e,t)},reduceRight(e,...t){return mc(this,"reduceRight",e,t)},shift(){return Cr(this,"shift")},some(e,t){return qt(this,"some",e,t,void 0,arguments)},splice(...e){return Cr(this,"splice",e)},toReversed(){return Yn(this).toReversed()},toSorted(e){return Yn(this).toSorted(e)},toSpliced(...e){return Yn(this).toSpliced(...e)},unshift(...e){return Cr(this,"unshift",e)},values(){return ps(this,"values",it)}};function ps(e,t,n){const r=Eo(e),i=r[t]();return r!==e&&!It(e)&&(i._next=i.next,i.next=()=>{const h=i._next();return h.value&&(h.value=n(h.value)),h}),i}const m0=Array.prototype;function qt(e,t,n,r,i,h){const f=Eo(e),g=f!==e&&!It(e),s=f[t];if(s!==m0[t]){const a=s.apply(e,h);return g?it(a):a}let p=n;f!==e&&(g?p=function(a,u){return n.call(this,it(a),u,e)}:n.length>2&&(p=function(a,u){return n.call(this,a,u,e)}));const o=s.call(f,p,r);return g&&i?i(o):o}function mc(e,t,n,r){const i=Eo(e);let h=n;return i!==e&&(It(e)?n.length>3&&(h=function(f,g,s){return n.call(this,f,g,s,e)}):h=function(f,g,s){return n.call(this,f,it(g),s,e)}),i[t](h,...r)}function gs(e,t,n){const r=Le(e);ct(r,"iterate",Ur);const i=r[t](...n);return(i===-1||i===!1)&&el(n[0])?(n[0]=Le(n[0]),r[t](...n)):i}function Cr(e,t,n=[]){cn(),Ka();const r=Le(e)[t].apply(e,n);return Xa(),un(),r}const v0=Ha("__proto__,__v_isRef,__isVue"),Pf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(An));function y0(e){An(e)||(e=String(e));const t=Le(this);return ct(t,"has",e),t.hasOwnProperty(e)}class zf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,h=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return h;if(n==="__v_raw")return r===(i?h?E0:Hf:h?Bf:jf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const f=Ae(t);if(!i){let s;if(f&&(s=g0[n]))return s;if(n==="hasOwnProperty")return y0}const g=Reflect.get(t,n,Je(t)?t:r);return(An(n)?Pf.has(n):v0(n))||(i||ct(t,"get",n),h)?g:Je(g)?f&&Ga(n)?g:g.value:Ye(g)?i?Mo(g):mr(g):g}}class Wf extends zf{constructor(t=!1){super(!1,t)}set(t,n,r,i){let h=t[n];if(!this._isShallow){const s=Cn(h);if(!It(r)&&!Cn(r)&&(h=Le(h),r=Le(r)),!Ae(t)&&Je(h)&&!Je(r))return s||(h.value=r),!0}const f=Ae(t)&&Ga(n)?Number(n)<t.length:Ie(t,n),g=Reflect.set(t,n,r,Je(t)?t:i);return t===Le(i)&&(f?wn(r,h)&&nn(t,"set",n,r):nn(t,"add",n,r)),g}deleteProperty(t,n){const r=Ie(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&nn(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!An(n)||!Pf.has(n))&&ct(t,"has",n),r}ownKeys(t){return ct(t,"iterate",Ae(t)?"length":Dn),Reflect.ownKeys(t)}}class b0 extends zf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const w0=new Wf,S0=new b0,$0=new Wf(!0);const ra=e=>e,wi=e=>Reflect.getPrototypeOf(e);function _0(e,t,n){return function(...r){const i=this.__v_raw,h=Le(i),f=rr(h),g=e==="entries"||e===Symbol.iterator&&f,s=e==="keys"&&f,p=i[e](...r),o=n?ra:t?eo:it;return!t&&ct(h,"iterate",s?na:Dn),{next(){const{value:a,done:u}=p.next();return u?{value:a,done:u}:{value:g?[o(a[0]),o(a[1])]:o(a),done:u}},[Symbol.iterator](){return this}}}}function Si(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function C0(e,t){const n={get(i){const h=this.__v_raw,f=Le(h),g=Le(i);e||(wn(i,g)&&ct(f,"get",i),ct(f,"get",g));const{has:s}=wi(f),p=t?ra:e?eo:it;if(s.call(f,i))return p(h.get(i));if(s.call(f,g))return p(h.get(g));h!==f&&h.get(i)},get size(){const i=this.__v_raw;return!e&&ct(Le(i),"iterate",Dn),i.size},has(i){const h=this.__v_raw,f=Le(h),g=Le(i);return e||(wn(i,g)&&ct(f,"has",i),ct(f,"has",g)),i===g?h.has(i):h.has(i)||h.has(g)},forEach(i,h){const f=this,g=f.__v_raw,s=Le(g),p=t?ra:e?eo:it;return!e&&ct(s,"iterate",Dn),g.forEach((o,a)=>i.call(h,p(o),p(a),f))}};return pt(n,e?{add:Si("add"),set:Si("set"),delete:Si("delete"),clear:Si("clear")}:{add(i){!t&&!It(i)&&!Cn(i)&&(i=Le(i));const h=Le(this);return wi(h).has.call(h,i)||(h.add(i),nn(h,"add",i,i)),this},set(i,h){!t&&!It(h)&&!Cn(h)&&(h=Le(h));const f=Le(this),{has:g,get:s}=wi(f);let p=g.call(f,i);p||(i=Le(i),p=g.call(f,i));const o=s.call(f,i);return f.set(i,h),p?wn(h,o)&&nn(f,"set",i,h):nn(f,"add",i,h),this},delete(i){const h=Le(this),{has:f,get:g}=wi(h);let s=f.call(h,i);s||(i=Le(i),s=f.call(h,i)),g&&g.call(h,i);const p=h.delete(i);return s&&nn(h,"delete",i,void 0),p},clear(){const i=Le(this),h=i.size!==0,f=i.clear();return h&&nn(i,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=_0(i,e,t)}),n}function Ja(e,t){const n=C0(e,t);return(r,i,h)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ie(n,i)&&i in r?n:r,i,h)}const x0={get:Ja(!1,!1)},A0={get:Ja(!1,!0)},k0={get:Ja(!0,!1)};const jf=new WeakMap,Bf=new WeakMap,Hf=new WeakMap,E0=new WeakMap;function M0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function T0(e){return e.__v_skip||!Object.isExtensible(e)?0:M0(n0(e))}function mr(e){return Cn(e)?e:qa(e,!1,w0,x0,jf)}function Uf(e){return qa(e,!1,$0,A0,Bf)}function Mo(e){return qa(e,!0,S0,k0,Hf)}function qa(e,t,n,r,i){if(!Ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const h=T0(e);if(h===0)return e;const f=i.get(e);if(f)return f;const g=new Proxy(e,h===2?r:n);return i.set(e,g),g}function ir(e){return Cn(e)?ir(e.__v_raw):!!(e&&e.__v_isReactive)}function Cn(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function el(e){return e?!!e.__v_raw:!1}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function Vf(e){return!Ie(e,"__v_skip")&&Object.isExtensible(e)&&Cf(e,"__v_skip",!0),e}const it=e=>Ye(e)?mr(e):e,eo=e=>Ye(e)?Mo(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function Ne(e){return Gf(e,!1)}function Fn(e){return Gf(e,!0)}function Gf(e,t){return Je(e)?e:new L0(e,t)}class L0{constructor(t,n){this.dep=new ko,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Le(t),this._value=n?t:it(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||It(t)||Cn(t);t=r?t:Le(t),wn(t,n)&&(this._rawValue=t,this._value=r?t:it(t),this.dep.trigger())}}function oe(e){return Je(e)?e.value:e}function ft(e){return xe(e)?e():oe(e)}const R0={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Je(i)&&!Je(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Zf(e){return ir(e)?e:new Proxy(e,R0)}class I0{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ko,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Yf(e){return new I0(e)}class O0{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return p0(Le(this._object),this._key)}}class N0{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function tl(e,t,n){return Je(e)?e:xe(e)?new N0(e):Ye(e)&&arguments.length>1?D0(e,t,n):Ne(e)}function D0(e,t,n){const r=e[t];return Je(r)?r:new O0(e,t,n)}class F0{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ko(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rf(this,!0),!0}get value(){const t=this.dep.track();return Nf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function P0(e,t,n=!1){let r,i;return xe(e)?r=e:(r=e.get,i=e.set),new F0(r,i,n)}const $i={},to=new WeakMap;let Ln;function z0(e,t=!1,n=Ln){if(n){let r=to.get(n);r||to.set(n,r=[]),r.push(e)}}function W0(e,t,n=Pe){const{immediate:r,deep:i,once:h,scheduler:f,augmentJob:g,call:s}=n,p=$=>i?$:It($)||i===!1||i===0?rn($,1):rn($);let o,a,u,l,c=!1,d=!1;if(Je(e)?(a=()=>e.value,c=It(e)):ir(e)?(a=()=>p(e),c=!0):Ae(e)?(d=!0,c=e.some($=>ir($)||It($)),a=()=>e.map($=>{if(Je($))return $.value;if(ir($))return p($);if(xe($))return s?s($,2):$()})):xe(e)?t?a=s?()=>s(e,2):e:a=()=>{if(u){cn();try{u()}finally{un()}}const $=Ln;Ln=o;try{return s?s(e,3,[l]):e(l)}finally{Ln=$}}:a=Qt,t&&i){const $=a,w=i===!0?1/0:i;a=()=>rn($(),w)}const m=Ya(),v=()=>{o.stop(),m&&m.active&&Va(m.effects,o)};if(h&&t){const $=t;t=(...w)=>{$(...w),v()}}let y=d?new Array(e.length).fill($i):$i;const _=$=>{if(!(!(o.flags&1)||!o.dirty&&!$))if(t){const w=o.run();if(i||c||(d?w.some((b,A)=>wn(b,y[A])):wn(w,y))){u&&u();const b=Ln;Ln=o;try{const A=[w,y===$i?void 0:d&&y[0]===$i?[]:y,l];y=w,s?s(t,3,A):t(...A)}finally{Ln=b}}}else o.run()};return g&&g(_),o=new Tf(a),o.scheduler=f?()=>f(_,!1):_,l=$=>z0($,!1,o),u=o.onStop=()=>{const $=to.get(o);if($){if(s)s($,4);else for(const w of $)w();to.delete(o)}},t?r?_(!0):y=o.run():f?f(_.bind(null,!0),!0):o.run(),v.pause=o.pause.bind(o),v.resume=o.resume.bind(o),v.stop=v,v}function rn(e,t=1/0,n){if(t<=0||!Ye(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Je(e))rn(e.value,t,n);else if(Ae(e))for(let r=0;r<e.length;r++)rn(e[r],t,n);else if(wf(e)||rr(e))e.forEach(r=>{rn(r,t,n)});else if(_f(e)){for(const r in e)rn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rn(e[r],t,n)}return e}/**
|
572
|
+
* @vue/runtime-core v3.5.20
|
573
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
574
|
+
* @license MIT
|
575
|
+
**/function si(e,t,n,r){try{return r?e(...r):e()}catch(i){To(i,t,n)}}function Jt(e,t,n,r){if(xe(e)){const i=si(e,t,n,r);return i&&Sf(i)&&i.catch(h=>{To(h,t,n)}),i}if(Ae(e)){const i=[];for(let h=0;h<e.length;h++)i.push(Jt(e[h],t,n,r));return i}}function To(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:h,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||Pe;if(t){let g=t.parent;const s=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;g;){const o=g.ec;if(o){for(let a=0;a<o.length;a++)if(o[a](e,s,p)===!1)return}g=g.parent}if(h){cn(),si(h,null,10,[e,s,p]),un();return}}j0(e,n,i,r,f)}function j0(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const yt=[];let Yt=-1;const or=[];let mn=null,Kn=0;const Kf=Promise.resolve();let no=null;function ai(e){const t=no||Kf;return e?t.then(this?e.bind(this):e):t}function B0(e){let t=Yt+1,n=yt.length;for(;t<n;){const r=t+n>>>1,i=yt[r],h=Vr(i);h<e||h===e&&i.flags&2?t=r+1:n=r}return t}function nl(e){if(!(e.flags&1)){const t=Vr(e),n=yt[yt.length-1];!n||!(e.flags&2)&&t>=Vr(n)?yt.push(e):yt.splice(B0(t),0,e),e.flags|=1,Xf()}}function Xf(){no||(no=Kf.then(Jf))}function H0(e){Ae(e)?or.push(...e):mn&&e.id===-1?mn.splice(Kn+1,0,e):e.flags&1||(or.push(e),e.flags|=1),Xf()}function vc(e,t,n=Yt+1){for(;n<yt.length;n++){const r=yt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;yt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Qf(e){if(or.length){const t=[...new Set(or)].sort((n,r)=>Vr(n)-Vr(r));if(or.length=0,mn){mn.push(...t);return}for(mn=t,Kn=0;Kn<mn.length;Kn++){const n=mn[Kn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mn=null,Kn=0}}const Vr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jf(e){try{for(Yt=0;Yt<yt.length;Yt++){const t=yt[Yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),si(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Yt<yt.length;Yt++){const t=yt[Yt];t&&(t.flags&=-2)}Yt=-1,yt.length=0,Qf(),no=null,(yt.length||or.length)&&Jf()}}let Et=null,qf=null;function ro(e){const t=Et;return Et=e,qf=e&&e.type.__scopeId||null,t}function Ve(e,t=Et,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&kc(-1);const h=ro(t);let f;try{f=e(...i)}finally{ro(h),r._d&&kc(1)}return f};return r._n=!0,r._c=!0,r._d=!0,r}function rl(e,t){if(Et===null)return e;const n=Oo(Et),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[h,f,g,s=Pe]=t[i];h&&(xe(h)&&(h={mounted:h,updated:h}),h.deep&&rn(f),r.push({dir:h,instance:n,value:f,oldValue:void 0,arg:g,modifiers:s}))}return e}function Mn(e,t,n,r){const i=e.dirs,h=t&&t.dirs;for(let f=0;f<i.length;f++){const g=i[f];h&&(g.oldValue=h[f].value);let s=g.dir[r];s&&(cn(),Jt(s,n,8,[e.el,g,e,t]),un())}}const U0=Symbol("_vte"),V0=e=>e.__isTeleport,G0=Symbol("_leaveCb");function il(e,t){e.shapeFlag&6&&e.component?(e.transition=t,il(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function ve(e,t){return xe(e)?pt({name:e.name},t,{setup:e}):e}function ed(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Dr(e,t,n,r,i=!1){if(Ae(e)){e.forEach((c,d)=>Dr(c,t&&(Ae(t)?t[d]:t),n,r,i));return}if(Fr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Dr(e,t,n,r.component.subTree);return}const h=r.shapeFlag&4?Oo(r.component):r.el,f=i?null:h,{i:g,r:s}=e,p=t&&t.r,o=g.refs===Pe?g.refs={}:g.refs,a=g.setupState,u=Le(a),l=a===Pe?bf:c=>Ie(u,c);if(p!=null&&p!==s){if(et(p))o[p]=null,l(p)&&(a[p]=null);else if(Je(p)){p.value=null;const c=t;c.k&&(o[c.k]=null)}}if(xe(s))si(s,g,12,[f,o]);else{const c=et(s),d=Je(s);if(c||d){const m=()=>{if(e.f){const v=c?l(s)?a[s]:o[s]:s.value;if(i)Ae(v)&&Va(v,h);else if(Ae(v))v.includes(h)||v.push(h);else if(c)o[s]=[h],l(s)&&(a[s]=o[s]);else{const y=[h];s.value=y,e.k&&(o[e.k]=y)}}else c?(o[s]=f,l(s)&&(a[s]=f)):d&&(s.value=f,e.k&&(o[e.k]=f))};f?(m.id=-1,kt(m,n)):m()}}}Ao().requestIdleCallback;Ao().cancelIdleCallback;const Fr=e=>!!e.type.__asyncLoader,td=e=>e.type.__isKeepAlive;function Z0(e,t){nd(e,"a",t)}function Y0(e,t){nd(e,"da",t)}function nd(e,t,n=ut){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Lo(t,r,n),n){let i=n.parent;for(;i&&i.parent;)td(i.parent.vnode)&&K0(r,t,n,i),i=i.parent}}function K0(e,t,n,r){const i=Lo(t,e,r,!0);id(()=>{Va(r[t],i)},n)}function Lo(e,t,n=ut,r=!1){if(n){const i=n[e]||(n[e]=[]),h=t.__weh||(t.__weh=(...f)=>{cn();const g=li(n),s=Jt(t,n,e,f);return g(),un(),s});return r?i.unshift(h):i.push(h),h}}const fn=e=>(t,n=ut)=>{(!Zr||e==="sp")&&Lo(e,(...r)=>t(...r),n)},X0=fn("bm"),qe=fn("m"),Q0=fn("bu"),J0=fn("u"),rd=fn("bum"),id=fn("um"),q0=fn("sp"),eb=fn("rtg"),tb=fn("rtc");function nb(e,t=ut){Lo("ec",e,t)}const rb="components";function De(e,t){return ob(rb,e,!0,t)||e}const ib=Symbol.for("v-ndc");function ob(e,t,n=!0,r=!1){const i=Et||ut;if(i){const h=i.type;{const g=Vb(h,!1);if(g&&(g===t||g===Nt(t)||g===ii(Nt(t))))return h}const f=yc(i[e]||h[e],t)||yc(i.appContext[e],t);return!f&&r?h:f}}function yc(e,t){return e&&(e[t]||e[Nt(t)]||e[ii(Nt(t))])}function Tt(e,t,n,r){let i;const h=n,f=Ae(e);if(f||et(e)){const g=f&&ir(e);let s=!1,p=!1;g&&(s=!It(e),p=Cn(e),e=Eo(e)),i=new Array(e.length);for(let o=0,a=e.length;o<a;o++)i[o]=t(s?p?eo(it(e[o])):it(e[o]):e[o],o,void 0,h)}else if(typeof e=="number"){i=new Array(e);for(let g=0;g<e;g++)i[g]=t(g+1,g,void 0,h)}else if(Ye(e))if(e[Symbol.iterator])i=Array.from(e,(g,s)=>t(g,s,void 0,h));else{const g=Object.keys(e);i=new Array(g.length);for(let s=0,p=g.length;s<p;s++){const o=g[s];i[s]=t(e[o],o,s,h)}}else i=[];return i}const ia=e=>e?Cd(e)?Oo(e):ia(e.parent):null,Pr=pt(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=>ia(e.parent),$root:e=>ia(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sd(e),$forceUpdate:e=>e.f||(e.f=()=>{nl(e.update)}),$nextTick:e=>e.n||(e.n=ai.bind(e.proxy)),$watch:e=>Ab.bind(e)}),ms=(e,t)=>e!==Pe&&!e.__isScriptSetup&&Ie(e,t),sb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:h,accessCache:f,type:g,appContext:s}=e;let p;if(t[0]!=="$"){const l=f[t];if(l!==void 0)switch(l){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return h[t]}else{if(ms(r,t))return f[t]=1,r[t];if(i!==Pe&&Ie(i,t))return f[t]=2,i[t];if((p=e.propsOptions[0])&&Ie(p,t))return f[t]=3,h[t];if(n!==Pe&&Ie(n,t))return f[t]=4,n[t];oa&&(f[t]=0)}}const o=Pr[t];let a,u;if(o)return t==="$attrs"&&ct(e.attrs,"get",""),o(e);if((a=g.__cssModules)&&(a=a[t]))return a;if(n!==Pe&&Ie(n,t))return f[t]=4,n[t];if(u=s.config.globalProperties,Ie(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:h}=e;return ms(i,t)?(i[t]=n,!0):r!==Pe&&Ie(r,t)?(r[t]=n,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(h[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:h,type:f}},g){let s,p;return!!(n[g]||e!==Pe&&g[0]!=="$"&&Ie(e,g)||ms(t,g)||(s=h[0])&&Ie(s,g)||Ie(r,g)||Ie(Pr,g)||Ie(i.config.globalProperties,g)||(p=f.__cssModules)&&p[g])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function bc(e){return Ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let oa=!0;function ab(e){const t=sd(e),n=e.proxy,r=e.ctx;oa=!1,t.beforeCreate&&wc(t.beforeCreate,e,"bc");const{data:i,computed:h,methods:f,watch:g,provide:s,inject:p,created:o,beforeMount:a,mounted:u,beforeUpdate:l,updated:c,activated:d,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:_,unmounted:$,render:w,renderTracked:b,renderTriggered:A,errorCaptured:R,serverPrefetch:E,expose:L,inheritAttrs:O,components:M,directives:x,filters:C}=t;if(p&&lb(p,r,null),f)for(const T in f){const I=f[T];xe(I)&&(r[T]=I.bind(n))}if(i){const T=i.call(n,n);Ye(T)&&(e.data=mr(T))}if(oa=!0,h)for(const T in h){const I=h[T],N=xe(I)?I.bind(n,n):xe(I.get)?I.get.bind(n,n):Qt,D=!xe(I)&&xe(I.set)?I.set.bind(n):Qt,F=ye({get:N,set:D});Object.defineProperty(r,T,{enumerable:!0,configurable:!0,get:()=>F.value,set:H=>F.value=H})}if(g)for(const T in g)od(g[T],r,n,T);if(s){const T=xe(s)?s.call(n):s;Reflect.ownKeys(T).forEach(I=>{Di(I,T[I])})}o&&wc(o,e,"c");function k(T,I){Ae(I)?I.forEach(N=>T(N.bind(n))):I&&T(I.bind(n))}if(k(X0,a),k(qe,u),k(Q0,l),k(J0,c),k(Z0,d),k(Y0,m),k(nb,R),k(tb,b),k(eb,A),k(rd,y),k(id,$),k(q0,E),Ae(L))if(L.length){const T=e.exposed||(e.exposed={});L.forEach(I=>{Object.defineProperty(T,I,{get:()=>n[I],set:N=>n[I]=N,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===Qt&&(e.render=w),O!=null&&(e.inheritAttrs=O),M&&(e.components=M),x&&(e.directives=x),E&&ed(e)}function lb(e,t,n=Qt){Ae(e)&&(e=sa(e));for(const r in e){const i=e[r];let h;Ye(i)?"default"in i?h=Ot(i.from||r,i.default,!0):h=Ot(i.from||r):h=Ot(i),Je(h)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>h.value,set:f=>h.value=f}):t[r]=h}}function wc(e,t,n){Jt(Ae(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function od(e,t,n,r){let i=r.includes(".")?bd(n,r):()=>n[r];if(et(e)){const h=t[e];xe(h)&&Fe(i,h)}else if(xe(e))Fe(i,e.bind(n));else if(Ye(e))if(Ae(e))e.forEach(h=>od(h,t,n,r));else{const h=xe(e.handler)?e.handler.bind(n):t[e.handler];xe(h)&&Fe(i,h,e)}}function sd(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:h,config:{optionMergeStrategies:f}}=e.appContext,g=h.get(t);let s;return g?s=g:!i.length&&!n&&!r?s=t:(s={},i.length&&i.forEach(p=>io(s,p,f,!0)),io(s,t,f)),Ye(t)&&h.set(t,s),s}function io(e,t,n,r=!1){const{mixins:i,extends:h}=t;h&&io(e,h,n,!0),i&&i.forEach(f=>io(e,f,n,!0));for(const f in t)if(!(r&&f==="expose")){const g=cb[f]||n&&n[f];e[f]=g?g(e[f],t[f]):t[f]}return e}const cb={data:Sc,props:$c,emits:$c,methods:Tr,computed:Tr,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:Tr,directives:Tr,watch:hb,provide:Sc,inject:ub};function Sc(e,t){return t?e?function(){return pt(xe(e)?e.call(this,this):e,xe(t)?t.call(this,this):t)}:t:e}function ub(e,t){return Tr(sa(e),sa(t))}function sa(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function vt(e,t){return e?[...new Set([].concat(e,t))]:t}function Tr(e,t){return e?pt(Object.create(null),e,t):t}function $c(e,t){return e?Ae(e)&&Ae(t)?[...new Set([...e,...t])]:pt(Object.create(null),bc(e),bc(t??{})):t}function hb(e,t){if(!e)return t;if(!t)return e;const n=pt(Object.create(null),e);for(const r in t)n[r]=vt(e[r],t[r]);return n}function ad(){return{app:null,config:{isNativeTag:bf,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 fb=0;function db(e,t){return function(r,i=null){xe(r)||(r=pt({},r)),i!=null&&!Ye(i)&&(i=null);const h=ad(),f=new WeakSet,g=[];let s=!1;const p=h.app={_uid:fb++,_component:r,_props:i,_container:null,_context:h,_instance:null,version:Zb,get config(){return h.config},set config(o){},use(o,...a){return f.has(o)||(o&&xe(o.install)?(f.add(o),o.install(p,...a)):xe(o)&&(f.add(o),o(p,...a))),p},mixin(o){return h.mixins.includes(o)||h.mixins.push(o),p},component(o,a){return a?(h.components[o]=a,p):h.components[o]},directive(o,a){return a?(h.directives[o]=a,p):h.directives[o]},mount(o,a,u){if(!s){const l=p._ceVNode||ie(r,i);return l.appContext=h,u===!0?u="svg":u===!1&&(u=void 0),e(l,o,u),s=!0,p._container=o,o.__vue_app__=p,Oo(l.component)}},onUnmount(o){g.push(o)},unmount(){s&&(Jt(g,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(o,a){return h.provides[o]=a,p},runWithContext(o){const a=Pn;Pn=p;try{return o()}finally{Pn=a}}};return p}}let Pn=null;function Di(e,t){if(ut){let n=ut.provides;const r=ut.parent&&ut.parent.provides;r===n&&(n=ut.provides=Object.create(r)),n[e]=t}}function Ot(e,t,n=!1){const r=vr();if(r||Pn){let i=Pn?Pn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&xe(t)?t.call(r&&r.proxy):t}}function ld(){return!!(vr()||Pn)}const cd={},ud=()=>Object.create(cd),hd=e=>Object.getPrototypeOf(e)===cd;function pb(e,t,n,r=!1){const i={},h=ud();e.propsDefaults=Object.create(null),fd(e,t,i,h);for(const f in e.propsOptions[0])f in i||(i[f]=void 0);n?e.props=r?i:Uf(i):e.type.props?e.props=i:e.props=h,e.attrs=h}function gb(e,t,n,r){const{props:i,attrs:h,vnode:{patchFlag:f}}=e,g=Le(i),[s]=e.propsOptions;let p=!1;if((r||f>0)&&!(f&16)){if(f&8){const o=e.vnode.dynamicProps;for(let a=0;a<o.length;a++){let u=o[a];if(Ro(e.emitsOptions,u))continue;const l=t[u];if(s)if(Ie(h,u))l!==h[u]&&(h[u]=l,p=!0);else{const c=Nt(u);i[c]=aa(s,g,c,l,e,!1)}else l!==h[u]&&(h[u]=l,p=!0)}}}else{fd(e,t,i,h)&&(p=!0);let o;for(const a in g)(!t||!Ie(t,a)&&((o=Gn(a))===a||!Ie(t,o)))&&(s?n&&(n[a]!==void 0||n[o]!==void 0)&&(i[a]=aa(s,g,a,void 0,e,!0)):delete i[a]);if(h!==g)for(const a in h)(!t||!Ie(t,a))&&(delete h[a],p=!0)}p&&nn(e.attrs,"set","")}function fd(e,t,n,r){const[i,h]=e.propsOptions;let f=!1,g;if(t)for(let s in t){if(Ir(s))continue;const p=t[s];let o;i&&Ie(i,o=Nt(s))?!h||!h.includes(o)?n[o]=p:(g||(g={}))[o]=p:Ro(e.emitsOptions,s)||(!(s in r)||p!==r[s])&&(r[s]=p,f=!0)}if(h){const s=Le(n),p=g||Pe;for(let o=0;o<h.length;o++){const a=h[o];n[a]=aa(i,s,a,p[a],e,!Ie(p,a))}}return f}function aa(e,t,n,r,i,h){const f=e[n];if(f!=null){const g=Ie(f,"default");if(g&&r===void 0){const s=f.default;if(f.type!==Function&&!f.skipFactory&&xe(s)){const{propsDefaults:p}=i;if(n in p)r=p[n];else{const o=li(i);r=p[n]=s.call(null,t),o()}}else r=s;i.ce&&i.ce._setProp(n,r)}f[0]&&(h&&!g?r=!1:f[1]&&(r===""||r===Gn(n))&&(r=!0))}return r}const mb=new WeakMap;function dd(e,t,n=!1){const r=n?mb:t.propsCache,i=r.get(e);if(i)return i;const h=e.props,f={},g=[];let s=!1;if(!xe(e)){const o=a=>{s=!0;const[u,l]=dd(a,t,!0);pt(f,u),l&&g.push(...l)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!h&&!s)return Ye(e)&&r.set(e,nr),nr;if(Ae(h))for(let o=0;o<h.length;o++){const a=Nt(h[o]);_c(a)&&(f[a]=Pe)}else if(h)for(const o in h){const a=Nt(o);if(_c(a)){const u=h[o],l=f[a]=Ae(u)||xe(u)?{type:u}:pt({},u),c=l.type;let d=!1,m=!0;if(Ae(c))for(let v=0;v<c.length;++v){const y=c[v],_=xe(y)&&y.name;if(_==="Boolean"){d=!0;break}else _==="String"&&(m=!1)}else d=xe(c)&&c.name==="Boolean";l[0]=d,l[1]=m,(d||Ie(l,"default"))&&g.push(a)}}const p=[f,g];return Ye(e)&&r.set(e,p),p}function _c(e){return e[0]!=="$"&&!Ir(e)}const ol=e=>e==="_"||e==="_ctx"||e==="$stable",sl=e=>Ae(e)?e.map(Kt):[Kt(e)],vb=(e,t,n)=>{if(t._n)return t;const r=Ve((...i)=>sl(t(...i)),n);return r._c=!1,r},pd=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ol(i))continue;const h=e[i];if(xe(h))t[i]=vb(i,h,r);else if(h!=null){const f=sl(h);t[i]=()=>f}}},gd=(e,t)=>{const n=sl(t);e.slots.default=()=>n},md=(e,t,n)=>{for(const r in t)(n||!ol(r))&&(e[r]=t[r])},yb=(e,t,n)=>{const r=e.slots=ud();if(e.vnode.shapeFlag&32){const i=t._;i?(md(r,t,n),n&&Cf(r,"_",i,!0)):pd(t,r)}else t&&gd(e,t)},bb=(e,t,n)=>{const{vnode:r,slots:i}=e;let h=!0,f=Pe;if(r.shapeFlag&32){const g=t._;g?n&&g===1?h=!1:md(i,t,n):(h=!t.$stable,pd(t,i)),f=t}else t&&(gd(e,t),f={default:1});if(h)for(const g in i)!ol(g)&&f[g]==null&&delete i[g]},kt=Ib;function wb(e){return Sb(e)}function Sb(e,t){const n=Ao();n.__VUE__=!0;const{insert:r,remove:i,patchProp:h,createElement:f,createText:g,createComment:s,setText:p,setElementText:o,parentNode:a,nextSibling:u,setScopeId:l=Qt,insertStaticContent:c}=e,d=(z,B,Y,q=null,te=null,ne=null,ue=void 0,he=null,ce=!!B.dynamicChildren)=>{if(z===B)return;z&&!xr(z,B)&&(q=j(z),H(z,te,ne,!0),z=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:se,ref:$e,shapeFlag:de}=B;switch(se){case Io:m(z,B,Y,q);break;case xn:v(z,B,Y,q);break;case Fi:z==null&&y(B,Y,q,ue);break;case Ee:M(z,B,Y,q,te,ne,ue,he,ce);break;default:de&1?w(z,B,Y,q,te,ne,ue,he,ce):de&6?x(z,B,Y,q,te,ne,ue,he,ce):(de&64||de&128)&&se.process(z,B,Y,q,te,ne,ue,he,ce,Q)}$e!=null&&te?Dr($e,z&&z.ref,ne,B||z,!B):$e==null&&z&&z.ref!=null&&Dr(z.ref,null,ne,z,!0)},m=(z,B,Y,q)=>{if(z==null)r(B.el=g(B.children),Y,q);else{const te=B.el=z.el;B.children!==z.children&&p(te,B.children)}},v=(z,B,Y,q)=>{z==null?r(B.el=s(B.children||""),Y,q):B.el=z.el},y=(z,B,Y,q)=>{[z.el,z.anchor]=c(z.children,B,Y,q,z.el,z.anchor)},_=({el:z,anchor:B},Y,q)=>{let te;for(;z&&z!==B;)te=u(z),r(z,Y,q),z=te;r(B,Y,q)},$=({el:z,anchor:B})=>{let Y;for(;z&&z!==B;)Y=u(z),i(z),z=Y;i(B)},w=(z,B,Y,q,te,ne,ue,he,ce)=>{B.type==="svg"?ue="svg":B.type==="math"&&(ue="mathml"),z==null?b(B,Y,q,te,ne,ue,he,ce):E(z,B,te,ne,ue,he,ce)},b=(z,B,Y,q,te,ne,ue,he)=>{let ce,se;const{props:$e,shapeFlag:de,transition:Se,dirs:Ce}=z;if(ce=z.el=f(z.type,ne,$e&&$e.is,$e),de&8?o(ce,z.children):de&16&&R(z.children,ce,null,q,te,vs(z,ne),ue,he),Ce&&Mn(z,null,q,"created"),A(ce,z,z.scopeId,ue,q),$e){for(const ze in $e)ze!=="value"&&!Ir(ze)&&h(ce,ze,null,$e[ze],ne,q);"value"in $e&&h(ce,"value",null,$e.value,ne),(se=$e.onVnodeBeforeMount)&&Gt(se,q,z)}Ce&&Mn(z,null,q,"beforeMount");const Te=$b(te,Se);Te&&Se.beforeEnter(ce),r(ce,B,Y),((se=$e&&$e.onVnodeMounted)||Te||Ce)&&kt(()=>{se&&Gt(se,q,z),Te&&Se.enter(ce),Ce&&Mn(z,null,q,"mounted")},te)},A=(z,B,Y,q,te)=>{if(Y&&l(z,Y),q)for(let ne=0;ne<q.length;ne++)l(z,q[ne]);if(te){let ne=te.subTree;if(B===ne||Sd(ne.type)&&(ne.ssContent===B||ne.ssFallback===B)){const ue=te.vnode;A(z,ue,ue.scopeId,ue.slotScopeIds,te.parent)}}},R=(z,B,Y,q,te,ne,ue,he,ce=0)=>{for(let se=ce;se<z.length;se++){const $e=z[se]=he?vn(z[se]):Kt(z[se]);d(null,$e,B,Y,q,te,ne,ue,he)}},E=(z,B,Y,q,te,ne,ue)=>{const he=B.el=z.el;let{patchFlag:ce,dynamicChildren:se,dirs:$e}=B;ce|=z.patchFlag&16;const de=z.props||Pe,Se=B.props||Pe;let Ce;if(Y&&Tn(Y,!1),(Ce=Se.onVnodeBeforeUpdate)&&Gt(Ce,Y,B,z),$e&&Mn(B,z,Y,"beforeUpdate"),Y&&Tn(Y,!0),(de.innerHTML&&Se.innerHTML==null||de.textContent&&Se.textContent==null)&&o(he,""),se?L(z.dynamicChildren,se,he,Y,q,vs(B,te),ne):ue||I(z,B,he,null,Y,q,vs(B,te),ne,!1),ce>0){if(ce&16)O(he,de,Se,Y,te);else if(ce&2&&de.class!==Se.class&&h(he,"class",null,Se.class,te),ce&4&&h(he,"style",de.style,Se.style,te),ce&8){const Te=B.dynamicProps;for(let ze=0;ze<Te.length;ze++){const Oe=Te[ze],bt=de[Oe],wt=Se[Oe];(wt!==bt||Oe==="value")&&h(he,Oe,bt,wt,te,Y)}}ce&1&&z.children!==B.children&&o(he,B.children)}else!ue&&se==null&&O(he,de,Se,Y,te);((Ce=Se.onVnodeUpdated)||$e)&&kt(()=>{Ce&&Gt(Ce,Y,B,z),$e&&Mn(B,z,Y,"updated")},q)},L=(z,B,Y,q,te,ne,ue)=>{for(let he=0;he<B.length;he++){const ce=z[he],se=B[he],$e=ce.el&&(ce.type===Ee||!xr(ce,se)||ce.shapeFlag&198)?a(ce.el):Y;d(ce,se,$e,null,q,te,ne,ue,!0)}},O=(z,B,Y,q,te)=>{if(B!==Y){if(B!==Pe)for(const ne in B)!Ir(ne)&&!(ne in Y)&&h(z,ne,B[ne],null,te,q);for(const ne in Y){if(Ir(ne))continue;const ue=Y[ne],he=B[ne];ue!==he&&ne!=="value"&&h(z,ne,he,ue,te,q)}"value"in Y&&h(z,"value",B.value,Y.value,te)}},M=(z,B,Y,q,te,ne,ue,he,ce)=>{const se=B.el=z?z.el:g(""),$e=B.anchor=z?z.anchor:g("");let{patchFlag:de,dynamicChildren:Se,slotScopeIds:Ce}=B;Ce&&(he=he?he.concat(Ce):Ce),z==null?(r(se,Y,q),r($e,Y,q),R(B.children||[],Y,$e,te,ne,ue,he,ce)):de>0&&de&64&&Se&&z.dynamicChildren?(L(z.dynamicChildren,Se,Y,te,ne,ue,he),(B.key!=null||te&&B===te.subTree)&&vd(z,B,!0)):I(z,B,Y,$e,te,ne,ue,he,ce)},x=(z,B,Y,q,te,ne,ue,he,ce)=>{B.slotScopeIds=he,z==null?B.shapeFlag&512?te.ctx.activate(B,Y,q,ue,ce):C(B,Y,q,te,ne,ue,ce):S(z,B,ce)},C=(z,B,Y,q,te,ne,ue)=>{const he=z.component=Wb(z,q,te);if(td(z)&&(he.ctx.renderer=Q),jb(he,!1,ue),he.asyncDep){if(te&&te.registerDep(he,k,ue),!z.el){const ce=he.subTree=ie(xn);v(null,ce,B,Y),z.placeholder=ce.el}}else k(he,z,B,Y,te,ne,ue)},S=(z,B,Y)=>{const q=B.component=z.component;if(Lb(z,B,Y))if(q.asyncDep&&!q.asyncResolved){T(q,B,Y);return}else q.next=B,q.update();else B.el=z.el,q.vnode=B},k=(z,B,Y,q,te,ne,ue)=>{const he=()=>{if(z.isMounted){let{next:de,bu:Se,u:Ce,parent:Te,vnode:ze}=z;{const Ut=yd(z);if(Ut){de&&(de.el=ze.el,T(z,de,ue)),Ut.asyncDep.then(()=>{z.isUnmounted||he()});return}}let Oe=de,bt;Tn(z,!1),de?(de.el=ze.el,T(z,de,ue)):de=ze,Se&&Ni(Se),(bt=de.props&&de.props.onVnodeBeforeUpdate)&&Gt(bt,Te,de,ze),Tn(z,!0);const wt=xc(z),Ht=z.subTree;z.subTree=wt,d(Ht,wt,a(Ht.el),j(Ht),z,te,ne),de.el=wt.el,Oe===null&&Rb(z,wt.el),Ce&&kt(Ce,te),(bt=de.props&&de.props.onVnodeUpdated)&&kt(()=>Gt(bt,Te,de,ze),te)}else{let de;const{el:Se,props:Ce}=B,{bm:Te,m:ze,parent:Oe,root:bt,type:wt}=z,Ht=Fr(B);Tn(z,!1),Te&&Ni(Te),!Ht&&(de=Ce&&Ce.onVnodeBeforeMount)&&Gt(de,Oe,B),Tn(z,!0);{bt.ce&&bt.ce._def.shadowRoot!==!1&&bt.ce._injectChildStyle(wt);const Ut=z.subTree=xc(z);d(null,Ut,Y,q,z,te,ne),B.el=Ut.el}if(ze&&kt(ze,te),!Ht&&(de=Ce&&Ce.onVnodeMounted)){const Ut=B;kt(()=>Gt(de,Oe,Ut),te)}(B.shapeFlag&256||Oe&&Fr(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&z.a&&kt(z.a,te),z.isMounted=!0,B=Y=q=null}};z.scope.on();const ce=z.effect=new Tf(he);z.scope.off();const se=z.update=ce.run.bind(ce),$e=z.job=ce.runIfDirty.bind(ce);$e.i=z,$e.id=z.uid,ce.scheduler=()=>nl($e),Tn(z,!0),se()},T=(z,B,Y)=>{B.component=z;const q=z.vnode.props;z.vnode=B,z.next=null,gb(z,B.props,q,Y),bb(z,B.children,Y),cn(),vc(z),un()},I=(z,B,Y,q,te,ne,ue,he,ce=!1)=>{const se=z&&z.children,$e=z?z.shapeFlag:0,de=B.children,{patchFlag:Se,shapeFlag:Ce}=B;if(Se>0){if(Se&128){D(se,de,Y,q,te,ne,ue,he,ce);return}else if(Se&256){N(se,de,Y,q,te,ne,ue,he,ce);return}}Ce&8?($e&16&&V(se,te,ne),de!==se&&o(Y,de)):$e&16?Ce&16?D(se,de,Y,q,te,ne,ue,he,ce):V(se,te,ne,!0):($e&8&&o(Y,""),Ce&16&&R(de,Y,q,te,ne,ue,he,ce))},N=(z,B,Y,q,te,ne,ue,he,ce)=>{z=z||nr,B=B||nr;const se=z.length,$e=B.length,de=Math.min(se,$e);let Se;for(Se=0;Se<de;Se++){const Ce=B[Se]=ce?vn(B[Se]):Kt(B[Se]);d(z[Se],Ce,Y,null,te,ne,ue,he,ce)}se>$e?V(z,te,ne,!0,!1,de):R(B,Y,q,te,ne,ue,he,ce,de)},D=(z,B,Y,q,te,ne,ue,he,ce)=>{let se=0;const $e=B.length;let de=z.length-1,Se=$e-1;for(;se<=de&&se<=Se;){const Ce=z[se],Te=B[se]=ce?vn(B[se]):Kt(B[se]);if(xr(Ce,Te))d(Ce,Te,Y,null,te,ne,ue,he,ce);else break;se++}for(;se<=de&&se<=Se;){const Ce=z[de],Te=B[Se]=ce?vn(B[Se]):Kt(B[Se]);if(xr(Ce,Te))d(Ce,Te,Y,null,te,ne,ue,he,ce);else break;de--,Se--}if(se>de){if(se<=Se){const Ce=Se+1,Te=Ce<$e?B[Ce].el:q;for(;se<=Se;)d(null,B[se]=ce?vn(B[se]):Kt(B[se]),Y,Te,te,ne,ue,he,ce),se++}}else if(se>Se)for(;se<=de;)H(z[se],te,ne,!0),se++;else{const Ce=se,Te=se,ze=new Map;for(se=Te;se<=Se;se++){const xt=B[se]=ce?vn(B[se]):Kt(B[se]);xt.key!=null&&ze.set(xt.key,se)}let Oe,bt=0;const wt=Se-Te+1;let Ht=!1,Ut=0;const _r=new Array(wt);for(se=0;se<wt;se++)_r[se]=0;for(se=Ce;se<=de;se++){const xt=z[se];if(bt>=wt){H(xt,te,ne,!0);continue}let Vt;if(xt.key!=null)Vt=ze.get(xt.key);else for(Oe=Te;Oe<=Se;Oe++)if(_r[Oe-Te]===0&&xr(xt,B[Oe])){Vt=Oe;break}Vt===void 0?H(xt,te,ne,!0):(_r[Vt-Te]=se+1,Vt>=Ut?Ut=Vt:Ht=!0,d(xt,B[Vt],Y,null,te,ne,ue,he,ce),bt++)}const Nl=Ht?_b(_r):nr;for(Oe=Nl.length-1,se=wt-1;se>=0;se--){const xt=Te+se,Vt=B[xt],Dl=B[xt+1],Fl=xt+1<$e?Dl.el||Dl.placeholder:q;_r[se]===0?d(null,Vt,Y,Fl,te,ne,ue,he,ce):Ht&&(Oe<0||se!==Nl[Oe]?F(Vt,Y,Fl,2):Oe--)}}},F=(z,B,Y,q,te=null)=>{const{el:ne,type:ue,transition:he,children:ce,shapeFlag:se}=z;if(se&6){F(z.component.subTree,B,Y,q);return}if(se&128){z.suspense.move(B,Y,q);return}if(se&64){ue.move(z,B,Y,Q);return}if(ue===Ee){r(ne,B,Y);for(let de=0;de<ce.length;de++)F(ce[de],B,Y,q);r(z.anchor,B,Y);return}if(ue===Fi){_(z,B,Y);return}if(q!==2&&se&1&&he)if(q===0)he.beforeEnter(ne),r(ne,B,Y),kt(()=>he.enter(ne),te);else{const{leave:de,delayLeave:Se,afterLeave:Ce}=he,Te=()=>{z.ctx.isUnmounted?i(ne):r(ne,B,Y)},ze=()=>{ne._isLeaving&&ne[G0](!0),de(ne,()=>{Te(),Ce&&Ce()})};Se?Se(ne,Te,ze):ze()}else r(ne,B,Y)},H=(z,B,Y,q=!1,te=!1)=>{const{type:ne,props:ue,ref:he,children:ce,dynamicChildren:se,shapeFlag:$e,patchFlag:de,dirs:Se,cacheIndex:Ce}=z;if(de===-2&&(te=!1),he!=null&&(cn(),Dr(he,null,Y,z,!0),un()),Ce!=null&&(B.renderCache[Ce]=void 0),$e&256){B.ctx.deactivate(z);return}const Te=$e&1&&Se,ze=!Fr(z);let Oe;if(ze&&(Oe=ue&&ue.onVnodeBeforeUnmount)&&Gt(Oe,B,z),$e&6)G(z.component,Y,q);else{if($e&128){z.suspense.unmount(Y,q);return}Te&&Mn(z,null,B,"beforeUnmount"),$e&64?z.type.remove(z,B,Y,Q,q):se&&!se.hasOnce&&(ne!==Ee||de>0&&de&64)?V(se,B,Y,!1,!0):(ne===Ee&&de&384||!te&&$e&16)&&V(ce,B,Y),q&&W(z)}(ze&&(Oe=ue&&ue.onVnodeUnmounted)||Te)&&kt(()=>{Oe&&Gt(Oe,B,z),Te&&Mn(z,null,B,"unmounted")},Y)},W=z=>{const{type:B,el:Y,anchor:q,transition:te}=z;if(B===Ee){U(Y,q);return}if(B===Fi){$(z);return}const ne=()=>{i(Y),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(z.shapeFlag&1&&te&&!te.persisted){const{leave:ue,delayLeave:he}=te,ce=()=>ue(Y,ne);he?he(z.el,ne,ce):ce()}else ne()},U=(z,B)=>{let Y;for(;z!==B;)Y=u(z),i(z),z=Y;i(B)},G=(z,B,Y)=>{const{bum:q,scope:te,job:ne,subTree:ue,um:he,m:ce,a:se}=z;Cc(ce),Cc(se),q&&Ni(q),te.stop(),ne&&(ne.flags|=8,H(ue,z,B,Y)),he&&kt(he,B),kt(()=>{z.isUnmounted=!0},B)},V=(z,B,Y,q=!1,te=!1,ne=0)=>{for(let ue=ne;ue<z.length;ue++)H(z[ue],B,Y,q,te)},j=z=>{if(z.shapeFlag&6)return j(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const B=u(z.anchor||z.el),Y=B&&B[U0];return Y?u(Y):B};let Z=!1;const X=(z,B,Y)=>{z==null?B._vnode&&H(B._vnode,null,null,!0):d(B._vnode||null,z,B,null,null,null,Y),B._vnode=z,Z||(Z=!0,vc(),Qf(),Z=!1)},Q={p:d,um:H,m:F,r:W,mt:C,mc:R,pc:I,pbc:L,n:j,o:e};return{render:X,hydrate:void 0,createApp:db(X)}}function vs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Tn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $b(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vd(e,t,n=!1){const r=e.children,i=t.children;if(Ae(r)&&Ae(i))for(let h=0;h<r.length;h++){const f=r[h];let g=i[h];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=i[h]=vn(i[h]),g.el=f.el),!n&&g.patchFlag!==-2&&vd(f,g)),g.type===Io&&g.patchFlag!==-1&&(g.el=f.el),g.type===xn&&!g.el&&(g.el=f.el)}}function _b(e){const t=e.slice(),n=[0];let r,i,h,f,g;const s=e.length;for(r=0;r<s;r++){const p=e[r];if(p!==0){if(i=n[n.length-1],e[i]<p){t[r]=i,n.push(r);continue}for(h=0,f=n.length-1;h<f;)g=h+f>>1,e[n[g]]<p?h=g+1:f=g;p<e[n[h]]&&(h>0&&(t[r]=n[h-1]),n[h]=r)}}for(h=n.length,f=n[h-1];h-- >0;)n[h]=f,f=t[f];return n}function yd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yd(t)}function Cc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Cb=Symbol.for("v-scx"),xb=()=>Ot(Cb);function al(e,t){return ll(e,null,t)}function Fe(e,t,n){return ll(e,t,n)}function ll(e,t,n=Pe){const{immediate:r,deep:i,flush:h,once:f}=n,g=pt({},n),s=t&&r||!t&&h!=="post";let p;if(Zr){if(h==="sync"){const l=xb();p=l.__watcherHandles||(l.__watcherHandles=[])}else if(!s){const l=()=>{};return l.stop=Qt,l.resume=Qt,l.pause=Qt,l}}const o=ut;g.call=(l,c,d)=>Jt(l,o,c,d);let a=!1;h==="post"?g.scheduler=l=>{kt(l,o&&o.suspense)}:h!=="sync"&&(a=!0,g.scheduler=(l,c)=>{c?l():nl(l)}),g.augmentJob=l=>{t&&(l.flags|=4),a&&(l.flags|=2,o&&(l.id=o.uid,l.i=o))};const u=W0(e,t,g);return Zr&&(p?p.push(u):s&&u()),u}function Ab(e,t,n){const r=this.proxy,i=et(e)?e.includes(".")?bd(r,e):()=>r[e]:e.bind(r,r);let h;xe(t)?h=t:(h=t.handler,n=t);const f=li(this),g=ll(i,h.bind(r),n);return f(),g}function bd(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const kb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Nt(t)}Modifiers`]||e[`${Gn(t)}Modifiers`];function Eb(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Pe;let i=n;const h=t.startsWith("update:"),f=h&&kb(r,t.slice(7));f&&(f.trim&&(i=n.map(o=>et(o)?o.trim():o)),f.number&&(i=n.map(ea)));let g,s=r[g=hs(t)]||r[g=hs(Nt(t))];!s&&h&&(s=r[g=hs(Gn(t))]),s&&Jt(s,e,6,i);const p=r[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,Jt(p,e,6,i)}}function wd(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const h=e.emits;let f={},g=!1;if(!xe(e)){const s=p=>{const o=wd(p,t,!0);o&&(g=!0,pt(f,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!h&&!g?(Ye(e)&&r.set(e,null),null):(Ae(h)?h.forEach(s=>f[s]=null):pt(f,h),Ye(e)&&r.set(e,f),f)}function Ro(e,t){return!e||!_o(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,Gn(t))||Ie(e,t))}function xc(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[h],slots:f,attrs:g,emit:s,render:p,renderCache:o,props:a,data:u,setupState:l,ctx:c,inheritAttrs:d}=e,m=ro(e);let v,y;try{if(n.shapeFlag&4){const $=i||r,w=$;v=Kt(p.call(w,$,o,a,l,u,c)),y=g}else{const $=t;v=Kt($.length>1?$(a,{attrs:g,slots:f,emit:s}):$(a,null)),y=t.props?g:Mb(g)}}catch($){zr.length=0,To($,e,1),v=ie(xn)}let _=v;if(y&&d!==!1){const $=Object.keys(y),{shapeFlag:w}=_;$.length&&w&7&&(h&&$.some(Ua)&&(y=Tb(y,h)),_=lr(_,y,!1,!0))}return n.dirs&&(_=lr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&il(_,n.transition),v=_,ro(m),v}const Mb=e=>{let t;for(const n in e)(n==="class"||n==="style"||_o(n))&&((t||(t={}))[n]=e[n]);return t},Tb=(e,t)=>{const n={};for(const r in e)(!Ua(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Lb(e,t,n){const{props:r,children:i,component:h}=e,{props:f,children:g,patchFlag:s}=t,p=h.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?Ac(r,f,p):!!f;if(s&8){const o=t.dynamicProps;for(let a=0;a<o.length;a++){const u=o[a];if(f[u]!==r[u]&&!Ro(p,u))return!0}}}else return(i||g)&&(!g||!g.$stable)?!0:r===f?!1:r?f?Ac(r,f,p):!0:!!f;return!1}function Ac(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const h=r[i];if(t[h]!==e[h]&&!Ro(n,h))return!0}return!1}function Rb({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Sd=e=>e.__isSuspense;function Ib(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):H0(e)}const Ee=Symbol.for("v-fgt"),Io=Symbol.for("v-txt"),xn=Symbol.for("v-cmt"),Fi=Symbol.for("v-stc"),zr=[];let Mt=null;function K(e=!1){zr.push(Mt=e?null:[])}function Ob(){zr.pop(),Mt=zr[zr.length-1]||null}let Gr=1;function kc(e,t=!1){Gr+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function $d(e){return e.dynamicChildren=Gr>0?Mt||nr:null,Ob(),Gr>0&&Mt&&Mt.push(e),e}function re(e,t,n,r,i,h){return $d(P(e,t,n,r,i,h,!0))}function me(e,t,n,r,i){return $d(ie(e,t,n,r,i,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function xr(e,t){return e.type===t.type&&e.key===t.key}const _d=({key:e})=>e??null,Pi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?et(e)||Je(e)||xe(e)?{i:Et,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,r=0,i=null,h=e===Ee?0:1,f=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_d(t),ref:t&&Pi(t),scopeId:qf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:h,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Et};return g?(ul(s,n),h&128&&e.normalize(s)):n&&(s.shapeFlag|=et(n)?8:16),Gr>0&&!f&&Mt&&(s.patchFlag>0||h&6)&&s.patchFlag!==32&&Mt.push(s),s}const ie=Nb;function Nb(e,t=null,n=null,r=0,i=null,h=!1){if((!e||e===ib)&&(e=xn),oo(e)){const g=lr(e,t,!0);return n&&ul(g,n),Gr>0&&!h&&Mt&&(g.shapeFlag&6?Mt[Mt.indexOf(e)]=g:Mt.push(g)),g.patchFlag=-2,g}if(Gb(e)&&(e=e.__vccOpts),t){t=Db(t);let{class:g,style:s}=t;g&&!et(g)&&(t.class=oi(g)),Ye(s)&&(el(s)&&!Ae(s)&&(s=pt({},s)),t.style=Za(s))}const f=et(e)?1:Sd(e)?128:V0(e)?64:Ye(e)?4:xe(e)?2:0;return P(e,t,n,r,i,f,h,!0)}function Db(e){return e?el(e)||hd(e)?pt({},e):e:null}function lr(e,t,n=!1,r=!1){const{props:i,ref:h,patchFlag:f,children:g,transition:s}=e,p=t?Fb(i||{},t):i,o={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&_d(p),ref:t&&t.ref?n&&h?Ae(h)?h.concat(Pi(t)):[h,Pi(t)]:Pi(t):h,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lr(e.ssContent),ssFallback:e.ssFallback&&lr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&il(o,s.clone(o)),o}function Ge(e=" ",t=0){return ie(Io,null,e,t)}function cl(e,t){const n=ie(Fi,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?(K(),me(xn,null,e)):ie(xn,null,e)}function Kt(e){return e==null||typeof e=="boolean"?ie(xn):Ae(e)?ie(Ee,null,e.slice()):oo(e)?vn(e):ie(Io,null,String(e))}function vn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:lr(e)}function ul(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ae(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),ul(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!hd(t)?t._ctx=Et:i===3&&Et&&(Et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xe(t)?(t={default:t,_ctx:Et},n=32):(t=String(t),r&64?(n=16,t=[Ge(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fb(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=oi([t.class,r.class]));else if(i==="style")t.style=Za([t.style,r.style]);else if(_o(i)){const h=t[i],f=r[i];f&&h!==f&&!(Ae(h)&&h.includes(f))&&(t[i]=h?[].concat(h,f):f)}else i!==""&&(t[i]=r[i])}return t}function Gt(e,t,n,r=null){Jt(e,t,7,[n,r])}const Pb=ad();let zb=0;function Wb(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Pb,h={uid:zb++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ef(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dd(r,i),emitsOptions:wd(r,i),emit:null,emitted:null,propsDefaults:Pe,inheritAttrs:r.inheritAttrs,ctx:Pe,data:Pe,props:Pe,attrs:Pe,slots:Pe,refs:Pe,setupState:Pe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return h.ctx={_:h},h.root=t?t.root:h,h.emit=Eb.bind(null,h),e.ce&&e.ce(h),h}let ut=null;const vr=()=>ut||Et;let so,la;{const e=Ao(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),h=>{i.length>1?i.forEach(f=>f(h)):i[0](h)}};so=t("__VUE_INSTANCE_SETTERS__",n=>ut=n),la=t("__VUE_SSR_SETTERS__",n=>Zr=n)}const li=e=>{const t=ut;return so(e),e.scope.on(),()=>{e.scope.off(),so(t)}},Ec=()=>{ut&&ut.scope.off(),so(null)};function Cd(e){return e.vnode.shapeFlag&4}let Zr=!1;function jb(e,t=!1,n=!1){t&&la(t);const{props:r,children:i}=e.vnode,h=Cd(e);pb(e,r,h,t),yb(e,i,n||t);const f=h?Bb(e,t):void 0;return t&&la(!1),f}function Bb(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,sb);const{setup:r}=n;if(r){cn();const i=e.setupContext=r.length>1?Ub(e):null,h=li(e),f=si(r,e,0,[e.props,i]),g=Sf(f);if(un(),h(),(g||e.sp)&&!Fr(e)&&ed(e),g){if(f.then(Ec,Ec),t)return f.then(s=>{Mc(e,s)}).catch(s=>{To(s,e,0)});e.asyncDep=f}else Mc(e,f)}else xd(e)}function Mc(e,t,n){xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ye(t)&&(e.setupState=Zf(t)),xd(e)}function xd(e,t,n){const r=e.type;e.render||(e.render=r.render||Qt);{const i=li(e);cn();try{ab(e)}finally{un(),i()}}}const Hb={get(e,t){return ct(e,"get",""),e[t]}};function Ub(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hb),slots:e.slots,emit:e.emit,expose:t}}function Oo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zf(Vf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pr)return Pr[n](e)},has(t,n){return n in t||n in Pr}})):e.proxy}function Vb(e,t=!0){return xe(e)?e.displayName||e.name:e.name||t&&e.__name}function Gb(e){return xe(e)&&"__vccOpts"in e}const ye=(e,t)=>P0(e,t,Zr);function No(e,t,n){const r=arguments.length;return r===2?Ye(t)&&!Ae(t)?oo(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&oo(n)&&(n=[n]),ie(e,t,n))}const Zb="3.5.20";/**
|
576
|
+
* @vue/runtime-dom v3.5.20
|
577
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
578
|
+
* @license MIT
|
579
|
+
**/let ca;const Tc=typeof window<"u"&&window.trustedTypes;if(Tc)try{ca=Tc.createPolicy("vue",{createHTML:e=>e})}catch{}const Ad=ca?e=>ca.createHTML(e):e=>e,Yb="http://www.w3.org/2000/svg",Kb="http://www.w3.org/1998/Math/MathML",tn=typeof document<"u"?document:null,Lc=tn&&tn.createElement("template"),Xb={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?tn.createElementNS(Yb,e):t==="mathml"?tn.createElementNS(Kb,e):n?tn.createElement(e,{is:n}):tn.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,h){const f=n?n.previousSibling:t.lastChild;if(i&&(i===h||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===h||!(i=i.nextSibling)););else{Lc.innerHTML=Ad(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const g=Lc.content;if(r==="svg"||r==="mathml"){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[f?f.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qb=Symbol("_vtc");function Jb(e,t,n){const r=e[Qb];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Rc=Symbol("_vod"),qb=Symbol("_vsh"),ew=Symbol(""),tw=/(^|;)\s*display\s*:/;function nw(e,t,n){const r=e.style,i=et(n);let h=!1;if(n&&!i){if(t)if(et(t))for(const f of t.split(";")){const g=f.slice(0,f.indexOf(":")).trim();n[g]==null&&zi(r,g,"")}else for(const f in t)n[f]==null&&zi(r,f,"");for(const f in n)f==="display"&&(h=!0),zi(r,f,n[f])}else if(i){if(t!==n){const f=r[ew];f&&(n+=";"+f),r.cssText=n,h=tw.test(n)}}else t&&e.removeAttribute("style");Rc in e&&(e[Rc]=h?r.display:"",e[qb]&&(r.display="none"))}const Ic=/\s*!important$/;function zi(e,t,n){if(Ae(n))n.forEach(r=>zi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rw(e,t);Ic.test(n)?e.setProperty(Gn(r),n.replace(Ic,""),"important"):e[r]=n}}const Oc=["Webkit","Moz","ms"],ys={};function rw(e,t){const n=ys[t];if(n)return n;let r=Nt(t);if(r!=="filter"&&r in e)return ys[t]=r;r=ii(r);for(let i=0;i<Oc.length;i++){const h=Oc[i]+r;if(h in e)return ys[t]=h}return t}const Nc="http://www.w3.org/1999/xlink";function Dc(e,t,n,r,i,h=u0(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Nc,t.slice(6,t.length)):e.setAttributeNS(Nc,t,n):n==null||h&&!xf(n)?e.removeAttribute(t):e.setAttribute(t,h?"":An(n)?String(n):n)}function Fc(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ad(n):n);return}const h=e.tagName;if(t==="value"&&h!=="PROGRESS"&&!h.includes("-")){const g=h==="OPTION"?e.getAttribute("value")||"":e.value,s=n==null?e.type==="checkbox"?"on":"":String(n);(g!==s||!("_value"in e))&&(e.value=s),n==null&&e.removeAttribute(t),e._value=n;return}let f=!1;if(n===""||n==null){const g=typeof e[t];g==="boolean"?n=xf(n):n==null&&g==="string"?(n="",f=!0):g==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(i||t)}function Xn(e,t,n,r){e.addEventListener(t,n,r)}function iw(e,t,n,r){e.removeEventListener(t,n,r)}const Pc=Symbol("_vei");function ow(e,t,n,r,i=null){const h=e[Pc]||(e[Pc]={}),f=h[t];if(r&&f)f.value=r;else{const[g,s]=sw(t);if(r){const p=h[t]=cw(r,i);Xn(e,g,p,s)}else f&&(iw(e,g,f,s),h[t]=void 0)}}const zc=/(?:Once|Passive|Capture)$/;function sw(e){let t;if(zc.test(e)){t={};let r;for(;r=e.match(zc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gn(e.slice(2)),t]}let bs=0;const aw=Promise.resolve(),lw=()=>bs||(aw.then(()=>bs=0),bs=Date.now());function cw(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Jt(uw(r,n.value),t,5,[r])};return n.value=e,n.attached=lw(),n}function uw(e,t){if(Ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Wc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hw=(e,t,n,r,i,h)=>{const f=i==="svg";t==="class"?Jb(e,r,f):t==="style"?nw(e,n,r):_o(t)?Ua(t)||ow(e,t,n,r,h):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fw(e,t,r,f))?(Fc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dc(e,t,r,f,h,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!et(r))?Fc(e,Nt(t),r,h,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Dc(e,t,r,f))};function fw(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wc(t)&&xe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Wc(t)&&et(n)?!1:t in e}const jc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?n=>Ni(t,n):t};function dw(e){e.target.composing=!0}function Bc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ws=Symbol("_assign"),hl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ws]=jc(i);const h=r||i.props&&i.props.type==="number";Xn(e,t?"change":"input",f=>{if(f.target.composing)return;let g=e.value;n&&(g=g.trim()),h&&(g=ea(g)),e[ws](g)}),n&&Xn(e,"change",()=>{e.value=e.value.trim()}),t||(Xn(e,"compositionstart",dw),Xn(e,"compositionend",Bc),Xn(e,"change",Bc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:h}},f){if(e[ws]=jc(f),e.composing)return;const g=(h||e.type==="number")&&!/^0\d/.test(e.value)?ea(e.value):e.value,s=t??"";g!==s&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===s)||(e.value=s))}},pw=pt({patchProp:hw},Xb);let Hc;function gw(){return Hc||(Hc=wb(pw))}const mw=(...e)=>{const t=gw().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=yw(r);if(!i)return;const h=t._component;!xe(h)&&!h.render&&!h.template&&(h.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const f=n(i,!1,vw(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),f},t};function vw(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yw(e){return et(e)?document.querySelector(e):e}function at(e,t,n){return(t=$w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(r){at(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bw(e,t){if(e==null)return{};var n,r,i=ww(e,t);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);for(r=0;r<h.length;r++)n=h[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ww(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Sw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $w(e){var t=Sw(e,"string");return typeof t=="symbol"?t:t+""}function ao(e){"@babel/helpers - typeof";return ao=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},ao(e)}function Ss(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?at({},e,t):{}}function _w(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"},at(at(at(at(at(at(at(at(at(at(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),at(at(at(at(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}var Cw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},kd={exports:{}};(function(e){(function(t){var n=function(v,y,_){if(!p(y)||a(y)||u(y)||l(y)||s(y))return y;var $,w=0,b=0;if(o(y))for($=[],b=y.length;w<b;w++)$.push(n(v,y[w],_));else{$={};for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&($[v(A,_)]=n(v,y[A],_))}return $},r=function(v,y){y=y||{};var _=y.separator||"_",$=y.split||/(?=[A-Z])/;return v.split($).join(_)},i=function(v){return c(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(y,_){return _?_.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},h=function(v){var y=i(v);return y.substr(0,1).toUpperCase()+y.substr(1)},f=function(v,y){return r(v,y).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},p=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},a=function(v){return g.call(v)=="[object Date]"},u=function(v){return g.call(v)=="[object RegExp]"},l=function(v){return g.call(v)=="[object Boolean]"},c=function(v){return v=v-0,v===v},d=function(v,y){var _=y&&"process"in y?y.process:y;return typeof _!="function"?v:function($,w){return _($,v,w)}},m={camelize:i,decamelize:f,pascalize:h,depascalize:f,camelizeKeys:function(v,y){return n(d(i,y),v)},decamelizeKeys:function(v,y){return n(d(f,y),v,y)},pascalizeKeys:function(v,y){return n(d(h,y),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(Cw)})(kd);var xw=kd.exports,Aw=["class","style"];function kw(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=xw.camelize(n.slice(0,r)),h=n.slice(r+1).trim();return t[i]=h,t},{})}function Ew(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Ed(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 r=(e.children||[]).map(function(s){return Ed(s)}),i=Object.keys(e.attributes||{}).reduce(function(s,p){var o=e.attributes[p];switch(p){case"class":s.class=Ew(o);break;case"style":s.style=kw(o);break;default:s.attrs[p]=o}return s},{attrs:{},class:{},style:{}});n.class;var h=n.style,f=h===void 0?{}:h,g=bw(n,Aw);return No(e.tag,on(on(on({},t),{},{class:i.class,style:on(on({},i.style),f)},i.attrs),g),r)}var Md=!1;try{Md=!0}catch{}function Mw(){if(!Md&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Vc(e){if(e&&ao(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(qs.icon)return qs.icon(e);if(e===null)return null;if(ao(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 Tw=ve({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,i=ye(function(){return Vc(t.icon)}),h=ye(function(){return Ss("classes",_w(t))}),f=ye(function(){return Ss("transform",typeof t.transform=="string"?qs.transform(t.transform):t.transform)}),g=ye(function(){return Ss("mask",Vc(t.mask))}),s=ye(function(){var o=on(on(on(on({},h.value),f.value),g.value),{},{symbol:t.symbol,maskId:t.maskId});return o.title=t.title,o.titleId=t.titleId,Iy(i.value,o)});Fe(s,function(o){if(!o)return Mw("Could not find one or more icon(s)",i.value,g.value)},{immediate:!0});var p=ye(function(){return s.value?Ed(s.value.abstract[0],{},r):null});return function(){return p.value}}});function fl(e){return Ya()?(Mf(e),!0):!1}const $s=new WeakMap,Lw=(...e)=>{var t;const n=e[0],r=(t=vr())==null?void 0:t.proxy;if(r==null&&!ld())throw new Error("injectLocal must be called in setup");return r&&$s.has(r)&&n in $s.get(r)?$s.get(r)[n]:Ot(...e)},Td=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Rw=e=>e!=null,Iw=Object.prototype.toString,Ow=e=>Iw.call(e)==="[object Object]",Nw=()=>{};function dl(...e){if(e.length!==1)return tl(...e);const t=e[0];return typeof t=="function"?Mo(Yf(()=>({get:t,set:Nw}))):Ne(t)}function Dw(e,t){function n(...r){return new Promise((i,h)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(h)})}return n}const Ld=e=>e();function Fw(e=Ld,t={}){const{initialState:n="active"}=t,r=dl(n==="active");function i(){r.value=!1}function h(){r.value=!0}const f=(...g)=>{r.value&&e(...g)};return{isActive:Mo(r),pause:i,resume:h,eventFilter:f}}function Gc(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Wi(e){return Array.isArray(e)?e:[e]}function Pw(e){return vr()}function zw(e,t,n={}){const{eventFilter:r=Ld,...i}=n;return Fe(e,Dw(r,t),i)}function Ww(e,t,n={}){const{eventFilter:r,initialState:i="active",...h}=n,{eventFilter:f,pause:g,resume:s,isActive:p}=Fw(r,{initialState:i});return{stop:zw(e,t,{...h,eventFilter:f}),pause:g,resume:s,isActive:p}}function Rd(e,t=!0,n){Pw()?qe(e,n):t?e():ai(e)}function ci(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,i=Je(e),h=Fn(e);function f(g){if(arguments.length)return h.value=g,h.value;{const s=ft(n);return h.value=h.value===s?ft(r):s,h.value}}return i?f:[h,f]}function jw(e,t,n){return Fe(e,t,{...n,immediate:!0})}const cr=Td?window:void 0,Bw=Td?window.document:void 0;function pl(e){var t;const n=ft(e);return(t=n?.$el)!=null?t:n}function ua(...e){const t=[],n=()=>{t.forEach(g=>g()),t.length=0},r=(g,s,p,o)=>(g.addEventListener(s,p,o),()=>g.removeEventListener(s,p,o)),i=ye(()=>{const g=Wi(ft(e[0])).filter(s=>s!=null);return g.every(s=>typeof s!="string")?g:void 0}),h=jw(()=>{var g,s;return[(s=(g=i.value)==null?void 0:g.map(p=>pl(p)))!=null?s:[cr].filter(p=>p!=null),Wi(ft(i.value?e[1]:e[0])),Wi(oe(i.value?e[2]:e[1])),ft(i.value?e[3]:e[2])]},([g,s,p,o])=>{if(n(),!g?.length||!s?.length||!p?.length)return;const a=Ow(o)?{...o}:o;t.push(...g.flatMap(u=>s.flatMap(l=>p.map(c=>r(u,l,c,a)))))},{flush:"post"}),f=()=>{h(),n()};return fl(n),f}function Hw(){const e=Fn(!1),t=vr();return t&&qe(()=>{e.value=!0},t),e}function Id(e){const t=Hw();return ye(()=>(t.value,!!e()))}function Uw(e,t,n={}){const{window:r=cr,...i}=n;let h;const f=Id(()=>r&&"MutationObserver"in r),g=()=>{h&&(h.disconnect(),h=void 0)},s=ye(()=>{const u=ft(e),l=Wi(u).map(pl).filter(Rw);return new Set(l)}),p=Fe(()=>s.value,u=>{g(),f.value&&u.size&&(h=new MutationObserver(t),u.forEach(l=>h.observe(l,i)))},{immediate:!0,flush:"post"}),o=()=>h?.takeRecords(),a=()=>{p(),g()};return fl(a),{isSupported:f,stop:a,takeRecords:o}}const Vw=Symbol("vueuse-ssr-width");function Gw(){const e=ld()?Lw(Vw,null):null;return typeof e=="number"?e:void 0}function Zw(e,t={}){const{window:n=cr,ssrWidth:r=Gw()}=t,i=Id(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),h=Fn(typeof r=="number"),f=Fn(),g=Fn(!1),s=p=>{g.value=p.matches};return al(()=>{if(h.value){h.value=!i.value;const p=ft(e).split(",");g.value=p.some(o=>{const a=o.includes("not all"),u=o.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),l=o.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let c=!!(u||l);return u&&c&&(c=r>=Gc(u[1])),l&&c&&(c=r<=Gc(l[1])),a?!c:c});return}i.value&&(f.value=n.matchMedia(ft(e)),g.value=f.value.matches)}),ua(f,"change",s,{passive:!0}),ye(()=>g.value)}const _i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ci="__vueuse_ssr_handlers__",Yw=Kw();function Kw(){return Ci in _i||(_i[Ci]=_i[Ci]||{}),_i[Ci]}function Od(e,t){return Yw[e]||t}function Xw(e){return Zw("(prefers-color-scheme: dark)",e)}function Qw(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Jw={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Zc="vueuse-storage";function qw(e,t,n,r={}){var i;const{flush:h="pre",deep:f=!0,listenToStorageChanges:g=!0,writeDefaults:s=!0,mergeDefaults:p=!1,shallow:o,window:a=cr,eventFilter:u,onError:l=O=>{console.error(O)},initOnMounted:c}=r,d=(o?Fn:Ne)(typeof t=="function"?t():t),m=ye(()=>ft(e));if(!n)try{n=Od("getDefaultStorage",()=>{var O;return(O=cr)==null?void 0:O.localStorage})()}catch(O){l(O)}if(!n)return d;const v=ft(t),y=Qw(v),_=(i=r.serializer)!=null?i:Jw[y],{pause:$,resume:w}=Ww(d,()=>A(d.value),{flush:h,deep:f,eventFilter:u});Fe(m,()=>E(),{flush:h}),a&&g&&Rd(()=>{n instanceof Storage?ua(a,"storage",E,{passive:!0}):ua(a,Zc,L),c&&E()}),c||E();function b(O,M){if(a){const x={key:m.value,oldValue:O,newValue:M,storageArea:n};a.dispatchEvent(n instanceof Storage?new StorageEvent("storage",x):new CustomEvent(Zc,{detail:x}))}}function A(O){try{const M=n.getItem(m.value);if(O==null)b(M,null),n.removeItem(m.value);else{const x=_.write(O);M!==x&&(n.setItem(m.value,x),b(M,x))}}catch(M){l(M)}}function R(O){const M=O?O.newValue:n.getItem(m.value);if(M==null)return s&&v!=null&&n.setItem(m.value,_.write(v)),v;if(!O&&p){const x=_.read(M);return typeof p=="function"?p(x,v):y==="object"&&!Array.isArray(x)?{...v,...x}:x}else return typeof M!="string"?M:_.read(M)}function E(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){d.value=v;return}if(!(O&&O.key!==m.value)){$();try{O?.newValue!==_.write(d.value)&&(d.value=R(O))}catch(M){l(M)}finally{O?ai(w):w()}}}}function L(O){E(O.detail)}return d}const e1="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function t1(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=cr,storage:h,storageKey:f="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:s,emitAuto:p,disableTransition:o=!0}=e,a={auto:"",light:"light",dark:"dark",...e.modes||{}},u=Xw({window:i}),l=ye(()=>u.value?"dark":"light"),c=s||(f==null?dl(r):qw(f,r,h,{window:i,listenToStorageChanges:g})),d=ye(()=>c.value==="auto"?l.value:c.value),m=Od("updateHTMLAttrs",($,w,b)=>{const A=typeof $=="string"?i?.document.querySelector($):pl($);if(!A)return;const R=new Set,E=new Set;let L=null;if(w==="class"){const M=b.split(/\s/g);Object.values(a).flatMap(x=>(x||"").split(/\s/g)).filter(Boolean).forEach(x=>{M.includes(x)?R.add(x):E.add(x)})}else L={key:w,value:b};if(R.size===0&&E.size===0&&L===null)return;let O;o&&(O=i.document.createElement("style"),O.appendChild(document.createTextNode(e1)),i.document.head.appendChild(O));for(const M of R)A.classList.add(M);for(const M of E)A.classList.remove(M);L&&A.setAttribute(L.key,L.value),o&&(i.getComputedStyle(O).opacity,document.head.removeChild(O))});function v($){var w;m(t,n,(w=a[$])!=null?w:$)}function y($){e.onChanged?e.onChanged($,v):v($)}Fe(d,y,{flush:"post",immediate:!0}),Rd(()=>y(d.value));const _=ye({get(){return p?c.value:d.value},set($){c.value=$}});return Object.assign(_,{store:c,system:l,state:d})}function Nd(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=t1({...e,onChanged:(f,g)=>{var s;e.onChanged?(s=e.onChanged)==null||s.call(e,f==="dark",g,f):g(f)},modes:{dark:t,light:n}}),i=ye(()=>r.system.value);return ye({get(){return r.value==="dark"},set(f){const g=f?"dark":"light";i.value===g?r.value="auto":r.value=g}})}function dn(e=null,t={}){var n,r,i;const{document:h=Bw,restoreOnUnmount:f=a=>a}=t,g=(n=h?.title)!=null?n:"",s=dl((r=e??h?.title)!=null?r:null),p=!!(e&&typeof e=="function");function o(a){if(!("titleTemplate"in t))return a;const u=t.titleTemplate||"%s";return typeof u=="function"?u(a):ft(u).replace(/%s/g,a)}return Fe(s,(a,u)=>{a!==u&&h&&(h.title=o(a??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&h&&!p&&Uw((i=h.head)==null?void 0:i.querySelector("title"),()=>{h&&h.title!==s.value&&(s.value=o(h.title))},{childList:!0}),fl(()=>{if(f){const a=f(g,s.value||"");a!=null&&h&&(h.title=a)}}),s}const n1={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},r1={class:"navbar-menu"},i1={class:"navbar-start"},o1={class:"navbar-end"},s1={class:"navbar-item"},a1=ve({__name:"NavbarItem",setup(e){const t=Nd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=ci(t);return(r,i)=>{const h=De("router-link"),f=De("font-awesome-icon");return K(),re("nav",n1,[i[8]||(i[8]=P("div",{class:"navbar-brand"},[P("a",{class:"navbar-item"},[P("h1",{class:"title"},"Mihari")])],-1)),P("div",r1,[P("div",i1,[ie(h,{class:"navbar-item",to:{name:"Alerts"}},{default:Ve(()=>[...i[1]||(i[1]=[Ge("Alerts",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"Artifacts"}},{default:Ve(()=>[...i[2]||(i[2]=[Ge("Artifacts",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"Rules"}},{default:Ve(()=>[...i[3]||(i[3]=[Ge("Rules",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"NewRule"}},{default:Ve(()=>[...i[4]||(i[4]=[Ge("New Rule",-1)])]),_:1}),ie(h,{class:"navbar-item",to:{name:"Config"}},{default:Ve(()=>[...i[5]||(i[5]=[Ge("Config",-1)])]),_:1}),i[6]||(i[6]=P("a",{class:"navbar-item"},[P("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),i[7]||(i[7]=P("a",{class:"navbar-item"},[P("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1))]),P("div",o1,[P("div",s1,[P("span",{class:"icon",onClick:i[0]||(i[0]=g=>oe(n)())},[ie(f,{icon:oe(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),ui=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},l1=ui(a1,[["__scopeId","data-v-a9b95eb0"]]),c1={class:"section is-medium"},u1={class:"container"},h1=ve({__name:"App",setup(e){return(t,n)=>{const r=De("router-view");return K(),re(Ee,null,[ie(l1),P("section",c1,[P("div",u1,[ie(r)])])],64)}}});/*!
|
580
|
+
* vue-router v4.5.1
|
581
|
+
* (c) 2025 Eduardo San Martin Morote
|
582
|
+
* @license MIT
|
583
|
+
*/const Qn=typeof document<"u";function Dd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function f1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Dd(e.default)}const Re=Object.assign;function _s(e,t){const n={};for(const r in t){const i=t[r];n[r]=jt(i)?i.map(e):e(i)}return n}const Wr=()=>{},jt=Array.isArray,Fd=/#/g,d1=/&/g,p1=/\//g,g1=/=/g,m1=/\?/g,Pd=/\+/g,v1=/%5B/g,y1=/%5D/g,zd=/%5E/g,b1=/%60/g,Wd=/%7B/g,w1=/%7C/g,jd=/%7D/g,S1=/%20/g;function gl(e){return encodeURI(""+e).replace(w1,"|").replace(v1,"[").replace(y1,"]")}function $1(e){return gl(e).replace(Wd,"{").replace(jd,"}").replace(zd,"^")}function ha(e){return gl(e).replace(Pd,"%2B").replace(S1,"+").replace(Fd,"%23").replace(d1,"%26").replace(b1,"`").replace(Wd,"{").replace(jd,"}").replace(zd,"^")}function _1(e){return ha(e).replace(g1,"%3D")}function C1(e){return gl(e).replace(Fd,"%23").replace(m1,"%3F")}function x1(e){return e==null?"":C1(e).replace(p1,"%2F")}function Yr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const A1=/\/$/,k1=e=>e.replace(A1,"");function Cs(e,t,n="/"){let r,i={},h="",f="";const g=t.indexOf("#");let s=t.indexOf("?");return g<s&&g>=0&&(s=-1),s>-1&&(r=t.slice(0,s),h=t.slice(s+1,g>-1?g:t.length),i=e(h)),g>-1&&(r=r||t.slice(0,g),f=t.slice(g,t.length)),r=L1(r??t,n),{fullPath:r+(h&&"?")+h+f,path:r,query:i,hash:Yr(f)}}function E1(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Yc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function M1(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ur(t.matched[r],n.matched[i])&&Bd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ur(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Bd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!T1(e[n],t[n]))return!1;return!0}function T1(e,t){return jt(e)?Kc(e,t):jt(t)?Kc(t,e):e===t}function Kc(e,t){return jt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function L1(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let h=n.length-1,f,g;for(f=0;f<r.length;f++)if(g=r[f],g!==".")if(g==="..")h>1&&h--;else break;return n.slice(0,h).join("/")+"/"+r.slice(f).join("/")}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Kr;(function(e){e.pop="pop",e.push="push"})(Kr||(Kr={}));var jr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(jr||(jr={}));function R1(e){if(!e)if(Qn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),k1(e)}const I1=/^[^#]+#/;function O1(e,t){return e.replace(I1,"#")+t}function N1(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Do=()=>({left:window.scrollX,top:window.scrollY});function D1(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=N1(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Xc(e,t){return(history.state?history.state.position-t:-1)+e}const fa=new Map;function F1(e,t){fa.set(e,t)}function P1(e){const t=fa.get(e);return fa.delete(e),t}let z1=()=>location.protocol+"//"+location.host;function Hd(e,t){const{pathname:n,search:r,hash:i}=t,h=e.indexOf("#");if(h>-1){let g=i.includes(e.slice(h))?e.slice(h).length:1,s=i.slice(g);return s[0]!=="/"&&(s="/"+s),Yc(s,"")}return Yc(n,e)+r+i}function W1(e,t,n,r){let i=[],h=[],f=null;const g=({state:u})=>{const l=Hd(e,location),c=n.value,d=t.value;let m=0;if(u){if(n.value=l,t.value=u,f&&f===c){f=null;return}m=d?u.position-d.position:0}else r(l);i.forEach(v=>{v(n.value,c,{delta:m,type:Kr.pop,direction:m?m>0?jr.forward:jr.back:jr.unknown})})};function s(){f=n.value}function p(u){i.push(u);const l=()=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)};return h.push(l),l}function o(){const{history:u}=window;u.state&&u.replaceState(Re({},u.state,{scroll:Do()}),"")}function a(){for(const u of h)u();h=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:p,destroy:a}}function Qc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Do():null}}function j1(e){const{history:t,location:n}=window,r={value:Hd(e,n)},i={value:t.state};i.value||h(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function h(s,p,o){const a=e.indexOf("#"),u=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+s:z1()+e+s;try{t[o?"replaceState":"pushState"](p,"",u),i.value=p}catch(l){console.error(l),n[o?"replace":"assign"](u)}}function f(s,p){const o=Re({},t.state,Qc(i.value.back,s,i.value.forward,!0),p,{position:i.value.position});h(s,o,!0),r.value=s}function g(s,p){const o=Re({},i.value,t.state,{forward:s,scroll:Do()});h(o.current,o,!0);const a=Re({},Qc(r.value,s,null),{position:o.position+1},p);h(s,a,!1),r.value=s}return{location:r,state:i,push:g,replace:f}}function B1(e){e=R1(e);const t=j1(e),n=W1(e,t.state,t.location,t.replace);function r(h,f=!0){f||n.pauseListeners(),history.go(h)}const i=Re({location:"",base:e,go:r,createHref:O1.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function H1(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),B1(e)}function U1(e){return typeof e=="string"||e&&typeof e=="object"}function Ud(e){return typeof e=="string"||typeof e=="symbol"}const Vd=Symbol("");var Jc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Jc||(Jc={}));function hr(e,t){return Re(new Error,{type:e,[Vd]:!0},t)}function en(e,t){return e instanceof Error&&Vd in e&&(t==null||!!(e.type&t))}const qc="[^/]+?",V1={sensitive:!1,strict:!1,start:!0,end:!0},G1=/[.+*?^${}()[\]/\\]/g;function Z1(e,t){const n=Re({},V1,t),r=[];let i=n.start?"^":"";const h=[];for(const p of e){const o=p.length?[]:[90];n.strict&&!p.length&&(i+="/");for(let a=0;a<p.length;a++){const u=p[a];let l=40+(n.sensitive?.25:0);if(u.type===0)a||(i+="/"),i+=u.value.replace(G1,"\\$&"),l+=40;else if(u.type===1){const{value:c,repeatable:d,optional:m,regexp:v}=u;h.push({name:c,repeatable:d,optional:m});const y=v||qc;if(y!==qc){l+=10;try{new RegExp(`(${y})`)}catch($){throw new Error(`Invalid custom RegExp for param "${c}" (${y}): `+$.message)}}let _=d?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||(_=m&&p.length<2?`(?:/${_})`:"/"+_),m&&(_+="?"),i+=_,l+=20,m&&(l+=-8),d&&(l+=-20),y===".*"&&(l+=-50)}o.push(l)}r.push(o)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const f=new RegExp(i,n.sensitive?"":"i");function g(p){const o=p.match(f),a={};if(!o)return null;for(let u=1;u<o.length;u++){const l=o[u]||"",c=h[u-1];a[c.name]=l&&c.repeatable?l.split("/"):l}return a}function s(p){let o="",a=!1;for(const u of e){(!a||!o.endsWith("/"))&&(o+="/"),a=!1;for(const l of u)if(l.type===0)o+=l.value;else if(l.type===1){const{value:c,repeatable:d,optional:m}=l,v=c in p?p[c]:"";if(jt(v)&&!d)throw new Error(`Provided param "${c}" is an array but it is not repeatable (* or + modifiers)`);const y=jt(v)?v.join("/"):v;if(!y)if(m)u.length<2&&(o.endsWith("/")?o=o.slice(0,-1):a=!0);else throw new Error(`Missing required param "${c}"`);o+=y}}return o||"/"}return{re:f,score:r,keys:h,parse:g,stringify:s}}function Y1(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Gd(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const h=Y1(r[n],i[n]);if(h)return h;n++}if(Math.abs(i.length-r.length)===1){if(eu(r))return 1;if(eu(i))return-1}return i.length-r.length}function eu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const K1={type:0,value:""},X1=/[a-zA-Z0-9_]/;function Q1(e){if(!e)return[[]];if(e==="/")return[[K1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(l){throw new Error(`ERR (${n})/"${p}": ${l}`)}let n=0,r=n;const i=[];let h;function f(){h&&i.push(h),h=[]}let g=0,s,p="",o="";function a(){p&&(n===0?h.push({type:0,value:p}):n===1||n===2||n===3?(h.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),h.push({type:1,value:p,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),p="")}function u(){p+=s}for(;g<e.length;){if(s=e[g++],s==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:s==="/"?(p&&a(),f()):s===":"?(a(),n=1):u();break;case 4:u(),n=r;break;case 1:s==="("?n=2:X1.test(s)?u():(a(),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:a(),n=0,s!=="*"&&s!=="?"&&s!=="+"&&g--,o="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),a(),f(),i}function J1(e,t,n){const r=Z1(Q1(e.path),n),i=Re(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function q1(e,t){const n=[],r=new Map;t=iu({strict:!1,end:!0,sensitive:!1},t);function i(a){return r.get(a)}function h(a,u,l){const c=!l,d=nu(a);d.aliasOf=l&&l.record;const m=iu(t,a),v=[d];if("alias"in a){const $=typeof a.alias=="string"?[a.alias]:a.alias;for(const w of $)v.push(nu(Re({},d,{components:l?l.record.components:d.components,path:w,aliasOf:l?l.record:d})))}let y,_;for(const $ of v){const{path:w}=$;if(u&&w[0]!=="/"){const b=u.record.path,A=b[b.length-1]==="/"?"":"/";$.path=u.record.path+(w&&A+w)}if(y=J1($,u,m),l?l.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),c&&a.name&&!ru(y)&&f(a.name)),Zd(y)&&s(y),d.children){const b=d.children;for(let A=0;A<b.length;A++)h(b[A],y,l&&l.children[A])}l=l||y}return _?()=>{f(_)}:Wr}function f(a){if(Ud(a)){const u=r.get(a);u&&(r.delete(a),n.splice(n.indexOf(u),1),u.children.forEach(f),u.alias.forEach(f))}else{const u=n.indexOf(a);u>-1&&(n.splice(u,1),a.record.name&&r.delete(a.record.name),a.children.forEach(f),a.alias.forEach(f))}}function g(){return n}function s(a){const u=nS(a,n);n.splice(u,0,a),a.record.name&&!ru(a)&&r.set(a.record.name,a)}function p(a,u){let l,c={},d,m;if("name"in a&&a.name){if(l=r.get(a.name),!l)throw hr(1,{location:a});m=l.record.name,c=Re(tu(u.params,l.keys.filter(_=>!_.optional).concat(l.parent?l.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),a.params&&tu(a.params,l.keys.map(_=>_.name))),d=l.stringify(c)}else if(a.path!=null)d=a.path,l=n.find(_=>_.re.test(d)),l&&(c=l.parse(d),m=l.record.name);else{if(l=u.name?r.get(u.name):n.find(_=>_.re.test(u.path)),!l)throw hr(1,{location:a,currentLocation:u});m=l.record.name,c=Re({},u.params,a.params),d=l.stringify(c)}const v=[];let y=l;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:d,params:c,matched:v,meta:tS(v)}}e.forEach(a=>h(a));function o(){n.length=0,r.clear()}return{addRoute:h,resolve:p,removeRoute:f,clearRoutes:o,getRoutes:g,getRecordMatcher:i}}function tu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function nu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:eS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function eS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ru(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tS(e){return e.reduce((t,n)=>Re(t,n.meta),{})}function iu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function nS(e,t){let n=0,r=t.length;for(;n!==r;){const h=n+r>>1;Gd(e,t[h])<0?r=h:n=h+1}const i=rS(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function rS(e){let t=e;for(;t=t.parent;)if(Zd(t)&&Gd(e,t)===0)return t}function Zd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function iS(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const h=r[i].replace(Pd," "),f=h.indexOf("="),g=Yr(f<0?h:h.slice(0,f)),s=f<0?null:Yr(h.slice(f+1));if(g in t){let p=t[g];jt(p)||(p=t[g]=[p]),p.push(s)}else t[g]=s}return t}function ou(e){let t="";for(let n in e){const r=e[n];if(n=_1(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(jt(r)?r.map(h=>h&&ha(h)):[r&&ha(r)]).forEach(h=>{h!==void 0&&(t+=(t.length?"&":"")+n,h!=null&&(t+="="+h))})}return t}function oS(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=jt(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const sS=Symbol(""),su=Symbol(""),Fo=Symbol(""),ml=Symbol(""),da=Symbol("");function Ar(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function yn(e,t,n,r,i,h=f=>f()){const f=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((g,s)=>{const p=u=>{u===!1?s(hr(4,{from:n,to:t})):u instanceof Error?s(u):U1(u)?s(hr(2,{from:t,to:u})):(f&&r.enterCallbacks[i]===f&&typeof u=="function"&&f.push(u),g())},o=h(()=>e.call(r&&r.instances[i],t,n,p));let a=Promise.resolve(o);e.length<3&&(a=a.then(p)),a.catch(u=>s(u))})}function xs(e,t,n,r,i=h=>h()){const h=[];for(const f of e)for(const g in f.components){let s=f.components[g];if(!(t!=="beforeRouteEnter"&&!f.instances[g]))if(Dd(s)){const o=(s.__vccOpts||s)[t];o&&h.push(yn(o,n,r,f,g,i))}else{let p=s();h.push(()=>p.then(o=>{if(!o)throw new Error(`Couldn't resolve component "${g}" at "${f.path}"`);const a=f1(o)?o.default:o;f.mods[g]=o,f.components[g]=a;const l=(a.__vccOpts||a)[t];return l&&yn(l,n,r,f,g,i)()}))}}return h}function au(e){const t=Ot(Fo),n=Ot(ml),r=ye(()=>{const s=oe(e.to);return t.resolve(s)}),i=ye(()=>{const{matched:s}=r.value,{length:p}=s,o=s[p-1],a=n.matched;if(!o||!a.length)return-1;const u=a.findIndex(ur.bind(null,o));if(u>-1)return u;const l=lu(s[p-2]);return p>1&&lu(o)===l&&a[a.length-1].path!==l?a.findIndex(ur.bind(null,s[p-2])):u}),h=ye(()=>i.value>-1&&hS(n.params,r.value.params)),f=ye(()=>i.value>-1&&i.value===n.matched.length-1&&Bd(n.params,r.value.params));function g(s={}){if(uS(s)){const p=t[oe(e.replace)?"replace":"push"](oe(e.to)).catch(Wr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:r,href:ye(()=>r.value.href),isActive:h,isExactActive:f,navigate:g}}function aS(e){return e.length===1?e[0]:e}const lS=ve({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"},viewTransition:Boolean},useLink:au,setup(e,{slots:t}){const n=mr(au(e)),{options:r}=Ot(Fo),i=ye(()=>({[cu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[cu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const h=t.default&&aS(t.default(n));return e.custom?h:No("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},h)}}}),cS=lS;function uS(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 hS(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!jt(i)||i.length!==r.length||r.some((h,f)=>h!==i[f]))return!1}return!0}function lu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const cu=(e,t,n)=>e??t??n,fS=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ot(da),i=ye(()=>e.route||r.value),h=Ot(su,0),f=ye(()=>{let p=oe(h);const{matched:o}=i.value;let a;for(;(a=o[p])&&!a.components;)p++;return p}),g=ye(()=>i.value.matched[f.value]);Di(su,ye(()=>f.value+1)),Di(sS,g),Di(da,i);const s=Ne();return Fe(()=>[s.value,g.value,e.name],([p,o,a],[u,l,c])=>{o&&(o.instances[a]=p,l&&l!==o&&p&&p===u&&(o.leaveGuards.size||(o.leaveGuards=l.leaveGuards),o.updateGuards.size||(o.updateGuards=l.updateGuards))),p&&o&&(!l||!ur(o,l)||!u)&&(o.enterCallbacks[a]||[]).forEach(d=>d(p))},{flush:"post"}),()=>{const p=i.value,o=e.name,a=g.value,u=a&&a.components[o];if(!u)return uu(n.default,{Component:u,route:p});const l=a.props[o],c=l?l===!0?p.params:typeof l=="function"?l(p):l:null,m=No(u,Re({},c,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(a.instances[o]=null)},ref:s}));return uu(n.default,{Component:m,route:p})||m}}});function uu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const dS=fS;function pS(e){const t=q1(e.routes,e),n=e.parseQuery||iS,r=e.stringifyQuery||ou,i=e.history,h=Ar(),f=Ar(),g=Ar(),s=Fn(gn);let p=gn;Qn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=_s.bind(null,j=>""+j),a=_s.bind(null,x1),u=_s.bind(null,Yr);function l(j,Z){let X,Q;return Ud(j)?(X=t.getRecordMatcher(j),Q=Z):Q=j,t.addRoute(Q,X)}function c(j){const Z=t.getRecordMatcher(j);Z&&t.removeRoute(Z)}function d(){return t.getRoutes().map(j=>j.record)}function m(j){return!!t.getRecordMatcher(j)}function v(j,Z){if(Z=Re({},Z||s.value),typeof j=="string"){const Y=Cs(n,j,Z.path),q=t.resolve({path:Y.path},Z),te=i.createHref(Y.fullPath);return Re(Y,q,{params:u(q.params),hash:Yr(Y.hash),redirectedFrom:void 0,href:te})}let X;if(j.path!=null)X=Re({},j,{path:Cs(n,j.path,Z.path).path});else{const Y=Re({},j.params);for(const q in Y)Y[q]==null&&delete Y[q];X=Re({},j,{params:a(Y)}),Z.params=a(Z.params)}const Q=t.resolve(X,Z),le=j.hash||"";Q.params=o(u(Q.params));const z=E1(r,Re({},j,{hash:$1(le),path:Q.path})),B=i.createHref(z);return Re({fullPath:z,hash:le,query:r===ou?oS(j.query):j.query||{}},Q,{redirectedFrom:void 0,href:B})}function y(j){return typeof j=="string"?Cs(n,j,s.value.path):Re({},j)}function _(j,Z){if(p!==j)return hr(8,{from:Z,to:j})}function $(j){return A(j)}function w(j){return $(Re(y(j),{replace:!0}))}function b(j){const Z=j.matched[j.matched.length-1];if(Z&&Z.redirect){const{redirect:X}=Z;let Q=typeof X=="function"?X(j):X;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),Re({query:j.query,hash:j.hash,params:Q.path!=null?{}:j.params},Q)}}function A(j,Z){const X=p=v(j),Q=s.value,le=j.state,z=j.force,B=j.replace===!0,Y=b(X);if(Y)return A(Re(y(Y),{state:typeof Y=="object"?Re({},le,Y.state):le,force:z,replace:B}),Z||X);const q=X;q.redirectedFrom=Z;let te;return!z&&M1(r,Q,X)&&(te=hr(16,{to:q,from:Q}),F(Q,Q,!0,!1)),(te?Promise.resolve(te):L(q,Q)).catch(ne=>en(ne)?en(ne,2)?ne:D(ne):I(ne,q,Q)).then(ne=>{if(ne){if(en(ne,2))return A(Re({replace:B},y(ne.to),{state:typeof ne.to=="object"?Re({},le,ne.to.state):le,force:z}),Z||q)}else ne=M(q,Q,!0,B,le);return O(q,Q,ne),ne})}function R(j,Z){const X=_(j,Z);return X?Promise.reject(X):Promise.resolve()}function E(j){const Z=U.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(j):j()}function L(j,Z){let X;const[Q,le,z]=gS(j,Z);X=xs(Q.reverse(),"beforeRouteLeave",j,Z);for(const Y of Q)Y.leaveGuards.forEach(q=>{X.push(yn(q,j,Z))});const B=R.bind(null,j,Z);return X.push(B),V(X).then(()=>{X=[];for(const Y of h.list())X.push(yn(Y,j,Z));return X.push(B),V(X)}).then(()=>{X=xs(le,"beforeRouteUpdate",j,Z);for(const Y of le)Y.updateGuards.forEach(q=>{X.push(yn(q,j,Z))});return X.push(B),V(X)}).then(()=>{X=[];for(const Y of z)if(Y.beforeEnter)if(jt(Y.beforeEnter))for(const q of Y.beforeEnter)X.push(yn(q,j,Z));else X.push(yn(Y.beforeEnter,j,Z));return X.push(B),V(X)}).then(()=>(j.matched.forEach(Y=>Y.enterCallbacks={}),X=xs(z,"beforeRouteEnter",j,Z,E),X.push(B),V(X))).then(()=>{X=[];for(const Y of f.list())X.push(yn(Y,j,Z));return X.push(B),V(X)}).catch(Y=>en(Y,8)?Y:Promise.reject(Y))}function O(j,Z,X){g.list().forEach(Q=>E(()=>Q(j,Z,X)))}function M(j,Z,X,Q,le){const z=_(j,Z);if(z)return z;const B=Z===gn,Y=Qn?history.state:{};X&&(Q||B?i.replace(j.fullPath,Re({scroll:B&&Y&&Y.scroll},le)):i.push(j.fullPath,le)),s.value=j,F(j,Z,X,B),D()}let x;function C(){x||(x=i.listen((j,Z,X)=>{if(!G.listening)return;const Q=v(j),le=b(Q);if(le){A(Re(le,{replace:!0,force:!0}),Q).catch(Wr);return}p=Q;const z=s.value;Qn&&F1(Xc(z.fullPath,X.delta),Do()),L(Q,z).catch(B=>en(B,12)?B:en(B,2)?(A(Re(y(B.to),{force:!0}),Q).then(Y=>{en(Y,20)&&!X.delta&&X.type===Kr.pop&&i.go(-1,!1)}).catch(Wr),Promise.reject()):(X.delta&&i.go(-X.delta,!1),I(B,Q,z))).then(B=>{B=B||M(Q,z,!1),B&&(X.delta&&!en(B,8)?i.go(-X.delta,!1):X.type===Kr.pop&&en(B,20)&&i.go(-1,!1)),O(Q,z,B)}).catch(Wr)}))}let S=Ar(),k=Ar(),T;function I(j,Z,X){D(j);const Q=k.list();return Q.length?Q.forEach(le=>le(j,Z,X)):console.error(j),Promise.reject(j)}function N(){return T&&s.value!==gn?Promise.resolve():new Promise((j,Z)=>{S.add([j,Z])})}function D(j){return T||(T=!j,C(),S.list().forEach(([Z,X])=>j?X(j):Z()),S.reset()),j}function F(j,Z,X,Q){const{scrollBehavior:le}=e;if(!Qn||!le)return Promise.resolve();const z=!X&&P1(Xc(j.fullPath,0))||(Q||!X)&&history.state&&history.state.scroll||null;return ai().then(()=>le(j,Z,z)).then(B=>B&&D1(B)).catch(B=>I(B,j,Z))}const H=j=>i.go(j);let W;const U=new Set,G={currentRoute:s,listening:!0,addRoute:l,removeRoute:c,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:d,resolve:v,options:e,push:$,replace:w,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:h.add,beforeResolve:f.add,afterEach:g.add,onError:k.add,isReady:N,install(j){const Z=this;j.component("RouterLink",cS),j.component("RouterView",dS),j.config.globalProperties.$router=Z,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>oe(s)}),Qn&&!W&&s.value===gn&&(W=!0,$(i.location).catch(le=>{}));const X={};for(const le in gn)Object.defineProperty(X,le,{get:()=>s.value[le],enumerable:!0});j.provide(Fo,Z),j.provide(ml,Uf(X)),j.provide(da,s);const Q=j.unmount;U.add(j),j.unmount=function(){U.delete(j),U.size<1&&(p=gn,x&&x(),x=null,s.value=gn,W=!1,T=!1),Q()}}};function V(j){return j.reduce((Z,X)=>Z.then(()=>E(X)),Promise.resolve())}return G}function gS(e,t){const n=[],r=[],i=[],h=Math.max(t.matched.length,e.matched.length);for(let f=0;f<h;f++){const g=t.matched[f];g&&(e.matched.find(p=>ur(p,g))?r.push(g):n.push(g));const s=e.matched[f];s&&(t.matched.find(p=>ur(p,s))||i.push(s))}return[n,r,i]}function yr(){return Ot(Fo)}function mS(e){return Ot(ml)}function vS(e){return Ya()?(Mf(e),!0):!1}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const As=new WeakMap;function fr(e,t,n={}){const{mode:r="replace",route:i=mS(),router:h=yr(),transform:f}=n;let g=l=>l,s=l=>l;typeof f=="function"?g=f:f&&(f.get&&(g=f.get),f.set&&(s=f.set)),As.has(h)||As.set(h,new Map);const p=As.get(h);let o=i.query[e];vS(()=>{o=void 0});let a;const u=Yf((l,c)=>(a=c,{get(){return l(),g(o!==void 0?o:ft(t))},set(d){d=s(d),o!==d&&(o=d===ft(t)?void 0:d,p.set(e,d===ft(t)?void 0:d),c(),ai(()=>{if(p.size===0)return;const m=Object.fromEntries(p.entries());p.clear();const{params:v,query:y,hash:_}=i;h[ft(r)]({params:v,query:{...y,...m},hash:_})}))}}));return Fe(()=>i.query[e],l=>{o!==g(l)&&(o=l,a())},{flush:"sync"}),u}/*! CAF: shared.mjs
|
584
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
585
|
+
MIT License: http://getify.mit-license.org
|
586
|
+
*/const sn=Symbol("Cleanup Function"),vl=Symbol("Timeout Token"),qn=Symbol("Signal Reason"),ot=Symbol("Unset"),[ji,yS]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,bl(t.signal.reason)]}();class Bn{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[qn]=ot;var r=(i,h)=>{var f=()=>{if(h&&this.signal){let g=hi(this.signal);this._trackSignalReason(g),h(g!==ot?g:void 0)}h=null};this.signal.addEventListener("abort",f,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",f,!1),this.signal.pr&&(this.signal.pr[sn]=null)),f=null}};this.signal.pr=new Promise(r),this.signal.pr[sn]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:ot;this._trackSignalReason(n),this.controller&&(ji&&n!==ot?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[sn]&&this.signal.pr[sn](),this.signal.pr=null),delete this.signal[qn],ji||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==ot&&(ji||"reason"in this.signal||(this.signal.reason=t),this.signal[qn]===ot&&(this.signal[qn]=t))}}function hi(e){return e&&e.aborted?ji&&yS?bl(e.reason)?ot:e.reason:qn in e?e[qn]:ot:ot}function Yd(e){if(e.pr)return e.pr;var t,n=new Promise(function(i,h){t=()=>{if(h&&e){let f=hi(e);h(f!==ot?f:void 0)}h=null},e.addEventListener("abort",t,!1)});return n[sn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[sn]=t=null)},n.catch(n[sn]),n}function yl(e){e instanceof AbortController&&(e=new Bn(e));var t=e&&e instanceof Bn?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:Yd(t)}}function pa(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Rn(e){return typeof e=="function"}function bS(e){return e&&typeof e=="object"&&typeof e.then=="function"}function bl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function Po(e,t){bl(t)||t===ot?e.abort():e.abort(t)}/*! CAF: caf.mjs
|
587
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
588
|
+
MIT License: http://getify.mit-license.org
|
589
|
+
*/const ga=Object.assign(wS,{cancelToken:Bn,delay:Kd,timeout:SS,signalRace:$S,signalAll:_S,tokenCycle:CS});function wS(e){return function(n,...r){var i,h;if({tokenOrSignal:n,signal:i,signalPr:h}=yl(n),i.aborted)return h;var f=h.catch(function(a){var u=hi(i);u=u!==ot?u:a;try{var l=g.return();throw l.value!==void 0?l.value:u!==ot?u:void 0}finally{g=s=f=p=null}}),{it:g,result:s}=xS.call(this,e,i,...r),p=Promise.race([s,f]);if(n!==i&&n[vl]){let o=function(u){Po(n,u),Rn(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch(()=>{}),n=null;return r=null,p}}function Kd(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=yl(e)),n&&n.aborted?r:new Promise(function(h,f){n&&(r.catch(function(){if(f&&n&&g){let p=hi(n);clearTimeout(g),f(p!==ot?p:`delay (${t}) interrupted`),h=f=g=n=null}}),r=null);var g=setTimeout(function(){h(`delayed: ${t}`),h=f=g=n=null},t)})}function SS(e,t="Timeout"){e=Number(e)||0;var n=new Bn;return Kd(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,vl,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...i){Po(n,i.length>0?i[0]:ot),n.discard(),n=null}}function Xd(e){return e.reduce(function(n,r){var i=Yd(r);return n[0].push(i),r.pr||n[1].push(i),n},[[],[]])}function Qd(e,t,n){e.then(function(i){Po(t,i),t.discard(),t=null}).then(function(){for(let i of n)i[sn]&&i[sn]();n=null})}function Jd(e){return e.catch(t=>t)}function $S(e){var t=new Bn,[n,r]=Xd(e);return Qd(Jd(Promise.race(n)),t,r),t.signal}function _S(e){var t=new Bn,[n,r]=Xd(e);return Qd(Promise.all(n.map(Jd)),t,r),t.signal}function CS(){var e;return function(...n){return e&&(Po(e,n.length>0?n[0]:ot),e.discard()),e=new Bn}}function xS(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(i){try{var h=n.next(i);i=null}catch(f){return Promise.reject(f)}return function f(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(r,function(o){return Promise.resolve(n.throw(o)).then(f)})).catch(function(){n=null}),g=null,s}(h)}()}}/*! CAF: cag.mjs
|
590
|
+
v15.0.1 (c) 2022 Kyle Simpson
|
591
|
+
MIT License: http://getify.mit-license.org
|
592
|
+
*/va=ga(va);Object.assign(ep,{onEvent:tp,onceEvent:va});var ma=new WeakSet;const ks=Symbol("unset"),qd=Symbol("returned"),hu=Symbol("canceled");function ep(e){return function(n,...r){var i,h;if({tokenOrSignal:n,signal:i,signalPr:h}=yl(n),i.aborted){let a=hi(i);throw a=a!==ot?a:"Aborted",a}var f=pa(),{it:g,ait:s}=kS(e,f.pr,o,i,...r),p=s.return;return s.return=function(u){try{return f.pr.resolved=!0,f.resolve(qd),Promise.resolve(g.return(u))}finally{p.call(s),o()}},s;function o(){n&&n!==i&&n[vl]&&n.abort(),s&&(s.return=p,n=f=g=s=p=null)}}}function tp(e,t,n,r=!1){var i,h,f=!1,g=ep(function*({pwait:a}){f||s();try{for(;;){if(i.length==0){let{pr:u,resolve:l}=pa();i.push(u),h.push(l)}yield yield a(i.shift())}}finally{Rn(t.removeEventListener)?t.removeEventListener(n,p,r):Rn(t.removeListener)?t.removeListener(n,p):Rn(t.off)&&t.off(n,p),i.length=h.length=0}})(e,t,n,r);return g.start=s,g;function s(){f||(f=!0,i=[],h=[],Rn(t.addEventListener)?t.addEventListener(n,p,r):Rn(t.addListener)?t.addListener(n,p):Rn(t.on)&&t.on(n,p))}function p(o){if(h.length>0)h.shift()(o);else{let{pr:a,resolve:u}=pa();i.push(a),u(o)}}}function*va(e,t,n,r=!1){try{var i=tp(e,t,n,r);return(yield i.next()).value}finally{i.return()}}function AS(e){var t=Promise.resolve(e);return ma.add(t),t}function kS(e,t,n,r,...i){var h=e.call(this,{signal:r,pwait:AS},...i);e=i=null;var f=r.pr.catch(g=>{throw{[hu]:!0,reason:g}});return f.catch(()=>{}),{it:h,ait:async function*(){var s,p=ks;try{for(;!t.resolved;)if(p!==ks?(s=p,p=ks,s=h.throw(s)):s=h.next(s),bS(s.value))if(ma.has(s.value)){ma.delete(s.value);try{if((s=await Promise.race([t,f,s.value]))===qd)return}catch(o){if(o[hu]){let a=h.return();throw a.value!==void 0?a.value:o.reason}p=o}}else s=yield s.value;else{if(s.done)return s.value;s=yield s.value}}finally{h=t=null,n()}}()}}const ES=e=>e._runningInstances.length>=e._maxConcurrency,MS=e=>{const t=e._activeInstances[0];t&&t.cancel()},TS=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function kr(e,t){return t?LS(()=>e()._instances,t):ye(()=>[])}function LS(e,t,n){return ye(()=>e().filter(r=>r[t]))}function RS(e){return ye(()=>e().length)}function fu(e){return ye(()=>{const t=e();return t[t.length-1]})}function IS(e){return ye(()=>e()[0])}const np=e=>e;function rp(e){return mr(e)}function OS(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function gt(e){return FS(function*(t,...n){return e(t,...n)})}function NS(e,t,n){const r=np({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ye(()=>i.isCanceling&&i.isFinished),isActive:ye(()=>i.isRunning&&!i.isCanceling),isSuccessful:!1,isNotDropped:ye(()=>!i.isDropped),isError:ye(()=>!!i.error),status:ye(()=>{const f=i,g=[[f.isRunning,"running"],[f.isEnqueued,"enqueued"],[f.isCanceled,"canceled"],[f.isCanceling,"canceling"],[f.isDropped,"dropped"],[f.isError,"error"],[f.isSuccessful,"success"]].find(([s])=>s);return g&&g[1]}),error:null,value:null,cancel({force:f}={force:!1}){if(f||(i.isCanceling=!0,i.isEnqueued&&(i.isFinished=!0),i.isEnqueued=!1),i.token&&i._canAbort){i.token.abort("cancel");try{i.token.discard()}catch{}i.token=void 0,i._canAbort=!1}},canceledOn(f){return f.pr.catch(()=>{i.cancel()}),i},_run(){DS(i,e,t,n)},_handled:!0,_deferredObject:OS(),_shouldThrow:!1,_canAbort:!0,then(f,g){return i._shouldThrow=!0,i._deferredObject.promise.then(f,g)},catch(f,g=!0){return i._shouldThrow=g,i._deferredObject.promise.catch(f)},finally(f){return i._shouldThrow=!0,i._deferredObject.promise.finally(f)}}),i=rp(r),{modifiers:h}=n;return h.drop?i.isDropped=!0:h.enqueue?i.isEnqueued=!0:i._run(),i}function DS(e,t,n,r){const i=new ga.cancelToken,h=ga(t,i);e.token=i,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function f(){e.isRunning=!1,e.isFinished=!0}h.call(e,i,...n).then(g=>{e.value=g,e.isSuccessful=!0,f(),e._deferredObject.resolve(g),e._canAbort=!1,r.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),f(),e._shouldThrow&&e._deferredObject.reject(g),r.onFinish(e)})}function FS(e,t={cancelOnUnmount:!0}){const n=h0(),r=np({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ye(()=>i._isRestartable||i._isDropping||i._isEnqueuing||i._isKeepingLatest),isIdle:ye(()=>!i.isRunning),isRunning:ye(()=>!!i._instances.find(h=>h.isRunning)),isError:ye(()=>!!(i.last&&i.last.isError)),_instances:[],_successfulInstances:kr(()=>i,"isSuccessful"),_runningInstances:kr(()=>i,"isRunning"),_enqueuedInstances:kr(()=>i,"isEnqueued"),_notDroppedInstances:kr(()=>i,"isNotDropped"),_activeInstances:kr(()=>i,"isActive"),performCount:RS(()=>i._instances),last:fu(()=>i._notDroppedInstances),lastSuccessful:fu(()=>i._successfulInstances),firstEnqueued:IS(()=>i._enqueuedInstances),cancelAll({force:h}={force:!1}){i._instances.forEach(f=>{try{(h||!f.isDropped&&!f.isFinished)&&f.cancel({force:h})}catch(g){if(g!=="cancel")throw g}})},perform(...h){const f={enqueue:!1,drop:!1};i._hasConcurrency&&ES(i)&&(i._isDropping&&(f.drop=!0),i._isRestartable&&MS(i),i._isKeepingLatest&&TS(i),(i._isEnqueuing||i._isKeepingLatest)&&(f.enqueue=!0));const g=()=>PS(i),s=()=>NS(e,h,{modifiers:f,onFinish:g,scope:n,id:i._instances.length+1}),p=n.active?n.run(s):s();return i._instances=[...i._instances,p],p},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){n.stop(),this.clear()},restartable(){return i._resetModifierFlags(),i._isRestartable=!0,i},drop(){return i._resetModifierFlags(),i._isDropping=!0,i},enqueue(){return i._resetModifierFlags(),i._isEnqueuing=!0,i},keepLatest(){return i._resetModifierFlags(),i._isKeepingLatest=!0,i},_resetModifierFlags(){i._isKeepingLatest=!1,i._isRestartable=!1,i._isEnqueuing=!1,i._isDropping=!1},maxConcurrency(h){return i._maxConcurrency=h,i}}),i=rp(r);return t.cancelOnUnmount&&vr()&&rd(()=>{i._instances&&i.destroy()}),i}function PS(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function ip(e,t){return function(){return e.apply(t,arguments)}}const{toString:zS}=Object.prototype,{getPrototypeOf:wl}=Object,{iterator:zo,toStringTag:op}=Symbol,Wo=(e=>t=>{const n=zS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=e=>(e=e.toLowerCase(),t=>Wo(t)===e),jo=e=>t=>typeof t===e,{isArray:br}=Array,Xr=jo("undefined");function fi(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sp=Bt("ArrayBuffer");function WS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sp(e.buffer),t}const jS=jo("string"),St=jo("function"),ap=jo("number"),di=e=>e!==null&&typeof e=="object",BS=e=>e===!0||e===!1,Bi=e=>{if(Wo(e)!=="object")return!1;const t=wl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(op in e)&&!(zo in e)},HS=e=>{if(!di(e)||fi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},US=Bt("Date"),VS=Bt("File"),GS=Bt("Blob"),ZS=Bt("FileList"),YS=e=>di(e)&&St(e.pipe),KS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||St(e.append)&&((t=Wo(e))==="formdata"||t==="object"&&St(e.toString)&&e.toString()==="[object FormData]"))},XS=Bt("URLSearchParams"),[QS,JS,qS,e$]=["ReadableStream","Request","Response","Headers"].map(Bt),t$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),br(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(fi(e))return;const h=n?Object.getOwnPropertyNames(e):Object.keys(e),f=h.length;let g;for(r=0;r<f;r++)g=h[r],t.call(null,e[g],g,e)}}function lp(e,t){if(fi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cp=e=>!Xr(e)&&e!==Nn;function ya(){const{caseless:e}=cp(this)&&this||{},t={},n=(r,i)=>{const h=e&&lp(t,i)||i;Bi(t[h])&&Bi(r)?t[h]=ya(t[h],r):Bi(r)?t[h]=ya({},r):br(r)?t[h]=r.slice():t[h]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&pi(arguments[r],n);return t}const n$=(e,t,n,{allOwnKeys:r}={})=>(pi(t,(i,h)=>{n&&St(i)?e[h]=ip(i,n):e[h]=i},{allOwnKeys:r}),e),r$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),i$=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},o$=(e,t,n,r)=>{let i,h,f;const g={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),h=i.length;h-- >0;)f=i[h],(!r||r(f,e,t))&&!g[f]&&(t[f]=e[f],g[f]=!0);e=n!==!1&&wl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},s$=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},a$=e=>{if(!e)return null;if(br(e))return e;let t=e.length;if(!ap(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},l$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wl(Uint8Array)),c$=(e,t)=>{const r=(e&&e[zo]).call(e);let i;for(;(i=r.next())&&!i.done;){const h=i.value;t.call(e,h[0],h[1])}},u$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},h$=Bt("HTMLFormElement"),f$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),du=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),d$=Bt("RegExp"),up=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pi(n,(i,h)=>{let f;(f=t(i,h,e))!==!1&&(r[h]=f||i)}),Object.defineProperties(e,r)},p$=e=>{up(e,(t,n)=>{if(St(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(St(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},g$=(e,t)=>{const n={},r=i=>{i.forEach(h=>{n[h]=!0})};return br(e)?r(e):r(String(e).split(t)),n},m$=()=>{},v$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function y$(e){return!!(e&&St(e.append)&&e[op]==="FormData"&&e[zo])}const b$=e=>{const t=new Array(10),n=(r,i)=>{if(di(r)){if(t.indexOf(r)>=0)return;if(fi(r))return r;if(!("toJSON"in r)){t[i]=r;const h=br(r)?[]:{};return pi(r,(f,g)=>{const s=n(f,i+1);!Xr(s)&&(h[g]=s)}),t[i]=void 0,h}}return r};return n(e,0)},w$=Bt("AsyncFunction"),S$=e=>e&&(di(e)||St(e))&&St(e.then)&&St(e.catch),hp=((e,t)=>e?setImmediate:t?((n,r)=>(Nn.addEventListener("message",({source:i,data:h})=>{i===Nn&&h===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Nn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",St(Nn.postMessage)),$$=typeof queueMicrotask<"u"?queueMicrotask.bind(Nn):typeof process<"u"&&process.nextTick||hp,_$=e=>e!=null&&St(e[zo]),J={isArray:br,isArrayBuffer:sp,isBuffer:fi,isFormData:KS,isArrayBufferView:WS,isString:jS,isNumber:ap,isBoolean:BS,isObject:di,isPlainObject:Bi,isEmptyObject:HS,isReadableStream:QS,isRequest:JS,isResponse:qS,isHeaders:e$,isUndefined:Xr,isDate:US,isFile:VS,isBlob:GS,isRegExp:d$,isFunction:St,isStream:YS,isURLSearchParams:XS,isTypedArray:l$,isFileList:ZS,forEach:pi,merge:ya,extend:n$,trim:t$,stripBOM:r$,inherits:i$,toFlatObject:o$,kindOf:Wo,kindOfTest:Bt,endsWith:s$,toArray:a$,forEachEntry:c$,matchAll:u$,isHTMLForm:h$,hasOwnProperty:du,hasOwnProp:du,reduceDescriptors:up,freezeMethods:p$,toObjectSet:g$,toCamelCase:f$,noop:m$,toFiniteNumber:v$,findKey:lp,global:Nn,isContextDefined:cp,isSpecCompliantForm:y$,toJSONObject:b$,isAsyncFn:w$,isThenable:S$,setImmediate:hp,asap:$$,isIterable:_$};function ke(e,t,n,r,i){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),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(ke,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const fp=ke.prototype,dp={};["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=>{dp[e]={value:e}});Object.defineProperties(ke,dp);Object.defineProperty(fp,"isAxiosError",{value:!0});ke.from=(e,t,n,r,i,h)=>{const f=Object.create(fp);return J.toFlatObject(e,f,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),ke.call(f,e.message,t,n,r,i),f.cause=e,f.name=e.name,h&&Object.assign(f,h),f};const C$=null;function ba(e){return J.isPlainObject(e)||J.isArray(e)}function pp(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function pu(e,t,n){return e?e.concat(t).map(function(i,h){return i=pp(i),!n&&h?"["+i+"]":i}).join(n?".":""):t}function x$(e){return J.isArray(e)&&!e.some(ba)}const A$=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Bo(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!J.isUndefined(m[d])});const r=n.metaTokens,i=n.visitor||o,h=n.dots,f=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function p(c){if(c===null)return"";if(J.isDate(c))return c.toISOString();if(J.isBoolean(c))return c.toString();if(!s&&J.isBlob(c))throw new ke("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(c)||J.isTypedArray(c)?s&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function o(c,d,m){let v=c;if(c&&!m&&typeof c=="object"){if(J.endsWith(d,"{}"))d=r?d:d.slice(0,-2),c=JSON.stringify(c);else if(J.isArray(c)&&x$(c)||(J.isFileList(c)||J.endsWith(d,"[]"))&&(v=J.toArray(c)))return d=pp(d),v.forEach(function(_,$){!(J.isUndefined(_)||_===null)&&t.append(f===!0?pu([d],$,h):f===null?d:d+"[]",p(_))}),!1}return ba(c)?!0:(t.append(pu(m,d,h),p(c)),!1)}const a=[],u=Object.assign(A$,{defaultVisitor:o,convertValue:p,isVisitable:ba});function l(c,d){if(!J.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+d.join("."));a.push(c),J.forEach(c,function(v,y){(!(J.isUndefined(v)||v===null)&&i.call(t,v,J.isString(y)?y.trim():y,d,u))===!0&&l(v,d?d.concat(y):[y])}),a.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return l(e),t}function gu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Sl(e,t){this._pairs=[],e&&Bo(e,this,t)}const gp=Sl.prototype;gp.append=function(t,n){this._pairs.push([t,n])};gp.toString=function(t){const n=t?function(r){return t.call(this,r,gu)}:gu;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function k$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mp(e,t,n){if(!t)return e;const r=n&&n.encode||k$;J.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let h;if(i?h=i(t,n):h=J.isURLSearchParams(t)?t.toString():new Sl(t,n).toString(r),h){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+h}return e}class mu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},E$=typeof URLSearchParams<"u"?URLSearchParams:Sl,M$=typeof FormData<"u"?FormData:null,T$=typeof Blob<"u"?Blob:null,L$={isBrowser:!0,classes:{URLSearchParams:E$,FormData:M$,Blob:T$},protocols:["http","https","file","blob","url","data"]},$l=typeof window<"u"&&typeof document<"u",wa=typeof navigator=="object"&&navigator||void 0,R$=$l&&(!wa||["ReactNative","NativeScript","NS"].indexOf(wa.product)<0),I$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",O$=$l&&window.location.href||"http://localhost",N$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$l,hasStandardBrowserEnv:R$,hasStandardBrowserWebWorkerEnv:I$,navigator:wa,origin:O$},Symbol.toStringTag,{value:"Module"})),ht={...N$,...L$};function D$(e,t){return Bo(e,new ht.classes.URLSearchParams,{visitor:function(n,r,i,h){return ht.isNode&&J.isBuffer(n)?(this.append(r,n.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...t})}function F$(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function P$(e){const t={},n=Object.keys(e);let r;const i=n.length;let h;for(r=0;r<i;r++)h=n[r],t[h]=e[h];return t}function yp(e){function t(n,r,i,h){let f=n[h++];if(f==="__proto__")return!0;const g=Number.isFinite(+f),s=h>=n.length;return f=!f&&J.isArray(i)?i.length:f,s?(J.hasOwnProp(i,f)?i[f]=[i[f],r]:i[f]=r,!g):((!i[f]||!J.isObject(i[f]))&&(i[f]=[]),t(n,r,i[f],h)&&J.isArray(i[f])&&(i[f]=P$(i[f])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(r,i)=>{t(F$(r),i,n,0)}),n}return null}function z$(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gi={transitional:vp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,h=J.isObject(t);if(h&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(yp(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(h){if(r.indexOf("application/x-www-form-urlencoded")>-1)return D$(t,this.formSerializer).toString();if((g=J.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Bo(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return h||i?(n.setContentType("application/json",!1),z$(t)):t}],transformResponse:[function(t){const n=this.transitional||gi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(r&&!this.responseType||i)){const f=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(g){if(f)throw g.name==="SyntaxError"?ke.from(g,ke.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:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{gi.headers[e]={}});const W$=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),j$=e=>{const t={};let n,r,i;return e&&e.split(`
|
593
|
+
`).forEach(function(f){i=f.indexOf(":"),n=f.substring(0,i).trim().toLowerCase(),r=f.substring(i+1).trim(),!(!n||t[n]&&W$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},vu=Symbol("internals");function Er(e){return e&&String(e).trim().toLowerCase()}function Hi(e){return e===!1||e==null?e:J.isArray(e)?e.map(Hi):String(e)}function B$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const H$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Es(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function U$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function V$(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,h,f){return this[r].call(this,t,i,h,f)},configurable:!0})})}let $t=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function h(g,s,p){const o=Er(s);if(!o)throw new Error("header name must be a non-empty string");const a=J.findKey(i,o);(!a||i[a]===void 0||p===!0||p===void 0&&i[a]!==!1)&&(i[a||s]=Hi(g))}const f=(g,s)=>J.forEach(g,(p,o)=>h(p,o,s));if(J.isPlainObject(t)||t instanceof this.constructor)f(t,n);else if(J.isString(t)&&(t=t.trim())&&!H$(t))f(j$(t),n);else if(J.isObject(t)&&J.isIterable(t)){let g={},s,p;for(const o of t){if(!J.isArray(o))throw TypeError("Object iterator must return a key-value pair");g[p=o[0]]=(s=g[p])?J.isArray(s)?[...s,o[1]]:[s,o[1]]:o[1]}f(g,n)}else t!=null&&h(n,t,r);return this}get(t,n){if(t=Er(t),t){const r=J.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return B$(i);if(J.isFunction(n))return n.call(this,i,r);if(J.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Er(t),t){const r=J.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Es(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function h(f){if(f=Er(f),f){const g=J.findKey(r,f);g&&(!n||Es(r,r[g],g,n))&&(delete r[g],i=!0)}}return J.isArray(t)?t.forEach(h):h(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const h=n[r];(!t||Es(this,this[h],h,t,!0))&&(delete this[h],i=!0)}return i}normalize(t){const n=this,r={};return J.forEach(this,(i,h)=>{const f=J.findKey(r,h);if(f){n[f]=Hi(i),delete n[h];return}const g=t?U$(h):String(h).trim();g!==h&&delete n[h],n[g]=Hi(i),r[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&J.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
594
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[vu]=this[vu]={accessors:{}}).accessors,i=this.prototype;function h(f){const g=Er(f);r[g]||(V$(i,f),r[g]=!0)}return J.isArray(t)?t.forEach(h):h(t),this}};$t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors($t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});J.freezeMethods($t);function Ms(e,t){const n=this||gi,r=t||n,i=$t.from(r.headers);let h=r.data;return J.forEach(e,function(g){h=g.call(n,h,i.normalize(),t?t.status:void 0)}),i.normalize(),h}function bp(e){return!!(e&&e.__CANCEL__)}function wr(e,t,n){ke.call(this,e??"canceled",ke.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(wr,ke,{__CANCEL__:!0});function wp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function G$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,h=0,f;return t=t!==void 0?t:1e3,function(s){const p=Date.now(),o=r[h];f||(f=p),n[i]=s,r[i]=p;let a=h,u=0;for(;a!==i;)u+=n[a++],a=a%e;if(i=(i+1)%e,i===h&&(h=(h+1)%e),p-f<t)return;const l=o&&p-o;return l?Math.round(u*1e3/l):void 0}}function Y$(e,t){let n=0,r=1e3/t,i,h;const f=(p,o=Date.now())=>{n=o,i=null,h&&(clearTimeout(h),h=null),e(...p)};return[(...p)=>{const o=Date.now(),a=o-n;a>=r?f(p,o):(i=p,h||(h=setTimeout(()=>{h=null,f(i)},r-a)))},()=>i&&f(i)]}const lo=(e,t,n=3)=>{let r=0;const i=Z$(50,250);return Y$(h=>{const f=h.loaded,g=h.lengthComputable?h.total:void 0,s=f-r,p=i(s),o=f<=g;r=f;const a={loaded:f,total:g,progress:g?f/g:void 0,bytes:s,rate:p||void 0,estimated:p&&g&&o?(g-f)/p:void 0,event:h,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(a)},n)},yu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},bu=e=>(...t)=>J.asap(()=>e(...t)),K$=ht.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ht.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,X$=ht.hasStandardBrowserEnv?{write(e,t,n,r,i,h){const f=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),J.isString(r)&&f.push("path="+r),J.isString(i)&&f.push("domain="+i),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Q$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function J$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sp(e,t,n){let r=!Q$(t);return e&&(r||n==!1)?J$(e,t):t}const wu=e=>e instanceof $t?{...e}:e;function Hn(e,t){t=t||{};const n={};function r(p,o,a,u){return J.isPlainObject(p)&&J.isPlainObject(o)?J.merge.call({caseless:u},p,o):J.isPlainObject(o)?J.merge({},o):J.isArray(o)?o.slice():o}function i(p,o,a,u){if(J.isUndefined(o)){if(!J.isUndefined(p))return r(void 0,p,a,u)}else return r(p,o,a,u)}function h(p,o){if(!J.isUndefined(o))return r(void 0,o)}function f(p,o){if(J.isUndefined(o)){if(!J.isUndefined(p))return r(void 0,p)}else return r(void 0,o)}function g(p,o,a){if(a in t)return r(p,o);if(a in e)return r(void 0,p)}const s={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:g,headers:(p,o,a)=>i(wu(p),wu(o),a,!0)};return J.forEach(Object.keys({...e,...t}),function(o){const a=s[o]||i,u=a(e[o],t[o],o);J.isUndefined(u)&&a!==g||(n[o]=u)}),n}const $p=e=>{const t=Hn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:h,headers:f,auth:g}=t;t.headers=f=$t.from(f),t.url=mp(Sp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),g&&f.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let s;if(J.isFormData(n)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((s=f.getContentType())!==!1){const[p,...o]=s?s.split(";").map(a=>a.trim()).filter(Boolean):[];f.setContentType([p||"multipart/form-data",...o].join("; "))}}if(ht.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||r!==!1&&K$(t.url))){const p=i&&h&&X$.read(h);p&&f.set(i,p)}return t},q$=typeof XMLHttpRequest<"u",e_=q$&&function(e){return new Promise(function(n,r){const i=$p(e);let h=i.data;const f=$t.from(i.headers).normalize();let{responseType:g,onUploadProgress:s,onDownloadProgress:p}=i,o,a,u,l,c;function d(){l&&l(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function v(){if(!m)return;const _=$t.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:_,config:e,request:m};wp(function(A){n(A),d()},function(A){r(A),d()},w),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(r(new ke("Request aborted",ke.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new ke("Network Error",ke.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let $=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||vp;i.timeoutErrorMessage&&($=i.timeoutErrorMessage),r(new ke($,w.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,m)),m=null},h===void 0&&f.setContentType(null),"setRequestHeader"in m&&J.forEach(f.toJSON(),function($,w){m.setRequestHeader(w,$)}),J.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),g&&g!=="json"&&(m.responseType=i.responseType),p&&([u,c]=lo(p,!0),m.addEventListener("progress",u)),s&&m.upload&&([a,l]=lo(s),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(i.cancelToken||i.signal)&&(o=_=>{m&&(r(!_||_.type?new wr(null,e,m):_),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o)));const y=G$(i.url);if(y&&ht.protocols.indexOf(y)===-1){r(new ke("Unsupported protocol "+y+":",ke.ERR_BAD_REQUEST,e));return}m.send(h||null)})},t_=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const h=function(p){if(!i){i=!0,g();const o=p instanceof Error?p:this.reason;r.abort(o instanceof ke?o:new wr(o instanceof Error?o.message:o))}};let f=t&&setTimeout(()=>{f=null,h(new ke(`timeout ${t} of ms exceeded`,ke.ETIMEDOUT))},t);const g=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(h):p.removeEventListener("abort",h)}),e=null)};e.forEach(p=>p.addEventListener("abort",h));const{signal:s}=r;return s.unsubscribe=()=>J.asap(g),s}},n_=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},r_=async function*(e,t){for await(const n of i_(e))yield*n_(n,t)},i_=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Su=(e,t,n,r)=>{const i=r_(e,t);let h=0,f,g=s=>{f||(f=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:p,value:o}=await i.next();if(p){g(),s.close();return}let a=o.byteLength;if(n){let u=h+=a;n(u)}s.enqueue(new Uint8Array(o))}catch(p){throw g(p),p}},cancel(s){return g(s),i.return()}},{highWaterMark:2})},Ho=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_p=Ho&&typeof ReadableStream=="function",o_=Ho&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Cp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},s_=_p&&Cp(()=>{let e=!1;const t=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$u=64*1024,Sa=_p&&Cp(()=>J.isReadableStream(new Response("").body)),co={stream:Sa&&(e=>e.body)};Ho&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!co[t]&&(co[t]=J.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ke(`Response type '${t}' is not supported`,ke.ERR_NOT_SUPPORT,r)})})})(new Response);const a_=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(ht.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await o_(e)).byteLength},l_=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n??a_(t)},c_=Ho&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:h,timeout:f,onDownloadProgress:g,onUploadProgress:s,responseType:p,headers:o,withCredentials:a="same-origin",fetchOptions:u}=$p(e);p=p?(p+"").toLowerCase():"text";let l=t_([i,h&&h.toAbortSignal()],f),c;const d=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let m;try{if(s&&s_&&n!=="get"&&n!=="head"&&(m=await l_(o,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(J.isFormData(r)&&(b=w.headers.get("content-type"))&&o.setContentType(b),w.body){const[A,R]=yu(m,lo(bu(s)));r=Su(w.body,$u,A,R)}}J.isString(a)||(a=a?"include":"omit");const v="credentials"in Request.prototype;c=new Request(t,{...u,signal:l,method:n.toUpperCase(),headers:o.normalize().toJSON(),body:r,duplex:"half",credentials:v?a:void 0});let y=await fetch(c,u);const _=Sa&&(p==="stream"||p==="response");if(Sa&&(g||_&&d)){const w={};["status","statusText","headers"].forEach(E=>{w[E]=y[E]});const b=J.toFiniteNumber(y.headers.get("content-length")),[A,R]=g&&yu(b,lo(bu(g),!0))||[];y=new Response(Su(y.body,$u,A,()=>{R&&R(),d&&d()}),w)}p=p||"text";let $=await co[J.findKey(co,p)||"text"](y,e);return!_&&d&&d(),await new Promise((w,b)=>{wp(w,b,{data:$,headers:$t.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:c})})}catch(v){throw d&&d(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,e,c),{cause:v.cause||v}):ke.from(v,v&&v.code,e,c)}}),$a={http:C$,xhr:e_,fetch:c_};J.forEach($a,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _u=e=>`- ${e}`,u_=e=>J.isFunction(e)||e===null||e===!1,xp={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let h=0;h<t;h++){n=e[h];let f;if(r=n,!u_(n)&&(r=$a[(f=String(n)).toLowerCase()],r===void 0))throw new ke(`Unknown adapter '${f}'`);if(r)break;i[f||"#"+h]=r}if(!r){const h=Object.entries(i).map(([g,s])=>`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let f=t?h.length>1?`since :
|
595
|
+
`+h.map(_u).join(`
|
596
|
+
`):" "+_u(h[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:$a};function Ts(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wr(null,e)}function Cu(e){return Ts(e),e.headers=$t.from(e.headers),e.data=Ms.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xp.getAdapter(e.adapter||gi.adapter)(e).then(function(r){return Ts(e),r.data=Ms.call(e,e.transformResponse,r),r.headers=$t.from(r.headers),r},function(r){return bp(r)||(Ts(e),r&&r.response&&(r.response.data=Ms.call(e,e.transformResponse,r.response),r.response.headers=$t.from(r.response.headers))),Promise.reject(r)})}const Ap="1.11.0",Uo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Uo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xu={};Uo.transitional=function(t,n,r){function i(h,f){return"[Axios v"+Ap+"] Transitional option '"+h+"'"+f+(r?". "+r:"")}return(h,f,g)=>{if(t===!1)throw new ke(i(f," has been removed"+(n?" in "+n:"")),ke.ERR_DEPRECATED);return n&&!xu[f]&&(xu[f]=!0,console.warn(i(f," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(h,f,g):!0}};Uo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function h_(e,t,n){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const h=r[i],f=t[h];if(f){const g=e[h],s=g===void 0||f(g,h,e);if(s!==!0)throw new ke("option "+h+" must be "+s,ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ke("Unknown option "+h,ke.ERR_BAD_OPTION)}}const Ui={assertOptions:h_,validators:Uo},Zt=Ui.validators;let zn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mu,response:new mu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const h=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
597
|
+
`+h):r.stack=h}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Hn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:h}=n;r!==void 0&&Ui.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:Ui.assertOptions(i,{encode:Zt.function,serialize:Zt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ui.assertOptions(n,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=h&&J.merge(h.common,h[n.method]);h&&J.forEach(["delete","get","head","post","put","patch","common"],c=>{delete h[c]}),n.headers=$t.concat(f,h);const g=[];let s=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(s=s&&d.synchronous,g.unshift(d.fulfilled,d.rejected))});const p=[];this.interceptors.response.forEach(function(d){p.push(d.fulfilled,d.rejected)});let o,a=0,u;if(!s){const c=[Cu.bind(this),void 0];for(c.unshift(...g),c.push(...p),u=c.length,o=Promise.resolve(n);a<u;)o=o.then(c[a++],c[a++]);return o}u=g.length;let l=n;for(a=0;a<u;){const c=g[a++],d=g[a++];try{l=c(l)}catch(m){d.call(this,m);break}}try{o=Cu.call(this,l)}catch(c){return Promise.reject(c)}for(a=0,u=p.length;a<u;)o=o.then(p[a++],p[a++]);return o}getUri(t){t=Hn(this.defaults,t);const n=Sp(t.baseURL,t.url,t.allowAbsoluteUrls);return mp(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){zn.prototype[t]=function(n,r){return this.request(Hn(r||{},{method:t,url:n,data:(r||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(r){return function(h,f,g){return this.request(Hn(g||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:h,data:f}))}}zn.prototype[t]=n(),zn.prototype[t+"Form"]=n(!0)});let f_=class kp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(h){n=h});const r=this;this.promise.then(i=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](i);r._listeners=null}),this.promise.then=i=>{let h;const f=new Promise(g=>{r.subscribe(g),h=g}).then(i);return f.cancel=function(){r.unsubscribe(h)},f},t(function(h,f,g){r.reason||(r.reason=new wr(h,f,g),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kp(function(i){t=i}),cancel:t}}};function d_(e){return function(n){return e.apply(null,n)}}function p_(e){return J.isObject(e)&&e.isAxiosError===!0}const _a={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(_a).forEach(([e,t])=>{_a[t]=e});function Ep(e){const t=new zn(e),n=ip(zn.prototype.request,t);return J.extend(n,zn.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Ep(Hn(e,i))},n}const Be=Ep(gi);Be.Axios=zn;Be.CanceledError=wr;Be.CancelToken=f_;Be.isCancel=bp;Be.VERSION=Ap;Be.toFormData=Bo;Be.AxiosError=ke;Be.Cancel=Be.CanceledError;Be.all=function(t){return Promise.all(t)};Be.spread=d_;Be.isAxiosError=p_;Be.mergeConfig=Hn;Be.AxiosHeaders=$t;Be.formToJSON=e=>yp(J.isHTMLForm(e)?new FormData(e):e);Be.getAdapter=xp.getAdapter;Be.HttpStatusCode=_a;Be.default=Be;const{Axios:b4,AxiosError:g_,CanceledError:w4,isCancel:S4,CancelToken:$4,VERSION:_4,all:C4,Cancel:x4,isAxiosError:A4,spread:k4,toFormData:E4,AxiosHeaders:M4,HttpStatusCode:T4,formToJSON:L4,getAdapter:R4,mergeConfig:I4}=Be;function ee(e,t,n){function r(g,s){var p;Object.defineProperty(g,"_zod",{value:g._zod??{},enumerable:!1}),(p=g._zod).traits??(p.traits=new Set),g._zod.traits.add(e),t(g,s);for(const o in f.prototype)o in g||Object.defineProperty(g,o,{value:f.prototype[o].bind(g)});g._zod.constr=f,g._zod.def=s}const i=n?.Parent??Object;class h extends i{}Object.defineProperty(h,"name",{value:e});function f(g){var s;const p=n?.Parent?new h:this;r(p,g),(s=p._zod).deferred??(s.deferred=[]);for(const o of p._zod.deferred)o();return p}return Object.defineProperty(f,"init",{value:r}),Object.defineProperty(f,Symbol.hasInstance,{value:g=>n?.Parent&&g instanceof n.Parent?!0:g?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}class sr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Mp extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Tp={};function Un(e){return Tp}function m_(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Ca(e,t){return typeof t=="bigint"?t.toString():t}function _l(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Cl(e){return e==null}function xl(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function v_(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const s=r.match(/\d?e-(\d?)/);s?.[1]&&(i=Number.parseInt(s[1]))}const h=n>i?n:i,f=Number.parseInt(e.toFixed(h).replace(".","")),g=Number.parseInt(t.toFixed(h).replace(".",""));return f%g/10**h}const Au=Symbol("evaluating");function je(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Au)return r===void 0&&(r=Au,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function y_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function kn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Sr(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function ku(e){return JSON.stringify(e)}const Lp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function uo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const b_=_l(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Qr(e){if(uo(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(uo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Rp(e){return Qr(e)?{...e}:e}const w_=new Set(["string","number","symbol"]);function dr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function En(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function be(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function S_(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const $_={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function __(e,t){const n=e._zod.def,r=Sr(e._zod.def,{get shape(){const i={};for(const h in t){if(!(h in n.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&(i[h]=n.shape[h])}return kn(this,"shape",i),i},checks:[]});return En(e,r)}function C_(e,t){const n=e._zod.def,r=Sr(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const h in t){if(!(h in n.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&delete i[h]}return kn(this,"shape",i),i},checks:[]});return En(e,r)}function x_(e,t){if(!Qr(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=Sr(e._zod.def,{get shape(){const h={...e._zod.def.shape,...t};return kn(this,"shape",h),h},checks:[]});return En(e,i)}function A_(e,t){if(!Qr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return kn(this,"shape",r),r},checks:e._zod.def.checks};return En(e,n)}function k_(e,t){const n=Sr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return kn(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return En(e,n)}function E_(e,t,n){const r=Sr(t._zod.def,{get shape(){const i=t._zod.def.shape,h={...i};if(n)for(const f in n){if(!(f in i))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(h[f]=e?new e({type:"optional",innerType:i[f]}):i[f])}else for(const f in i)h[f]=e?new e({type:"optional",innerType:i[f]}):i[f];return kn(this,"shape",h),h},checks:[]});return En(t,r)}function M_(e,t,n){const r=Sr(t._zod.def,{get shape(){const i=t._zod.def.shape,h={...i};if(n)for(const f in n){if(!(f in h))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(h[f]=new e({type:"nonoptional",innerType:i[f]}))}else for(const f in i)h[f]=new e({type:"nonoptional",innerType:i[f]});return kn(this,"shape",h),h},checks:[]});return En(t,r)}function er(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Al(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function xi(e){return typeof e=="string"?e:e?.message}function Vn(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=xi(e.inst?._zod.def?.error?.(e))??xi(t?.error?.(e))??xi(n.customError?.(e))??xi(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function kl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Jr(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Ip=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ca,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Op=ee("$ZodError",Ip),Vo=ee("$ZodError",Ip,{Parent:Error});function T_(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function L_(e,t){const n=t||function(h){return h.message},r={_errors:[]},i=h=>{for(const f of h.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(g=>i({issues:g}));else if(f.code==="invalid_key")i({issues:f.issues});else if(f.code==="invalid_element")i({issues:f.issues});else if(f.path.length===0)r._errors.push(n(f));else{let g=r,s=0;for(;s<f.path.length;){const p=f.path[s];s===f.path.length-1?(g[p]=g[p]||{_errors:[]},g[p]._errors.push(n(f))):g[p]=g[p]||{_errors:[]},g=g[p],s++}}};return i(e),r}const Go=e=>(t,n,r,i)=>{const h=r?Object.assign(r,{async:!1}):{async:!1},f=t._zod.run({value:n,issues:[]},h);if(f instanceof Promise)throw new sr;if(f.issues.length){const g=new(i?.Err??e)(f.issues.map(s=>Vn(s,h,Un())));throw Lp(g,i?.callee),g}return f.value},Eu=Go(Vo),Zo=e=>async(t,n,r,i)=>{const h=r?Object.assign(r,{async:!0}):{async:!0};let f=t._zod.run({value:n,issues:[]},h);if(f instanceof Promise&&(f=await f),f.issues.length){const g=new(i?.Err??e)(f.issues.map(s=>Vn(s,h,Un())));throw Lp(g,i?.callee),g}return f.value},Mu=Zo(Vo),Yo=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},h=t._zod.run({value:n,issues:[]},i);if(h instanceof Promise)throw new sr;return h.issues.length?{success:!1,error:new(e??Op)(h.issues.map(f=>Vn(f,i,Un())))}:{success:!0,data:h.value}},R_=Yo(Vo),Ko=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let h=t._zod.run({value:n,issues:[]},i);return h instanceof Promise&&(h=await h),h.issues.length?{success:!1,error:new e(h.issues.map(f=>Vn(f,i,Un())))}:{success:!0,data:h.value}},I_=Ko(Vo),O_=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Go(e)(t,n,i)},N_=e=>(t,n,r)=>Go(e)(t,n,r),D_=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Zo(e)(t,n,i)},F_=e=>async(t,n,r)=>Zo(e)(t,n,r),P_=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Yo(e)(t,n,i)},z_=e=>(t,n,r)=>Yo(e)(t,n,r),W_=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ko(e)(t,n,i)},j_=e=>async(t,n,r)=>Ko(e)(t,n,r),B_=/^[cC][^\s-]{8,}$/,H_=/^[0-9a-z]+$/,U_=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,V_=/^[0-9a-vA-V]{20}$/,G_=/^[A-Za-z0-9]{27}$/,Z_=/^[a-zA-Z0-9_-]{21}$/,Y_=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,K_=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Tu=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,X_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Q_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function J_(){return new RegExp(Q_,"u")}const q_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,tC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,nC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Np=/^[A-Za-z0-9_-]*$/,iC=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,oC=/^\+(?:[0-9]){6,14}[0-9]$/,Dp="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",sC=new RegExp(`^${Dp}$`);function Fp(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function aC(e){return new RegExp(`^${Fp(e)}$`)}function lC(e){const t=Fp({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Dp}T(?:${r})$`)}const cC=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},uC=/^\d+$/,hC=/^-?\d+(?:\.\d+)?/i,fC=/true|false/i,dC=/^[^A-Z]*$/,pC=/^[^a-z]*$/,Ct=ee("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Pp={number:"number",bigint:"bigint",object:"date"},zp=ee("$ZodCheckLessThan",(e,t)=>{Ct.init(e,t);const n=Pp[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,h=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<h&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Wp=ee("$ZodCheckGreaterThan",(e,t)=>{Ct.init(e,t);const n=Pp[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,h=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>h&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),gC=ee("$ZodCheckMultipleOf",(e,t)=>{Ct.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):v_(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),mC=ee("$ZodCheckNumberFormat",(e,t)=>{Ct.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,h]=$_[t.format];e._zod.onattach.push(f=>{const g=f._zod.bag;g.format=t.format,g.minimum=i,g.maximum=h,n&&(g.pattern=uC)}),e._zod.check=f=>{const g=f.value;if(n){if(!Number.isInteger(g)){f.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:g,inst:e});return}if(!Number.isSafeInteger(g)){g>0?f.issues.push({input:g,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):f.issues.push({input:g,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}g<i&&f.issues.push({origin:"number",input:g,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),g>h&&f.issues.push({origin:"number",input:g,code:"too_big",maximum:h,inst:e})}}),vC=ee("$ZodCheckMaxLength",(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Cl(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const f=kl(i);r.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),yC=ee("$ZodCheckMinLength",(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Cl(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const f=kl(i);r.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),bC=ee("$ZodCheckLengthEquals",(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Cl(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,h=i.length;if(h===t.length)return;const f=kl(i),g=h>t.length;r.issues.push({origin:f,...g?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Xo=ee("$ZodCheckStringFormat",(e,t)=>{var n,r;Ct.init(e,t),e._zod.onattach.push(i=>{const h=i._zod.bag;h.format=t.format,t.pattern&&(h.patterns??(h.patterns=new Set),h.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),wC=ee("$ZodCheckRegex",(e,t)=>{Xo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),SC=ee("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=dC),Xo.init(e,t)}),$C=ee("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=pC),Xo.init(e,t)}),_C=ee("$ZodCheckIncludes",(e,t)=>{Ct.init(e,t);const n=dr(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const h=i._zod.bag;h.patterns??(h.patterns=new Set),h.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),CC=ee("$ZodCheckStartsWith",(e,t)=>{Ct.init(e,t);const n=new RegExp(`^${dr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),xC=ee("$ZodCheckEndsWith",(e,t)=>{Ct.init(e,t);const n=new RegExp(`.*${dr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),AC=ee("$ZodCheckOverwrite",(e,t)=>{Ct.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class kC{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
598
|
+
`).filter(f=>f),i=Math.min(...r.map(f=>f.length-f.trimStart().length)),h=r.map(f=>f.slice(i)).map(f=>" ".repeat(this.indent*2)+f);for(const f of h)this.content.push(f)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(h=>` ${h}`)];return new t(...n,i.join(`
|
599
|
+
`))}}const EC={major:4,minor:1,patch:5},He=ee("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=EC;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const h of i._zod.onattach)h(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(f,g,s)=>{let p=er(f),o;for(const a of g){if(a._zod.def.when){if(!a._zod.def.when(f))continue}else if(p)continue;const u=f.issues.length,l=a._zod.check(f);if(l instanceof Promise&&s?.async===!1)throw new sr;if(o||l instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await l,f.issues.length!==u&&(p||(p=er(f,u)))});else{if(f.issues.length===u)continue;p||(p=er(f,u))}}return o?o.then(()=>f):f},h=(f,g,s)=>{if(er(f))return f.aborted=!0,f;const p=i(g,r,s);if(p instanceof Promise){if(s.async===!1)throw new sr;return p.then(o=>e._zod.parse(o,s))}return e._zod.parse(p,s)};e._zod.run=(f,g)=>{if(g.skipChecks)return e._zod.parse(f,g);if(g.direction==="backward"){const p=e._zod.parse({value:f.value,issues:[]},{...g,skipChecks:!0});return p instanceof Promise?p.then(o=>h(o,f,g)):h(p,f,g)}const s=e._zod.parse(f,g);if(s instanceof Promise){if(g.async===!1)throw new sr;return s.then(p=>i(p,r,g))}return i(s,r,g)}}e["~standard"]={validate:i=>{try{const h=R_(e,i);return h.success?{value:h.data}:{issues:h.error?.issues}}catch{return I_(e,i).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),El=ee("$ZodString",(e,t)=>{He.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cC(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ke=ee("$ZodStringFormat",(e,t)=>{Xo.init(e,t),El.init(e,t)}),MC=ee("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=K_),Ke.init(e,t)}),TC=ee("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Tu(r))}else t.pattern??(t.pattern=Tu());Ke.init(e,t)}),LC=ee("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=X_),Ke.init(e,t)}),RC=ee("$ZodURL",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:iC.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),IC=ee("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=J_()),Ke.init(e,t)}),OC=ee("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Z_),Ke.init(e,t)}),NC=ee("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=B_),Ke.init(e,t)}),DC=ee("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=H_),Ke.init(e,t)}),FC=ee("$ZodULID",(e,t)=>{t.pattern??(t.pattern=U_),Ke.init(e,t)}),PC=ee("$ZodXID",(e,t)=>{t.pattern??(t.pattern=V_),Ke.init(e,t)}),zC=ee("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=G_),Ke.init(e,t)}),WC=ee("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=lC(t)),Ke.init(e,t)}),jC=ee("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=sC),Ke.init(e,t)}),BC=ee("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=aC(t)),Ke.init(e,t)}),HC=ee("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Y_),Ke.init(e,t)}),UC=ee("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=q_),Ke.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),VC=ee("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=eC),Ke.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),GC=ee("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tC),Ke.init(e,t)}),ZC=ee("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=nC),Ke.init(e,t),e._zod.check=n=>{const[r,i]=n.value.split("/");try{if(!i)throw new Error;const h=Number(i);if(`${h}`!==i)throw new Error;if(h<0||h>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function jp(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const YC=ee("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=rC),Ke.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{jp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function KC(e){if(!Np.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return jp(n)}const XC=ee("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Np),Ke.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{KC(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),QC=ee("$ZodE164",(e,t)=>{t.pattern??(t.pattern=oC),Ke.init(e,t)});function JC(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const qC=ee("$ZodJWT",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{JC(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Bp=ee("$ZodNumber",(e,t)=>{He.init(e,t),e._zod.pattern=e._zod.bag.pattern??hC,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const h=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...h?{received:h}:{}}),n}}),ex=ee("$ZodNumber",(e,t)=>{mC.init(e,t),Bp.init(e,t)}),tx=ee("$ZodBoolean",(e,t)=>{He.init(e,t),e._zod.pattern=fC,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),nx=ee("$ZodAny",(e,t)=>{He.init(e,t),e._zod.parse=n=>n}),rx=ee("$ZodUnknown",(e,t)=>{He.init(e,t),e._zod.parse=n=>n}),ix=ee("$ZodNever",(e,t)=>{He.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Lu(e,t,n){e.issues.length&&t.issues.push(...Al(n,e.issues)),t.value[n]=e.value}const ox=ee("$ZodArray",(e,t)=>{He.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const h=[];for(let f=0;f<i.length;f++){const g=i[f],s=t.element._zod.run({value:g,issues:[]},r);s instanceof Promise?h.push(s.then(p=>Lu(p,n,f))):Lu(s,n,f)}return h.length?Promise.all(h).then(()=>n):n}});function ho(e,t,n,r){e.issues.length&&t.issues.push(...Al(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Hp(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape[r]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=S_(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Up(e,t,n,r,i,h){const f=[],g=i.keySet,s=i.catchall._zod,p=s.def.type;for(const o of Object.keys(t)){if(g.has(o))continue;if(p==="never"){f.push(o);continue}const a=s.run({value:t[o],issues:[]},r);a instanceof Promise?e.push(a.then(u=>ho(u,n,o,t))):ho(a,n,o,t)}return f.length&&n.issues.push({code:"unrecognized_keys",keys:f,input:t,inst:h}),e.length?Promise.all(e).then(()=>n):n}const sx=ee("$ZodObject",(e,t)=>{He.init(e,t);const n=_l(()=>Hp(t));je(e._zod,"propValues",()=>{const f=t.shape,g={};for(const s in f){const p=f[s]._zod;if(p.values){g[s]??(g[s]=new Set);for(const o of p.values)g[s].add(o)}}return g});const r=uo,i=t.catchall;let h;e._zod.parse=(f,g)=>{h??(h=n.value);const s=f.value;if(!r(s))return f.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),f;f.value={};const p=[],o=h.shape;for(const a of h.keys){const l=o[a]._zod.run({value:s[a],issues:[]},g);l instanceof Promise?p.push(l.then(c=>ho(c,f,a,s))):ho(l,f,a,s)}return i?Up(p,s,f,g,n.value,e):p.length?Promise.all(p).then(()=>f):f}}),ax=ee("$ZodObjectJIT",(e,t)=>{sx.init(e,t);const n=e._zod.parse,r=_l(()=>Hp(t)),i=u=>{const l=new kC(["shape","payload","ctx"]),c=r.value,d=_=>{const $=ku(_);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};l.write("const input = payload.value;");const m=Object.create(null);let v=0;for(const _ of c.keys)m[_]=`key_${v++}`;l.write("const newResult = {}");for(const _ of c.keys){const $=m[_],w=ku(_);l.write(`const ${$} = ${d(_)};`),l.write(`
|
600
|
+
if (${$}.issues.length) {
|
601
|
+
payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
|
602
|
+
...iss,
|
603
|
+
path: iss.path ? [${w}, ...iss.path] : [${w}]
|
604
|
+
})));
|
605
|
+
}
|
606
|
+
|
607
|
+
if (${$}.value === undefined) {
|
608
|
+
if (${w} in input) {
|
609
|
+
newResult[${w}] = undefined;
|
610
|
+
}
|
611
|
+
} else {
|
612
|
+
newResult[${w}] = ${$}.value;
|
613
|
+
}
|
614
|
+
`)}l.write("payload.value = newResult;"),l.write("return payload;");const y=l.compile();return(_,$)=>y(u,_,$)};let h;const f=uo,g=!Tp.jitless,p=g&&b_.value,o=t.catchall;let a;e._zod.parse=(u,l)=>{a??(a=r.value);const c=u.value;return f(c)?g&&p&&l?.async===!1&&l.jitless!==!0?(h||(h=i(t.shape)),u=h(u,l),o?Up([],c,u,l,a,e):u):n(u,l):(u.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),u)}});function Ru(e,t,n,r){for(const h of e)if(h.issues.length===0)return t.value=h.value,t;const i=e.filter(h=>!er(h));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(h=>h.issues.map(f=>Vn(f,r,Un())))}),t)}const lx=ee("$ZodUnion",(e,t)=>{He.init(e,t),je(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),je(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),je(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),je(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(h=>h._zod.pattern);return new RegExp(`^(${i.map(h=>xl(h.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,h)=>{if(n)return r(i,h);let f=!1;const g=[];for(const s of t.options){const p=s._zod.run({value:i.value,issues:[]},h);if(p instanceof Promise)g.push(p),f=!0;else{if(p.issues.length===0)return p;g.push(p)}}return f?Promise.all(g).then(s=>Ru(s,i,e,h)):Ru(g,i,e,h)}}),cx=ee("$ZodIntersection",(e,t)=>{He.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,h=t.left._zod.run({value:i,issues:[]},r),f=t.right._zod.run({value:i,issues:[]},r);return h instanceof Promise||f instanceof Promise?Promise.all([h,f]).then(([s,p])=>Iu(n,s,p)):Iu(n,h,f)}});function xa(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Qr(e)&&Qr(t)){const n=Object.keys(t),r=Object.keys(e).filter(h=>n.indexOf(h)!==-1),i={...e,...t};for(const h of r){const f=xa(e[h],t[h]);if(!f.valid)return{valid:!1,mergeErrorPath:[h,...f.mergeErrorPath]};i[h]=f.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],h=t[r],f=xa(i,h);if(!f.valid)return{valid:!1,mergeErrorPath:[r,...f.mergeErrorPath]};n.push(f.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Iu(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),er(e))return e;const r=xa(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Vp=ee("$ZodTuple",(e,t)=>{He.init(e,t);const n=t.items,r=n.length-[...n].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,h)=>{const f=i.value;if(!Array.isArray(f))return i.issues.push({input:f,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const g=[];if(!t.rest){const p=f.length>n.length,o=f.length<r-1;if(p||o)return i.issues.push({...p?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},input:f,inst:e,origin:"array"}),i}let s=-1;for(const p of n){if(s++,s>=f.length&&s>=r)continue;const o=p._zod.run({value:f[s],issues:[]},h);o instanceof Promise?g.push(o.then(a=>Ai(a,i,s))):Ai(o,i,s)}if(t.rest){const p=f.slice(n.length);for(const o of p){s++;const a=t.rest._zod.run({value:o,issues:[]},h);a instanceof Promise?g.push(a.then(u=>Ai(u,i,s))):Ai(a,i,s)}}return g.length?Promise.all(g).then(()=>i):i}});function Ai(e,t,n){e.issues.length&&t.issues.push(...Al(n,e.issues)),t.value[n]=e.value}const ux=ee("$ZodEnum",(e,t)=>{He.init(e,t);const n=m_(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>w_.has(typeof i)).map(i=>typeof i=="string"?dr(i):i.toString()).join("|")})$`),e._zod.parse=(i,h)=>{const f=i.value;return r.has(f)||i.issues.push({code:"invalid_value",values:n,input:f,inst:e}),i}}),hx=ee("$ZodLiteral",(e,t)=>{if(He.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?dr(n):n?dr(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),fx=ee("$ZodTransform",(e,t)=>{He.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Mp(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(f=>(n.value=f,n));if(i instanceof Promise)throw new sr;return n.value=i,n}});function Ou(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const dx=ee("$ZodOptional",(e,t)=>{He.init(e,t),e._zod.optin="optional",e._zod.optout="optional",je(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),je(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${xl(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Ou(h,n.value)):Ou(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),px=ee("$ZodNullable",(e,t)=>{He.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${xl(n.source)}|null)$`):void 0}),je(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),gx=ee("$ZodDefault",(e,t)=>{He.init(e,t),e._zod.optin="optional",je(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Nu(h,t)):Nu(i,t)}});function Nu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const mx=ee("$ZodPrefault",(e,t)=>{He.init(e,t),e._zod.optin="optional",je(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),vx=ee("$ZodNonOptional",(e,t)=>{He.init(e,t),je(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>Du(h,e)):Du(i,e)}});function Du(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const yx=ee("$ZodCatch",(e,t)=>{He.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(h=>(n.value=h.value,h.issues.length&&(n.value=t.catchValue({...n,error:{issues:h.issues.map(f=>Vn(f,r,Un()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(h=>Vn(h,r,Un()))},input:n.value}),n.issues=[]),n)}}),bx=ee("$ZodPipe",(e,t)=>{He.init(e,t),je(e._zod,"values",()=>t.in._zod.values),je(e._zod,"optin",()=>t.in._zod.optin),je(e._zod,"optout",()=>t.out._zod.optout),je(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const h=t.out._zod.run(n,r);return h instanceof Promise?h.then(f=>ki(f,t.in,r)):ki(h,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(h=>ki(h,t.out,r)):ki(i,t.out,r)}});function ki(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const wx=ee("$ZodReadonly",(e,t)=>{He.init(e,t),je(e._zod,"propValues",()=>t.innerType._zod.propValues),je(e._zod,"values",()=>t.innerType._zod.values),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(Fu):Fu(i)}});function Fu(e){return e.value=Object.freeze(e.value),e}const Sx=ee("$ZodFunction",(e,t)=>(He.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){const i=e._def.input?Eu(e._def.input,r):r,h=Reflect.apply(n,this,i);return e._def.output?Eu(e._def.output,h):h}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){const i=e._def.input?await Mu(e._def.input,r):r,h=await Reflect.apply(n,this,i);return e._def.output?await Mu(e._def.output,h):h}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Vp({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),$x=ee("$ZodCustom",(e,t)=>{Ct.init(e,t),He.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(h=>Pu(h,n,r,e));Pu(i,n,r,e)}});function Pu(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Jr(i))}}class _x{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Cx(){return new _x}const Ei=Cx();function xx(e,t){return new e({type:"string",...be(t)})}function Ax(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...be(t)})}function zu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...be(t)})}function kx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...be(t)})}function Ex(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...be(t)})}function Mx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...be(t)})}function Tx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...be(t)})}function Lx(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...be(t)})}function Rx(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...be(t)})}function Ix(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...be(t)})}function Ox(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...be(t)})}function Nx(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...be(t)})}function Dx(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...be(t)})}function Fx(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...be(t)})}function Px(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...be(t)})}function zx(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...be(t)})}function Wx(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...be(t)})}function jx(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...be(t)})}function Bx(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...be(t)})}function Hx(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...be(t)})}function Ux(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...be(t)})}function Vx(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...be(t)})}function Gx(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...be(t)})}function Zx(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...be(t)})}function Yx(e,t){return new e({type:"string",format:"date",check:"string_format",...be(t)})}function Kx(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...be(t)})}function Xx(e,t){return new e({type:"string",format:"duration",check:"string_format",...be(t)})}function Qx(e,t){return new e({type:"number",checks:[],...be(t)})}function Jx(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...be(t)})}function qx(e,t){return new e({type:"boolean",...be(t)})}function eA(e){return new e({type:"any"})}function tA(e){return new e({type:"unknown"})}function nA(e,t){return new e({type:"never",...be(t)})}function Wu(e,t){return new zp({check:"less_than",...be(t),value:e,inclusive:!1})}function Ls(e,t){return new zp({check:"less_than",...be(t),value:e,inclusive:!0})}function ju(e,t){return new Wp({check:"greater_than",...be(t),value:e,inclusive:!1})}function Rs(e,t){return new Wp({check:"greater_than",...be(t),value:e,inclusive:!0})}function Bu(e,t){return new gC({check:"multiple_of",...be(t),value:e})}function Gp(e,t){return new vC({check:"max_length",...be(t),maximum:e})}function fo(e,t){return new yC({check:"min_length",...be(t),minimum:e})}function Zp(e,t){return new bC({check:"length_equals",...be(t),length:e})}function rA(e,t){return new wC({check:"string_format",format:"regex",...be(t),pattern:e})}function iA(e){return new SC({check:"string_format",format:"lowercase",...be(e)})}function oA(e){return new $C({check:"string_format",format:"uppercase",...be(e)})}function sA(e,t){return new _C({check:"string_format",format:"includes",...be(t),includes:e})}function aA(e,t){return new CC({check:"string_format",format:"starts_with",...be(t),prefix:e})}function lA(e,t){return new xC({check:"string_format",format:"ends_with",...be(t),suffix:e})}function mi(e){return new AC({check:"overwrite",tx:e})}function cA(e){return mi(t=>t.normalize(e))}function uA(){return mi(e=>e.trim())}function hA(){return mi(e=>e.toLowerCase())}function fA(){return mi(e=>e.toUpperCase())}function dA(e,t,n){return new e({type:"array",element:t,...be(n)})}function pA(e,t,n){return new e({type:"custom",check:"custom",fn:t,...be(n)})}function gA(e){const t=mA(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Jr(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Jr(i))}},e(n.value,n)));return t}function mA(e,t){const n=new Ct({check:"custom",...be(t)});return n._zod.check=e,n}const vA=ee("ZodISODateTime",(e,t)=>{WC.init(e,t),Qe.init(e,t)});function yA(e){return Zx(vA,e)}const bA=ee("ZodISODate",(e,t)=>{jC.init(e,t),Qe.init(e,t)});function wA(e){return Yx(bA,e)}const SA=ee("ZodISOTime",(e,t)=>{BC.init(e,t),Qe.init(e,t)});function $A(e){return Kx(SA,e)}const _A=ee("ZodISODuration",(e,t)=>{HC.init(e,t),Qe.init(e,t)});function CA(e){return Xx(_A,e)}const xA=(e,t)=>{Op.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>L_(e,n)},flatten:{value:n=>T_(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ca,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ca,2)}},isEmpty:{get(){return e.issues.length===0}}})},Dt=ee("ZodError",xA,{Parent:Error}),AA=Go(Dt),kA=Zo(Dt),EA=Yo(Dt),MA=Ko(Dt),TA=O_(Dt),LA=N_(Dt),RA=D_(Dt),IA=F_(Dt),OA=P_(Dt),NA=z_(Dt),DA=W_(Dt),FA=j_(Dt),Xe=ee("ZodType",(e,t)=>(He.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>En(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>AA(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>EA(e,n,r),e.parseAsync=async(n,r)=>kA(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>MA(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>TA(e,n,r),e.decode=(n,r)=>LA(e,n,r),e.encodeAsync=async(n,r)=>RA(e,n,r),e.decodeAsync=async(n,r)=>IA(e,n,r),e.safeEncode=(n,r)=>OA(e,n,r),e.safeDecode=(n,r)=>NA(e,n,r),e.safeEncodeAsync=async(n,r)=>DA(e,n,r),e.safeDecodeAsync=async(n,r)=>FA(e,n,r),e.refine=(n,r)=>e.check(R2(n,r)),e.superRefine=n=>e.check(I2(n)),e.overwrite=n=>e.check(mi(n)),e.optional=()=>Vu(e),e.nullable=()=>Gu(e),e.nullish=()=>Vu(Gu(e)),e.nonoptional=n=>C2(e,n),e.array=()=>tt(e),e.or=n=>Ml([e,n]),e.and=n=>f2(e,n),e.transform=n=>Zu(e,y2(n)),e.default=n=>S2(e,n),e.prefault=n=>_2(e,n),e.catch=n=>A2(e,n),e.pipe=n=>Zu(e,n),e.readonly=()=>M2(e),e.describe=n=>{const r=e.clone();return Ei.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Ei.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Ei.get(e);const r=e.clone();return Ei.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Yp=ee("_ZodString",(e,t)=>{El.init(e,t),Xe.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(rA(...r)),e.includes=(...r)=>e.check(sA(...r)),e.startsWith=(...r)=>e.check(aA(...r)),e.endsWith=(...r)=>e.check(lA(...r)),e.min=(...r)=>e.check(fo(...r)),e.max=(...r)=>e.check(Gp(...r)),e.length=(...r)=>e.check(Zp(...r)),e.nonempty=(...r)=>e.check(fo(1,...r)),e.lowercase=r=>e.check(iA(r)),e.uppercase=r=>e.check(oA(r)),e.trim=()=>e.check(uA()),e.normalize=(...r)=>e.check(cA(...r)),e.toLowerCase=()=>e.check(hA()),e.toUpperCase=()=>e.check(fA())}),PA=ee("ZodString",(e,t)=>{El.init(e,t),Yp.init(e,t),e.email=n=>e.check(Ax(zA,n)),e.url=n=>e.check(Lx(WA,n)),e.jwt=n=>e.check(Gx(t2,n)),e.emoji=n=>e.check(Rx(jA,n)),e.guid=n=>e.check(zu(Hu,n)),e.uuid=n=>e.check(kx(Mi,n)),e.uuidv4=n=>e.check(Ex(Mi,n)),e.uuidv6=n=>e.check(Mx(Mi,n)),e.uuidv7=n=>e.check(Tx(Mi,n)),e.nanoid=n=>e.check(Ix(BA,n)),e.guid=n=>e.check(zu(Hu,n)),e.cuid=n=>e.check(Ox(HA,n)),e.cuid2=n=>e.check(Nx(UA,n)),e.ulid=n=>e.check(Dx(VA,n)),e.base64=n=>e.check(Hx(JA,n)),e.base64url=n=>e.check(Ux(qA,n)),e.xid=n=>e.check(Fx(GA,n)),e.ksuid=n=>e.check(Px(ZA,n)),e.ipv4=n=>e.check(zx(YA,n)),e.ipv6=n=>e.check(Wx(KA,n)),e.cidrv4=n=>e.check(jx(XA,n)),e.cidrv6=n=>e.check(Bx(QA,n)),e.e164=n=>e.check(Vx(e2,n)),e.datetime=n=>e.check(yA(n)),e.date=n=>e.check(wA(n)),e.time=n=>e.check($A(n)),e.duration=n=>e.check(CA(n))});function _e(e){return xx(PA,e)}const Qe=ee("ZodStringFormat",(e,t)=>{Ke.init(e,t),Yp.init(e,t)}),zA=ee("ZodEmail",(e,t)=>{LC.init(e,t),Qe.init(e,t)}),Hu=ee("ZodGUID",(e,t)=>{MC.init(e,t),Qe.init(e,t)}),Mi=ee("ZodUUID",(e,t)=>{TC.init(e,t),Qe.init(e,t)}),WA=ee("ZodURL",(e,t)=>{RC.init(e,t),Qe.init(e,t)}),jA=ee("ZodEmoji",(e,t)=>{IC.init(e,t),Qe.init(e,t)}),BA=ee("ZodNanoID",(e,t)=>{OC.init(e,t),Qe.init(e,t)}),HA=ee("ZodCUID",(e,t)=>{NC.init(e,t),Qe.init(e,t)}),UA=ee("ZodCUID2",(e,t)=>{DC.init(e,t),Qe.init(e,t)}),VA=ee("ZodULID",(e,t)=>{FC.init(e,t),Qe.init(e,t)}),GA=ee("ZodXID",(e,t)=>{PC.init(e,t),Qe.init(e,t)}),ZA=ee("ZodKSUID",(e,t)=>{zC.init(e,t),Qe.init(e,t)}),YA=ee("ZodIPv4",(e,t)=>{UC.init(e,t),Qe.init(e,t)}),KA=ee("ZodIPv6",(e,t)=>{VC.init(e,t),Qe.init(e,t)}),XA=ee("ZodCIDRv4",(e,t)=>{GC.init(e,t),Qe.init(e,t)}),QA=ee("ZodCIDRv6",(e,t)=>{ZC.init(e,t),Qe.init(e,t)}),JA=ee("ZodBase64",(e,t)=>{YC.init(e,t),Qe.init(e,t)}),qA=ee("ZodBase64URL",(e,t)=>{XC.init(e,t),Qe.init(e,t)}),e2=ee("ZodE164",(e,t)=>{QC.init(e,t),Qe.init(e,t)}),t2=ee("ZodJWT",(e,t)=>{qC.init(e,t),Qe.init(e,t)}),Kp=ee("ZodNumber",(e,t)=>{Bp.init(e,t),Xe.init(e,t),e.gt=(r,i)=>e.check(ju(r,i)),e.gte=(r,i)=>e.check(Rs(r,i)),e.min=(r,i)=>e.check(Rs(r,i)),e.lt=(r,i)=>e.check(Wu(r,i)),e.lte=(r,i)=>e.check(Ls(r,i)),e.max=(r,i)=>e.check(Ls(r,i)),e.int=r=>e.check(Uu(r)),e.safe=r=>e.check(Uu(r)),e.positive=r=>e.check(ju(0,r)),e.nonnegative=r=>e.check(Rs(0,r)),e.negative=r=>e.check(Wu(0,r)),e.nonpositive=r=>e.check(Ls(0,r)),e.multipleOf=(r,i)=>e.check(Bu(r,i)),e.step=(r,i)=>e.check(Bu(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function _t(e){return Qx(Kp,e)}const n2=ee("ZodNumberFormat",(e,t)=>{ex.init(e,t),Kp.init(e,t)});function Uu(e){return Jx(n2,e)}const r2=ee("ZodBoolean",(e,t)=>{tx.init(e,t),Xe.init(e,t)});function Xp(e){return qx(r2,e)}const i2=ee("ZodAny",(e,t)=>{nx.init(e,t),Xe.init(e,t)});function Qp(){return eA(i2)}const o2=ee("ZodUnknown",(e,t)=>{rx.init(e,t),Xe.init(e,t)});function po(){return tA(o2)}const s2=ee("ZodNever",(e,t)=>{ix.init(e,t),Xe.init(e,t)});function a2(e){return nA(s2,e)}const l2=ee("ZodArray",(e,t)=>{ox.init(e,t),Xe.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(fo(n,r)),e.nonempty=n=>e.check(fo(1,n)),e.max=(n,r)=>e.check(Gp(n,r)),e.length=(n,r)=>e.check(Zp(n,r)),e.unwrap=()=>e.element});function tt(e,t){return dA(l2,e,t)}const c2=ee("ZodObject",(e,t)=>{ax.init(e,t),Xe.init(e,t),je(e,"shape",()=>t.shape),e.keyof=()=>g2(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:po()}),e.loose=()=>e.clone({...e._zod.def,catchall:po()}),e.strict=()=>e.clone({...e._zod.def,catchall:a2()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>x_(e,n),e.safeExtend=n=>A_(e,n),e.merge=n=>k_(e,n),e.pick=n=>__(e,n),e.omit=n=>C_(e,n),e.partial=(...n)=>E_(Jp,e,n[0]),e.required=(...n)=>M_(qp,e,n[0])});function Ue(e,t){const n={type:"object",get shape(){return kn(this,"shape",e?y_(e):{}),this.shape},...be(t)};return new c2(n)}const u2=ee("ZodUnion",(e,t)=>{lx.init(e,t),Xe.init(e,t),e.options=t.options});function Ml(e,t){return new u2({type:"union",options:e,...be(t)})}const h2=ee("ZodIntersection",(e,t)=>{cx.init(e,t),Xe.init(e,t)});function f2(e,t){return new h2({type:"intersection",left:e,right:t})}const d2=ee("ZodTuple",(e,t)=>{Vp.init(e,t),Xe.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function p2(e,t,n){const r=t instanceof He,i=r?n:t,h=r?t:null;return new d2({type:"tuple",items:e,rest:h,...be(i)})}const Aa=ee("ZodEnum",(e,t)=>{ux.init(e,t),Xe.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const h={};for(const f of r)if(n.has(f))h[f]=t.entries[f];else throw new Error(`Key ${f} not found in enum`);return new Aa({...t,checks:[],...be(i),entries:h})},e.exclude=(r,i)=>{const h={...t.entries};for(const f of r)if(n.has(f))delete h[f];else throw new Error(`Key ${f} not found in enum`);return new Aa({...t,checks:[],...be(i),entries:h})}});function g2(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Aa({type:"enum",entries:n,...be(t)})}const m2=ee("ZodLiteral",(e,t)=>{hx.init(e,t),Xe.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function bn(e,t){return new m2({type:"literal",values:Array.isArray(e)?e:[e],...be(t)})}const v2=ee("ZodTransform",(e,t)=>{fx.init(e,t),Xe.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Mp(e.constructor.name);n.addIssue=h=>{if(typeof h=="string")n.issues.push(Jr(h,n.value,t));else{const f=h;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=n.value),f.inst??(f.inst=e),n.issues.push(Jr(f))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(h=>(n.value=h,n)):(n.value=i,n)}});function y2(e){return new v2({type:"transform",transform:e})}const Jp=ee("ZodOptional",(e,t)=>{dx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Vu(e){return new Jp({type:"optional",innerType:e})}const b2=ee("ZodNullable",(e,t)=>{px.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gu(e){return new b2({type:"nullable",innerType:e})}const w2=ee("ZodDefault",(e,t)=>{gx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function S2(e,t){return new w2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Rp(t)}})}const $2=ee("ZodPrefault",(e,t)=>{mx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _2(e,t){return new $2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Rp(t)}})}const qp=ee("ZodNonOptional",(e,t)=>{vx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function C2(e,t){return new qp({type:"nonoptional",innerType:e,...be(t)})}const x2=ee("ZodCatch",(e,t)=>{yx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function A2(e,t){return new x2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const k2=ee("ZodPipe",(e,t)=>{bx.init(e,t),Xe.init(e,t),e.in=t.in,e.out=t.out});function Zu(e,t){return new k2({type:"pipe",in:e,out:t})}const E2=ee("ZodReadonly",(e,t)=>{wx.init(e,t),Xe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function M2(e){return new E2({type:"readonly",innerType:e})}const T2=ee("ZodFunction",(e,t)=>{Sx.init(e,t),Xe.init(e,t)});function Yu(e){return new T2({type:"function",input:Array.isArray(e?.input)?p2(e?.input):e?.input??tt(po()),output:e?.output??po()})}const L2=ee("ZodCustom",(e,t)=>{$x.init(e,t),Xe.init(e,t)});function R2(e,t={}){return pA(L2,e,t)}function I2(e){return gA(e)}const Qo=Ue({total:_t(),currentPage:_t(),pageSize:_t()}),O2=Ue({key:_e(),value:_e().nullish()}),N2=Ue({name:_e(),configured:Xp(),items:tt(O2).nullish(),type:_e()}),D2=Ue({results:tt(N2)}),Jo=Ue({id:_t(),name:_e()}),F2=Qo.extend({results:tt(Jo)}),P2=Ue({resource:_e(),value:_e()}),Ku=Ue({name:_e().nullish()}),z2=Ue({createdOn:_e().nullish(),updatedOn:_e().nullish(),expiresOn:_e().nullish(),registrar:Ku.nullish(),contacts:tt(Ku)}),W2=Ue({number:_t()}),j2=Ue({country:_e(),countryCode:_e()}),B2=Ue({name:_e()}),H2=Ue({name:_e()}),U2=Ue({name:_e()}),V2=Ue({number:_t()}),Tl=Ue({id:_t(),data:_e(),dataType:_e(),source:_e(),query:_e().nullish(),metadata:Qp().nullish(),createdAt:_e(),autonomousSystem:W2.nullish(),whoisRecord:z2.nullish(),geolocation:j2.nullish(),dnsRecords:tt(P2).nullish(),reverseDnsNames:tt(B2).nullish(),cpes:tt(H2).nullish(),ports:tt(V2).nullish(),vulnerabilities:tt(U2).nullish(),tags:tt(Jo)}),eg=Ue({id:_t(),ruleId:_e(),createdAt:_e(),tags:tt(Jo),artifacts:tt(Tl)}),G2=Qo.extend({results:tt(eg)});Ue({q:_e(),page:_t().nullish(),limit:_t().nullish()});Ue({countryCode:_e(),asn:_e().nullish(),loc:_e().nullish()});Ue({lat:_t(),long:_t()});Ue({name:_e(),code:_e(),lat:_t(),long:_t()});Ml([bn("ip"),bn("domain"),bn("url"),bn("hash"),bn("mail")]);Ue({name:_e(),type:_e(),baseURL:_e(),favicon:Yu({output:_e()}),href:Yu({input:[_e()],output:_e()})});const Vi=Ue({id:_e(),title:_e(),description:_e(),yaml:_e(),createdAt:_e(),updatedAt:_e(),tags:tt(Jo)});Ue({yaml:_e()});Ue({yaml:_e()});Ue({analyzer:_e(),query:_e()});const Z2=Qo.extend({results:tt(Vi)}),Y2=Qo.extend({results:tt(Tl)}),tg=Ue({message:_e()});tg.extend({detail:Qp().nullish()});const Xu=tg.extend({queued:Xp()});Ml([bn("Alerts"),bn("Rules"),bn("Artifacts")]);const nt=Be.create(),mt={async getConfigs(){const e=await nt.get("/api/configs");return D2.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await nt.get("/api/alerts",{params:e});return G2.parse(t.data)},async getAlert(e){const t=await nt.get(`/api/alerts/${e}`);return eg.parse(t.data)},async getTags(){const e=await nt.get("/api/tags");return F2.parse(e.data)},async deleteAlert(e){await nt.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await nt.get(`/api/artifacts/${e}`);return Tl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await nt.get("/api/artifacts",{params:e});return Y2.parse(t.data)},async enrichArtifact(e){const t=await nt.post(`/api/artifacts/${e}/enrich`);return Xu.parse(t.data)},async deleteArtifact(e){await nt.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await nt.get("/api/rules",{params:e});return Z2.parse(t.data)},async getRule(e){const t=await nt.get(`/api/rules/${e}`);return Vi.parse(t.data)},async searchRule(e){const t=await nt.post(`/api/rules/${e}/search`);return Xu.parse(t.data)},async createRule(e){const t=await nt.post("/api/rules/",e);return Vi.parse(t.data)},async updateRule(e){const t=await nt.put("/api/rules/",e);return Vi.parse(t.data)},async deleteRule(e){await nt.delete(`/api/rules/${e}`)},async deleteTag(e){await nt.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await nt.get(`/api/ip_addresses/${e}`)).data}};function qo(){return gt(async(e,t)=>await mt.getAlerts(t))}function K2(){return gt(async(e,t)=>await mt.deleteAlert(t))}function X2(){return gt(async(e,t)=>await mt.deleteTag(t))}function Q2(){return gt(async(e,t)=>await mt.getArtifact(t))}function ng(){return gt(async(e,t)=>await mt.deleteArtifact(t))}function J2(){return gt(async(e,t)=>await mt.enrichArtifact(t))}function q2(){return gt(async()=>await mt.getConfigs())}function ek(){return gt(async(e,t)=>await mt.getIpInfo(t))}function rg(){return gt(async(e,t)=>await mt.getRules(t))}function ig(){return gt(async(e,t)=>await mt.getRule(t))}function tk(){return gt(async(e,t)=>await mt.deleteRule(t))}function nk(){return gt(async(e,t)=>await mt.searchRule(t))}function rk(){return gt(async(e,t)=>await mt.createRule(t))}function ik(){return gt(async(e,t)=>await mt.updateRule(t))}function Ll(){return gt(async(e,t)=>await mt.getArtifacts(t))}function ok(){return gt(async(e,t)=>await mt.getAlert(t))}const sk={class:"buttons is-pulled-right"},ak=["href"],lk={class:"icon is-small"},ck={class:"icon is-small"},og=ve({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/alerts/${n.alert.id}`),h=K2(),f=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await h.perform(n.alert.id),r("delete")}catch(s){Be.isAxiosError(s)&&r("set-error",s)}};return(g,s)=>{const p=De("font-awesome-icon");return K(),re("span",sk,[P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[s[0]||(s[0]=P("span",null,"JSON",-1)),P("span",lk,[ie(p,{icon:"barcode"})])],8,ak),P("button",{class:"button is-light is-small",onClick:f},[s[1]||(s[1]=P("span",null,"Delete",-1)),P("span",ck,[ie(p,{icon:"times"})])])])}}});var qr=uk;function uk(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const hk={key:0,class:"control"},fk=ve({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=Ne(!1),h=Ne(!1),f=ng(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await f.perform(n.artifact.id),i.value=!0,r("delete"))},s=()=>{h.value=!0},p=()=>{h.value=!1};return(o,a)=>{const u=De("router-link");return i.value?fe("",!0):(K(),re("div",hk,[P("div",{class:"tags has-addons are-medium",onMouseover:s,onMouseleave:p},[ie(u,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ve(()=>[Ge(pe(oe(qr)(e.artifact.data,32)),1)]),_:1},8,["to"]),h.value?(K(),re("span",{key:0,class:"tag is-delete",onClick:g})):fe("",!0)],32)]))}}}),dk={class:"field is-grouped is-grouped-multiline"},sg=ve({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=Ne(0),h=()=>{i.value+=1};return Fe(i,()=>{i.value>=n.artifacts.length&&r("delete")}),(f,g)=>(K(),re("div",dk,[(K(!0),re(Ee,null,Tt(e.artifacts,s=>(K(),me(fk,{key:s.id,artifact:s,onDelete:h},null,8,["artifact"]))),128))]))}});var pk={207:(e,t,n)=>{e.exports=n(452)},452:e=>{var t=function(n){var r,i=Object.prototype,h=i.hasOwnProperty,f=typeof Symbol=="function"?Symbol:{},g=f.iterator||"@@iterator",s=f.asyncIterator||"@@asyncIterator",p=f.toStringTag||"@@toStringTag";function o(T,I,N){return Object.defineProperty(T,I,{value:N,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{o({},"")}catch{o=function(I,N,D){return I[N]=D}}function a(T,I,N,D){var F=I&&I.prototype instanceof y?I:y,H=Object.create(F.prototype),W=new C(D||[]);return H._invoke=function(U,G,V){var j=l;return function(Z,X){if(j===d)throw new Error("Generator is already running");if(j===m){if(Z==="throw")throw X;return k()}for(V.method=Z,V.arg=X;;){var Q=V.delegate;if(Q){var le=O(Q,V);if(le){if(le===v)continue;return le}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(j===l)throw j=m,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);j=d;var z=u(U,G,V);if(z.type==="normal"){if(j=V.done?m:c,z.arg===v)continue;return{value:z.arg,done:V.done}}z.type==="throw"&&(j=m,V.method="throw",V.arg=z.arg)}}}(T,N,W),H}function u(T,I,N){try{return{type:"normal",arg:T.call(I,N)}}catch(D){return{type:"throw",arg:D}}}n.wrap=a;var l="suspendedStart",c="suspendedYield",d="executing",m="completed",v={};function y(){}function _(){}function $(){}var w={};o(w,g,function(){return this});var b=Object.getPrototypeOf,A=b&&b(b(S([])));A&&A!==i&&h.call(A,g)&&(w=A);var R=$.prototype=y.prototype=Object.create(w);function E(T){["next","throw","return"].forEach(function(I){o(T,I,function(N){return this._invoke(I,N)})})}function L(T,I){function N(F,H,W,U){var G=u(T[F],T,H);if(G.type!=="throw"){var V=G.arg,j=V.value;return j&&typeof j=="object"&&h.call(j,"__await")?I.resolve(j.__await).then(function(Z){N("next",Z,W,U)},function(Z){N("throw",Z,W,U)}):I.resolve(j).then(function(Z){V.value=Z,W(V)},function(Z){return N("throw",Z,W,U)})}U(G.arg)}var D;this._invoke=function(F,H){function W(){return new I(function(U,G){N(F,H,U,G)})}return D=D?D.then(W,W):W()}}function O(T,I){var N=T.iterator[I.method];if(N===r){if(I.delegate=null,I.method==="throw"){if(T.iterator.return&&(I.method="return",I.arg=r,O(T,I),I.method==="throw"))return v;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var D=u(N,T.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,v;var F=D.arg;return F?F.done?(I[T.resultName]=F.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=r),I.delegate=null,v):F:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,v)}function M(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function x(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function C(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(M,this),this.reset(!0)}function S(T){if(T){var I=T[g];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var N=-1,D=function F(){for(;++N<T.length;)if(h.call(T,N))return F.value=T[N],F.done=!1,F;return F.value=r,F.done=!0,F};return D.next=D}}return{next:k}}function k(){return{value:r,done:!0}}return _.prototype=$,o(R,"constructor",$),o($,"constructor",_),_.displayName=o($,p,"GeneratorFunction"),n.isGeneratorFunction=function(T){var I=typeof T=="function"&&T.constructor;return!!I&&(I===_||(I.displayName||I.name)==="GeneratorFunction")},n.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,$):(T.__proto__=$,o(T,p,"GeneratorFunction")),T.prototype=Object.create(R),T},n.awrap=function(T){return{__await:T}},E(L.prototype),o(L.prototype,s,function(){return this}),n.AsyncIterator=L,n.async=function(T,I,N,D,F){F===void 0&&(F=Promise);var H=new L(a(T,I,N,D),F);return n.isGeneratorFunction(I)?H:H.next().then(function(W){return W.done?W.value:H.next()})},E(R),o(R,p,"Generator"),o(R,g,function(){return this}),o(R,"toString",function(){return"[object Generator]"}),n.keys=function(T){var I=[];for(var N in T)I.push(N);return I.reverse(),function D(){for(;I.length;){var F=I.pop();if(F in T)return D.value=F,D.done=!1,D}return D.done=!0,D}},n.values=S,C.prototype={constructor:C,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(x),!T)for(var I in this)I.charAt(0)==="t"&&h.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=r)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var I=this;function N(G,V){return H.type="throw",H.arg=T,I.next=G,V&&(I.method="next",I.arg=r),!!V}for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D],H=F.completion;if(F.tryLoc==="root")return N("end");if(F.tryLoc<=this.prev){var W=h.call(F,"catchLoc"),U=h.call(F,"finallyLoc");if(W&&U){if(this.prev<F.catchLoc)return N(F.catchLoc,!0);if(this.prev<F.finallyLoc)return N(F.finallyLoc)}else if(W){if(this.prev<F.catchLoc)return N(F.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return N(F.finallyLoc)}}}},abrupt:function(T,I){for(var N=this.tryEntries.length-1;N>=0;--N){var D=this.tryEntries[N];if(D.tryLoc<=this.prev&&h.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var F=D;break}}F&&(T==="break"||T==="continue")&&F.tryLoc<=I&&I<=F.finallyLoc&&(F=null);var H=F?F.completion:{};return H.type=T,H.arg=I,F?(this.method="next",this.next=F.finallyLoc,v):this.complete(H)},complete:function(T,I){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&I&&(this.next=I),v},finish:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var N=this.tryEntries[I];if(N.finallyLoc===T)return this.complete(N.completion,N.afterLoc),x(N),v}},catch:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var N=this.tryEntries[I];if(N.tryLoc===T){var D=N.completion;if(D.type==="throw"){var F=D.arg;x(N)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(T,I,N){return this.delegate={iterator:S(T),resultName:I,nextLoc:N},this.method==="next"&&(this.arg=r),v}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},Qu={};function Ft(e){var t=Qu[e];if(t!==void 0)return t.exports;var n=Qu[e]={exports:{}};return pk[e](n,n.exports,Ft),n.exports}Ft.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Ft.d(t,{a:t}),t},Ft.d=(e,t)=>{for(var n in t)Ft.o(t,n)&&!Ft.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Ft.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var ag={};function ka(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lg(e,t){if(e){if(typeof e=="string")return ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}function go(e){return function(t){if(Array.isArray(t))return ka(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||lg(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
615
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ft.d(ag,{A:()=>wk});const ge=(Ju={Fragment:()=>Ee,computed:()=>ye,createTextVNode:()=>Ge,createVNode:()=>ie,defineComponent:()=>ve,reactive:()=>mr,ref:()=>Ne,watch:()=>Fe,watchEffect:()=>al},Is={},Ft.d(Is,Ju),Is),gk=(0,ge.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,ge.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),mk=(0,ge.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,ge.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,ge.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,ge.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,ge.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,ge.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),vk=(0,ge.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,ge.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,ge.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,ge.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var Ju,Is;function Ea(e){return Ea=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},Ea(e)}function cg(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function In(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=(arguments.length>3?arguments[3]:void 0)||{},i=r.key,h=r.index,f=r.type,g=f===void 0?"content":f,s=r.showComma,p=s!==void 0&&s,o=r.length,a=o===void 0?1:o,u=cg(e);if(u==="array"){var l=qu(e.map(function(m,v,y){return In(m,"".concat(t,"[").concat(v,"]"),n+1,{index:v,showComma:v!==y.length-1,length:a,type:g})}));return[In("[",t,n,{showComma:!1,key:i,length:e.length,type:"arrayStart"})[0]].concat(l,In("]",t,n,{showComma:p,length:e.length,type:"arrayEnd"})[0])}if(u==="object"){var c=Object.keys(e),d=qu(c.map(function(m,v,y){return In(e[m],/^[a-zA-Z_]\w*$/.test(m)?"".concat(t,".").concat(m):"".concat(t,'["').concat(m,'"]'),n+1,{key:m,showComma:v!==y.length-1,length:a,type:g})}));return[In("{",t,n,{showComma:!1,key:i,index:h,length:c.length,type:"objectStart"})[0]].concat(d,In("}",t,n,{showComma:p,length:c.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:i,index:h,path:t,showComma:p,length:a,type:g}]}function qu(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=go(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,go(r)):n.push(r)}return n}function Ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(Ea(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(h){return Ma(h,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=Ma(e[i],t);return t.set(e,r),r}function eh(e,t,n,r,i,h,f){try{var g=e[h](f),s=g.value}catch(p){return void n(p)}g.done?t(s):Promise.resolve(s).then(r,i)}var yk=Ft(207),th=Ft.n(yk);function nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nh(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ug={data:{type:[String,Number,Boolean,Array,Object],default:null},rootPath:{type:String,default:"root"},indent:{type:Number,default:2},showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,renderNodeActions:{type:[Boolean,Function],default:void 0},selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onNodeMouseover:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const bk=(0,ge.defineComponent)({name:"TreeNode",props:rh(rh({},ug),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,ge.computed)(function(){return cg(e.node.content)}),i=(0,ge.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),h=(0,ge.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),f=(0,ge.computed)(function(){return e.selectableType==="multiple"}),g=(0,ge.computed)(function(){return e.selectableType==="single"}),s=(0,ge.computed)(function(){return e.nodeSelectable(e.node)&&(f.value||g.value)}),p=(0,ge.reactive)({editing:!1}),o=function(b){var A,R,E=(R=(A=b.target)===null||A===void 0?void 0:A.value)==="null"?null:R==="undefined"?void 0:R==="true"||R!=="false"&&(R[0]+R[R.length-1]==='""'||R[0]+R[R.length-1]==="''"?R.slice(1,-1):typeof Number(R)=="number"&&!isNaN(Number(R))||R==="NaN"?Number(R):R);n("valueChange",E,e.node.path)},a=(0,ge.computed)(function(){var b,A=(b=e.node)===null||b===void 0?void 0:b.content;return A===null?A="null":A===void 0&&(A="undefined"),r.value==="string"?'"'.concat(A,'"'):A+""}),u=function(){var b=e.renderNodeValue;return b?b({node:e.node,defaultValue:a.value}):a.value},l=function(){n("bracketsClick",!e.collapsed,e.node)},c=function(){n("iconClick",!e.collapsed,e.node)},d=function(){n("selectedChange",e.node)},m=function(){n("nodeClick",e.node),s.value&&e.selectOnClickNode&&n("selectedChange",e.node)},v=function(){n("nodeMouseover",e.node)},y=function(b){if(e.editable&&!p.editing){p.editing=!0;var A=function R(E){var L;E.target!==b.target&&((L=E.target)===null||L===void 0?void 0:L.parentElement)!==b.target&&(p.editing=!1,document.removeEventListener("click",R))};document.removeEventListener("click",A),document.addEventListener("click",A)}},_=function(){var b=(0,ge.ref)(!1),A=function(){var R,E=(R=th().mark(function L(O){return th().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.prev=0,M.next=3,navigator.clipboard.writeText(O);case 3:b.value=!0,setTimeout(function(){b.value=!1},300),M.next=10;break;case 7:M.prev=7,M.t0=M.catch(0),console.error("[vue-json-pretty] Copy failed: ",M.t0);case 10:case"end":return M.stop()}},L,null,[[0,7]])}),function(){var L=this,O=arguments;return new Promise(function(M,x){var C=R.apply(L,O);function S(T){eh(C,M,x,S,k,"next",T)}function k(T){eh(C,M,x,S,k,"throw",T)}S(void 0)})});return function(L){return E.apply(this,arguments)}}();return{copy:A}}().copy,$=function(){var b=e.node,A=b.key,R=b.path,E=e.rootPath,L=new Function("data","return data".concat(R.slice(E.length)))(e.data),O=JSON.stringify(A?ei({},A,L):L,null,2);_(O)},w=function(){var b=e.renderNodeActions;if(!b)return null;var A={copy:$};return typeof b=="function"?b({node:e.node,defaultActions:A}):(0,ge.createVNode)("span",{onClick:$,class:"vjs-tree-node-actions-item"},[(0,ge.createTextVNode)("copy")])};return function(){var b,A=e.node;return(0,ge.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,onMouseover:v,style:e.style},[e.showLineNumber&&(0,ge.createVNode)("span",{class:"vjs-node-index"},[A.id+1]),e.showSelectController&&s.value&&A.type!=="objectEnd"&&A.type!=="arrayEnd"&&(0,ge.createVNode)(mk,{isMultiple:f.value,checked:e.checked,onChange:d},null),(0,ge.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(A.level)).map(function(R,E){return(0,ge.createVNode)("div",{key:E,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},[Array.from(Array(e.indent)).map(function(){return(0,ge.createVNode)(ge.Fragment,null,[(0,ge.createTextVNode)(" ")])})])}),e.showIcon&&(0,ge.createVNode)(vk,{nodeType:A.type,onClick:c},null)]),A.key&&(0,ge.createVNode)("span",{class:"vjs-key"},[(b=e.renderNodeKey,b?b({node:e.node,defaultKey:h.value||""}):h.value),(0,ge.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,ge.createVNode)("span",null,[A.type!=="content"&&A.content?(0,ge.createVNode)(gk,{data:A.content.toString(),onClick:l},null):(0,ge.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:y,onDblclick:e.editable&&e.editableTrigger==="dblclick"?y:void 0},[e.editable&&p.editing?(0,ge.createVNode)("input",{value:a.value,onChange:o,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):u()]),A.showComma&&(0,ge.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,ge.createVNode)("span",{class:"vjs-comment"},[(0,ge.createTextVNode)(" // "),A.length,(0,ge.createTextVNode)(" items ")])]),e.renderNodeActions&&(0,ge.createVNode)("span",{class:"vjs-tree-node-actions"},[w()])])}}});function ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ih(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const wk=(0,ge.defineComponent)({name:"Tree",props:At(At({},ug),{},{collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue","renderNodeActions"],emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,ge.ref)(),h=(0,ge.computed)(function(){return In(e.data,e.rootPath)}),f=function($,w){return h.value.reduce(function(b,A){var R,E=A.level>=$||A.length>=w,L=(R=e.pathCollapsible)===null||R===void 0?void 0:R.call(e,A);return A.type!=="objectStart"&&A.type!=="arrayStart"||!E&&!L?b:At(At({},b),{},ei({},A.path,1))},{})},g=(0,ge.reactive)({translateY:0,visibleData:null,hiddenPaths:f(e.deep,e.collapsedNodeLength)}),s=(0,ge.computed)(function(){for(var $=null,w=[],b=h.value.length,A=0;A<b;A++){var R=At(At({},h.value[A]),{},{id:A}),E=g.hiddenPaths[R.path];if($&&$.path===R.path){var L=$.type==="objectStart",O=At(At(At({},R),$),{},{showComma:R.showComma,content:L?"{...}":"[...]",type:L?"objectCollapsed":"arrayCollapsed"});$=null,w.push(O)}else{if(E&&!$){$=R;continue}if($)continue;w.push(R)}}return w}),p=(0,ge.computed)(function(){var $=e.selectedValue;return $&&e.selectableType==="multiple"&&Array.isArray($)?$:[$]}),o=(0,ge.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),a=function(){var $=s.value;if(e.virtual){var w,b=e.height/e.itemHeight,A=((w=i.value)===null||w===void 0?void 0:w.scrollTop)||0,R=Math.floor(A/e.itemHeight),E=R<0?0:R+b>$.length?$.length-b:R;E<0&&(E=0);var L=E+b;g.translateY=E*e.itemHeight,g.visibleData=$.filter(function(O,M){return M>=E&&M<L})}else g.visibleData=$},u=function(){a()},l=function($){var w,b,A=$.path,R=e.selectableType;if(R==="multiple"){var E=p.value.findIndex(function(x){return x===A}),L=go(p.value);E!==-1?L.splice(E,1):L.push(A),n("update:selectedValue",L),n("selectedChange",L,go(p.value))}else if(R==="single"&&p.value[0]!==A){var O=(w=p.value,b=1,function(x){if(Array.isArray(x))return x}(w)||function(x,C){var S=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(S!=null){var k,T,I=[],N=!0,D=!1;try{for(S=S.call(x);!(N=(k=S.next()).done)&&(I.push(k.value),!C||I.length!==C);N=!0);}catch(F){D=!0,T=F}finally{try{N||S.return==null||S.return()}finally{if(D)throw T}}return I}}(w,b)||lg(w,b)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
616
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],M=A;n("update:selectedValue",M),n("selectedChange",M,O)}},c=function($){n("nodeClick",$)},d=function($){n("nodeMouseover",$)},m=function($,w){if($)g.hiddenPaths=At(At({},g.hiddenPaths),{},ei({},w,1));else{var b=At({},g.hiddenPaths);delete b[w],g.hiddenPaths=b}},v=function($,w){e.collapsedOnClickBrackets&&m($,w.path),n("bracketsClick",$,w)},y=function($,w){m($,w.path),n("iconClick",$,w)},_=function($,w){var b=Ma(e.data),A=e.rootPath;new Function("data","val","data".concat(w.slice(A.length),"=val"))(b,$),n("update:data",b)};return(0,ge.watchEffect)(function(){o.value&&function($){throw new Error("[VueJSONPretty] ".concat($))}(o.value)}),(0,ge.watchEffect)(function(){s.value&&a()}),(0,ge.watch)(function(){return e.deep},function($){$&&(g.hiddenPaths=f($,e.collapsedNodeLength))}),(0,ge.watch)(function(){return e.collapsedNodeLength},function($){$&&(g.hiddenPaths=f(e.deep,$))}),function(){var $,w,b,A,R=($=e.renderNodeKey)!==null&&$!==void 0?$:r.renderNodeKey,E=(w=e.renderNodeValue)!==null&&w!==void 0?w:r.renderNodeValue,L=(b=(A=e.renderNodeActions)!==null&&A!==void 0?A:r.renderNodeActions)!==null&&b!==void 0&&b,O=g.visibleData&&g.visibleData.map(function(M){return(0,ge.createVNode)(bk,{key:M.id,data:e.data,rootPath:e.rootPath,indent:e.indent,node:M,collapsed:!!g.hiddenPaths[M.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:p.value.includes(M.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:R,renderNodeValue:E,renderNodeActions:L,onNodeClick:c,onNodeMouseover:d,onBracketsClick:v,onIconClick:y,onSelectedChange:l,onValueChange:_,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,ge.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?u:void 0,style:e.showLineNumber?At({paddingLeft:"".concat(12*Number(h.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,ge.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,ge.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(s.value.length*e.itemHeight,"px")}},[(0,ge.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(g.translateY,"px)")}},[O])])]):O])}}});var hg=ag.A;const Sk={class:"notification is-danger is-light"},$k={key:1},_k={key:2},Ck={key:0,class:"message"},xk={class:"message-body"},st=ve({__name:"ErrorMessage",props:{error:{type:g_,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>{if(n.error.response)return n.error.response?.data}),h=()=>{r("dispose")};return(f,g)=>(K(),re(Ee,null,[P("div",Sk,[e.disposable?(K(),re("button",{key:0,class:"delete",onClick:h})):fe("",!0),i.value?(K(),re("p",$k,pe(i.value.message),1)):(K(),re("p",_k,pe(e.error),1))]),i.value?.detail?(K(),re("article",Ck,[P("div",xk,[ie(oe(hg),{data:i.value.detail},null,8,["data"])])])):fe("",!0)],64))}}),Ak={key:0,class:"control"},kk=ve({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=Ne(!1),r=Ne(!1),i=X2(),h=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await i.perform(t.tag.id),n.value=!0)},f=()=>{r.value=!0},g=()=>{r.value=!1},s=p=>`tag:"${p}"`;return(p,o)=>{const a=De("router-link");return n.value?fe("",!0):(K(),re("div",Ak,[P("div",{class:"tags has-addons are-medium",onMouseover:f,onMouseleave:g},[ie(a,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:s(e.tag.name)}}},{default:Ve(()=>[Ge(pe(e.tag.name),1)]),_:1},8,["to"]),r.value&&e.deletable?(K(),re("a",{key:0,class:"tag is-delete",onClick:h})):fe("",!0)],32)]))}}}),Ek={class:"field is-grouped is-grouped-multiline"},vi=ve({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(K(),re("div",Ek,[(K(!0),re(Ee,null,Tt(e.tags,r=>(K(),me(kk,{tag:r,key:r.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),Mk={key:0,class:"box"},Tk={class:"table is-fullwidth is-completely-borderless"},Lk={key:0},Rk={class:"help"},Ik=ve({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(!1),i=Ne(),h=p=>{i.value=p},f=()=>{i.value=void 0},g=()=>{n("delete")},s=()=>{r.value=!0};return(p,o)=>{const a=De("router-link");return r.value?fe("",!0):(K(),re("div",Mk,[i.value?(K(),me(st,{key:0,class:"block",error:i.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),P("p",null,[ie(og,{alert:e.alert,onDelete:g,onSetError:h},null,8,["alert"])]),ie(a,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:Ve(()=>[Ge(pe(e.alert.id),1)]),_:1},8,["to"]),P("table",Tk,[P("tr",null,[o[0]||(o[0]=P("th",null,"Rule",-1)),P("td",null,[ie(a,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ve(()=>[Ge(pe(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[o[1]||(o[1]=P("th",null,"Artifacts",-1)),P("td",null,[ie(sg,{artifacts:e.alert.artifacts,onDelete:s},null,8,["artifacts"])])]),e.alert.tags.length>0?(K(),re("tr",Lk,[o[2]||(o[2]=P("th",null,"Tags",-1)),P("td",null,[ie(vi,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):fe("",!0)]),P("p",Rk,"Created at: "+pe(e.alert.createdAt),1)]))}}}),Ok={key:0,class:"message is-warning"},Nk={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},Dk={key:0,class:"pagination-list"},Fk={key:1,class:"pagination-list"},Pk={key:0},zk={key:1},Wk={key:2},jk={key:3},Bk={key:4},Hk={key:5},Rl=ve({__name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,{emit:t}){const n=e,r=t,i=u=>u===n.currentPage+1||u===n.currentPage-1,h=ye(()=>Math.ceil(n.total/n.pageSize)),f=ye(()=>h.value===1),g=ye(()=>n.currentPage>1),s=ye(()=>n.currentPage-1===1),p=ye(()=>n.currentPage<h.value),o=ye(()=>n.currentPage+1===h.value),a=u=>{r("update-page",u)};return(u,l)=>e.total===0?(K(),re("article",Ok,[...l[6]||(l[6]=[P("div",{class:"message-body"},"There is no result to show.",-1)])])):(K(),re("nav",Nk,[f.value?(K(),re("ul",Dk,[P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:l[0]||(l[0]=c=>a(1))},"1")])])):(K(),re("ul",Fk,[g.value&&!s.value?(K(),re("li",Pk,[P("a",{class:"pagination-link mt-2",onClick:l[1]||(l[1]=c=>a(1))}," 1")])):fe("",!0),g.value&&!s.value&&!i(2)?(K(),re("li",zk,[...l[7]||(l[7]=[P("span",{class:"pagination-ellipsis"},"…",-1)])])):fe("",!0),g.value?(K(),re("li",Wk,[P("a",{class:"pagination-link mt-2",onClick:l[2]||(l[2]=c=>a(e.currentPage-1))},pe(e.currentPage-1),1)])):fe("",!0),P("li",null,[P("a",{class:"pagination-link mt-2 is-current",onClick:l[3]||(l[3]=c=>a(e.currentPage))},pe(e.currentPage),1)]),p.value?(K(),re("li",jk,[P("a",{class:"pagination-link mt-2",onClick:l[4]||(l[4]=c=>a(e.currentPage+1))},pe(e.currentPage+1),1)])):fe("",!0),p.value&&!o.value&&!i(h.value-1)?(K(),re("li",Bk,[...l[8]||(l[8]=[P("span",{class:"pagination-ellipsis"},"…",-1)])])):fe("",!0),p.value&&!o.value?(K(),re("li",Hk,[P("a",{class:"pagination-link mt-2",onClick:l[5]||(l[5]=c=>a(h.value))},pe(h.value),1)])):fe("",!0)]))]))}}),Uk={key:0},Vk={class:"help"},Gk={key:1},fg=ve({__name:"AlertsItem",props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=g=>{r("update-page",g)},h=()=>{r("refresh")},f=ye(()=>n.alerts.results.length>0);return(g,s)=>f.value?(K(),re("div",Uk,[(K(!0),re(Ee,null,Tt(e.alerts.results,p=>(K(),me(Ik,{alert:p,key:p.id,onDelete:h},null,8,["alert"]))),128)),ie(Rl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:i},null,8,["total","currentPage","pageSize"]),P("p",Vk,"("+pe(e.alerts.total)+" results in total, "+pe(e.alerts.results.length)+" shown)",1)])):(K(),re("div",Gk,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])]))}}),Zk=ve({name:"LoadingItem"}),Yk={class:"has-text-centered"},Kk={class:"fa-3x"};function Xk(e,t,n,r,i,h){const f=De("font-awesome-icon");return K(),re("div",Yk,[P("div",Kk,[ie(f,{icon:"spinner",spin:""})])])}const pn=ui(Zk,[["render",Xk]]),Qk={class:"block"},Jk={class:"field has-addons"},qk={class:"control is-expanded"},eE={class:"control"},tE={class:"icon is-small"},nE={class:"control"},rE={class:"icon is-small"},iE={key:0,class:"content"},oE={key:0,class:"block"},sE=ve({__name:"AlertsWrapper",setup(e){const t=fr("page","1"),n=fr("q",""),r=Ne(!1),i=qo(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=ci(r);return qe(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,a)=>{const u=De("font-awesome-icon"),l=De("router-link");return K(),re(Ee,null,[P("div",Qk,[P("div",Jk,[P("p",qk,[rl(P("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=c=>Je(n)?n.value=c:null)},null,512),[[hl,oe(n)]])]),P("p",eE,[P("a",{class:"button is-primary",onClick:g},[P("span",tE,[ie(u,{icon:"search"})]),a[2]||(a[2]=P("span",null,"Search",-1))])]),P("p",nE,[P("a",{class:"button is-info",onClick:a[1]||(a[1]=c=>oe(p)())},[P("span",rE,[ie(u,{icon:"question"})]),a[3]||(a[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",iE,[a[6]||(a[6]=cl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>tag</code>, <code>created_at</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>artifact.data</code>, <code>artifact.data_type</code>, <code>artifact.source</code> and <code>artifact.query</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),P("ul",null,[P("li",null,[ie(l,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:Ve(()=>[...a[4]||(a[4]=[Ge("rule.id:foo AND artifact.data:example.com",-1)])]),_:1})]),P("li",null,[ie(l,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:Ve(()=>[...a[5]||(a[5]=[Ge("tag:foo AND created_at >= 2020-01-01",-1)])]),_:1})])])])):fe("",!0)]),oe(i).performCount>0?(K(),re("div",oE,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(st,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(fg,{key:2,alerts:oe(i).last.value,page:oe(t),onUpdatePage:f,onRefresh:oe(s)},null,8,["alerts","page","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),aE={class:"columns"},lE={class:"column is-one-third"},cE={class:"card"},uE={class:"card-content"},hE={class:"level is-mobile"},fE={class:"level-item"},dE={class:"title"},pE={class:"level-item"},gE={class:"icon"},mE={class:"column is-one-third"},vE={class:"card"},yE={class:"card-content"},bE={class:"level is-mobile"},wE={class:"level-item"},SE={class:"title"},$E={class:"level-item"},_E={class:"icon"},CE={class:"column is-one-third"},xE={class:"card"},AE={class:"card-content"},kE={class:"level is-mobile"},EE={class:"level-item"},ME={class:"title"},TE={class:"level-item"},LE={class:"icon"},RE=ve({__name:"OverviewCards",setup(e){const t=qo(),n=rg(),r=Ll();return qe(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),r.perform({q:"",page:1,limit:0})}),(i,h)=>{const f=De("font-awesome-icon");return K(),re("div",aE,[P("div",lE,[P("div",cE,[P("div",uE,[P("div",hE,[P("div",fE,[P("div",null,[h[0]||(h[0]=P("h3",{class:"subtitle is-spaced"},"Rules",-1)),P("h1",dE,pe(oe(n).last?.value?.total??"N/A"),1)])]),P("div",pE,[P("span",gE,[ie(f,{icon:"file",size:"2x"})])])])])])]),P("div",mE,[P("div",vE,[P("div",yE,[P("div",bE,[P("div",wE,[P("div",null,[h[1]||(h[1]=P("h3",{class:"subtitle is-spaced"},"Alerts",-1)),P("h1",SE,pe(oe(t).last?.value?.total??"N/A"),1)])]),P("div",$E,[P("span",_E,[ie(f,{icon:"bell",size:"2x"})])])])])])]),P("div",CE,[P("div",xE,[P("div",AE,[P("div",kE,[P("div",EE,[P("div",null,[h[2]||(h[2]=P("h3",{class:"subtitle is-spaced"},"Artifacts",-1)),P("h1",ME,pe(oe(r).last?.value?.total??"N/A"),1)])]),P("div",TE,[P("span",LE,[ie(f,{icon:"ticket",size:"2x"})])])])])])])])}}}),IE=ve({__name:"AlertsView",setup(e){return dn("Alerts - Mihari"),(t,n)=>(K(),re(Ee,null,[ie(RE),n[0]||(n[0]=P("hr",null,null,-1)),ie(sE)],64))}}),dg=ve({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=Ne(1),r=ye(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),i=qo(),h=async()=>{const g={q:r.value,page:n.value};return await i.perform(g)},f=g=>{n.value=g};return qe(async()=>{await h()}),Fe([t,n],async()=>{await h()}),(g,s)=>(K(),re(Ee,null,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(st,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(fg,{key:2,page:n.value.toString(),alerts:oe(i).last.value,onUpdatePage:f},null,8,["page","alerts"])):fe("",!0)],64))}}),OE={class:"block"},NE={class:"is-size-2"},DE={class:"is-clearfix"},FE={class:"table is-fullwidth is-completely-borderless"},PE={key:0},zE={class:"help"},WE={class:"block"},jE=ve({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=s=>{r.value=s},h=()=>{r.value=void 0},f=()=>{n("delete")},g=f;return(s,p)=>{const o=De("router-link");return K(),re(Ee,null,[r.value?(K(),me(st,{key:0,class:"block",error:r.value,disposable:!0,onDispose:h},null,8,["error"])):fe("",!0),P("div",OE,[P("h2",NE,pe(e.alert.id),1),P("p",DE,[ie(og,{alert:e.alert,onDelete:f,onSetError:i},null,8,["alert"])]),P("table",FE,[P("tr",null,[p[0]||(p[0]=P("th",null,"Rule",-1)),P("td",null,[ie(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Ve(()=>[Ge(pe(e.alert.ruleId),1)]),_:1},8,["to"])])]),P("tr",null,[p[1]||(p[1]=P("th",null,"Artifacts",-1)),P("td",null,[ie(sg,{artifacts:e.alert.artifacts,onDelete:oe(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(K(),re("tr",PE,[p[2]||(p[2]=P("th",null,"Tags",-1)),P("td",null,[ie(vi,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):fe("",!0)]),P("p",zE,"Created at: "+pe(e.alert.createdAt),1)]),p[4]||(p[4]=P("hr",null,null,-1)),P("div",WE,[p[3]||(p[3]=P("h2",{class:"is-size-2 block"},"Related Alerts",-1)),ie(dg,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),BE=ve({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=yr(),r=ok(),i=()=>{n.push("/")};return qe(async()=>{await r.perform(t.id)}),(h,f)=>(K(),re(Ee,null,[oe(r).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(r).isError?(K(),me(st,{key:1,error:oe(r).last?.error},null,8,["error"])):fe("",!0),oe(r).last?.value?(K(),me(jE,{key:2,alert:oe(r).last.value,onDelete:i},null,8,["alert"])):fe("",!0)],64))}}),HE=ve({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Alert:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(BE,{id:parseInt(e.id)},null,8,["id"]))}}),UE={class:"buttons is-pulled-right"},VE=["href"],GE={class:"icon is-small"},ZE={class:"icon is-small"},YE={class:"icon is-small"},KE={class:"icon is-small"},XE={key:0},QE={class:"modal is-active"},JE={class:"modal-card"},qE={class:"modal-card-head"},eM={class:"modal-card-body"},tM=ve({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/artifacts/${n.artifact.id}`),h=Ne(!1),f=ng(),g=J2(),s=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await f.perform(n.artifact.id),r("delete")}catch(u){Be.isAxiosError(u)&&r("set-error",u)}},p=async()=>{try{const a=await g.perform(n.artifact.id);r("set-message",a)}catch(a){Be.isAxiosError(a)&&r("set-error",a)}},o=ci(h);return(a,u)=>{const l=De("font-awesome-icon");return K(),re(Ee,null,[P("span",UE,[P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[u[3]||(u[3]=P("span",null,"JSON",-1)),P("span",GE,[ie(l,{icon:"barcode"})])],8,VE),e.artifact.metadata?(K(),re("button",{key:0,class:"button is-info is-light is-small",onClick:u[0]||(u[0]=c=>oe(o)())},[u[4]||(u[4]=P("span",null,"Metadata",-1)),P("span",ZE,[ie(l,{icon:"info-circle"})])])):fe("",!0),P("button",{class:"button is-primary is-light is-small",onClick:p},[u[5]||(u[5]=P("span",null,"Enrich",-1)),P("span",YE,[oe(g).isRunning?(K(),me(l,{key:0,icon:"spinner",spin:""})):(K(),me(l,{key:1,icon:"lightbulb"}))])]),P("button",{class:"button is-light is-small",onClick:s},[u[6]||(u[6]=P("span",null,"Delete",-1)),P("span",KE,[ie(l,{icon:"times"})])])]),e.artifact.metadata&&h.value?(K(),re("div",XE,[P("div",QE,[P("div",{class:"modal-background",onClick:u[1]||(u[1]=c=>oe(o)())}),P("div",JE,[P("header",qE,[u[7]||(u[7]=P("p",{class:"modal-card-title"},"Metadata",-1)),P("button",{class:"delete","aria-label":"close",onClick:u[2]||(u[2]=c=>oe(o)())})]),P("section",eM,[ie(oe(hg),{data:e.artifact.metadata},null,8,["data"])])])])])):fe("",!0)],64)}}}),pg=ui(tM,[["__scopeId","data-v-dac610f8"]]),nM={class:"notification is-info is-light"},es=ve({__name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=t,r=()=>{n("dispose")};return(i,h)=>(K(),re("div",nM,[e.disposable?(K(),re("button",{key:0,class:"delete",onClick:r})):fe("",!0),P("p",null,pe(e.message.message),1)]))}}),rM={class:"box"},iM={class:"block"},oM={class:"table is-fullwidth is-completely-borderless"},sM={key:0},aM={class:"help"},lM=ve({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=o=>{r.value=o},f=()=>{r.value=void 0},g=()=>{n("delete")},s=o=>{o.queued&&(i.value=o)},p=()=>{i.value=void 0};return(o,a)=>{const u=De("router-link");return K(),re("div",rM,[r.value?(K(),me(st,{key:0,class:"block",error:r.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),i.value?(K(),me(es,{key:1,class:"block",message:i.value,disposable:!0,onDispose:p},null,8,["message"])):fe("",!0),P("div",iM,[P("p",null,[ie(pg,{artifact:e.artifact,onDelete:g,onSetError:h,onSetMessage:s},null,8,["artifact"])]),ie(u,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Ve(()=>[Ge(pe(e.artifact.id),1)]),_:1},8,["to"])]),P("table",oM,[P("tr",null,[a[0]||(a[0]=P("th",null,"Data",-1)),P("td",null,pe(e.artifact.data),1)]),P("tr",null,[a[1]||(a[1]=P("th",null,"Data Type",-1)),P("td",null,pe(e.artifact.dataType),1)]),P("tr",null,[a[2]||(a[2]=P("th",null,"Source",-1)),P("td",null,pe(e.artifact.source),1)]),P("tr",null,[a[3]||(a[3]=P("th",null,"Query",-1)),P("td",null,pe(oe(qr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),re("tr",sM,[a[4]||(a[4]=P("th",null,"Tags",-1)),P("td",null,[ie(vi,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):fe("",!0)]),a[5]||(a[5]=P("p",{class:"block is-clearfix"},null,-1)),P("p",aM,"Created at: "+pe(e.artifact.createdAt),1)])}}}),cM={key:0},uM={class:"help"},hM={key:1},fM=ve({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>n.artifacts.results.length>0),h=g=>{r("update-page",g)},f=()=>{r("refresh")};return(g,s)=>i.value?(K(),re("div",cM,[(K(!0),re(Ee,null,Tt(e.artifacts.results,p=>(K(),me(lM,{artifact:p,key:p.id,onDelete:f},null,8,["artifact"]))),128)),ie(Rl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:h},null,8,["total","currentPage","pageSize"]),P("p",uM," ("+pe(e.artifacts.total)+" results in total, "+pe(e.artifacts.results.length)+" shown) ",1)])):(K(),re("div",hM,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1)])]))}}),dM={class:"block"},pM={class:"field has-addons"},gM={class:"control is-expanded"},mM={class:"control"},vM={class:"icon is-small"},yM={class:"control"},bM={class:"icon is-small"},wM={key:0,class:"content mt-3"},SM={key:0,class:"block"},$M=ve({__name:"ArtifactsWrapper",setup(e){const t=fr("page","1"),n=fr("q",""),r=Ne(!1),i=Ll(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=ci(r);return qe(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,a)=>{const u=De("font-awesome-icon");return K(),re(Ee,null,[P("div",dM,[P("div",pM,[P("p",gM,[rl(P("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=l=>Je(n)?n.value=l:null)},null,512),[[hl,oe(n)]])]),P("p",mM,[P("a",{class:"button is-primary",onClick:g},[P("span",vM,[ie(u,{icon:"search"})]),a[2]||(a[2]=P("span",null,"Search",-1))])]),P("p",yM,[P("a",{class:"button is-info",onClick:a[1]||(a[1]=l=>oe(p)())},[P("span",bM,[ie(u,{icon:"question"})]),a[3]||(a[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",wM,[...a[4]||(a[4]=[cl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li><code>id</code>, <code>data</code>, <code>data_type</code>, <code>source</code>, <code>query</code>, <code>tag</code>, <code>rule.id</code>, <code>rule.title</code>, <code>rule.description</code>, <code>tag</code>,<code>created_at</code>, <code>asn</code>, <code>country_code</code>, <code>dns_record.value</code>, <code>dns_record.resource</code>, <code>reverse_dns_name</code>, <code>cpe</code>, <code>vuln</code> and <code>port</code>. </li></ul>',2)])])):fe("",!0)]),oe(i).performCount>0?(K(),re("div",SM,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(st,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(fM,{key:2,artifacts:oe(i).last.value,onUpdatePage:f,onRefresh:oe(s)},null,8,["artifacts","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),_M=ve({__name:"ArtifactsView",setup(e){const t=()=>{dn("Artifacts - Mihari")};return qe(()=>{t()}),(n,r)=>(K(),me($M))}}),CM={class:"tags are-medium"},xM=ve({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,r)=>{const i=De("router-link");return K(),re("div",CM,[ie(i,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:Ve(()=>[Ge(pe(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),AM={class:"tags are-medium"},kM=ve({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",AM,[(K(!0),re(Ee,null,Tt(e.cpes,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ve(()=>[Ge(pe(h.name),1)]),_:2},1032,["to"]))),128))])}}}),EM={class:"field is-grouped is-grouped-multiline"},MM={class:"tags has-addons are-medium"},TM={class:"tag is-dark"},LM=ve({__name:"DnsRecordsItem",props:{dnsRecords:{type:Array,required:!0}},setup(e){const t=({resource:n,value:r})=>`dns_record.value:"${r}" AND dns_record.resource:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",EM,[(K(!0),re(Ee,null,Tt(e.dnsRecords,(h,f)=>(K(),re("div",{class:"control",key:f},[P("div",MM,[P("span",TM,pe(h.resource),1),ie(i,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:h.resource,value:h.value})}}},{default:Ve(()=>[Ge(pe(oe(qr)(h.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),RM={class:"tags are-medium"},IM=ve({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,r)=>{const i=De("router-link");return K(),re("div",RM,[(K(!0),re(Ee,null,Tt(e.ports,h=>(K(),me(i,{class:"tag",key:h.number,to:{name:"Artifacts",query:{q:t(h.number)}}},{default:Ve(()=>[Ge(pe(h.number),1)]),_:2},1032,["to"]))),128))])}}}),OM={class:"tags are-medium"},NM=ve({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",OM,[(K(!0),re(Ee,null,Tt(e.reverseDnsNames,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ve(()=>[Ge(pe(h.name),1)]),_:2},1032,["to"]))),128))])}}}),DM={class:"tags are-medium"},FM=ve({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,r)=>{const i=De("router-link");return K(),re("div",DM,[(K(!0),re(Ee,null,Tt(e.vulnerabilities,h=>(K(),me(i,{class:"tag",key:h.name,to:{name:"Artifacts",query:{q:t(h.name)}}},{default:Ve(()=>[Ge(pe(h.name),1)]),_:2},1032,["to"]))),128))])}}}),PM={class:"field is-grouped is-grouped-multiline"},zM={class:"control"},WM={class:"tags has-addons are-medium"},jM={class:"tag"},BM={class:"control"},HM={class:"tags has-addons are-medium"},UM={class:"tag"},VM={class:"control"},GM={class:"tags has-addons are-medium"},ZM={class:"tag"},YM={class:"control"},KM={class:"tags has-addons are-medium"},XM={class:"tag"},QM=ve({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>(K(),re("div",PM,[P("div",zM,[P("div",WM,[n[0]||(n[0]=P("span",{class:"tag is-dark"},"Registrar",-1)),P("span",jM,pe(e.whoisRecord.registrar?.name||"N/A"),1)])]),P("div",BM,[P("div",HM,[n[1]||(n[1]=P("span",{class:"tag is-dark"},"Created on",-1)),P("span",UM,pe(e.whoisRecord.createdOn||"N/A"),1)])]),P("div",VM,[P("div",GM,[n[2]||(n[2]=P("span",{class:"tag is-dark"},"Updated on",-1)),P("span",ZM,pe(e.whoisRecord.updatedOn||"N/A"),1)])]),P("div",YM,[P("div",KM,[n[3]||(n[3]=P("span",{class:"tag is-dark"},"Expires on",-1)),P("span",XM,pe(e.whoisRecord.expiresOn||"N/A"),1)])])]))}}),JM=["href"],qM=["src"],eT=ve({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Nd();return(n,r)=>(K(),re("a",{href:e.link.href(e.data),class:oi(["tag",oe(t)?"":"is-white"]),target:"_blank"},[P("img",{src:e.link.favicon(),alt:"favicon"},null,8,qM),P("span",null,pe(e.link.name),1)],10,JM))}}),tT=ui(eT,[["__scopeId","data-v-d0b695fc"]]);class Rt{baseURL;constructor(){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 nT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(t){return this.baseURL+`/submissions/#filehash:${t}`}}class rT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(t){return this.baseURL+`/hosts/${t}`}}class iT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(t){return this.baseURL+`/?q=${t}`}}class oT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class sT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class aT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(t){return this.baseURL+`/${t}`}}class lT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class cT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(t){return this.baseURL+`/#/files/${t}`}}class gg extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(t){return this.baseURL+`/indicator/ip/${t}`}}class uT extends gg{type;constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/indicator/domain/${t}`}}class mg extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class hT extends mg{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class fT extends mg{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class dT extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(t){return this.baseURL+`/host/${t}`}}class Il extends Rt{baseURL;name;type;constructor(){super(),this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class pT extends Il{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class gT extends Il{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class mT extends Il{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Ta=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vT(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return 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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Os={exports:{}};const yT={},bT=Object.freeze(Object.defineProperty({__proto__:null,default:yT},Symbol.toStringTag,{value:"Module"})),oh=vT(bT);/**
|
617
|
+
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
618
|
+
*
|
619
|
+
* @version 0.11.1
|
620
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
621
|
+
* @copyright Chen, Yi-Cyuan 2014-2025
|
622
|
+
* @license MIT
|
623
|
+
*/var sh;function wT(){return sh||(sh=1,function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&typeof self=="object",h=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node&&process.type!="renderer";h?r=Ta:i&&(r=self);var f=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],o=[24,16,8,0],a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],u=["hex","array","digest","arrayBuffer"],l=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),g&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var c=function(b,A){return function(R){return new _(A,!0).update(R)[b]()}},d=function(b){var A=c("hex",b);h&&(A=m(A,b)),A.create=function(){return new _(b)},A.update=function(L){return A.create().update(L)};for(var R=0;R<u.length;++R){var E=u[R];A[E]=c(E,b)}return A},m=function(b,A){var R=oh,E=oh.Buffer,L=A?"sha224":"sha256",O;E.from&&!r.JS_SHA256_NO_BUFFER_FROM?O=E.from:O=function(x){return new E(x)};var M=function(x){if(typeof x=="string")return R.createHash(L).update(x,"utf8").digest("hex");if(x==null)throw new Error(t);return x.constructor===ArrayBuffer&&(x=new Uint8Array(x)),Array.isArray(x)||ArrayBuffer.isView(x)||x.constructor===E?R.createHash(L).update(O(x)).digest("hex"):b(x)};return M},v=function(b,A){return function(R,E){return new $(R,A,!0).update(E)[b]()}},y=function(b){var A=v("hex",b);A.create=function(L){return new $(L,b)},A.update=function(L,O){return A.create(L).update(O)};for(var R=0;R<u.length;++R){var E=u[R];A[E]=v(E,b)}return A};function _(b,A){A?(l[0]=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0,this.blocks=l):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=b}_.prototype.update=function(b){if(!this.finalized){var A,R=typeof b;if(R!=="string"){if(R==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);A=!0}for(var E,L=0,O,M=b.length,x=this.blocks;L<M;){if(this.hashed&&(this.hashed=!1,x[0]=this.block,this.block=x[16]=x[1]=x[2]=x[3]=x[4]=x[5]=x[6]=x[7]=x[8]=x[9]=x[10]=x[11]=x[12]=x[13]=x[14]=x[15]=0),A)for(O=this.start;L<M&&O<64;++L)x[O>>>2]|=b[L]<<o[O++&3];else for(O=this.start;L<M&&O<64;++L)E=b.charCodeAt(L),E<128?x[O>>>2]|=E<<o[O++&3]:E<2048?(x[O>>>2]|=(192|E>>>6)<<o[O++&3],x[O>>>2]|=(128|E&63)<<o[O++&3]):E<55296||E>=57344?(x[O>>>2]|=(224|E>>>12)<<o[O++&3],x[O>>>2]|=(128|E>>>6&63)<<o[O++&3],x[O>>>2]|=(128|E&63)<<o[O++&3]):(E=65536+((E&1023)<<10|b.charCodeAt(++L)&1023),x[O>>>2]|=(240|E>>>18)<<o[O++&3],x[O>>>2]|=(128|E>>>12&63)<<o[O++&3],x[O>>>2]|=(128|E>>>6&63)<<o[O++&3],x[O>>>2]|=(128|E&63)<<o[O++&3]);this.lastByteIndex=O,this.bytes+=O-this.start,O>=64?(this.block=x[16],this.start=O-64,this.hash(),this.hashed=!0):this.start=O}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},_.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,A=this.lastByteIndex;b[16]=this.block,b[A>>>2]|=p[A&3],this.block=b[16],A>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},_.prototype.hash=function(){var b=this.h0,A=this.h1,R=this.h2,E=this.h3,L=this.h4,O=this.h5,M=this.h6,x=this.h7,C=this.blocks,S,k,T,I,N,D,F,H,W,U,G;for(S=16;S<64;++S)N=C[S-15],k=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=C[S-2],T=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,C[S]=C[S-16]+k+C[S-7]+T<<0;for(G=A&R,S=0;S<64;S+=4)this.first?(this.is224?(H=300032,N=C[0]-1413257819,x=N-150054599<<0,E=N+24177077<<0):(H=704751109,N=C[0]-210244248,x=N-1521486534<<0,E=N+143694565<<0),this.first=!1):(k=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),T=(L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7),H=b&A,I=H^b&R^G,F=L&O^~L&M,N=x+T+F+a[S]+C[S],D=k+I,x=E+N<<0,E=N+D<<0),k=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),T=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),W=E&b,I=W^E&A^H,F=x&L^~x&O,N=M+T+F+a[S+1]+C[S+1],D=k+I,M=R+N<<0,R=N+D<<0,k=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),T=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),U=R&E,I=U^R&b^W,F=M&x^~M&L,N=O+T+F+a[S+2]+C[S+2],D=k+I,O=A+N<<0,A=N+D<<0,k=(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),T=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),G=A&R,I=G^A&E^U,F=O&M^~O&x,N=L+T+F+a[S+3]+C[S+3],D=k+I,L=b+N<<0,b=N+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+A<<0,this.h2=this.h2+R<<0,this.h3=this.h3+E<<0,this.h4=this.h4+L<<0,this.h5=this.h5+O<<0,this.h6=this.h6+M<<0,this.h7=this.h7+x<<0},_.prototype.hex=function(){this.finalize();var b=this.h0,A=this.h1,R=this.h2,E=this.h3,L=this.h4,O=this.h5,M=this.h6,x=this.h7,C=s[b>>>28&15]+s[b>>>24&15]+s[b>>>20&15]+s[b>>>16&15]+s[b>>>12&15]+s[b>>>8&15]+s[b>>>4&15]+s[b&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]+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[E>>>28&15]+s[E>>>24&15]+s[E>>>20&15]+s[E>>>16&15]+s[E>>>12&15]+s[E>>>8&15]+s[E>>>4&15]+s[E&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[O>>>28&15]+s[O>>>24&15]+s[O>>>20&15]+s[O>>>16&15]+s[O>>>12&15]+s[O>>>8&15]+s[O>>>4&15]+s[O&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];return this.is224||(C+=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]),C},_.prototype.toString=_.prototype.hex,_.prototype.digest=function(){this.finalize();var b=this.h0,A=this.h1,R=this.h2,E=this.h3,L=this.h4,O=this.h5,M=this.h6,x=this.h7,C=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255,R>>>24&255,R>>>16&255,R>>>8&255,R&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,O>>>24&255,O>>>16&255,O>>>8&255,O&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255];return this.is224||C.push(x>>>24&255,x>>>16&255,x>>>8&255,x&255),C},_.prototype.array=_.prototype.digest,_.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),A=new DataView(b);return A.setUint32(0,this.h0),A.setUint32(4,this.h1),A.setUint32(8,this.h2),A.setUint32(12,this.h3),A.setUint32(16,this.h4),A.setUint32(20,this.h5),A.setUint32(24,this.h6),this.is224||A.setUint32(28,this.h7),b};function $(b,A,R){var E,L=typeof b;if(L==="string"){var O=[],M=b.length,x=0,C;for(E=0;E<M;++E)C=b.charCodeAt(E),C<128?O[x++]=C:C<2048?(O[x++]=192|C>>>6,O[x++]=128|C&63):C<55296||C>=57344?(O[x++]=224|C>>>12,O[x++]=128|C>>>6&63,O[x++]=128|C&63):(C=65536+((C&1023)<<10|b.charCodeAt(++E)&1023),O[x++]=240|C>>>18,O[x++]=128|C>>>12&63,O[x++]=128|C>>>6&63,O[x++]=128|C&63);b=O}else if(L==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new _(A,!0).update(b).array());var S=[],k=[];for(E=0;E<64;++E){var T=b[E]||0;S[E]=92^T,k[E]=54^T}_.call(this,A,R),this.update(k),this.oKeyPad=S,this.inner=!0,this.sharedMemory=R}$.prototype=new _,$.prototype.finalize=function(){if(_.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();_.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),_.prototype.finalize.call(this)}};var w=d();w.sha256=w,w.sha224=d(!0),w.sha256.hmac=y(),w.sha224.hmac=y(!0),f?e.exports=w:(r.sha256=w.sha256,r.sha224=w.sha224)})()}(Os)),Os.exports}var ST=wT(),Ns,ah;function $T(){return ah||(ah=1,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}),Ns}var Ti={},lh;function _T(){if(lh)return Ti;lh=1;var e=Object.prototype.hasOwnProperty,t;function n(f){try{return decodeURIComponent(f.replace(/\+/g," "))}catch{return null}}function r(f){try{return encodeURIComponent(f)}catch{return null}}function i(f){for(var g=/([^=?#&]+)=?([^&]*)/g,s={},p;p=g.exec(f);){var o=n(p[1]),a=n(p[2]);o===null||a===null||o in s||(s[o]=a)}return s}function h(f,g){g=g||"";var s=[],p,o;typeof g!="string"&&(g="?");for(o in f)if(e.call(f,o)){if(p=f[o],!p&&(p===null||p===t||isNaN(p))&&(p=""),o=r(o),p=r(p),o===null||p===null)continue;s.push(o+"="+p)}return s.length?g+s.join("&"):""}return Ti.stringify=h,Ti.parse=i,Ti}var Ds,ch;function CT(){if(ch)return Ds;ch=1;var e=$T(),t=_T(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,h=/:\d+$/,f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function s(y){return(y||"").toString().replace(n,"")}var p=[["#","hash"],["?","query"],function(_,$){return u($.protocol)?_.replace(/\\/g,"/"):_},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],o={hash:1,query:1};function a(y){var _;typeof window<"u"?_=window:typeof Ta<"u"?_=Ta:typeof self<"u"?_=self:_={};var $=_.location||{};y=y||$;var w={},b=typeof y,A;if(y.protocol==="blob:")w=new d(unescape(y.pathname),{});else if(b==="string"){w=new d(y,{});for(A in o)delete w[A]}else if(b==="object"){for(A in y)A in o||(w[A]=y[A]);w.slashes===void 0&&(w.slashes=i.test(y.href))}return w}function u(y){return y==="file:"||y==="ftp:"||y==="http:"||y==="https:"||y==="ws:"||y==="wss:"}function l(y,_){y=s(y),y=y.replace(r,""),_=_||{};var $=f.exec(y),w=$[1]?$[1].toLowerCase():"",b=!!$[2],A=!!$[3],R=0,E;return b?A?(E=$[2]+$[3]+$[4],R=$[2].length+$[3].length):(E=$[2]+$[4],R=$[2].length):A?(E=$[3]+$[4],R=$[3].length):E=$[4],w==="file:"?R>=2&&(E=E.slice(2)):u(w)?E=$[4]:w?b&&(E=E.slice(2)):R>=2&&u(_.protocol)&&(E=$[4]),{protocol:w,slashes:b||u(w),slashesCount:R,rest:E}}function c(y,_){if(y==="")return _;for(var $=(_||"/").split("/").slice(0,-1).concat(y.split("/")),w=$.length,b=$[w-1],A=!1,R=0;w--;)$[w]==="."?$.splice(w,1):$[w]===".."?($.splice(w,1),R++):R&&(w===0&&(A=!0),$.splice(w,1),R--);return A&&$.unshift(""),(b==="."||b==="..")&&$.push(""),$.join("/")}function d(y,_,$){if(y=s(y),y=y.replace(r,""),!(this instanceof d))return new d(y,_,$);var w,b,A,R,E,L,O=p.slice(),M=typeof _,x=this,C=0;for(M!=="object"&&M!=="string"&&($=_,_=null),$&&typeof $!="function"&&($=t.parse),_=a(_),b=l(y||"",_),w=!b.protocol&&!b.slashes,x.slashes=b.slashes||w&&_.slashes,x.protocol=b.protocol||_.protocol||"",y=b.rest,(b.protocol==="file:"&&(b.slashesCount!==2||g.test(y))||!b.slashes&&(b.protocol||b.slashesCount<2||!u(x.protocol)))&&(O[3]=[/(.*)/,"pathname"]);C<O.length;C++){if(R=O[C],typeof R=="function"){y=R(y,x);continue}A=R[0],L=R[1],A!==A?x[L]=y:typeof A=="string"?(E=A==="@"?y.lastIndexOf(A):y.indexOf(A),~E&&(typeof R[2]=="number"?(x[L]=y.slice(0,E),y=y.slice(E+R[2])):(x[L]=y.slice(E),y=y.slice(0,E)))):(E=A.exec(y))&&(x[L]=E[1],y=y.slice(0,E.index)),x[L]=x[L]||w&&R[3]&&_[L]||"",R[4]&&(x[L]=x[L].toLowerCase())}$&&(x.query=$(x.query)),w&&_.slashes&&x.pathname.charAt(0)!=="/"&&(x.pathname!==""||_.pathname!=="")&&(x.pathname=c(x.pathname,_.pathname)),x.pathname.charAt(0)!=="/"&&u(x.protocol)&&(x.pathname="/"+x.pathname),e(x.port,x.protocol)||(x.host=x.hostname,x.port=""),x.username=x.password="",x.auth&&(E=x.auth.indexOf(":"),~E?(x.username=x.auth.slice(0,E),x.username=encodeURIComponent(decodeURIComponent(x.username)),x.password=x.auth.slice(E+1),x.password=encodeURIComponent(decodeURIComponent(x.password))):x.username=encodeURIComponent(decodeURIComponent(x.auth)),x.auth=x.password?x.username+":"+x.password:x.username),x.origin=x.protocol!=="file:"&&u(x.protocol)&&x.host?x.protocol+"//"+x.host:"null",x.href=x.toString()}function m(y,_,$){var w=this;switch(y){case"query":typeof _=="string"&&_.length&&(_=($||t.parse)(_)),w[y]=_;break;case"port":w[y]=_,e(_,w.protocol)?_&&(w.host=w.hostname+":"+_):(w.host=w.hostname,w[y]="");break;case"hostname":w[y]=_,w.port&&(_+=":"+w.port),w.host=_;break;case"host":w[y]=_,h.test(_)?(_=_.split(":"),w.port=_.pop(),w.hostname=_.join(":")):(w.hostname=_,w.port="");break;case"protocol":w.protocol=_.toLowerCase(),w.slashes=!$;break;case"pathname":case"hash":if(_){var b=y==="pathname"?"/":"#";w[y]=_.charAt(0)!==b?b+_:_}else w[y]=_;break;case"username":case"password":w[y]=encodeURIComponent(_);break;case"auth":var A=_.indexOf(":");~A?(w.username=_.slice(0,A),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=_.slice(A+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(_))}for(var R=0;R<p.length;R++){var E=p[R];E[4]&&(w[E[1]]=w[E[1]].toLowerCase())}return w.auth=w.password?w.username+":"+w.password:w.username,w.origin=w.protocol!=="file:"&&u(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString(),w}function v(y){(!y||typeof y!="function")&&(y=t.stringify);var _,$=this,w=$.host,b=$.protocol;b&&b.charAt(b.length-1)!==":"&&(b+=":");var A=b+($.protocol&&$.slashes||u($.protocol)?"//":"");return $.username?(A+=$.username,$.password&&(A+=":"+$.password),A+="@"):$.password?(A+=":"+$.password,A+="@"):$.protocol!=="file:"&&u($.protocol)&&!w&&$.pathname!=="/"&&(A+="@"),(w[w.length-1]===":"||h.test($.hostname)&&!$.port)&&(w+=":"),A+=w+$.pathname,_=typeof $.query=="object"?y($.query):$.query,_&&(A+=_.charAt(0)!=="?"?"?"+_:_),$.hash&&(A+=$.hash),A}return d.prototype={set:m,toString:v},d.extractProtocol=l,d.location=a,d.trimLeft=s,d.qs=t,Ds=d,Ds}var xT=CT();const AT=$r(xT);class ts extends Rt{baseURL;name;type;constructor(){super(),this.name="VirusTotal",this.baseURL="https://www.virustotal.com",this.type="domain"}}class kT extends ts{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/gui/domain/${t}/detection`}}class ET extends ts{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/gui/ip-address/${t}/details`}}class MT extends ts{constructor(){super(),this.type="url"}href(t){const n=ST.sha256(this.normalizeURL(t));return this.baseURL+`/gui/url/${n}/details`}normalizeURL(t){return new AT(t).pathname==="/"&&!t.endsWith("/")?`${t}/`:t}}class TT extends ts{constructor(){super(),this.type="hash"}href(t){return this.baseURL+`/gui/file/${t}/details`}}const LT=[new nT,new rT,new iT,new sT,new oT,new aT,new lT,new cT,new uT,new gg,new hT,new fT,new dT,new pT,new gT,new mT,new kT,new TT,new ET,new MT],RT={class:"tags are-medium"},IT=ve({__name:"LinksItem",props:{data:{type:String,required:!0},type:{type:String,required:!0}},setup(e){const t=e,n=ye(()=>LT.filter(r=>r.type===t.type));return(r,i)=>(K(),re("div",RT,[(K(!0),re(Ee,null,Tt(n.value,h=>(K(),me(tT,{data:e.data,link:h,key:h.name},null,8,["data","link"]))),128))]))}});var Gi={exports:{}},OT=Gi.exports,uh;function NT(){return uh||(uh=1,function(e,t){(function(n,r){e.exports=r()})(OT,function(){var n=1e3,r=6e4,i=36e5,h="millisecond",f="second",g="minute",s="hour",p="day",o="week",a="month",u="quarter",l="year",c="date",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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(C){var S=["th","st","nd","rd"],k=C%100;return"["+C+(S[(k-20)%10]||S[k]||S[0])+"]"}},_=function(C,S,k){var T=String(C);return!T||T.length>=S?C:""+Array(S+1-T.length).join(k)+C},$={s:_,z:function(C){var S=-C.utcOffset(),k=Math.abs(S),T=Math.floor(k/60),I=k%60;return(S<=0?"+":"-")+_(T,2,"0")+":"+_(I,2,"0")},m:function C(S,k){if(S.date()<k.date())return-C(k,S);var T=12*(k.year()-S.year())+(k.month()-S.month()),I=S.clone().add(T,a),N=k-I<0,D=S.clone().add(T+(N?-1:1),a);return+(-(T+(k-I)/(N?I-D:D-I))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:a,y:l,w:o,d:p,D:c,h:s,m:g,s:f,ms:h,Q:u}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},w="en",b={};b[w]=y;var A="$isDayjsObject",R=function(C){return C instanceof M||!(!C||!C[A])},E=function C(S,k,T){var I;if(!S)return w;if(typeof S=="string"){var N=S.toLowerCase();b[N]&&(I=N),k&&(b[N]=k,I=N);var D=S.split("-");if(!I&&D.length>1)return C(D[0])}else{var F=S.name;b[F]=S,I=F}return!T&&I&&(w=I),I||!T&&w},L=function(C,S){if(R(C))return C.clone();var k=typeof S=="object"?S:{};return k.date=C,k.args=arguments,new M(k)},O=$;O.l=E,O.i=R,O.w=function(C,S){return L(C,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var M=function(){function C(k){this.$L=E(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[A]=!0}var S=C.prototype;return S.parse=function(k){this.$d=function(T){var I=T.date,N=T.utc;if(I===null)return new Date(NaN);if(O.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var D=I.match(m);if(D){var F=D[2]-1||0,H=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],F,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],F,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(I)}(k),this.init()},S.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},S.$utils=function(){return O},S.isValid=function(){return this.$d.toString()!==d},S.isSame=function(k,T){var I=L(k);return this.startOf(T)<=I&&I<=this.endOf(T)},S.isAfter=function(k,T){return L(k)<this.startOf(T)},S.isBefore=function(k,T){return this.endOf(T)<L(k)},S.$g=function(k,T,I){return O.u(k)?this[T]:this.set(I,k)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(k,T){var I=this,N=!!O.u(T)||T,D=O.p(k),F=function(X,Q){var le=O.w(I.$u?Date.UTC(I.$y,Q,X):new Date(I.$y,Q,X),I);return N?le:le.endOf(p)},H=function(X,Q){return O.w(I.toDate()[X].apply(I.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Q)),I)},W=this.$W,U=this.$M,G=this.$D,V="set"+(this.$u?"UTC":"");switch(D){case l:return N?F(1,0):F(31,11);case a:return N?F(1,U):F(0,U+1);case o:var j=this.$locale().weekStart||0,Z=(W<j?W+7:W)-j;return F(N?G-Z:G+(6-Z),U);case p:case c:return H(V+"Hours",0);case s:return H(V+"Minutes",1);case g:return H(V+"Seconds",2);case f:return H(V+"Milliseconds",3);default:return this.clone()}},S.endOf=function(k){return this.startOf(k,!1)},S.$set=function(k,T){var I,N=O.p(k),D="set"+(this.$u?"UTC":""),F=(I={},I[p]=D+"Date",I[c]=D+"Date",I[a]=D+"Month",I[l]=D+"FullYear",I[s]=D+"Hours",I[g]=D+"Minutes",I[f]=D+"Seconds",I[h]=D+"Milliseconds",I)[N],H=N===p?this.$D+(T-this.$W):T;if(N===a||N===l){var W=this.clone().set(c,1);W.$d[F](H),W.init(),this.$d=W.set(c,Math.min(this.$D,W.daysInMonth())).$d}else F&&this.$d[F](H);return this.init(),this},S.set=function(k,T){return this.clone().$set(k,T)},S.get=function(k){return this[O.p(k)]()},S.add=function(k,T){var I,N=this;k=Number(k);var D=O.p(T),F=function(U){var G=L(N);return O.w(G.date(G.date()+Math.round(U*k)),N)};if(D===a)return this.set(a,this.$M+k);if(D===l)return this.set(l,this.$y+k);if(D===p)return F(1);if(D===o)return F(7);var H=(I={},I[g]=r,I[s]=i,I[f]=n,I)[D]||1,W=this.$d.getTime()+k*H;return O.w(W,this)},S.subtract=function(k,T){return this.add(-1*k,T)},S.format=function(k){var T=this,I=this.$locale();if(!this.isValid())return I.invalidDate||d;var N=k||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),F=this.$H,H=this.$m,W=this.$M,U=I.weekdays,G=I.months,V=I.meridiem,j=function(Q,le,z,B){return Q&&(Q[le]||Q(T,N))||z[le].slice(0,B)},Z=function(Q){return O.s(F%12||12,Q,"0")},X=V||function(Q,le,z){var B=Q<12?"AM":"PM";return z?B.toLowerCase():B};return N.replace(v,function(Q,le){return le||function(z){switch(z){case"YY":return String(T.$y).slice(-2);case"YYYY":return O.s(T.$y,4,"0");case"M":return W+1;case"MM":return O.s(W+1,2,"0");case"MMM":return j(I.monthsShort,W,G,3);case"MMMM":return j(G,W);case"D":return T.$D;case"DD":return O.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return j(I.weekdaysMin,T.$W,U,2);case"ddd":return j(I.weekdaysShort,T.$W,U,3);case"dddd":return U[T.$W];case"H":return String(F);case"HH":return O.s(F,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return X(F,H,!0);case"A":return X(F,H,!1);case"m":return String(H);case"mm":return O.s(H,2,"0");case"s":return String(T.$s);case"ss":return O.s(T.$s,2,"0");case"SSS":return O.s(T.$ms,3,"0");case"Z":return D}return null}(Q)||D.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(k,T,I){var N,D=this,F=O.p(T),H=L(k),W=(H.utcOffset()-this.utcOffset())*r,U=this-H,G=function(){return O.m(D,H)};switch(F){case l:N=G()/12;break;case a:N=G();break;case u:N=G()/3;break;case o:N=(U-W)/6048e5;break;case p:N=(U-W)/864e5;break;case s:N=U/i;break;case g:N=U/r;break;case f:N=U/n;break;default:N=U}return I?N:O.a(N)},S.daysInMonth=function(){return this.endOf(a).$D},S.$locale=function(){return b[this.$L]},S.locale=function(k,T){if(!k)return this.$L;var I=this.clone(),N=E(k,T,!0);return N&&(I.$L=N),I},S.clone=function(){return O.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},C}(),x=M.prototype;return L.prototype=x,[["$ms",h],["$s",f],["$m",g],["$H",s],["$W",p],["$M",a],["$y",l],["$D",c]].forEach(function(C){x[C[1]]=function(S){return this.$g(S,C[0],C[1])}}),L.extend=function(C,S){return C.$i||(C(S,M,L),C.$i=!0),L},L.locale=E,L.isDayjs=R,L.unix=function(C){return L(1e3*C)},L.en=b[w],L.Ls=b,L.p={},L})}(Gi)),Gi.exports}var DT=NT();const ns=$r(DT);var Zi={exports:{}},FT=Zi.exports,hh;function PT(){return hh||(hh=1,function(e,t){(function(n,r){e.exports=r()})(FT,function(){return function(n,r,i){n=n||{};var h=r.prototype,f={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,o,a,u){return h.fromToBase(p,o,a,u)}i.en.relativeTime=f,h.fromToBase=function(p,o,a,u,l){for(var c,d,m,v=a.$locale().relativeTime||f,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],_=y.length,$=0;$<_;$+=1){var w=y[$];w.d&&(c=u?i(p).diff(a,w.d,!0):a.diff(p,w.d,!0));var b=(n.rounding||Math.round)(Math.abs(c));if(m=c>0,b<=w.r||!w.r){b<=1&&$>0&&(w=y[$-1]);var A=v[w.l];l&&(b=l(""+b)),d=typeof A=="string"?A.replace("%d",b):A(b,o,w.l,m);break}}if(o)return d;var R=m?v.future:v.past;return typeof R=="function"?R(d):R.replace("%s",d)},h.to=function(p,o){return g(p,o,this,!0)},h.from=function(p,o){return g(p,o,this)};var s=function(p){return p.$u?i.utc():i()};h.toNow=function(p){return this.to(s(this),p)},h.fromNow=function(p){return this.from(s(this),p)}}})}(Zi)),Zi.exports}var zT=PT();const WT=$r(zT);var Yi={exports:{}},jT=Yi.exports,fh;function BT(){return fh||(fh=1,function(e,t){(function(n,r){e.exports=r()})(jT,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,h,f){var g,s=function(u,l,c){c===void 0&&(c={});var d=new Date(u),m=function(v,y){y===void 0&&(y={});var _=y.timeZoneName||"short",$=v+"|"+_,w=r[$];return w||(w=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[$]=w),w}(l,c);return m.formatToParts(d)},p=function(u,l){for(var c=s(u,l),d=[],m=0;m<c.length;m+=1){var v=c[m],y=v.type,_=v.value,$=n[y];$>=0&&(d[$]=parseInt(_,10))}var w=d[3],b=w===24?0:w,A=d[0]+"-"+d[1]+"-"+d[2]+" "+b+":"+d[4]+":"+d[5]+":000",R=+u;return(f.utc(A).valueOf()-(R-=R%1e3))/6e4},o=h.prototype;o.tz=function(u,l){u===void 0&&(u=g);var c,d=this.utcOffset(),m=this.toDate(),v=m.toLocaleString("en-US",{timeZone:u}),y=Math.round((m-new Date(v))/1e3/60),_=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number(_))c=this.utcOffset(0,l);else if(c=f(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),l){var $=c.utcOffset();c=c.add(d-$,"minute")}return c.$x.$timezone=u,c},o.offsetName=function(u){var l=this.$x.$timezone||f.tz.guess(),c=s(this.valueOf(),l,{timeZoneName:u}).find(function(d){return d.type.toLowerCase()==="timezonename"});return c&&c.value};var a=o.startOf;o.startOf=function(u,l){if(!this.$x||!this.$x.$timezone)return a.call(this,u,l);var c=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(c,u,l).tz(this.$x.$timezone,!0)},f.tz=function(u,l,c){var d=c&&l,m=c||l||g,v=p(+f(),m);if(typeof u!="string")return f(u).tz(m);var y=function(b,A,R){var E=b-60*A*1e3,L=p(E,R);if(A===L)return[E,A];var O=p(E-=60*(L-A)*1e3,R);return L===O?[E,L]:[b-60*Math.min(L,O)*1e3,Math.max(L,O)]}(f.utc(u,d).valueOf(),v,m),_=y[0],$=y[1],w=f(_).utcOffset($);return w.$x.$timezone=m,w},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(u){g=u}}})}(Yi)),Yi.exports}var HT=BT();const UT=$r(HT);var Ki={exports:{}},VT=Ki.exports,dh;function GT(){return dh||(dh=1,function(e,t){(function(n,r){e.exports=r()})(VT,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(h,f,g){var s=f.prototype;g.utc=function(d){var m={date:d,utc:!0,args:arguments};return new f(m)},s.utc=function(d){var m=g(this.toDate(),{locale:this.$L,utc:!0});return d?m.add(this.utcOffset(),n):m},s.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=s.parse;s.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),p.call(this,d)};var o=s.init;s.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else o.call(this)};var a=s.utcOffset;s.utcOffset=function(d,m){var v=this.$utils().u;if(v(d))return this.$u?0:v(this.$offset)?a.call(this):this.$offset;if(typeof d=="string"&&(d=function(w){w===void 0&&(w="");var b=w.match(r);if(!b)return null;var A=(""+b[0]).match(i)||["-",0,0],R=A[0],E=60*+A[1]+ +A[2];return E===0?0:R==="+"?E:-E}(d),d===null))return this;var y=Math.abs(d)<=16?60*d:d;if(y===0)return this.utc(m);var _=this.clone();if(m)return _.$offset=y,_.$u=!1,_;var $=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(y+$,n)).$offset=y,_.$x.$localOffset=$,_};var u=s.format;s.format=function(d){var m=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,m)},s.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(d){return d==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=s.diff;s.diff=function(d,m,v){if(d&&this.$u===d.$u)return c.call(this,d,m,v);var y=this.local(),_=g(d).local();return c.call(y,_,m,v)}}})}(Ki)),Ki.exports}var ZT=GT();const YT=$r(ZT),KT=[{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 XT(e){return KT.find(n=>n.code===e)}ns.extend(WT);ns.extend(UT);ns.extend(YT);function vg(e){const t=XT(e);if(t)return{lat:t.lat,long:t.long}}function QT(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],r=t[1];return!n||!r?void 0:{lat:parseFloat(n),long:parseFloat(r)}}}return vg(e.countryCode)}const JT={class:"block"},qT={class:"is-size-2"},eL={class:"is-clearfix"},tL={class:"columns"},nL={key:0,class:"column is-half"},rL={key:0},iL={class:"is-size-4"},oL={class:"has-text-grey"},sL=["src"],aL={key:1},lL=["src"],cL={class:"column"},uL={class:"table is-fullwidth is-completely-borderless"},hL={key:0},fL={class:"help"},dL={class:"block"},pL={class:"block"},gL={key:0,class:"block"},mL={key:1,class:"block"},vL={key:2,class:"block"},yL={key:3,class:"block"},bL={key:4,class:"block"},wL={key:5,class:"block"},SL={key:6,class:"block"},$L=ve({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,r=t,i=Ne(),h=Ne(),f=Ne(),g=Ne(),s=m=>{f.value=m},p=()=>{f.value=void 0},o=()=>{r("delete")},a=m=>{m.queued?g.value=m:r("refresh")},u=()=>{g.value=void 0},l=ye(()=>{if(n.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${n.artifact.data}`}`;if(n.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${n.artifact.data}`}),c=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},d=ek();return qe(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=vg(n.artifact.geolocation.countryCode);else{const v=await d.perform(n.artifact.data);m=QT(v),h.value=v.countryCode}i.value=c(m)}}),(m,v)=>(K(),re(Ee,null,[f.value?(K(),me(st,{key:0,class:"block",error:f.value,disposable:!0,onDispose:p},null,8,["error"])):fe("",!0),g.value?(K(),me(es,{key:1,class:"block",message:g.value,disposable:!0,onDispose:u},null,8,["message"])):fe("",!0),P("div",JT,[P("h2",qT,pe(e.artifact.id),1),P("p",eL,[ie(pg,{artifact:e.artifact,onDelete:o,onSetError:s,onSetMessage:a},null,8,["artifact"])])]),P("div",tL,[i.value||l.value?(K(),re("div",nL,[i.value?(K(),re("div",rL,[P("h4",iL,[v[0]||(v[0]=Ge(" Geolocation ",-1)),P("span",oL,pe(h.value||e.artifact.geolocation?.countryCode),1)]),P("iframe",{class:"mb-4",src:i.value,width:"100%",height:"240px"},null,8,sL)])):fe("",!0),l.value?(K(),re("div",aL,[v[1]||(v[1]=P("h4",{class:"is-size-4"},"Live screenshot",-1)),v[2]||(v[2]=P("p",{class:"help"},"Hover to expand",-1)),P("img",{src:l.value,class:"liveshot",alt:"liveshot"},null,8,lL)])):fe("",!0)])):fe("",!0),P("div",cL,[v[9]||(v[9]=P("h4",{class:"is-size-4"},"Information",-1)),P("table",uL,[P("tr",null,[v[3]||(v[3]=P("th",null,"Data",-1)),P("td",null,pe(oe(qr)(e.artifact.data,64)),1)]),P("tr",null,[v[4]||(v[4]=P("th",null,"Data type",-1)),P("td",null,pe(e.artifact.dataType),1)]),P("tr",null,[v[5]||(v[5]=P("th",null,"Source",-1)),P("td",null,pe(e.artifact.source),1)]),P("tr",null,[v[6]||(v[6]=P("th",null,"Query",-1)),P("td",null,pe(oe(qr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(K(),re("tr",hL,[v[8]||(v[8]=P("th",null,"Tags",-1)),P("td",null,[ie(vi,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),v[7]||(v[7]=Ge("/td>",-1))])])):fe("",!0)]),P("p",fL,"Created at: "+pe(e.artifact.createdAt),1)])]),P("div",dL,[ie(IT,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),P("div",pL,[e.artifact.autonomousSystem?(K(),re("div",gL,[v[10]||(v[10]=P("h4",{class:"is-size-4 mb-2"},"AS",-1)),ie(xM,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):fe("",!0),e.artifact.reverseDnsNames?(K(),re("div",mL,[v[11]||(v[11]=P("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),ie(NM,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):fe("",!0),e.artifact.dnsRecords?(K(),re("div",vL,[v[12]||(v[12]=P("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),ie(LM,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):fe("",!0),e.artifact.cpes?(K(),re("div",yL,[v[13]||(v[13]=P("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),ie(kM,{cpes:e.artifact.cpes},null,8,["cpes"])])):fe("",!0),e.artifact.vulnerabilities?(K(),re("div",bL,[v[14]||(v[14]=P("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),ie(FM,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):fe("",!0),e.artifact.ports?(K(),re("div",wL,[v[15]||(v[15]=P("h4",{class:"is-size-4 mb-2"},"Ports",-1)),ie(IM,{ports:e.artifact.ports},null,8,["ports"])])):fe("",!0),e.artifact.whoisRecord?(K(),re("div",SL,[v[16]||(v[16]=P("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),ie(QM,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):fe("",!0)])],64))}}),_L=ui($L,[["__scopeId","data-v-aadb0460"]]),CL=ve({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=Q2(),r=yr(),i=async()=>{await n.perform(t.id)},h=async()=>{await i()},f=async()=>{r.push("/")};return qe(async()=>{await i()}),Fe(t,async()=>{await i()}),(g,s)=>(K(),re(Ee,null,[oe(n).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(n).isError?(K(),me(st,{key:1,error:oe(n).last?.error},null,8,["error"])):fe("",!0),oe(n).last?.value?(K(),me(_L,{key:2,artifact:oe(n).last.value,onRefresh:h,onDelete:f},null,8,["artifact"])):fe("",!0)],64))}}),xL=ve({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Artifact:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(CL,{id:parseInt(e.id)},null,8,["id"]))}}),AL={class:"box"},kL={class:"table-container"},EL={class:"table is-fullwidth"},ML={key:0,class:"button is-success is-small ml-1"},TL={class:"icon is-small"},LL={key:1,class:"button is-warning is-small ml-1"},RL={class:"icon is-small"},IL={class:"field is-grouped is-grouped-multiline"},OL={class:"tags has-addons"},NL={class:"tag is-dark"},DL=ve({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const r=De("font-awesome-icon");return K(),re("div",AL,[P("div",kL,[P("table",EL,[n[2]||(n[2]=P("thead",null,[P("tr",null,[P("th",null,"Name"),P("th",null,"Type"),P("th",null,"Configured?"),P("th",null,"Items")])],-1)),P("tbody",null,[(K(!0),re(Ee,null,Tt(e.configs.results,i=>(K(),re("tr",{key:i.name},[P("td",null,pe(i.name),1),P("td",null,pe(i.type),1),P("td",null,[i.configured?(K(),re("button",ML,[P("span",TL,[ie(r,{icon:"check"})]),n[0]||(n[0]=P("span",null,"Yes",-1))])):(K(),re("button",LL,[P("span",RL,[ie(r,{icon:"exclamation"})]),n[1]||(n[1]=P("span",null,"No",-1))]))]),P("td",null,[P("div",IL,[(K(!0),re(Ee,null,Tt(i.items,(h,f)=>(K(),re("div",{class:"control",key:f},[P("div",OL,[P("span",NL,pe(h.key),1),P("span",{class:oi(["tag",{"is-success":h.value,"is-warning":!h.value}])},pe(h.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),FL=ve({__name:"ConfigsWrapper",setup(e){const t=q2();return qe(async()=>{await t.perform()}),(n,r)=>(K(),re(Ee,null,[oe(t).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(t).isError?(K(),me(st,{key:1,error:oe(t).last?.error},null,8,["error"])):fe("",!0),oe(t).last?.value?(K(),me(DL,{key:2,configs:oe(t).last.value},null,8,["configs"])):fe("",!0)],64))}}),PL=ve({__name:"ConfigView",setup(e){return dn("Configuration - Mihari"),(t,n)=>(K(),me(FL))}});var Fs={exports:{}},ph;function zL(){return ph||(ph=1,function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var i=function(o,a,u){if(typeof o!="string"){i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=a),i.modules[o]||(i.payloads[o]=u,i.modules[o]=null)};i.modules={},i.payloads={};var h=function(o,a,u){if(typeof a=="string"){var l=s(o,a);if(l!=null)return u&&u(),l}else if(Object.prototype.toString.call(a)==="[object Array]"){for(var c=[],d=0,m=a.length;d<m;++d){var v=s(o,a[d]);if(v==null&&f.original)return;c.push(v)}return u&&u.apply(null,c)||!0}},f=function(o,a){var u=h("",o,a);return u==null&&f.original?f.original.apply(this,arguments):u},g=function(o,a){if(a.indexOf("!")!==-1){var u=a.split("!");return g(o,u[0])+"!"+g(o,u[1])}if(a.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(a=l+"/"+a;a.indexOf(".")!==-1&&c!=a;){var c=a;a=a.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},s=function(o,a){a=g(o,a);var u=i.modules[a];if(!u){if(u=i.payloads[a],typeof u=="function"){var l={},c={id:a,uri:"",exports:l,packaged:!0},d=function(v,y){return h(a,v,y)},m=u(d,l,c);l=m||c.exports,i.modules[a]=l,delete i.payloads[a]}u=i.modules[a]=l||u}return u};function p(o){var a=r;r[o]||(r[o]={}),a=r[o],(!a.define||!a.define.packaged)&&(i.original=a.define,a.define=i,a.define.packaged=!0),(!a.require||!a.require.packaged)&&(f.original=a.require,a.require=f,a.require.packaged=!0)}p(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,i){function h(f,g,s){Object.defineProperty(f,g,{value:s,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||h(String.prototype,"startsWith",function(f,g){return g=g||0,this.lastIndexOf(f,g)===g}),String.prototype.endsWith||h(String.prototype,"endsWith",function(f,g){var s=this;(g===void 0||g>s.length)&&(g=s.length),g-=f.length;var p=s.indexOf(f,g);return p!==-1&&p===g}),String.prototype.repeat||h(String.prototype,"repeat",function(f){for(var g="",s=this;f>0;)f&1&&(g+=s),(f>>=1)&&(s+=s);return g}),String.prototype.includes||h(String.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Object.assign||(Object.assign=function(f){if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(f),s=1;s<arguments.length;s++){var p=arguments[s];p!=null&&Object.keys(p).forEach(function(o){g[o]=p[o]})}return g}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(g){return f[g]})}),Array.prototype.find||h(Array.prototype,"find",function(f){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(f.call(s,o,p,this))return o}}),Array.prototype.findIndex||h(Array.prototype,"findIndex",function(f){for(var g=this.length,s=arguments[1],p=0;p<g;p++){var o=this[p];if(f.call(s,o,p,this))return p}}),Array.prototype.includes||h(Array.prototype,"includes",function(f,g){return this.indexOf(f,g)!=-1}),Array.prototype.fill||h(Array.prototype,"fill",function(f){for(var g=this,s=g.length>>>0,p=arguments[1],o=p>>0,a=o<0?Math.max(s+o,0):Math.min(o,s),u=arguments[2],l=u===void 0?s:u>>0,c=l<0?Math.max(s+l,0):Math.min(l,s);a<c;)g[a]=f,a++;return g}),Array.of||h(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,i){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,i){r.deepCopy=function h(f){if(typeof f!="object"||!f)return f;var g;if(Array.isArray(f)){g=[];for(var s=0;s<f.length;s++)g[s]=h(f[s]);return g}if(Object.prototype.toString.call(f)!=="[object Object]")return f;g={};for(var s in f)g[s]=h(f[s]);return g}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,i){r.last=function(g){return g[g.length-1]},r.stringReverse=function(g){return g.split("").reverse().join("")},r.stringRepeat=function(g,s){for(var p="";s>0;)s&1&&(p+=g),(s>>=1)&&(g+=g);return p};var h=/^\s\s*/,f=/\s\s*$/;r.stringTrimLeft=function(g){return g.replace(h,"")},r.stringTrimRight=function(g){return g.replace(f,"")},r.copyObject=function(g){var s={};for(var p in g)s[p]=g[p];return s},r.copyArray=function(g){for(var s=[],p=0,o=g.length;p<o;p++)g[p]&&typeof g[p]=="object"?s[p]=this.copyObject(g[p]):s[p]=g[p];return s},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(g){for(var s={},p=0;p<g.length;p++)s[g[p]]=1;return s},r.createMap=function(g){var s=Object.create(null);for(var p in g)s[p]=g[p];return s},r.arrayRemove=function(g,s){for(var p=0;p<=g.length;p++)s===g[p]&&g.splice(p,1)},r.escapeRegExp=function(g){return g.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(g){return(""+g).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(g,s){var p=[];return g.replace(s,function(o){p.push({offset:arguments[arguments.length-2],length:o.length})}),p},r.deferredCall=function(g){var s=null,p=function(){s=null,g()},o=function(a){return o.cancel(),s=setTimeout(p,a||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},r.delayedCall=function(g,s){var p=null,o=function(){p=null,g()},a=function(u){p==null&&(p=setTimeout(o,u||s))};return a.delay=function(u){p&&clearTimeout(p),p=setTimeout(o,u||s)},a.schedule=a,a.call=function(){this.cancel(),g()},a.cancel=function(){p&&clearTimeout(p),p=null},a.isPending=function(){return p},a},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(g,s,p){return p&&g.codePointAt(s)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,i){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var h=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(h.platform)||["other"])[0].toLowerCase(),g=h.userAgent||"",s=h.appName||"";r.isWin=f=="win",r.isMac=f=="mac",r.isLinux=f=="linux",r.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]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=g.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(g.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,r.isAIR=g.indexOf("AdobeAIR")>=0,r.isAndroid=g.indexOf("Android")>=0,r.isChromeOS=g.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,i){var h=n("./useragent"),f="http://www.w3.org/1999/xhtml";r.buildDom=function u(l,c,d){if(typeof l=="string"&&l){var m=document.createTextNode(l);return c&&c.appendChild(m),m}if(!Array.isArray(l))return l&&l.appendChild&&c&&c.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var v=[],y=0;y<l.length;y++){var _=u(l[y],c,d);_&&v.push(_)}return v}var $=document.createElement(l[0]),w=l[1],b=1;w&&typeof w=="object"&&!Array.isArray(w)&&(b=2);for(var y=b;y<l.length;y++)u(l[y],$,d);return b==2&&Object.keys(w).forEach(function(A){var R=w[A];A==="class"?$.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||A=="value"||A[0]=="$"?$[A]=R:A==="ref"?d&&(d[R]=$):A==="style"?typeof R=="string"&&($.style.cssText=R):R!=null&&$.setAttribute(A,R)}),c&&c.appendChild($),$},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,l){return document.createElementNS?document.createElementNS(l||f,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,l){var c=l?l.ownerDocument:document;return c.createTextNode(u)},r.createFragment=function(u){var l=u?u.ownerDocument:document;return l.createDocumentFragment()},r.hasCssClass=function(u,l){var c=(u.className+"").split(/\s+/g);return c.indexOf(l)!==-1},r.addCssClass=function(u,l){r.hasCssClass(u,l)||(u.className+=" "+l)},r.removeCssClass=function(u,l){for(var c=u.className.split(/\s+/g);;){var d=c.indexOf(l);if(d==-1)break;c.splice(d,1)}u.className=c.join(" ")},r.toggleCssClass=function(u,l){for(var c=u.className.split(/\s+/g),d=!0;;){var m=c.indexOf(l);if(m==-1)break;d=!1,c.splice(m,1)}return d&&c.push(l),u.className=c.join(" "),d},r.setCssClass=function(u,l,c){c?r.addCssClass(u,l):r.removeCssClass(u,l)},r.hasCssString=function(u,l){var c=0,d;if(l=l||document,d=l.querySelectorAll("style")){for(;c<d.length;)if(d[c++].id===u)return!0}},r.removeElementById=function(u,l){l=l||document,l.getElementById(u)&&l.getElementById(u).remove()};var g,s=[];r.useStrictCSP=function(u){g=u,u==!1?p():s||(s=[])};function p(){var u=s;s=null,u&&u.forEach(function(l){o(l[0],l[1])})}function o(u,l,c){if(!(typeof document>"u")){if(s){if(c)p();else if(c===!1)return s.push([u,l])}if(!g){var d=c;!c||!c.getRootNode?d=document:(d=c.getRootNode(),(!d||d==c)&&(d=document));var m=d.ownerDocument||d;if(l&&r.hasCssString(l,d))return null;l&&(u+=`
|
624
|
+
/*# sourceURL=ace/css/`+l+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(u)),l&&(v.id=l),d==m&&(d=r.getDocumentHead(m)),d.insertBefore(v,d.firstChild)}}}if(r.importCssString=o,r.importCssStylsheet=function(u,l){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(l))},r.scrollbarWidth=function(u){var l=r.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var c=r.createElement("ace_outer"),d=c.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",c.appendChild(l);var m=u&&u.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(c);var v=l.offsetWidth;d.overflow="scroll";var y=l.offsetWidth;return v===y&&(y=c.clientWidth),m.removeChild(c),v-y},r.computedStyle=function(u,l){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,l,c){u[l]!==c&&(u[l]=c)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=h.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,h.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var a=document.createElement("div");r.HI_DPI&&a.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!h.isEdge&&typeof a.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),a=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,l,c){u.style.transform="translate("+Math.round(l)+"px, "+Math.round(c)+"px)"}:r.translate=function(u,l,c){u.style.top=Math.round(c)+"px",u.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,i){/*
|
625
|
+
* based on code from:
|
626
|
+
*
|
627
|
+
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
628
|
+
* Available via the MIT or new BSD license.
|
629
|
+
* see: http://github.com/jrburke/requirejs for details
|
630
|
+
*/var h=n("./dom");r.get=function(f,g){var s=new XMLHttpRequest;s.open("GET",f,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},r.loadScript=function(f,g){var s=h.getDocumentHead(),p=document.createElement("script");p.src=f,s.appendChild(p),p.onload=p.onreadystatechange=function(o,a){(a||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,a||g())}},r.qualifyURL=function(f){var g=document.createElement("a");return g.href=f,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,i){r.inherits=function(h,f){h.super_=f,h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(h,f){for(var g in f)h[g]=f[g];return h},r.implement=function(h,f){r.mixin(h,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,i){var h={},f=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};h._emit=h._dispatchEvent=function(s,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],a=this._defaultHandlers[s];if(!(!o.length&&!a)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=s),p.stopPropagation||(p.stopPropagation=f),p.preventDefault||(p.preventDefault=g),o=o.slice();for(var u=0;u<o.length&&(o[u](p,this),!p.propagationStopped);u++);if(a&&!p.defaultPrevented)return a(p,this)}},h._signal=function(s,p){var o=(this._eventRegistry||{})[s];if(o){o=o.slice();for(var a=0;a<o.length;a++)o[a](p,this)}},h.once=function(s,p){var o=this;if(this.on(s,function a(){o.off(s,a),p.apply(null,arguments)}),!p)return new Promise(function(a){p=a})},h.setDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o||(o=this._defaultHandlers={_disabled_:{}}),o[s]){var a=o[s],u=o._disabled_[s];u||(o._disabled_[s]=u=[]),u.push(a);var l=u.indexOf(p);l!=-1&&u.splice(l,1)}o[s]=p},h.removeDefaultHandler=function(s,p){var o=this._defaultHandlers;if(o){var a=o._disabled_[s];if(o[s]==p)a&&this.setDefaultHandler(s,a.pop());else if(a){var u=a.indexOf(p);u!=-1&&a.splice(u,1)}}},h.on=h.addEventListener=function(s,p,o){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[s];return a||(a=this._eventRegistry[s]=[]),a.indexOf(p)==-1&&a[o?"unshift":"push"](p),p},h.off=h.removeListener=h.removeEventListener=function(s,p){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[s];if(o){var a=o.indexOf(p);a!==-1&&o.splice(a,1)}},h.removeAllListeners=function(s){s||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[s]=void 0),this._defaultHandlers&&(this._defaultHandlers[s]=void 0)},r.EventEmitter=h}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,i){r.reportError=function(f,g){var s=new Error(f);s.data=g,typeof console=="object"&&console.error&&console.error(s),setTimeout(function(){throw s})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,r,i){var h={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};r.defaultEnglishMessages=h}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,r,i){"no use strict";var h=n("./oop"),f=n("./event_emitter").EventEmitter,g=n("./report_error").reportError,s=n("./default_english_messages").defaultEnglishMessages,p={setOptions:function(c){Object.keys(c).forEach(function(d){this.setOption(d,c[d])},this)},getOptions:function(c){var d={};if(c)Array.isArray(c)||(c=Object.keys(c));else{var m=this.$options;c=Object.keys(m).filter(function(v){return!m[v].hidden})}return c.forEach(function(v){d[v]=this.getOption(v)},this),d},setOption:function(c,d){if(this["$"+c]!==d){var m=this.$options[c];if(!m)return o('misspelled option "'+c+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(c,d);m.handlesSet||(this["$"+c]=d),m&&m.set&&m.set.call(this,d)}},getOption:function(c){var d=this.$options[c];return d?d.forwardTo?this[d.forwardTo]&&this[d.forwardTo].getOption(c):d&&d.get?d.get.call(this):this["$"+c]:o('misspelled option "'+c+'"')}};function o(c){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var a,u,l=function(){function c(){this.$defaultOptions={},a=s,u="dollarSigns"}return c.prototype.defineOptions=function(d,m,v){return d.$options||(this.$defaultOptions[m]=d.$options={}),Object.keys(v).forEach(function(y){var _=v[y];typeof _=="string"&&(_={forwardTo:_}),_.name||(_.name=y),d.$options[_.name]=_,"initialValue"in _&&(d["$"+_.name]=_.initialValue)}),h.implement(d,p),this},c.prototype.resetOptions=function(d){Object.keys(d.$options).forEach(function(m){var v=d.$options[m];"value"in v&&d.setOption(m,v.value)})},c.prototype.setDefaultValue=function(d,m,v){if(!d){for(d in this.$defaultOptions)if(this.$defaultOptions[d][m])break;if(!this.$defaultOptions[d][m])return!1}var y=this.$defaultOptions[d]||(this.$defaultOptions[d]={});y[m]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,m,v):y[m].value=v)},c.prototype.setDefaultValues=function(d,m){Object.keys(m).forEach(function(v){this.setDefaultValue(d,v,m[v])},this)},c.prototype.setMessages=function(d,m){a=d,m&&m.placeholders&&(u=m.placeholders)},c.prototype.nls=function(d,m,v){a[d]||(o("No message found for the key '"+d+"' in messages with id "+a.$id+", trying to find a translation for the default string '"+m+"'."),a[m]||o("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var y=a[d]||a[m]||m;return v&&(u==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function(_,$){return $=="$"?"$":v[$]})),u==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function(_,$){return v[$]}))),y},c}();l.prototype.warn=o,l.prototype.reportError=g,h.implement(l.prototype,f),r.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,i){i.exports=`.ace-tm .ace_gutter {
|
631
|
+
background: #f0f0f0;
|
632
|
+
color: #333;
|
633
|
+
}
|
634
|
+
|
635
|
+
.ace-tm .ace_print-margin {
|
636
|
+
width: 1px;
|
637
|
+
background: #e8e8e8;
|
638
|
+
}
|
639
|
+
|
640
|
+
.ace-tm .ace_fold {
|
641
|
+
background-color: #6B72E6;
|
642
|
+
}
|
643
|
+
|
644
|
+
.ace-tm {
|
645
|
+
background-color: #FFFFFF;
|
646
|
+
color: black;
|
647
|
+
}
|
648
|
+
|
649
|
+
.ace-tm .ace_cursor {
|
650
|
+
color: black;
|
651
|
+
}
|
652
|
+
|
653
|
+
.ace-tm .ace_invisible {
|
654
|
+
color: rgb(191, 191, 191);
|
655
|
+
}
|
656
|
+
|
657
|
+
.ace-tm .ace_storage,
|
658
|
+
.ace-tm .ace_keyword {
|
659
|
+
color: blue;
|
660
|
+
}
|
661
|
+
|
662
|
+
.ace-tm .ace_constant {
|
663
|
+
color: rgb(197, 6, 11);
|
664
|
+
}
|
665
|
+
|
666
|
+
.ace-tm .ace_constant.ace_buildin {
|
667
|
+
color: rgb(88, 72, 246);
|
668
|
+
}
|
669
|
+
|
670
|
+
.ace-tm .ace_constant.ace_language {
|
671
|
+
color: rgb(88, 92, 246);
|
672
|
+
}
|
673
|
+
|
674
|
+
.ace-tm .ace_constant.ace_library {
|
675
|
+
color: rgb(6, 150, 14);
|
676
|
+
}
|
677
|
+
|
678
|
+
.ace-tm .ace_invalid {
|
679
|
+
background-color: rgba(255, 0, 0, 0.1);
|
680
|
+
color: red;
|
681
|
+
}
|
682
|
+
|
683
|
+
.ace-tm .ace_support.ace_function {
|
684
|
+
color: rgb(60, 76, 114);
|
685
|
+
}
|
686
|
+
|
687
|
+
.ace-tm .ace_support.ace_constant {
|
688
|
+
color: rgb(6, 150, 14);
|
689
|
+
}
|
690
|
+
|
691
|
+
.ace-tm .ace_support.ace_type,
|
692
|
+
.ace-tm .ace_support.ace_class {
|
693
|
+
color: rgb(109, 121, 222);
|
694
|
+
}
|
695
|
+
|
696
|
+
.ace-tm .ace_keyword.ace_operator {
|
697
|
+
color: rgb(104, 118, 135);
|
698
|
+
}
|
699
|
+
|
700
|
+
.ace-tm .ace_string {
|
701
|
+
color: rgb(3, 106, 7);
|
702
|
+
}
|
703
|
+
|
704
|
+
.ace-tm .ace_comment {
|
705
|
+
color: rgb(76, 136, 107);
|
706
|
+
}
|
707
|
+
|
708
|
+
.ace-tm .ace_comment.ace_doc {
|
709
|
+
color: rgb(0, 102, 255);
|
710
|
+
}
|
711
|
+
|
712
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
713
|
+
color: rgb(128, 159, 191);
|
714
|
+
}
|
715
|
+
|
716
|
+
.ace-tm .ace_constant.ace_numeric {
|
717
|
+
color: rgb(0, 0, 205);
|
718
|
+
}
|
719
|
+
|
720
|
+
.ace-tm .ace_variable {
|
721
|
+
color: rgb(49, 132, 149);
|
722
|
+
}
|
723
|
+
|
724
|
+
.ace-tm .ace_xml-pe {
|
725
|
+
color: rgb(104, 104, 91);
|
726
|
+
}
|
727
|
+
|
728
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
729
|
+
color: #0000A2;
|
730
|
+
}
|
731
|
+
|
732
|
+
|
733
|
+
.ace-tm .ace_heading {
|
734
|
+
color: rgb(12, 7, 255);
|
735
|
+
}
|
736
|
+
|
737
|
+
.ace-tm .ace_list {
|
738
|
+
color:rgb(185, 6, 144);
|
739
|
+
}
|
740
|
+
|
741
|
+
.ace-tm .ace_meta.ace_tag {
|
742
|
+
color:rgb(0, 22, 142);
|
743
|
+
}
|
744
|
+
|
745
|
+
.ace-tm .ace_string.ace_regex {
|
746
|
+
color: rgb(255, 0, 0)
|
747
|
+
}
|
748
|
+
|
749
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
750
|
+
background: rgb(181, 213, 255);
|
751
|
+
}
|
752
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
753
|
+
box-shadow: 0 0 3px 0px white;
|
754
|
+
}
|
755
|
+
.ace-tm .ace_marker-layer .ace_step {
|
756
|
+
background: rgb(252, 255, 0);
|
757
|
+
}
|
758
|
+
|
759
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
760
|
+
background: rgb(164, 229, 101);
|
761
|
+
}
|
762
|
+
|
763
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
764
|
+
margin: -1px 0 0 -1px;
|
765
|
+
border: 1px solid rgb(192, 192, 192);
|
766
|
+
}
|
767
|
+
|
768
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
769
|
+
background: rgba(0, 0, 0, 0.07);
|
770
|
+
}
|
771
|
+
|
772
|
+
.ace-tm .ace_gutter-active-line {
|
773
|
+
background-color : #dcdcdc;
|
774
|
+
}
|
775
|
+
|
776
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
777
|
+
background: rgb(250, 250, 255);
|
778
|
+
border: 1px solid rgb(200, 200, 250);
|
779
|
+
}
|
780
|
+
|
781
|
+
.ace-tm .ace_indent-guide {
|
782
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
783
|
+
}
|
784
|
+
|
785
|
+
.ace-tm .ace_indent-guide-active {
|
786
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
787
|
+
}
|
788
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,i){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var h=n("../lib/dom");h.importCssString(r.cssText,r.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,r,i){"no use strict";var h=n("./lib/lang"),f=n("./lib/net"),g=n("./lib/dom"),s=n("./lib/app_config").AppConfig;i.exports=r=new s;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!p.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return p[l]},r.set=function(l,c){if(p.hasOwnProperty(l))p[l]=c;else if(this.setDefaultValue("",l,c)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&g.useStrictCSP(c)},r.all=function(){return h.copyObject(p)},r.$modes={},r.moduleUrl=function(l,c){if(p.$moduleUrls[l])return p.$moduleUrls[l];var d=l.split("/");c=c||d[d.length-2]||"";var m=c=="snippets"?"/":"-",v=d[d.length-1];if(c=="worker"&&m=="-"){var y=new RegExp("^"+c+"[\\-_]|[\\-_]"+c+"$","g");v=v.replace(y,"")}(!v||v==c)&&d.length>1&&(v=d[d.length-2]);var _=p[c+"Path"];return _==null?_=p.basePath:m=="/"&&(c=m=""),_&&_.slice(-1)!="/"&&(_+="/"),_+c+m+v+this.get("suffix")},r.setModuleUrl=function(l,c){return p.$moduleUrls[l]=c};var o=function(l,c){if(l==="ace/theme/textmate"||l==="./theme/textmate")return c(null,n("./theme/textmate"));if(a)return a(l,c);console.error("loader is not configured")},a;r.setLoader=function(l){a=l},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(l,c){var d;if(Array.isArray(l))var m=l[0],v=l[1];else if(typeof l=="string")var v=l;var y=function(_){if(_&&!r.$loading[v])return c&&c(_);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(c),!(r.$loading[v].length>1)){var $=function(){o(v,function(w,b){b&&(r.$loaded[v]=b),r._emit("load.module",{name:v,module:b});var A=r.$loading[v];r.$loading[v]=null,A.forEach(function(R){R&&R(b)})})};if(!r.get("packaged"))return $();f.loadScript(r.moduleUrl(v,m),$),u()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(_){_.default?y(_.default):y(_)});else{try{d=this.$require(v)}catch{}y(d||r.$loaded[v])}},r.$require=function(l){if(typeof i.require=="function"){var c="require";return i[c](l)}},r.setModuleLoader=function(l,c){r.dynamicModules[l]=c};var u=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,i){n("./lib/fixoldbrowsers");var h=n("./config");h.setLoader(function(p,o){n([p],function(a){o(null,a)})});var f=function(){return this||typeof window<"u"&&window}();i.exports=function(p){h.init=g,h.$require=n,p.require=n},g(!0);function g(p){if(!(!f||!f.document)){h.set("packaged",p||n.packaged||i.packaged||f.define&&(void 0).packaged);var o={},a="",u=document.currentScript||document._currentScript,l=u&&u.ownerDocument||document;u&&u.src&&(a=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var c=l.getElementsByTagName("script"),d=0;d<c.length;d++){var m=c[d],v=m.src||m.getAttribute("src");if(v){for(var y=m.attributes,_=0,$=y.length;_<$;_++){var w=y[_];w.name.indexOf("data-ace-")===0&&(o[s(w.name.replace(/^data-ace-/,""))]=w.value)}var b=v.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(a=b[1])}}a&&(o.base=o.base||a,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 A in o)typeof o[A]<"u"&&h.set(A,o[A])}}function s(p){return p.replace(/-(.)/g,function(o,a){return a.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,i){var h=function(){function f(g,s,p,o){this.start={row:g,column:s},this.end={row:p,column:o}}return f.prototype.isEqual=function(g){return this.start.row===g.start.row&&this.end.row===g.end.row&&this.start.column===g.start.column&&this.end.column===g.end.column},f.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},f.prototype.contains=function(g,s){return this.compare(g,s)==0},f.prototype.compareRange=function(g){var s,p=g.end,o=g.start;return s=this.compare(p.row,p.column),s==1?(s=this.compare(o.row,o.column),s==1?2:s==0?1:0):s==-1?-2:(s=this.compare(o.row,o.column),s==-1?-1:s==1?42:0)},f.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},f.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},f.prototype.intersects=function(g){var s=this.compareRange(g);return s==-1||s==0||s==1},f.prototype.isEnd=function(g,s){return this.end.row==g&&this.end.column==s},f.prototype.isStart=function(g,s){return this.start.row==g&&this.start.column==s},f.prototype.setStart=function(g,s){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=s)},f.prototype.setEnd=function(g,s){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=s)},f.prototype.inside=function(g,s){return this.compare(g,s)==0?!(this.isEnd(g,s)||this.isStart(g,s)):!1},f.prototype.insideStart=function(g,s){return this.compare(g,s)==0?!this.isEnd(g,s):!1},f.prototype.insideEnd=function(g,s){return this.compare(g,s)==0?!this.isStart(g,s):!1},f.prototype.compare=function(g,s){return!this.isMultiLine()&&g===this.start.row?s<this.start.column?-1:s>this.end.column?1:0:g<this.start.row?-1:g>this.end.row?1:this.start.row===g?s>=this.start.column?0:-1:this.end.row===g?s<=this.end.column?0:1:0},f.prototype.compareStart=function(g,s){return this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},f.prototype.compareEnd=function(g,s){return this.end.row==g&&this.end.column==s?1:this.compare(g,s)},f.prototype.compareInside=function(g,s){return this.end.row==g&&this.end.column==s?1:this.start.row==g&&this.start.column==s?-1:this.compare(g,s)},f.prototype.clipRows=function(g,s){if(this.end.row>s)var p={row:s+1,column:0};else if(this.end.row<g)var p={row:g,column:0};if(this.start.row>s)var o={row:s+1,column:0};else if(this.start.row<g)var o={row:g,column:0};return f.fromPoints(o||this.start,p||this.end)},f.prototype.extend=function(g,s){var p=this.compare(g,s);if(p==0)return this;if(p==-1)var o={row:g,column:s};else var a={row:g,column:s};return f.fromPoints(o||this.start,a||this.end)},f.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},f.prototype.isMultiLine=function(){return this.start.row!==this.end.row},f.prototype.clone=function(){return f.fromPoints(this.start,this.end)},f.prototype.collapseRows=function(){return this.end.column==0?new f(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new f(this.start.row,0,this.end.row,0)},f.prototype.toScreenRange=function(g){var s=g.documentToScreenPosition(this.start),p=g.documentToScreenPosition(this.end);return new f(s.row,s.column,p.row,p.column)},f.prototype.moveBy=function(g,s){this.start.row+=g,this.start.column+=s,this.end.row+=g,this.end.column+=s},f}();h.fromPoints=function(f,g){return new h(f.row,f.column,g.row,g.column)},h.comparePoints=function(f,g){return f.row-g.row||f.column-g.column},r.Range=h}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,i){for(var h=n("./oop"),f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},g={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},s=0;s<10;s++)g["Digit"+s]=48+s,g["Numpad"+s]=96+s,f.PRINTABLE_KEYS[48+s]=""+s,f.FUNCTION_KEYS[96+s]="Numpad"+s;for(var s=65;s<91;s++){var p=String.fromCharCode(s+32);g["Key"+p.toUpperCase()]=s,f.PRINTABLE_KEYS[s]=p}for(var s=1;s<13;s++)g["F"+s]=111+s,f.FUNCTION_KEYS[111+s]="F"+s;var o={Shift:16,Control:17,Alt:18,Meta:224};for(var a in o)g[a]=g[a+"Left"]=g[a+"Right"]=o[a];r.$codeToKeyCode=g,f.PRINTABLE_KEYS[173]="-";for(var u in f.FUNCTION_KEYS){var l=f.FUNCTION_KEYS[u].toLowerCase();f[l]=parseInt(u,10)}for(var u in f.PRINTABLE_KEYS){var l=f.PRINTABLE_KEYS[u].toLowerCase();f[l]=parseInt(u,10)}h.mixin(f,f.MODIFIER_KEYS),h.mixin(f,f.PRINTABLE_KEYS),h.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,function(){for(var c=["cmd","ctrl","alt","shift"],d=Math.pow(2,c.length);d--;)f.KEY_MODS[d]=c.filter(function(m){return d&f.KEY_MODS[m]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",h.mixin(r,f),r.default=r,r.keyCodeToString=function(c){var d=f[c];return typeof d!="string"&&(d=String.fromCharCode(c)),d.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var h=n("./keys"),f=n("./useragent"),g=null,s=0,p;function o(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function a(){return p==null&&o(),p}function u(_,$,w){this.elem=_,this.type=$,this.callback=w}u.prototype.destroy=function(){c(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=r.addListener=function(_,$,w,b){_.addEventListener($,w,a()),b&&b.$toDestroy.push(new u(_,$,w))},c=r.removeListener=function(_,$,w){_.removeEventListener($,w,a())};r.stopEvent=function(_){return r.stopPropagation(_),r.preventDefault(_),!1},r.stopPropagation=function(_){_.stopPropagation&&_.stopPropagation()},r.preventDefault=function(_){_.preventDefault&&_.preventDefault()},r.getButton=function(_){return _.type=="dblclick"?0:_.type=="contextmenu"||f.isMac&&_.ctrlKey&&!_.altKey&&!_.shiftKey?2:_.button},r.capture=function(_,$,w){var b=_&&_.ownerDocument||document;function A(R){$&&$(R),w&&w(R),c(b,"mousemove",$),c(b,"mouseup",A),c(b,"dragstart",A)}return l(b,"mousemove",$),l(b,"mouseup",A),l(b,"dragstart",A),A},r.addMouseWheelListener=function(_,$,w){l(_,"wheel",function(b){var A=.15,R=b.deltaX||0,E=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=R*A,b.wheelY=E*A;break;case b.DOM_DELTA_LINE:var L=15;b.wheelX=R*L,b.wheelY=E*L;break;case b.DOM_DELTA_PAGE:var O=150;b.wheelX=R*O,b.wheelY=E*O;break}$(b)},w)},r.addMultiMouseDownListener=function(_,$,w,b,A){var R=0,E,L,O,M={2:"dblclick",3:"tripleclick",4:"quadclick"};function x(C){if(r.getButton(C)!==0?R=0:C.detail>1?(R++,R>4&&(R=1)):R=1,f.isIE){var S=Math.abs(C.clientX-E)>5||Math.abs(C.clientY-L)>5;(!O||S)&&(R=1),O&&clearTimeout(O),O=setTimeout(function(){O=null},$[R-1]||600),R==1&&(E=C.clientX,L=C.clientY)}if(C._clicks=R,w[b]("mousedown",C),R>4)R=0;else if(R>1)return w[b](M[R],C)}Array.isArray(_)||(_=[_]),_.forEach(function(C){l(C,"mousedown",x,A)})};function d(_){return 0|(_.ctrlKey?1:0)|(_.altKey?2:0)|(_.shiftKey?4:0)|(_.metaKey?8:0)}r.getModifierString=function(_){return h.KEY_MODS[d(_)]};function m(_,$,w){var b=d($);if(!w&&$.code&&(w=h.$codeToKeyCode[$.code]||w),!f.isMac&&g){if($.getModifierState&&($.getModifierState("OS")||$.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=3)g.altGr=0;else return;if(w===18||w===17){var A=$.location;if(w===17&&A===1)g[w]==1&&(s=$.timeStamp);else if(w===18&&b===3&&A===2){var R=$.timeStamp-s;R<50&&(g.altGr=!0)}}}if(w in h.MODIFIER_KEYS&&(w=-1),!(!b&&w===13&&$.location===3&&(_($,b,-w),$.defaultPrevented))){if(f.isChromeOS&&b&8){if(_($,b,w),$.defaultPrevented)return;b&=-9}return!b&&!(w in h.FUNCTION_KEYS)&&!(w in h.PRINTABLE_KEYS)?!1:_($,b,w)}}r.addCommandKeyListener=function(_,$,w){var b=null;l(_,"keydown",function(A){g[A.keyCode]=(g[A.keyCode]||0)+1;var R=m($,A,A.keyCode);return b=A.defaultPrevented,R},w),l(_,"keypress",function(A){b&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(r.stopEvent(A),b=null)},w),l(_,"keyup",function(A){g[A.keyCode]=null},w),g||(v(),l(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var y=1;r.nextTick=function(_,$){$=$||window;var w="zero-timeout-message-"+y++,b=function(A){A.data==w&&(r.stopPropagation(A),c($,"message",b),_())};l($,"message",b),$.postMessage(w,"*")}}r.$idleBlocked=!1,r.onIdle=function(_,$){return setTimeout(function w(){r.$idleBlocked?setTimeout(w,100):_()},$)},r.$idleBlockId=null,r.blockIdle=function(_){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},_||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(_){setTimeout(_,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,i){var h;i.exports={lineMode:!1,pasteCancelled:function(){return h&&h>Date.now()-50?!0:h=!1},cancel:function(){h=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,r,i){var h=n("../lib/event"),f=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),a=g.isChrome<18,u=g.isIE,l=g.isChrome>63,c=400,d=n("../lib/keys"),m=d.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,_=g.isMobile,$=function(){function w(b,A){var R=this;this.host=A,this.text=s.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",b.insertBefore(this.text,b.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",_||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),h.addListener(this.text,"blur",function(E){R.ignoreFocusEvents||(A.onBlur(E),R.$isFocused=!1)},A),h.addListener(this.text,"focus",function(E){if(!R.ignoreFocusEvents){if(R.$isFocused=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}A.onFocus(E),g.isEdge?setTimeout(R.resetSelection.bind(R)):R.resetSelection()}},A),this.$focusScroll=!1,A.on("beforeEndOperation",function(){var E=A.curOp,L=E&&E.command&&E.command.name;if(L!="insertstring"){var O=L&&(E.docChanged||E.selectionChanged);R.inComposition&&O&&(R.lastValue=R.text.value="",R.onCompositionEnd()),R.resetSelection()}}),A.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=v?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&A.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,h.addCommandKeyListener(this.text,function(E,L,O){if(!R.inComposition)return A.onCommandKey(E,L,O)},A),h.addListener(this.text,"select",this.onSelect.bind(this),A),h.addListener(this.text,"input",this.onInput.bind(this),A),h.addListener(this.text,"cut",this.onCut.bind(this),A),h.addListener(this.text,"copy",this.onCopy.bind(this),A),h.addListener(this.text,"paste",this.onPaste.bind(this),A),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&h.addListener(b,"keydown",function(E){if(!(g.isMac&&!E.metaKey||!E.ctrlKey))switch(E.keyCode){case 67:R.onCopy(E);break;case 86:R.onPaste(E);break;case 88:R.onCut(E);break}},A),this.syncComposition=p.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),h.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),A),h.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),A),h.addListener(this.text,"keyup",this.onKeyup.bind(this),A),h.addListener(this.text,"keydown",this.syncComposition.bind(this),A),h.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),A),this.closeTimeout,h.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),A),h.addListener(this.text,"mousedown",function(E){E.preventDefault(),R.onContextMenuClose()},A),h.addListener(A.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),A),h.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),A),v&&this.addIosSelectionHandler(b,A,this.text)}return w.prototype.addIosSelectionHandler=function(b,A,R){var E=this,L=null,O=!1;R.addEventListener("keydown",function(x){L&&clearTimeout(L),O=!0},!0),R.addEventListener("keyup",function(x){L=setTimeout(function(){O=!1},100)},!0);var M=function(x){if(document.activeElement===R&&!(O||E.inComposition||A.$mouseHandler.isMousePressed)&&!E.copied){var C=R.selectionStart,S=R.selectionEnd,k=null,T=0;if(C==0?k=d.up:C==1?k=d.home:S>E.lastSelectionEnd&&E.lastValue[S]==`
|
789
|
+
`?k=d.end:C<E.lastSelectionStart&&E.lastValue[C-1]==" "?(k=d.left,T=m.option):C<E.lastSelectionStart||C==E.lastSelectionStart&&E.lastSelectionEnd!=E.lastSelectionStart&&C==S?k=d.left:S>E.lastSelectionEnd&&E.lastValue.slice(0,S).split(`
|
790
|
+
`).length>2?k=d.down:S>E.lastSelectionEnd&&E.lastValue[S-1]==" "?(k=d.right,T=m.option):(S>E.lastSelectionEnd||S==E.lastSelectionEnd&&E.lastSelectionEnd!=E.lastSelectionStart&&C==S)&&(k=d.right),C!==S&&(T|=m.shift),k){var I=A.onCommandKey({},T,k);if(!I&&A.commands){k=d.keyCodeToString(k);var N=A.commands.findKeyCommand(T,k);N&&A.execCommand(N)}E.lastSelectionStart=C,E.lastSelectionEnd=S,E.resetSelection("")}}};document.addEventListener("selectionchange",M),A.on("destroy",function(){document.removeEventListener("selectionchange",M)})},w.prototype.onContextMenuClose=function(){var b=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){b.tempStyle&&(b.text.style.cssText=b.tempStyle,b.tempStyle=""),b.host.renderer.$isMousePressed=!1,b.host.renderer.$keepTextAreaAtCursor&&b.host.renderer.$moveTextAreaToCursor()},0)},w.prototype.$onContextMenu=function(b){this.host.textInput.onContextMenu(b),this.onContextMenuClose()},w.prototype.onKeyup=function(b){b.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},w.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},w.prototype.onCompositionStart=function(b){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){b.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var A=this.host.getSelectionRange();A.end.row=A.start.row,A.end.column=A.start.column,this.inComposition.markerRange=A,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},w.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var b=this.text.value;this.sendText(b),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},w.prototype.onCompositionEnd=function(b){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),b&&this.onInput())},w.prototype.onCut=function(b){this.doCopy(b,!0)},w.prototype.onCopy=function(b){this.doCopy(b,!1)},w.prototype.onPaste=function(b){var A=this.handleClipboardData(b);o.pasteCancelled()||(typeof A=="string"?(A&&this.host.onPaste(A,b),g.isIE&&setTimeout(this.resetSelection),h.preventDefault(b)):(this.text.value="",this.pasted=!0))},w.prototype.doCopy=function(b,A){var R=this,E=this.host.getCopyText();if(!E)return h.preventDefault(b);this.handleClipboardData(b,E)?(v&&(this.resetSelection(E),this.copied=E,setTimeout(function(){R.copied=!1},10)),A?this.host.onCut():this.host.onCopy(),h.preventDefault(b)):(this.copied=!0,this.text.value=E,this.text.select(),setTimeout(function(){R.copied=!1,R.resetSelection(),A?R.host.onCut():R.host.onCopy()}))},w.prototype.handleClipboardData=function(b,A,R){var E=b.clipboardData||window.clipboardData;if(!(!E||a)){var L=u||R?"Text":"text/plain";try{return A?E.setData(L,A)!==!1:E.getData(L)}catch(O){if(!R)return this.handleClipboardData(O,A,!0)}}},w.prototype.onInput=function(b){if(this.inComposition)return this.onCompositionUpdate();if(b&&b.inputType){if(b.inputType=="historyUndo")return this.host.execCommand("undo");if(b.inputType=="historyRedo")return this.host.execCommand("redo")}var A=this.text.value,R=this.sendText(A,!0);(A.length>c+100||y.test(R)||_&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},w.prototype.sendText=function(b,A){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),b&&this.host.onPaste(b),this.pasted=!1,"";for(var R=this.text.selectionStart,E=this.text.selectionEnd,L=this.lastSelectionStart,O=this.lastValue.length-this.lastSelectionEnd,M=b,x=b.length-R,C=b.length-E,S=0;L>0&&this.lastValue[S]==b[S];)S++,L--;for(M=M.slice(S),S=1;O>0&&this.lastValue.length-S>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-S]==b[b.length-S];)S++,O--;x-=S-1,C-=S-1;var k=M.length-S+1;if(k<0&&(L=-k,k=0),M=M.slice(0,k),!A&&!M&&!x&&!L&&!O&&!C)return"";this.sendingText=!0;var T=!1;return g.isAndroid&&M==". "&&(M=" ",T=!0),M&&!L&&!O&&!x&&!C||this.commandMode?this.host.onTextInput(M):this.host.onTextInput(M,{extendLeft:L,extendRight:O,restoreStart:x,restoreEnd:C}),this.sendingText=!1,this.lastValue=b,this.lastSelectionStart=R,this.lastSelectionEnd=E,this.lastRestoreEnd=C,T?`
|
791
|
+
`:M},w.prototype.onSelect=function(b){var A=this;if(!this.inComposition){var R=function(E){return E.selectionStart===0&&E.selectionEnd>=A.lastValue.length&&E.value===A.lastValue&&A.lastValue&&E.selectionEnd!==A.lastSelectionEnd};this.copied?this.copied=!1:R(this.text)?(this.host.selectAll(),this.resetSelection()):_&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},w.prototype.$resetSelectionIOS=function(b){if(!(!this.$isFocused||this.copied&&!b||this.sendingText)){b||(b="");var A=`
|
792
|
+
ab`+b+`cde fg
|
793
|
+
`;A!=this.text.value&&(this.text.value=this.lastValue=A);var R=4,E=4+(b.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=R||this.lastSelectionEnd!=E)&&this.text.setSelectionRange(R,E),this.lastSelectionStart=R,this.lastSelectionEnd=E}},w.prototype.$resetSelection=function(){var b=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var A=0,R=0,E="",L=function(N,D){for(var F=D,H=1;H<=N-b.rowStart&&H<2*b.numberOfExtraLines+1;H++)F+=b.host.session.getLine(N-H).length+1;return F};if(this.host.session){var O=this.host.selection,M=O.getRange(),x=O.cursor.row;x===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):x===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(x<this.rowStart-1||x>this.rowEnd+1)&&(this.rowStart=x>this.numberOfExtraLines?x-this.numberOfExtraLines:0,this.rowEnd=x>this.numberOfExtraLines?x+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var C=[],S=this.rowStart;S<=this.rowEnd;S++)C.push(this.host.session.getLine(S));if(E=C.join(`
|
794
|
+
`),A=L(M.start.row,M.start.column),R=L(M.end.row,M.end.column),M.start.row<this.rowStart){var k=this.host.session.getLine(this.rowStart-1);A=M.start.row<this.rowStart-1?0:A,R+=k.length+1,E=k+`
|
795
|
+
`+E}else if(M.end.row>this.rowEnd){var T=this.host.session.getLine(this.rowEnd+1);R=M.end.row>this.rowEnd+1?T.length:M.end.column,R+=E.length+1,E=E+`
|
796
|
+
`+T}else _&&x>0&&(E=`
|
797
|
+
`+E,R+=1,A+=1);E.length>c&&(A<c&&R<c?E=E.slice(0,c):(E=`
|
798
|
+
`,A==R?A=R=0:(A=0,R=1)));var I=E+`
|
799
|
+
|
800
|
+
`;I!=this.lastValue&&(this.text.value=this.lastValue=I,this.lastSelectionStart=this.lastSelectionEnd=I.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=R||this.lastSelectionStart!=A||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(A,R),this.lastSelectionStart=A,this.lastSelectionEnd=R}catch{}this.inComposition=!1}},w.prototype.setHost=function(b){this.host=b},w.prototype.setNumberOfExtraLines=function(b){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,b<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=b},w.prototype.setAriaLabel=function(){var b="";if(this.host.$textInputAriaLabel&&(b+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var A=this.host.session.selection.cursor.row;b+=f("text-input.aria-label","Cursor at row $0",[A+1])}this.text.setAttribute("aria-label",b)},w.prototype.setAriaOptions=function(b){b.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",b.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",b.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),b.role&&this.text.setAttribute("role",b.role),b.setLabel&&(this.text.setAttribute("aria-roledescription",f("text-input.aria-roledescription","editor")),this.setAriaLabel())},w.prototype.focus=function(){var b=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||l||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var A=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var R=this.text.getBoundingClientRect().top!=0}catch{return}var E=[];if(R)for(var L=this.text.parentElement;L&&L.nodeType==1;)E.push(L),L.setAttribute("ace_nocontext","true"),!L.parentElement&&L.getRootNode?L=L.getRootNode().host:L=L.parentElement;this.text.focus({preventScroll:!0}),R&&E.forEach(function(O){O.removeAttribute("ace_nocontext")}),setTimeout(function(){b.text.style.position="",b.text.style.top=="0px"&&(b.text.style.top=A)},0)},w.prototype.blur=function(){this.text.blur()},w.prototype.isFocused=function(){return this.$isFocused},w.prototype.setInputHandler=function(b){this.inputHandler=b},w.prototype.getInputHandler=function(){return this.inputHandler},w.prototype.getElement=function(){return this.text},w.prototype.setCommandMode=function(b){this.commandMode=b,this.text.readOnly=!1},w.prototype.setReadOnly=function(b){this.commandMode||(this.text.readOnly=b)},w.prototype.setCopyWithEmptySelection=function(b){},w.prototype.onContextMenu=function(b){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:b}),this.moveToMouse(b,!0)},w.prototype.moveToMouse=function(b,A){var R=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(A?"z-index:100000;":"")+(g.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var E=this.host.container.getBoundingClientRect(),L=s.computedStyle(this.host.container),O=E.top+(parseInt(L.borderTopWidth)||0),M=E.left+(parseInt(L.borderLeftWidth)||0),x=E.bottom-O-this.text.clientHeight-2,C=function(S){s.translate(R.text,S.clientX-M-2,Math.min(S.clientY-O-2,x))};C(b),b.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),g.isWin&&h.capture(this.host.container,C,this.onContextMenuClose.bind(this)))},w.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},w}();r.TextInput=$,r.$setUserAgentForTests=function(w,b){_=w,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,i){var h=n("../lib/useragent"),f=0,g=550,s=function(){function a(u){u.$clickSelection=null;var l=u.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var c=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];c.forEach(function(d){u[d]=this[d]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return a.prototype.onMouseDown=function(u){var l=u.inSelection(),c=u.getDocumentPosition();this.mousedownEvent=u;var d=this.editor,m=u.getButton();if(m!==0){var v=d.getSelectionRange(),y=v.isEmpty();(y||m==1)&&d.selection.moveToPosition(c),m==2&&(d.textInput.onContextMenu(u.domEvent),h.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(c,u.domEvent._clicks>1),u.preventDefault()},a.prototype.startSelect=function(u,l){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var c=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?c.selection.selectToPosition(u):l||c.selection.moveToPosition(u),l||this.select(),c.setStyle("ace_selecting"),this.setState("select"))},a.prototype.select=function(){var u,l=this.editor,c=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(c);if(d==-1)u=this.$clickSelection.end;else if(d==1)u=this.$clickSelection.start;else{var m=o(this.$clickSelection,c);c=m.cursor,u=m.anchor}l.selection.setSelectionAnchor(u.row,u.column)}l.selection.selectToPosition(c),l.renderer.scrollCursorIntoView()},a.prototype.extendSelectionBy=function(u){var l,c=this.editor,d=c.renderer.screenToTextCoordinates(this.x,this.y),m=c.selection[u](d.row,d.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)l=this.$clickSelection.end,(m.end.row!=d.row||m.end.column!=d.column)&&(d=m.start);else if(y==1&&v>=0)l=this.$clickSelection.start,(m.start.row!=d.row||m.start.column!=d.column)&&(d=m.end);else if(v==-1&&y==1)d=m.end,l=m.start;else{var _=o(this.$clickSelection,d);d=_.cursor,l=_.anchor}c.selection.setSelectionAnchor(l.row,l.column)}c.selection.selectToPosition(d),c.renderer.scrollCursorIntoView()},a.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},a.prototype.focusWait=function(){var u=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(u>f||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},a.prototype.onDoubleClick=function(u){var l=u.getDocumentPosition(),c=this.editor,d=c.session,m=d.getBracketRange(l);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=c.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},a.prototype.onTripleClick=function(u){var l=u.getDocumentPosition(),c=this.editor;this.setState("selectByLines");var d=c.getSelectionRange();d.isMultiLine()&&d.contains(l.row,l.column)?(this.$clickSelection=c.selection.getLineRange(d.start.row),this.$clickSelection.end=c.selection.getLineRange(d.end.row).end):this.$clickSelection=c.selection.getLineRange(l.row),this.select()},a.prototype.onQuadClick=function(u){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},a.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var c=this.$lastScroll,d=u.domEvent.timeStamp,m=d-c.t,v=m?u.wheelX/m:c.vx,y=m?u.wheelY/m:c.vy;m<g&&(v=(v+c.vx)/2,y=(y+c.vy)/2);var _=Math.abs(v/y),$=!1;if(_>=1&&l.renderer.isScrollableBy(u.wheelX*u.speed,0)&&($=!0),_<=1&&l.renderer.isScrollableBy(0,u.wheelY*u.speed)&&($=!0),$)c.allowed=d;else if(d-c.allowed<g){var w=Math.abs(v)<=1.5*Math.abs(c.vx)&&Math.abs(y)<=1.5*Math.abs(c.vy);w?($=!0,c.allowed=d):c.allowed=0}if(c.t=d,c.vx=v,c.vy=y,$)return l.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},a}();s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,r.DefaultHandlers=s;function p(a,u,l,c){return Math.sqrt(Math.pow(l-a,2)+Math.pow(c-u,2))}function o(a,u){if(a.start.row==a.end.row)var l=2*u.column-a.start.column-a.end.column;else if(a.start.row==a.end.row-1&&!a.start.column&&!a.end.column)var l=u.column-4;else var l=2*u.row-a.start.row-a.end.row;return l<0?{cursor:a.start,anchor:a.end}:{cursor:a.end,anchor:a.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,i){r.preventParentScroll=function(f){f.stopPropagation();var g=f.currentTarget,s=g.scrollHeight>g.clientHeight;s||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,i){var h=this&&this.__extends||function(){var d=function(m,v){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var $ in _)Object.prototype.hasOwnProperty.call(_,$)&&(y[$]=_[$])},d(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");d(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),f=this&&this.__values||function(d){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&d[m],y=0;if(v)return v.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var s=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",a=function(){function d(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return d.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},d.prototype.getElement=function(){return this.$element||this.$init()},d.prototype.setText=function(m){this.getElement().textContent=m},d.prototype.setHtml=function(m){this.getElement().innerHTML=m},d.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},d.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},d.prototype.setTheme=function(m){this.$element.className=o+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},d.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},d.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},d.prototype.getHeight=function(){return this.getElement().offsetHeight},d.prototype.getWidth=function(){return this.getElement().offsetWidth},d.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},d}(),u=function(){function d(){this.popups=[]}return d.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},d.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},d.prototype.updatePopups=function(){var m,v,y,_;this.popups.sort(function(M,x){return x.priority-M.priority});var $=[];try{for(var w=f(this.popups),b=w.next();!b.done;b=w.next()){var A=b.value,R=!0;try{for(var E=(y=void 0,f($)),L=E.next();!L.done;L=E.next()){var O=L.value;if(this.doPopupsOverlap(O,A)){R=!1;break}}}catch(M){y={error:M}}finally{try{L&&!L.done&&(_=E.return)&&_.call(E)}finally{if(y)throw y.error}}R?$.push(A):A.hide()}}catch(M){m={error:M}}finally{try{b&&!b.done&&(v=w.return)&&v.call(w)}finally{if(m)throw m.error}}},d.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),_=v.getElement().getBoundingClientRect();return y.left<_.right&&y.right>_.left&&y.top<_.bottom&&y.bottom>_.top},d}(),l=new u;r.popupManager=l,r.Tooltip=a;var c=function(d){h(m,d);function m(v){v===void 0&&(v=document.body);var y=d.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var _=y.getElement();return _.style.whiteSpace="pre-wrap",_.style.pointerEvents="auto",_.addEventListener("mouseout",y.onMouseOut),_.tabIndex=-1,_.addEventListener("blur",(function(){_.contains(document.activeElement)||this.hide()}).bind(y)),_.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var _=y.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||_||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||_||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,_=v.getDocumentPosition(),$=y.session.getLine(_.row);if(_.column==$.length){var w=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(_.row,_.column);if(b.column!=w.column||b.row!=w.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,_,$){var w=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=s.fromPoints(y.start,y.end);var A=b.textToScreenCoordinates(y.start.row,y.start.column),R=b.scroller.getBoundingClientRect();A.pageX<R.left&&(A.pageX=R.left);var E=this.getElement();E.innerHTML="",E.appendChild(_),E.style.maxHeight="",E.style.display="block";var L=E.clientHeight,O=E.clientWidth,M=window.innerHeight-A.pageY-b.lineHeight,x=!0;A.pageY-L<0&&A.pageY<M&&(x=!1),E.style.maxHeight=(x?A.pageY:M)-w+"px",E.style.top=x?"":A.pageY+b.lineHeight+"px",E.style.bottom=x?window.innerHeight-A.pageY+"px":"",E.style.left=Math.min(A.pageX,window.innerWidth-O-w)+"px"}},m.prototype.addMarker=function(v,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(v,"ace_highlight-marker","text")},m.prototype.hide=function(v){!v&&document.activeElement==this.getElement()||v&&v.target&&(v.type!="keydown"||v.ctrlKey||v.metaKey)&&this.$element.contains(v.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,l.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(v){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||v.relatedTarget.classList.contains("ace_content")||this.hide())},m}(a);r.HoverTooltip=c}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,i){var h=this&&this.__extends||function(){var d=function(m,v){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var $ in _)Object.prototype.hasOwnProperty.call(_,$)&&(y[$]=_[$])},d(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");d(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),f=this&&this.__values||function(d){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&d[m],y=0;if(v)return v.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),p=n("../tooltip").Tooltip,o=n("../config").nls,a=5,u=3;r.GUTTER_TOOLTIP_LEFT_OFFSET=a,r.GUTTER_TOOLTIP_TOP_OFFSET=u;function l(d){var m=d.editor,v=m.renderer.$gutterLayer,y=new c(m,!0);d.editor.setDefaultHandler("guttermousedown",function(R){if(!(!m.isFocused()||R.getButton()!=0)){var E=v.getRegion(R);if(E!="foldWidgets"){var L=R.getDocumentPosition().row,O=m.session.selection;if(R.getShiftKey())O.selectTo(L,0);else{if(R.domEvent.detail==2)return m.selectAll(),R.preventDefault();d.$clickSelection=m.selection.getLineRange(L)}return d.setState("selectByLines"),d.captureMouse(R),R.preventDefault()}}});var _,$;function w(){var R=$.getDocumentPosition().row,E=m.session.getLength();if(R==E){var L=m.renderer.pixelToScreenCoordinates(0,$.y).row,O=$.$pos;if(L>m.session.documentToScreenRow(O.row,O.column))return b()}if(y.showTooltip(R),!!y.isOpen)if(m.on("mousewheel",b),m.on("changeSession",b),window.addEventListener("keydown",b,!0),d.$tooltipFollowsMouse)A($);else{var M=$.getGutterRow(),x=v.$lines.get(M);if(x){var C=x.element.querySelector(".ace_gutter_annotation"),S=C.getBoundingClientRect(),k=y.getElement().style;k.left=S.right-a+"px",k.top=S.bottom-u+"px"}else A($)}}function b(R){R&&R.type==="keydown"&&(R.ctrlKey||R.metaKey)||R&&R.type==="mouseout"&&(!R.relatedTarget||y.getElement().contains(R.relatedTarget))||(_&&(_=clearTimeout(_)),y.isOpen&&(y.hideTooltip(),m.off("mousewheel",b),m.off("changeSession",b),window.removeEventListener("keydown",b,!0)))}function A(R){y.setPosition(R.x,R.y)}d.editor.setDefaultHandler("guttermousemove",function(R){var E=R.domEvent.target||R.domEvent.srcElement;if(g.hasCssClass(E,"ace_fold-widget")||g.hasCssClass(E,"ace_custom-widget"))return b();y.isOpen&&d.$tooltipFollowsMouse&&A(R),$=R,!_&&(_=setTimeout(function(){_=null,$&&!d.isMousePressed&&w()},50))}),s.addListener(m.renderer.$gutter,"mouseout",function(R){$=null,y.isOpen&&(_=setTimeout(function(){_=null,b(R)},50))},m)}r.GutterHandler=l;var c=function(d){h(m,d);function m(v,y){y===void 0&&(y=!1);var _=d.call(this,v.container)||this;_.id="gt"+ ++m.$uid,_.editor=v,_.visibleTooltipRow;var $=_.getElement();return $.setAttribute("role","tooltip"),$.setAttribute("id",_.id),$.style.pointerEvents="auto",y&&(_.onMouseOut=_.onMouseOut.bind(_),$.addEventListener("mouseout",_.onMouseOut)),_}return m.prototype.onMouseOut=function(v){this.isOpen&&(!v.relatedTarget||this.getElement().contains(v.relatedTarget)||v&&v.currentTarget.contains(v.relatedTarget)||this.hideTooltip())},m.prototype.setPosition=function(v,y){var _=window.innerWidth||document.documentElement.clientWidth,$=window.innerHeight||document.documentElement.clientHeight,w=this.getWidth(),b=this.getHeight();v+=15,y+=15,v+w>_&&(v-=v+w-_),y+b>$&&(y-=20+b),p.prototype.setPosition.call(this,v,y)},Object.defineProperty(m,"annotationLabels",{get:function(){return{error:{singular:o("gutter-tooltip.aria-label.error.singular","error"),plural:o("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:o("gutter-tooltip.aria-label.security.singular","security finding"),plural:o("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:o("gutter-tooltip.aria-label.warning.singular","warning"),plural:o("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:o("gutter-tooltip.aria-label.info.singular","information message"),plural:o("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:o("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:o("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),m.prototype.showTooltip=function(v){var y,_=this.editor.renderer.$gutterLayer,$=_.$annotations[v],w;$?w={displayText:Array.from($.displayText),type:Array.from($.type)}:w={displayText:[],type:[]};var b=_.session.getFoldLine(v);if(b&&_.$showFoldedAnnotations){for(var A={error:[],security:[],warning:[],info:[],hint:[]},R={error:1,security:2,warning:3,info:4,hint:5},E,L=v+1;L<=b.end.row;L++)if(_.$annotations[L])for(var O=0;O<_.$annotations[L].text.length;O++){var M=_.$annotations[L].type[O];A[M].push(_.$annotations[L].text[O]),(!E||R[M]<R[E])&&(E=M)}if(["error","security","warning"].includes(E)){var x="".concat(m.annotationsToSummaryString(A)," in folded code.");w.displayText.push(x),w.type.push(E+"_fold")}}if(w.displayText.length===0)return this.hideTooltip();for(var C={error:[],security:[],warning:[],info:[],hint:[]},S=_.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",L=0;L<w.displayText.length;L++){var k=g.createElement("span"),T=g.createElement("span");(y=T.classList).add.apply(y,["ace_".concat(w.type[L]),S]),T.setAttribute("aria-label","".concat(m.annotationLabels[w.type[L].replace("_fold","")].singular)),T.setAttribute("role","img"),T.appendChild(g.createTextNode(" ")),k.appendChild(T),k.appendChild(g.createTextNode(w.displayText[L])),k.appendChild(g.createElement("br")),C[w.type[L].replace("_fold","")].push(k)}var I=this.getElement();g.removeChildren(I),C.error.forEach(function(D){return I.appendChild(D)}),C.security.forEach(function(D){return I.appendChild(D)}),C.warning.forEach(function(D){return I.appendChild(D)}),C.info.forEach(function(D){return I.appendChild(D)}),C.hint.forEach(function(D){return I.appendChild(D)}),I.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip"));var N=this.$findLinkedAnnotationNode(v);N&&N.setAttribute("aria-describedby",this.id),this.show(),this.visibleTooltipRow=v,this.editor._signal("showGutterTooltip",this)},m.prototype.$findLinkedAnnotationNode=function(v){var y=this.$findCellByRow(v);if(y){var _=y.element;if(_.childNodes.length>2)return _.childNodes[2]}},m.prototype.$findCellByRow=function(v){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(y){return y.row===v})},m.prototype.hideTooltip=function(){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow!=null){var v=this.$findLinkedAnnotationNode(this.visibleTooltipRow);v&&v.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this)}},m.annotationsToSummaryString=function(v){var y,_,$=[],w=["error","security","warning","info","hint"];try{for(var b=f(w),A=b.next();!A.done;A=b.next()){var R=A.value;if(v[R].length){var E=v[R].length===1?m.annotationLabels[R].singular:m.annotationLabels[R].plural;$.push("".concat(v[R].length," ").concat(E))}}}catch(L){y={error:L}}finally{try{A&&!A.done&&(_=b.return)&&_.call(b)}finally{if(y)throw y.error}}return $.join(", ")},m}(p);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/event"),f=n("../lib/useragent"),g=function(){function s(p,o){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=o,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){h.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){h.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 p=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(p,0),a=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-a},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,o=p.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=o.contains(a.row,a.column)}return this.$inSelection},s.prototype.getButton=function(){return h.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return f.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();r.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/event"),g=n("../lib/useragent"),s=200,p=200,o=5;function a(l){var c=l.editor,d=h.createElement("div");d.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",d.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(W){l[W]=this[W]},this),c.on("mousedown",this.onMouseDown.bind(l));var v=c.container,y,_,$,w,b,A,R=0,E,L,O,M,x;this.onDragStart=function(W){if(this.cancelDrag||!v.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(W)},0),W.preventDefault()}b=c.getSelectionRange();var G=W.dataTransfer;G.effectAllowed=c.getReadOnly()?"copy":"copyMove",c.container.appendChild(d),G.setDragImage&&G.setDragImage(d,0,0),setTimeout(function(){c.container.removeChild(d)}),G.clearData(),G.setData("Text",c.session.getTextRange()),L=!0,this.setState("drag")},this.onDragEnd=function(W){if(v.draggable=!1,L=!1,this.setState(null),!c.getReadOnly()){var U=W.dataTransfer.dropEffect;!E&&U=="move"&&c.session.remove(c.getSelectionRange()),c.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!(c.getReadOnly()||!F(W.dataTransfer)))return _=W.clientX,$=W.clientY,y||T(),R++,W.dataTransfer.dropEffect=E=H(W),f.preventDefault(W)},this.onDragOver=function(W){if(!(c.getReadOnly()||!F(W.dataTransfer)))return _=W.clientX,$=W.clientY,y||(T(),R++),N!==null&&(N=null),W.dataTransfer.dropEffect=E=H(W),f.preventDefault(W)},this.onDragLeave=function(W){if(R--,R<=0&&y)return I(),E=null,f.preventDefault(W)},this.onDrop=function(W){if(A){var U=W.dataTransfer;if(L)switch(E){case"move":b.contains(A.row,A.column)?b={start:A,end:A}:b=c.moveText(b,A);break;case"copy":b=c.moveText(b,A,!0);break}else{var G=U.getData("Text");b={start:A,end:c.session.insert(A,G)},c.focus(),E=null}return I(),f.preventDefault(W)}},f.addListener(v,"dragstart",this.onDragStart.bind(l),c),f.addListener(v,"dragend",this.onDragEnd.bind(l),c),f.addListener(v,"dragenter",this.onDragEnter.bind(l),c),f.addListener(v,"dragover",this.onDragOver.bind(l),c),f.addListener(v,"dragleave",this.onDragLeave.bind(l),c),f.addListener(v,"drop",this.onDrop.bind(l),c);function C(W,U){var G=Date.now(),V=!U||W.row!=U.row,j=!U||W.column!=U.column;if(!M||V||j)c.moveCursorToPosition(W),M=G,x={x:_,y:$};else{var Z=u(x.x,x.y,_,$);Z>o?M=null:G-M>=p&&(c.renderer.scrollCursorIntoView(),M=null)}}function S(W,U){var G=Date.now(),V=c.renderer.layerConfig.lineHeight,j=c.renderer.layerConfig.characterWidth,Z=c.renderer.scroller.getBoundingClientRect(),X={x:{left:_-Z.left,right:Z.right-_},y:{top:$-Z.top,bottom:Z.bottom-$}},Q=Math.min(X.x.left,X.x.right),le=Math.min(X.y.top,X.y.bottom),z={row:W.row,column:W.column};Q/j<=2&&(z.column+=X.x.left<X.x.right?-3:2),le/V<=1&&(z.row+=X.y.top<X.y.bottom?-1:1);var B=W.row!=z.row,Y=W.column!=z.column,q=!U||W.row!=U.row;B||Y&&!q?O?G-O>=s&&c.renderer.scrollCursorIntoView(z):O=G:O=null}function k(){var W=A;A=c.renderer.screenToTextCoordinates(_,$),C(A,W),S(A,W)}function T(){b=c.selection.toOrientedRange(),y=c.session.addMarker(b,"ace_selection",c.getSelectionStyle()),c.clearSelection(),c.isFocused()&&c.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),k(),w=setInterval(k,20),R=0,f.addListener(document,"mousemove",D)}function I(){clearInterval(w),c.session.removeMarker(y),y=null,c.selection.fromOrientedRange(b),c.isFocused()&&!L&&c.$resetCursorStyle(),b=null,A=null,R=0,O=null,M=null,f.removeListener(document,"mousemove",D)}var N=null;function D(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function F(W){var U=W.types;return!U||Array.prototype.some.call(U,function(G){return G=="text/plain"||G=="Text"})}function H(W){var U=["copy","copymove","all","uninitialized"],G=["move","copymove","linkmove","all","uninitialized"],V=g.isMac?W.altKey:W.ctrlKey,j="uninitialized";try{j=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return V&&U.indexOf(j)>=0?Z="copy":G.indexOf(j)>=0?Z="move":U.indexOf(j)>=0&&(Z="copy"),Z}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,c=l.container;c.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var d=g.isWin?"default":"move";l.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(l){var c=this.editor.container;if(g.isIE&&this.state=="dragReady"){var d=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&c.dragDrop()}if(this.state==="dragWait"){var d=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var c=this.editor,d=l.inSelection(),m=l.getButton(),v=l.domEvent.detail||1;if(v===1&&m===0&&d){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),c.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var _=c.container;_.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(a.prototype);function u(l,c,d,m){return Math.sqrt(Math.pow(d-l,2)+Math.pow(m-c,2))}r.DragdropHandler=a}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,i){var h=n("./mouse_event").MouseEvent,f=n("../lib/event"),g=n("../lib/dom");r.addTouchListeners=function(s,p){var o="scroll",a,u,l,c,d,m,v=0,y,_=0,$=0,w=0,b,A;function R(){var C=window.navigator&&window.navigator.clipboard,S=!1,k=function(){var N=p.getCopyText(),D=p.session.getUndoManager().hasUndo();A.replaceChild(g.buildDom(S?["span",!N&&T("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&T("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&T("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],C&&T("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],D&&T("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],T("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],T("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),A.firstChild)},T=function(N){return p.commands.canExecute(N,p)},I=function(N){var D=N.target.getAttribute("action");if(D=="more"||!S)return S=!S,k();D=="paste"?C.readText().then(function(F){p.execCommand(D,F)}):D&&((D=="cut"||D=="copy")&&(C?C.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(D)),A.firstChild.style.display="none",S=!1,D!="openCommandPalette"&&p.focus()};A=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){o="menu",N.stopPropagation(),N.preventDefault(),p.textInput.focus()},ontouchend:function(N){N.stopPropagation(),N.preventDefault(),I(N)},onclick:I},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function E(){if(!p.getOption("enableMobileMenu")){A&&L();return}A||R();var C=p.selection.cursor,S=p.renderer.textToScreenCoordinates(C.row,C.column),k=p.renderer.textToScreenCoordinates(0,0).pageX,T=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();A.style.top=S.pageY-I.top-3+"px",S.pageX-I.left<I.width-70?(A.style.left="",A.style.right="10px"):(A.style.right="",A.style.left=k+T-I.left+"px"),A.style.display="",A.firstChild.style.display="none",p.on("input",L)}function L(C){A&&(A.style.display="none"),p.off("input",L)}function O(){d=null,clearTimeout(d);var C=p.selection.getRange(),S=C.contains(y.row,y.column);(C.isEmpty()||!S)&&(p.selection.moveToPosition(y),p.selection.selectWord()),o="wait",E()}function M(){d=null,clearTimeout(d),p.selection.moveToPosition(y);var C=_>=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);C&&!C.isEmpty()?p.selection.setRange(C):p.selection.selectWord(),o="wait"}f.addListener(s,"contextmenu",function(C){if(b){var S=p.textInput.getElement();S.focus()}},p),f.addListener(s,"touchstart",function(C){var S=C.touches;if(d||S.length>1){clearTimeout(d),d=null,l=-1,o="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var k=p.renderer.layerConfig.lineHeight,T=p.renderer.layerConfig.lineHeight,I=C.timeStamp;c=I;var N=S[0],D=N.clientX,F=N.clientY;Math.abs(a-D)+Math.abs(u-F)>k&&(l=-1),a=C.clientX=D,u=C.clientY=F,$=w=0;var H=new h(C,p);if(y=H.getDocumentPosition(),I-l<500&&S.length==1&&!v)_++,C.preventDefault(),C.button=0,M();else{_=0;var W=p.selection.cursor,U=p.selection.isEmpty()?W:p.selection.anchor,G=p.renderer.$cursorLayer.getPixelPosition(W,!0),V=p.renderer.$cursorLayer.getPixelPosition(U,!0),j=p.renderer.scroller.getBoundingClientRect(),Z=p.renderer.layerConfig.offset,X=p.renderer.scrollLeft,Q=function(B,Y){return B=B/T,Y=Y/k-.75,B*B+Y*Y};if(C.clientX<j.left){o="zoom";return}var le=Q(C.clientX-j.left-G.left+X,C.clientY-j.top-G.top+Z),z=Q(C.clientX-j.left-V.left+X,C.clientY-j.top-V.top+Z);le<3.5&&z<3.5&&(o=le>z?"cursor":"anchor"),z<3.5?o="anchor":le<3.5?o="cursor":o="scroll",d=setTimeout(O,450)}l=I},p),f.addListener(s,"touchend",function(C){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):d?(p.selection.moveToPosition(y),v=0,E()):o=="scroll"?(x(),L()):E(),clearTimeout(d),d=null},p),f.addListener(s,"touchmove",function(C){d&&(clearTimeout(d),d=null);var S=C.touches;if(!(S.length>1||o=="zoom")){var k=S[0],T=a-k.clientX,I=u-k.clientY;if(o=="wait")if(T*T+I*I>4)o="cursor";else return C.preventDefault();a=k.clientX,u=k.clientY,C.clientX=k.clientX,C.clientY=k.clientY;var N=C.timeStamp,D=N-c;if(c=N,o=="scroll"){var F=new h(C,p);F.speed=1,F.wheelX=T,F.wheelY=I,10*Math.abs(T)<Math.abs(I)&&(T=0),10*Math.abs(I)<Math.abs(T)&&(I=0),D!=0&&($=T/D,w=I/D),p._emit("mousewheel",F),F.propagationStopped||($=w=0)}else{var H=new h(C,p),W=H.getDocumentPosition();o=="cursor"?p.selection.moveCursorToPosition(W):o=="anchor"&&p.selection.setSelectionAnchor(W.row,W.column),p.renderer.scrollCursorIntoView(W),C.preventDefault()}}},p);function x(){v+=60,m=setInterval(function(){v--<=0&&(clearInterval(m),m=null),Math.abs($)<.01&&($=0),Math.abs(w)<.01&&(w=0),v<20&&($=.9*$),v<20&&(w=.9*w);var C=p.session.getScrollTop();p.renderer.scrollBy(10*$,10*w),C==p.session.getScrollTop()&&(v=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,i){var h=n("../lib/event"),f=n("../lib/useragent"),g=n("./default_handlers").DefaultHandlers,s=n("./default_gutter_handler").GutterHandler,p=n("./mouse_event").MouseEvent,o=n("./dragdrop_handler").DragdropHandler,a=n("./touch_handler").addTouchListeners,u=n("../config"),l=function(){function c(d){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=d,new g(this),new s(this),new o(this);var v=function($){var w=!document.hasFocus||!document.hasFocus()||!d.isFocused()&&document.activeElement==(d.textInput&&d.textInput.getElement());w&&window.focus(),d.focus(),setTimeout(function(){d.isFocused()||d.focus()})},y=d.renderer.getMouseEventTarget();h.addListener(y,"click",this.onMouseEvent.bind(this,"click"),d),h.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),d),h.addMultiMouseDownListener([y,d.renderer.scrollBarV&&d.renderer.scrollBarV.inner,d.renderer.scrollBarH&&d.renderer.scrollBarH.inner,d.textInput&&d.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",d),h.addMouseWheelListener(d.container,this.onMouseWheel.bind(this,"mousewheel"),d),a(d.container,d);var _=d.renderer.$gutter;h.addListener(_,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),d),h.addListener(_,"click",this.onMouseEvent.bind(this,"gutterclick"),d),h.addListener(_,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),d),h.addListener(_,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),d),h.addListener(y,"mousedown",v,d),h.addListener(_,"mousedown",v,d),f.isIE&&d.renderer.scrollBarV&&(h.addListener(d.renderer.scrollBarV.element,"mousedown",v,d),h.addListener(d.renderer.scrollBarH.element,"mousedown",v,d)),d.on("mousemove",function($){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var w=d.renderer.screenToTextCoordinates($.x,$.y),b=d.session.selection.getRange(),A=d.renderer;!b.isEmpty()&&b.insideStart(w.row,w.column)?A.setCursorStyle("default"):A.setCursorStyle("")}},d)}return c.prototype.onMouseEvent=function(d,m){this.editor.session&&this.editor._emit(d,new p(m,this.editor))},c.prototype.onMouseMove=function(d,m){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(d,new p(m,this.editor))},c.prototype.onMouseWheel=function(d,m){var v=new p(m,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=m.wheelX,v.wheelY=m.wheelY,this.editor._emit(d,v)},c.prototype.setState=function(d){this.state=d},c.prototype.captureMouse=function(d,m){this.x=d.x,this.y=d.y,this.isMousePressed=!0;var v=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var _=this,$=!0,w=function(L){if(L){if(f.isWebKit&&!L.which&&_.releaseMouse)return _.releaseMouse();_.x=L.clientX,_.y=L.clientY,m&&m(L),_.mouseEvent=new p(L,_.editor),_.$mouseMoved=!0}},b=function(L){v.off("beforeEndOperation",E),$=!1,v.session&&A(),_[_.state+"End"]&&_[_.state+"End"](L),_.state="",_.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),_.$onCaptureMouseMove=_.releaseMouse=null,L&&_.onMouseEvent("mouseup",L),v.endOperation()},A=function(){_[_.state]&&_[_.state](),_.$mouseMoved=!1},R=function(){$&&(A(),h.nextFrame(R))};if(f.isOldIE&&d.domEvent.type=="dblclick")return setTimeout(function(){b(d)});var E=function(L){_.releaseMouse&&v.curOp.command.name&&v.curOp.selectionChanged&&(_[_.state+"End"]&&_[_.state+"End"](),_.state="",_.releaseMouse())};v.on("beforeEndOperation",E),v.startOperation({command:{name:"mouse"}}),_.$onCaptureMouseMove=w,_.releaseMouse=h.capture(this.editor.container,w,b),R()},c.prototype.cancelContextMenu=function(){var d=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",d),m&&m.domEvent&&h.stopEvent(m.domEvent))}).bind(this);setTimeout(d,10),this.editor.on("nativecontextmenu",d)},c.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},c}();l.prototype.releaseMouse=null,u.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=function(){function g(s){s.on("click",function(p){var o=p.getDocumentPosition(),a=s.session,u=a.getFoldAt(o.row,o.column,1);u&&(p.getAccelKey()?a.removeFold(u):a.expandFold(u),p.stop());var l=p.domEvent&&p.domEvent.target;l&&h.hasCssClass(l,"ace_inline_button")&&h.hasCssClass(l,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var a=p.getDocumentPosition().row,u=s.session;u.foldWidgets&&u.foldWidgets[a]&&s.session.onFoldWidgetClick(a,p),s.isFocused()||s.focus(),p.stop()}}),s.on("gutterdblclick",function(p){var o=s.renderer.$gutterLayer.getRegion(p);if(o=="foldWidgets"){var a=p.getDocumentPosition().row,u=s.session,l=u.getParentFoldRangeData(a,!0),c=l.range||l.firstRange;if(c){a=c.start.row;var d=u.getFoldAt(a,u.getLine(a).length,1);d?u.removeFold(d):(u.addFold("...",c),s.renderer.scrollCursorIntoView({row:c.start.row,column:0}))}p.stop()}})}return g}();r.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,i){var h=n("../lib/keys"),f=n("../lib/event"),g=function(){function s(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return s.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},s.prototype.setKeyboardHandler=function(p){var o=this.$handlers;if(o[o.length-1]!=p){for(;o[o.length-1]&&o[o.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(o[o.length-1]);this.addKeyboardHandler(p,1)}},s.prototype.addKeyboardHandler=function(p,o){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var a=this.$handlers.indexOf(p);a!=-1&&this.$handlers.splice(a,1),o==null?this.$handlers.push(p):this.$handlers.splice(o,0,p),a==-1&&p.attach&&p.attach(this.$editor)}},s.prototype.removeKeyboardHandler=function(p){var o=this.$handlers.indexOf(p);return o==-1?!1:(this.$handlers.splice(o,1),p.detach&&p.detach(this.$editor),!0)},s.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},s.prototype.getStatusText=function(){var p=this.$data,o=p.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(o,p)||""}).filter(Boolean).join(" ")},s.prototype.$callKeyboardHandlers=function(p,o,a,u){for(var l,c=!1,d=this.$editor.commands,m=this.$handlers.length;m--&&(l=this.$handlers[m].handleKeyboard(this.$data,p,o,a,u),!(!(!l||!l.command)&&(l.command=="null"?c=!0:c=d.exec(l.command,this.$editor,l.args,u),c&&u&&p!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&f.stopEvent(u),c))););return!c&&p==-1&&(l={command:"insertstring"},c=d.exec("insertstring",this.$editor,o)),c&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),c},s.prototype.onCommandKey=function(p,o,a){var u=h.keyCodeToString(a);return this.$callKeyboardHandlers(o,u,a,p)},s.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},s}();r.KeyBinding=g}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,i){var h=0,f=0,g=!1,s=!1,p=!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]],a=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,l=1,c=0,d=1,m=2,v=3,y=4,_=5,$=6,w=7,b=8,A=9,R=10,E=11,L=12,O=13,M=14,x=15,C=16,S=17,k=18,T=[k,k,k,k,k,k,k,k,k,$,_,$,b,_,k,k,k,k,k,k,k,k,k,k,k,k,k,k,_,_,_,$,b,y,y,E,E,E,y,y,y,y,y,R,A,R,A,A,m,m,m,m,m,m,m,m,m,m,A,y,y,y,y,y,y,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,y,y,y,y,y,y,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,y,y,y,y,k,k,k,k,k,k,_,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,A,y,E,E,E,E,y,y,y,y,c,y,y,k,y,y,E,E,m,m,y,c,y,y,y,m,c,y,y,y,y,y],I=[b,b,b,b,b,b,b,b,b,b,b,k,k,k,c,d,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,_,O,M,x,C,S,A,E,E,E,E,E,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,A,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b];function N(W,U,G,V){var j=h?a:o,Z=null,X=null,Q=null,le=0,z=null,B=null,Y=-1,q=null,te=null,ne=[];if(!V)for(q=0,V=[];q<G;q++)V[q]=H(W[q]);for(f=h,g=!1,s=!1,p=!1,te=0;te<G;te++){if(Z=le,ne[te]=X=F(W,V,ne,te),le=j[Z][X],z=le&240,le&=15,U[te]=Q=j[le][5],z>0)if(z==16){for(q=Y;q<te;q++)U[q]=1;Y=-1}else Y=-1;if(B=j[le][6],B)Y==-1&&(Y=te);else if(Y>-1){for(q=Y;q<te;q++)U[q]=Q;Y=-1}V[te]==_&&(U[te]=0),f|=Q}if(p){for(q=0;q<G;q++)if(V[q]==$){U[q]=h;for(var ue=q-1;ue>=0&&V[ue]==b;ue--)U[ue]=h}}}function D(W,U,G){if(!(f<W)){if(W==1&&h==l&&!s){G.reverse();return}for(var V=G.length,j=0,Z,X,Q,le;j<V;){if(U[j]>=W){for(Z=j+1;Z<V&&U[Z]>=W;)Z++;for(X=j,Q=Z-1;X<Q;X++,Q--)le=G[X],G[X]=G[Q],G[Q]=le;j=Z}j++}}}function F(W,U,G,V){var j=U[V],Z,X,Q,le;switch(j){case c:case d:g=!1;case y:case v:return j;case m:return g?v:m;case w:return g=!0,d;case b:return y;case A:return V<1||V+1>=U.length||(Z=G[V-1])!=m&&Z!=v||(X=U[V+1])!=m&&X!=v?y:(g&&(X=v),X==Z?X:y);case R:return Z=V>0?G[V-1]:_,Z==m&&V+1<U.length&&U[V+1]==m?m:y;case E:if(V>0&&G[V-1]==m)return m;if(g)return y;for(le=V+1,Q=U.length;le<Q&&U[le]==E;)le++;return le<Q&&U[le]==m?m:y;case L:for(Q=U.length,le=V+1;le<Q&&U[le]==L;)le++;if(le<Q){var z=W[V],B=z>=1425&&z<=2303||z==64286;if(Z=U[le],B&&(Z==d||Z==w))return d}return V<1||(Z=U[V-1])==_?y:G[V-1];case _:return g=!1,s=!0,h;case $:return p=!0,y;case O:case M:case C:case S:case x:g=!1;case k:return y}}function H(W){var U=W.charCodeAt(0),G=U>>8;return G==0?U>191?c:T[U]:G==5?/[\u0591-\u05f4]/.test(W)?d:c:G==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(W)?L:/[\u0660-\u0669\u066b-\u066c]/.test(W)?v:U==1642?E:/[\u06f0-\u06f9]/.test(W)?m:w:G==32&&U<=8287?I[U&255]:G==254&&U>=65136?w:y}r.L=c,r.R=d,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(W,U,G){if(W.length<2)return{};var V=W.split(""),j=new Array(V.length),Z=new Array(V.length),X=[];h=G?l:u,N(V,X,V.length,U);for(var Q=0;Q<j.length;j[Q]=Q,Q++);D(2,X,j),D(1,X,j);for(var Q=0;Q<j.length-1;Q++)U[Q]===v?X[Q]=r.AN:X[Q]===d&&(U[Q]>w&&U[Q]<O||U[Q]===y||U[Q]===k)?X[Q]=r.ON_R:Q>0&&V[Q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(V[Q])&&(X[Q-1]=X[Q]=r.R_H,Q++);V[V.length-1]===r.DOT&&(X[V.length-1]=r.B),V[0]===""&&(X[0]=r.RLE);for(var Q=0;Q<j.length;Q++)Z[Q]=X[j[Q]];return{logicalFromVisual:j,bidiLevels:Z}},r.hasBidiCharacters=function(W,U){for(var G=!1,V=0;V<W.length;V++)U[V]=H(W.charAt(V)),!G&&(U[V]==d||U[V]==w||U[V]==v)&&(G=!0);return G},r.getVisualFromLogicalIdx=function(W,U){for(var G=0;G<U.logicalFromVisual.length;G++)if(U.logicalFromVisual[G]==W)return G;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,i){var h=n("./lib/bidiutil"),f=n("./lib/lang"),g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function p(o){this.session=o,this.bidiMap={},this.currentRow=null,this.bidiUtil=h,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 p.prototype.isBidiRow=function(o,a,u){return this.seenBidi?(o!==this.currentRow&&(this.currentRow=o,this.updateRowLine(a,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},p.prototype.onChange=function(o){this.seenBidi?this.currentRow=null:o.action=="insert"&&g.test(o.lines.join(`
|
801
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var o=0,a=this.session.$screenRowCache;if(a.length){var u=this.session.$getRowCacheIndex(a,this.currentRow);u>=0&&(o=this.session.$docRowCache[u])}return o},p.prototype.getSplitIndex=function(){var o=0,a=this.session.$screenRowCache;if(a.length)for(var u,l=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-o>0&&(u=this.session.$getRowCacheIndex(a,this.currentRow-o-1),u===l);)l=u,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,a){o===void 0&&(o=this.getDocumentRow());var u=o===this.session.getLength()-1,l=u?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 c=this.session.$wrapData[o];c&&(a===void 0&&(a=this.getSplitIndex()),a>0&&c.length?(this.wrapIndent=c.indent,this.wrapOffset=this.wrapIndent*this.charWidths[h.L],this.line=a<c.length?this.line.substring(c[a-1],c[a]):this.line.substring(c[c.length-1])):this.line=this.line.substring(0,c[a]),a==c.length&&(this.line+=this.showInvisibles?l:h.DOT))}else this.line+=this.showInvisibles?l:h.DOT;var d=this.session,m=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,_){return y===" "||d.isFullWidth(y.charCodeAt(0))?(v=y===" "?d.getScreenTabSize(_+m):2,m+=v-1,f.stringRepeat(h.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==h.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var o=[];h.hasBidiCharacters(this.line,o)||this.isRtlDir?this.bidiMap=h.doBidiReorder(this.line,o,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(o){if(this.characterWidth!==o.$characterSize.width){this.fontMetrics=o;var a=this.characterWidth=o.$characterSize.width,u=o.$measureCharWidth("ה");this.charWidths[h.L]=this.charWidths[h.EN]=this.charWidths[h.ON_R]=a,this.charWidths[h.R]=this.charWidths[h.AN]=u,this.charWidths[h.R_H]=u*.45,this.charWidths[h.B]=this.charWidths[h.RLE]=0,this.currentRow=null}},p.prototype.setShowInvisibles=function(o){this.showInvisibles=o,this.currentRow=null},p.prototype.setEolChar=function(o){this.EOL=o},p.prototype.setContentWidth=function(o){this.contentWidth=o},p.prototype.isRtlLine=function(o){return this.$isRtl?!0:o!=null?this.session.getLine(o).charAt(0)==this.RLE:this.isRtlDir},p.prototype.setRtlDirection=function(o,a){for(var u=o.getCursorPosition(),l=o.selection.getSelectionAnchor().row;l<=u.row;l++)!a&&o.session.getLine(l).charAt(0)===o.session.$bidiHandler.RLE?o.session.doc.removeInLine(l,0,1):a&&o.session.getLine(l).charAt(0)!==o.session.$bidiHandler.RLE&&o.session.doc.insert({column:0,row:l},o.session.$bidiHandler.RLE)},p.prototype.getPosLeft=function(o){o-=this.wrapIndent;var a=this.line.charAt(0)===this.RLE?1:0,u=o>a?this.session.getOverwrite()?o:o-1:a,l=h.getVisualFromLogicalIdx(u,this.bidiMap),c=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&o<=a&&c[l]%2!==0&&l++;for(var m=0;m<l;m++)d+=this.charWidths[c[m]];return!this.session.getOverwrite()&&o>a&&c[l]%2===0&&(d+=this.charWidths[c[l]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},p.prototype.getSelections=function(o,a){var u=this.bidiMap,l=u.bidiLevels,c,d=[],m=0,v=Math.min(o,a)-this.wrapIndent,y=Math.max(o,a)-this.wrapIndent,_=!1,$=!1,w=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,A=0;A<l.length;A++)b=u.logicalFromVisual[A],c=l[A],_=b>=v&&b<y,_&&!$?w=m:!_&&$&&d.push({left:w,width:m-w}),m+=this.charWidths[c],$=_;if(_&&A===l.length&&d.push({left:w,width:m-w}),this.isRtlDir)for(var R=0;R<d.length;R++)d[R].left+=this.rtlLineOffset;return d},p.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var a=0,u=Math.max(u,0),l=0,c=0,d=this.bidiMap.bidiLevels,m=this.charWidths[d[c]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>l+m/2;){if(l+=m,c===d.length-1){m=0;break}m=this.charWidths[d[++c]]}return c>0&&d[c-1]%2!==0&&d[c]%2===0?(u<l&&c--,a=this.bidiMap.logicalFromVisual[c]):c>0&&d[c-1]%2===0&&d[c]%2!==0?a=1+(u>l?this.bidiMap.logicalFromVisual[c]:this.bidiMap.logicalFromVisual[c-1]):this.isRtlDir&&c===d.length-1&&m===0&&d[c-1]%2===0||!this.isRtlDir&&c===0&&d[c]%2!==0?a=1+this.bidiMap.logicalFromVisual[c]:(c>0&&d[c-1]%2!==0&&m!==0&&c--,a=this.bidiMap.logicalFromVisual[c]),a===0&&this.isRtlDir&&a++,a+this.wrapIndent},p}();r.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=function(){function o(a){this.session=a,this.doc=a.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(l){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&l.old.column!=l.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._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(a,u){this.$isEmpty=!1,this.anchor.setPosition(a,u)},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 a=this.anchor,u=this.lead;return a.row>u.row||a.row==u.row&&a.column>u.column},o.prototype.getRange=function(){var a=this.anchor,u=this.lead;return this.$isEmpty?s.fromPoints(u,u):this.isBackwards()?s.fromPoints(u,a):s.fromPoints(a,u)},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(a,u){var l=u?a.end:a.start,c=u?a.start:a.end;this.$setSelection(l.row,l.column,c.row,c.column)},o.prototype.$setSelection=function(a,u,l,c){if(!this.$silent){var d=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,u),this.cursor.setPosition(l,c),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||d!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(a){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),a.call(this)},o.prototype.selectTo=function(a,u){this.$moveSelection(function(){this.moveCursorTo(a,u)})},o.prototype.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},o.prototype.moveTo=function(a,u){this.clearSelection(),this.moveCursorTo(a,u)},o.prototype.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},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(a,u){if(typeof u>"u"){var l=a||this.lead;a=l.row,u=l.column}return this.session.getWordRange(a,u)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var a=this.getCursor(),u=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(u)},o.prototype.getLineRange=function(a,u){var l=typeof a=="number"?a:this.lead.row,c,d=this.session.getFoldLine(l);return d?(l=d.start.row,c=d.end.row):c=l,u===!0?new s(l,0,c,this.session.getLine(c).length):new s(l,0,c+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(a,u,l){var c=a.column,d=a.column+u;return l<0&&(c=a.column-u,d=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(c,d).split(" ").length-1==u},o.prototype.moveCursorLeft=function(){var a=this.lead.getPosition(),u;if(u=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(a.column===0)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var a=this.lead.getPosition(),u;if(u=this.session.getFoldAt(a.row,a.column,1))this.moveCursorTo(u.end.row,u.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var l=this.session.getTabSize(),a=this.lead;this.wouldMoveIntoSoftTab(a,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},o.prototype.moveCursorLineStart=function(){var a=this.lead.row,u=this.lead.column,l=this.session.documentToScreenRow(a,u),c=this.session.screenToDocumentPosition(l,0),d=this.session.getDisplayLine(a,null,c.row,c.column),m=d.match(/^\s*/);m[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(c.column+=m[0].length),this.moveCursorToPosition(c)},o.prototype.moveCursorLineEnd=function(){var a=this.lead,u=this.session.getDocumentLastRowColumnPosition(a.row,a.column);if(this.lead.column==u.column){var l=this.session.getLine(u.row);if(u.column==l.length){var c=l.search(/\s+$/);c>0&&(u.column=c)}}this.moveCursorTo(u.row,u.column)},o.prototype.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,u=this.doc.getLine(a).length;this.moveCursorTo(a,u)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var a=this.lead.row,u=this.lead.column,l=this.doc.getLine(a),c=l.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(a,u,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(c)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,c=l.substring(u)),u>=l.length){this.moveCursorTo(a,l.length),this.moveCursorRight(),a<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(c)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,u)},o.prototype.moveCursorLongWordLeft=function(){var a=this.lead.row,u=this.lead.column,l;if(l=this.session.getFoldAt(a,u,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var c=this.session.getFoldStringAt(a,u,-1);c==null&&(c=this.doc.getLine(a).substring(0,u));var d=f.stringReverse(c);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(d)&&(u-=this.session.nonTokenRe.lastIndex,d=d.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(a,0),this.moveCursorLeft(),a>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,u)},o.prototype.$shortWordEndIndex=function(a){var u=0,l,c=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(a))u=this.session.tokenRe.lastIndex;else{for(;(l=a[u])&&c.test(l);)u++;if(u<1){for(d.lastIndex=0;(l=a[u])&&!d.test(l);)if(d.lastIndex=0,u++,c.test(l))if(u>2){u--;break}else{for(;(l=a[u])&&c.test(l);)u++;if(u>2)break}}}return d.lastIndex=0,u},o.prototype.moveCursorShortWordRight=function(){var a=this.lead.row,u=this.lead.column,l=this.doc.getLine(a),c=l.substring(u),d=this.session.getFoldAt(a,u,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(u==l.length){var m=this.doc.getLength();do a++,c=this.doc.getLine(a);while(a<m&&/^\s*$/.test(c));/^\s+/.test(c)||(c=""),u=0}var v=this.$shortWordEndIndex(c);this.moveCursorTo(a,u+v)},o.prototype.moveCursorShortWordLeft=function(){var a=this.lead.row,u=this.lead.column,l;if(l=this.session.getFoldAt(a,u,-1))return this.moveCursorTo(l.start.row,l.start.column);var c=this.session.getLine(a).substring(0,u);if(u===0){do a--,c=this.doc.getLine(a);while(a>0&&/^\s*$/.test(c));u=c.length,/\s+$/.test(c)||(c="")}var d=f.stringReverse(c),m=this.$shortWordEndIndex(d);return this.moveCursorTo(a,u-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(a,u){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),c;if(u===0&&(a!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(c=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(c/this.session.$bidiHandler.charWidths[0])):c=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),a!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];a<0?a-=d.rowsAbove||0:a>0&&(a+=d.rowCount-(d.rowsAbove||0))}var m=this.session.screenToDocumentPosition(l.row+a,l.column,c);a!==0&&u===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+u,u===0)},o.prototype.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},o.prototype.moveCursorTo=function(a,u,l){var c=this.session.getFoldAt(a,u,1);c&&(a=c.start.row,u=c.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(d.charAt(u))&&d.charAt(u-1)&&(this.lead.row==a&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(a,u),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(a,u,l){var c=this.session.screenToDocumentPosition(a,u);this.moveCursorTo(c.row,c.column,l)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(a){var u=this.getRange();return a?(a.start.column=u.start.column,a.start.row=u.start.row,a.end.column=u.end.column,a.end.row=u.end.row):a=u,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},o.prototype.getRangeOfMovements=function(a){var u=this.getCursor();try{a(this);var l=this.getCursor();return s.fromPoints(u,l)}catch{return s.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},o.prototype.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(u){var l=u.clone();return l.isBackwards=u.cursor==u.start,l});else{var a=this.getRange();a.isBackwards=this.isBackwards()}return a},o.prototype.fromJSON=function(a){if(a.start==null)if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var u=a.length;u--;){var l=s.fromPoints(a[u].start,a[u].end);a[u].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else a=a[0];this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},o.prototype.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(a[u]))return!1;return!0},o}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,h.implement(p.prototype,g),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,i){var h=n("./lib/report_error").reportError,f=2e3,g=function(){function s(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var a=this.states[o],u=[],l=0,c=this.matchMappings[o]={defaultToken:"text"},d="g",m=[],v=0;v<a.length;v++){var y=a[v];if(y.defaultToken&&(c.defaultToken=y.defaultToken),y.caseInsensitive&&d.indexOf("i")===-1&&(d+="i"),y.unicode&&d.indexOf("u")===-1&&(d+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var _=y.regex,$=new RegExp("(?:("+_+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||$==1?y.token=y.token[0]:$-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:$-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&($>1?y.onMatch=this.$applyToken:y.onMatch=y.token),$>1&&(/\\\d/.test(y.regex)?_=y.regex.replace(/\\([0-9]+)/g,function(w,b){return"\\"+(parseInt(b,10)+l+1)}):($=1,_=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),c[l]=v,l+=$,u.push(_),y.onMatch||(y.onMatch=null)}}u.length||(c[0]=0,u.push("$")),m.forEach(function(w){w.splitRegex=this.createSplitterRegexp(w.regex,d)},this),this.regExps[o]=new RegExp("("+u.join(")|(")+")|($)",d)}}return s.prototype.$setMaxTokenCount=function(p){f=p|0},s.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),a=this.token.apply(this,o);if(typeof a=="string")return[{type:a,value:p}];for(var u=[],l=0,c=a.length;l<c;l++)o[l]&&(u[u.length]={type:a[l],value:o[l]});return u},s.prototype.$arrayTokens=function(p){if(!p)return[];var o=this.splitRegex.exec(p);if(!o)return"text";for(var a=[],u=this.tokenArray,l=0,c=u.length;l<c;l++)o[l+1]&&(a[a.length]={type:u[l],value:o[l+1]});return a},s.prototype.removeCapturingGroups=function(p){var o=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(a,u){return u?"(?:":a});return o},s.prototype.createSplitterRegexp=function(p,o){if(p.indexOf("(?=")!=-1){var a=0,u=!1,l={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(c,d,m,v,y,_){return u?u=y!="]":y?u=!0:v?(a==l.stack&&(l.end=_+1,l.stack=-1),a--):m&&(a++,m.length!=1&&(l.stack=a,l.start=_)),c}),l.end!=null&&/^\)*$/.test(p.substr(l.end))&&(p=p.substring(0,l.start)+p.substr(l.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(o||"").replace("g",""))},s.prototype.getLineTokens=function(p,o){if(o&&typeof o!="string"){var a=o.slice(0);o=a[0],o==="#tmp"&&(a.shift(),o=a.shift())}else var a=[];var u=o||"start",l=this.states[u];l||(u="start",l=this.states[u]);var c=this.matchMappings[u],d=this.regExps[u];d.lastIndex=0;for(var m,v=[],y=0,_=0,$={type:null,value:""};m=d.exec(p);){var w=c.defaultToken,b=null,A=m[0],R=d.lastIndex;if(R-A.length>y){var E=p.substring(y,R-A.length);$.type==w?$.value+=E:($.type&&v.push($),$={type:w,value:E})}for(var L=0;L<m.length-2;L++)if(m[L+1]!==void 0){b=l[c[L]],b.onMatch?w=b.onMatch(A,u,a,p):w=b.token,b.next&&(typeof b.next=="string"?u=b.next:u=b.next(u,a),l=this.states[u],l||(this.reportError("state doesn't exist",u),u="start",l=this.states[u]),c=this.matchMappings[u],y=R,d=this.regExps[u],d.lastIndex=R),b.consumeLineEnd&&(y=R);break}if(A){if(typeof w=="string")(!b||b.merge!==!1)&&$.type===w?$.value+=A:($.type&&v.push($),$={type:w,value:A});else if(w){$.type&&v.push($),$={type:null,value:""};for(var L=0;L<w.length;L++)v.push(w[L])}}if(y==p.length)break;if(y=R,_++>f){for(_>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:p});y<p.length;)$.type&&v.push($),$={value:p.substring(y,y+=500),type:"overflow"};u="start",a=[];break}}return $.type&&v.push($),a.length>1&&a[0]!==u&&a.unshift("#tmp",u),{tokens:v,state:a.length?a:u}},s}();g.prototype.reportError=h,r.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,i){var h=n("../lib/deep_copy").deepCopy,f;f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var a in p)this.$rules[a]=p[a];return}for(var a in p){for(var u=p[a],l=0;l<u.length;l++){var c=u[l];(c.next||c.onMatch)&&(typeof c.next=="string"&&c.next.indexOf(o)!==0&&(c.next=o+c.next),c.nextState&&c.nextState.indexOf(o)!==0&&(c.nextState=o+c.nextState))}this.$rules[o+a]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(p,o,a,u,l){var c=typeof p=="function"?new p().getRules():p;if(u)for(var d=0;d<u.length;d++)u[d]=o+u[d];else{u=[];for(var m in c)u.push(o+m)}if(this.addRules(c,o),a)for(var v=Array.prototype[l?"push":"unshift"],d=0;d<u.length;d++)v.apply(this.$rules[u[d]],h(a));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var g=function(p,o){return(p!="start"||o.length)&&o.unshift(this.nextState,p),this.nextState},s=function(p,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var p=0,o=this.$rules;function a(u){var l=o[u];l.processed=!0;for(var c=0;c<l.length;c++){var d=l[c],m=null;Array.isArray(d)&&(m=d,d={}),!d.regex&&d.start&&(d.regex=d.start,d.next||(d.next=[]),d.next.push({defaultToken:d.token},{token:d.token+".end",regex:d.end||d.start,next:"pop"}),d.token=d.token+".start",d.push=!0);var v=d.next||d.push;if(v&&Array.isArray(v)){var y=d.stateName;y||(y=d.token,typeof y!="string"&&(y=y[0]||""),o[y]&&(y+=p++)),o[y]=v,d.next=y,a(y)}else v=="pop"&&(d.next=s);if(d.push&&(d.nextState=d.next||d.push,d.next=g,delete d.push),d.rules)for(var _ in d.rules)o[_]?o[_].push&&o[_].push.apply(o[_],d.rules[_]):o[_]=d.rules[_];var $=typeof d=="string"?d:d.include;if($&&($==="$self"&&($="start"),Array.isArray($)?m=$.map(function(b){return o[b]}):m=o[$]),m){var w=[c,1].concat(m);d.noEscape&&(w=w.filter(function(b){return!b.next})),l.splice.apply(l,w),c--}d.keywordMap&&(d.token=this.createKeywordMapper(d.keywordMap,d.defaultToken||"text",d.caseInsensitive),delete d.defaultToken)}}Object.keys(o).forEach(a,this)},this.createKeywordMapper=function(p,o,a,u){var l=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(c){for(var d=p[c],m=d.split(u||"|"),v=m.length;v--;){var y=m[v];this.$keywordList.push(y),a&&(y=y.toLowerCase()),l[y]=c}},this),p=null,a?function(c){return l[c.toLowerCase()]||o}:function(c){return l[c]||o}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),r.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,i){var h;h=function(){this.$behaviours={}},(function(){this.add=function(f,g,s){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][g]=s},this.addBehaviours=function(f){for(var g in f)for(var s in f[g])this.add(g,s,f[g][s])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,g){if(typeof f=="function")var s=new f().getBehaviours(g);else var s=f.getBehaviours(g);this.addBehaviours(s)},this.getBehaviours=function(f){if(f){for(var g={},s=0;s<f.length;s++)this.$behaviours[f[s]]&&(g[f[s]]=this.$behaviours[f[s]]);return g}else return this.$behaviours}}).call(h.prototype),r.Behaviour=h}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,i){var h=n("./range").Range,f=function(){function g(s,p,o){this.$session=s,this.$row=p,this.$rowTokens=s.getTokens(p);var a=s.getTokenAt(p,o);this.$tokenIndex=a?a.index:-1}return g.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},g.prototype.stepForward=function(){this.$tokenIndex+=1;for(var 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,p=this.$tokenIndex,o=s[p].start;if(o!==void 0)return o;for(o=0;p>0;)p-=1,o+=s[p].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],p=this.getCurrentTokenColumn();return new h(this.$row,p,this.$row,p+s.value.length)},g}();r.TokenIterator=f}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,i){var h=n("../../lib/oop"),f=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],a,u={},l={'"':'"',"'":"'"},c=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,u.rangeCount!=v.multiSelect.rangeCount&&(u={rangeCount:v.multiSelect.rangeCount})),u[y])return a=u[y];a=u[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(v,y,_,$){var w=v.end.row-v.start.row;return{text:_+y+$,selection:[0,v.start.column+1,w,v.end.column+(w?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,_,$,w,b){var A=$.getCursorPosition(),R=w.doc.getLine(A.row);if(b=="{"){c($);var E=$.getSelectionRange(),L=w.doc.getTextRange(E),O=w.getTokenAt(A.row,A.column);if(L!==""&&L!=="{"&&$.getWrapBehavioursEnabled())return d(E,L,"{","}");if(O&&/(?:string)\.quasi|\.xml/.test(O.type)){var M=[/tag\-(?:open|name)/,/attribute\-name/];return M.some(function(N){return N.test(O.type)})||/(string)\.quasi/.test(O.type)&&O.value[A.column-O.start-1]!=="$"?void 0:(m.recordAutoInsert($,w,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion($,w))return/[\]\}\)]/.test(R[A.column])||$.inMultiSelectMode||v.braces?(m.recordAutoInsert($,w,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert($,w,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){c($);var x=R.substring(A.column,A.column+1);if(x=="}"){var C=w.$findOpeningBracket("}",{column:A.column+1,row:A.row});if(C!==null&&m.isAutoInsertedClosing(A,R,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
|
802
|
+
`||b==`\r
|
803
|
+
`){c($);var S="";m.isMaybeInsertedClosing(A,R)&&(S=s.stringRepeat("}",a.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var x=R.substring(A.column,A.column+1);if(x==="}"){var k=w.findMatchingBracket({row:A.row,column:A.column+1},"}");if(!k)return null;var T=this.$getIndent(w.getLine(k.row))}else if(S)var T=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var I=T+w.getTabString();return{text:`
|
804
|
+
`+I+`
|
805
|
+
`+T+S,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,_,$,w,b){var A=w.doc.getTextRange(b);if(!b.isMultiLine()&&A=="{"){c($);var R=w.doc.getLine(b.start.row),E=R.substring(b.end.column,b.end.column+1);if(E=="}")return b.end.column++,b;a.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,_,$,w,b){if(b=="("){c($);var A=$.getSelectionRange(),R=w.doc.getTextRange(A);if(R!==""&&$.getWrapBehavioursEnabled())return d(A,R,"(",")");if(m.isSaneInsertion($,w))return m.recordAutoInsert($,w,")"),{text:"()",selection:[1,1]}}else if(b==")"){c($);var E=$.getCursorPosition(),L=w.doc.getLine(E.row),O=L.substring(E.column,E.column+1);if(O==")"){var M=w.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(M!==null&&m.isAutoInsertedClosing(E,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,_,$,w,b){var A=w.doc.getTextRange(b);if(!b.isMultiLine()&&A=="("){c($);var R=w.doc.getLine(b.start.row),E=R.substring(b.start.column+1,b.start.column+2);if(E==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,_,$,w,b){if(b=="["){c($);var A=$.getSelectionRange(),R=w.doc.getTextRange(A);if(R!==""&&$.getWrapBehavioursEnabled())return d(A,R,"[","]");if(m.isSaneInsertion($,w))return m.recordAutoInsert($,w,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){c($);var E=$.getCursorPosition(),L=w.doc.getLine(E.row),O=L.substring(E.column,E.column+1);if(O=="]"){var M=w.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(M!==null&&m.isAutoInsertedClosing(E,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,_,$,w,b){var A=w.doc.getTextRange(b);if(!b.isMultiLine()&&A=="["){c($);var R=w.doc.getLine(b.start.row),E=R.substring(b.start.column+1,b.start.column+2);if(E=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,_,$,w,b){var A=w.$mode.$quotes||l;if(b.length==1&&A[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;c($);var R=b,E=$.getSelectionRange(),L=w.doc.getTextRange(E);if(L!==""&&(L.length!=1||!A[L])&&$.getWrapBehavioursEnabled())return d(E,L,R,R);if(!L){var O=$.getCursorPosition(),M=w.doc.getLine(O.row),x=M.substring(O.column-1,O.column),C=M.substring(O.column,O.column+1),S=w.getTokenAt(O.row,O.column),k=w.getTokenAt(O.row,O.column+1);if(x=="\\"&&S&&/escape/.test(S.type))return null;var T=S&&/string|escape/.test(S.type),I=!k||/string|escape/.test(k.type),N;if(C==R)N=T!==I,N&&/string\.end/.test(k.type)&&(N=!1);else{if(T&&!I||T&&I)return null;var D=w.$mode.tokenRe;D.lastIndex=0;var F=D.test(x);D.lastIndex=0;var H=D.test(C),W=w.$mode.$pairQuotesAfter,U=W&&W[R]&&W[R].test(x);if(!U&&F||H||C&&!/[\s;,.})\]\\]/.test(C))return null;var G=M[O.column-2];if(x==R&&(G==R||D.test(G)))return null;N=!0}return{text:N?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,_,$,w,b){var A=w.$mode.$quotes||l,R=w.doc.getTextRange(b);if(!b.isMultiLine()&&A.hasOwnProperty(R)){c($);var E=w.doc.getLine(b.start.row),L=E.substring(b.start.column+1,b.start.column+2);if(L==R)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,_,$,w,b){if(y==="doc-start"&&(b===`
|
806
|
+
`||b===`\r
|
807
|
+
`)&&$.selection.isEmpty()){var A=$.getCursorPosition();if(A.column===0)return;for(var R=w.doc.getLine(A.row),E=w.doc.getLine(A.row+1),L=w.getTokens(A.row),O=0,M=0;M<L.length;M++){O+=L[M].value.length;var x=L[M];if(O>=A.column){if(O===A.column){if(!/\.doc/.test(x.type))return;if(/\*\//.test(x.value)){var C=L[M+1];if(!C||!/\.doc/.test(C.type))return}}var S=A.column-(O-x.value.length),k=x.value.indexOf("*/"),T=x.value.indexOf("/**",k>-1?k+2:0);if(T!==-1&&S>T&&S<T+3||k!==-1&&T!==-1&&S>=k&&S<=T||!/\.doc/.test(x.type))return;break}}var I=this.$getIndent(R);if(/\s*\*/.test(E))return/^\s*\*/.test(R)?{text:b+I+"* ",selection:[1,2+I.length,1,2+I.length]}:{text:b+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(R.substring(0,A.column)))return{text:b+I+" * "+b+" "+I+"*/",selection:[1,4+I.length,1,4+I.length]}}})},m.isSaneInsertion=function(v,y){var _=v.getCursorPosition(),$=new g(y,_.row,_.column);if(!this.$matchTokenType($.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(_.row)[_.column]))return!0;var w=new g(y,_.row,_.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",p))return!1}return $.stepForward(),$.getCurrentTokenRow()!==_.row||this.$matchTokenType($.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,_){var $=v.getCursorPosition(),w=y.doc.getLine($.row);this.isAutoInsertedClosing($,w,a.autoInsertedLineEnd[0])||(a.autoInsertedBrackets=0),a.autoInsertedRow=$.row,a.autoInsertedLineEnd=_+w.substr($.column),a.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,_){var $=v.getCursorPosition(),w=y.doc.getLine($.row);this.isMaybeInsertedClosing($,w)||(a.maybeInsertedBrackets=0),a.maybeInsertedRow=$.row,a.maybeInsertedLineStart=w.substr(0,$.column)+_,a.maybeInsertedLineEnd=w.substr($.column),a.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,_){return a.autoInsertedBrackets>0&&v.row===a.autoInsertedRow&&_===a.autoInsertedLineEnd[0]&&y.substr(v.column)===a.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return a.maybeInsertedBrackets>0&&v.row===a.maybeInsertedRow&&y.substr(v.column)===a.maybeInsertedLineEnd&&y.substr(0,v.column)==a.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){a.autoInsertedLineEnd=a.autoInsertedLineEnd.substr(1),a.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){a&&(a.maybeInsertedBrackets=0,a.maybeInsertedRow=-1)},h.inherits(m,f),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,i){for(var h=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],f=0,g=[],s=0;s<h.length;s+=2)g.push(f+=h[s]),h[s+1]&&g.push(45,f+=h[s+1]);r.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,r,i){var h=n("../config"),f=n("../tokenizer").Tokenizer,g=n("./text_highlight_rules").TextHighlightRules,s=n("./behaviour/cstyle").CstyleBehaviour,p=n("../unicode"),o=n("../lib/lang"),a=n("../token_iterator").TokenIterator,u=n("../range").Range,l;l=function(){this.HighlightRules=g},(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(c,d,m,v){var y=d.doc,_=!0,$=!0,w=1/0,b=d.getTabSize(),A=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var L=this.lineCommentStart.map(o.escapeRegExp).join("|"),R=this.lineCommentStart[0];else var L=o.escapeRegExp(this.lineCommentStart),R=this.lineCommentStart;L=new RegExp("^(\\s*)(?:"+L+") ?"),A=d.getUseSoftTabs();var x=function(H,W){var U=H.match(L);if(U){var G=U[1].length,V=U[0].length;!k(H,G,V)&&U[0][V-1]==" "&&V--,y.removeInLine(W,G,V)}},S=R+" ",M=function(H,W){(!_||/\S/.test(H))&&(k(H,w,w)?y.insertInLine({row:W,column:w},S):y.insertInLine({row:W,column:w},R))},C=function(H,W){return L.test(H)},k=function(H,W,U){for(var G=0;W--&&H.charAt(W)==" ";)G++;if(G%b!=0)return!1;for(var G=0;H.charAt(U++)==" ";)G++;return b>2?G%b!=b-1:G%b==0}}else{if(!this.blockComment)return!1;var R=this.blockComment.start,E=this.blockComment.end,L=new RegExp("^(\\s*)(?:"+o.escapeRegExp(R)+")"),O=new RegExp("(?:"+o.escapeRegExp(E)+")\\s*$"),M=function(N,D){C(N,D)||(!_||/\S/.test(N))&&(y.insertInLine({row:D,column:N.length},E),y.insertInLine({row:D,column:w},R))},x=function(N,D){var F;(F=N.match(O))&&y.removeInLine(D,N.length-F[0].length,N.length),(F=N.match(L))&&y.removeInLine(D,F[1].length,F[0].length)},C=function(N,D){if(L.test(N))return!0;for(var F=d.getTokens(D),H=0;H<F.length;H++)if(F[H].type==="comment")return!0}}function T(N){for(var D=m;D<=v;D++)N(y.getLine(D),D)}var I=1/0;T(function(N,D){var F=N.search(/\S/);F!==-1?(F<w&&(w=F),$&&!C(N,D)&&($=!1)):I>N.length&&(I=N.length)}),w==1/0&&(w=I,_=!1,$=!1),A&&w%b!=0&&(w=Math.floor(w/b)*b),T($?x:M)},this.toggleBlockComment=function(c,d,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var _=new a(d,v.row,v.column),$=_.getCurrentToken();d.selection;var w=d.selection.toOrientedRange(),b,A;if($&&/comment/.test($.type)){for(var R,E;$&&/comment/.test($.type);){var L=$.value.indexOf(y.start);if(L!=-1){var O=_.getCurrentTokenRow(),M=_.getCurrentTokenColumn()+L;R=new u(O,M,O,M+y.start.length);break}$=_.stepBackward()}for(var _=new a(d,v.row,v.column),$=_.getCurrentToken();$&&/comment/.test($.type);){var L=$.value.indexOf(y.end);if(L!=-1){var O=_.getCurrentTokenRow(),M=_.getCurrentTokenColumn()+L;E=new u(O,M,O,M+y.end.length);break}$=_.stepForward()}E&&d.remove(E),R&&(d.remove(R),b=R.start.row,A=-y.start.length)}else A=y.start.length,b=m.start.row,d.insert(m.end,y.end),d.insert(m.start,y.start);w.start.row==b&&(w.start.column+=A),w.end.row==b&&(w.end.column+=A),d.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(c,d,m){return this.$getIndent(d)},this.checkOutdent=function(c,d,m){return!1},this.autoOutdent=function(c,d,m){},this.$getIndent=function(c){return c.match(/^\s*/)[0]},this.createWorker=function(c){return null},this.createModeDelegates=function(c){this.$embeds=[],this.$modes={};for(var d in c)if(c[d]){var m=c[d],v=m.prototype.$id,y=h.$modes[v];y||(h.$modes[v]=y=new m),h.$modes[d]||(h.$modes[d]=y),this.$embeds.push(d),this.$modes[d]=y}for(var _=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],$=function(b){(function(A){var R=_[b],E=A[R];A[_[b]]=function(){return this.$delegator(R,arguments,E)}})(w)},w=this,d=0;d<_.length;d++)$(d)},this.$delegator=function(c,d,m){var v=d[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],_=this.$modes[y];if(_)return _[c].apply(_,[v[1]].concat([].slice.call(d,1)))}v=v[0]||"start"}for(var $=0;$<this.$embeds.length;$++)if(this.$modes[this.$embeds[$]]){var w=v.split(this.$embeds[$]);if(!w[0]&&w[1]){d[0]=w[1];var _=this.$modes[this.$embeds[$]];return _[c].apply(_,d)}}var b=m.apply(this,d);return m?b:void 0},this.transformAction=function(c,d,m,v,y){if(this.$behaviour){var _=this.$behaviour.getBehaviours();for(var $ in _)if(_[$][d]){var w=_[$][d].apply(this,arguments);if(w)return w}}},this.getKeywords=function(c){if(!this.completionKeywords){var d=this.$tokenizer.rules,m=[];for(var v in d)for(var y=d[v],_=0,$=y.length;_<$;_++)if(typeof y[_].token=="string")/keyword|support|storage/.test(y[_].token)&&m.push(y[_].regex);else if(typeof y[_].token=="object"){for(var w=0,b=y[_].token.length;w<b;w++)if(/keyword|support|storage/.test(y[_].token[w])){var v=y[_].regex.match(/\(.+?\)/g)[w];m.push(v.substr(1,v.length-2))}}this.completionKeywords=m}return c?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(c,d,m,v){var y=this.$keywordList||this.$createKeywordList();return y.map(function(_){return{name:_,value:_,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),r.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("./lib/dom"),f=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 p;return this.lineWidgets?p=this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[s]?1+p:this.$wrapData[s].length+1+p},g.prototype.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(s+=p.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 p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(a){a&&a.el&&a.el.parentNode&&(a._inDocument=!1,a.el.parentNode.removeChild(a.el))})}},g.prototype.updateOnFold=function(s,p){var o=p.lineWidgets;if(!(!o||!s.action)){for(var a=s.data,u=a.start.row,l=a.end.row,c=s.action=="add",d=u+1;d<l;d++)o[d]&&(o[d].hidden=c);o[l]&&(c?o[u]?o[l].hidden=c:o[u]=o[l]:(o[u]==o[l]&&(o[u]=void 0),o[l].hidden=c))}},g.prototype.updateOnChange=function(s){var p=this.session.lineWidgets;if(p){var o=s.start.row,a=s.end.row-o;if(a!==0)if(s.action=="remove"){var u=p.splice(o+1,a);!p[o]&&u[u.length-1]&&(p[o]=u.pop()),u.forEach(function(c){c&&this.removeLineWidget(c)},this),this.$updateRows()}else{var l=new Array(a);p[o]&&p[o].column!=null&&s.start.column>p[o].column&&o++,l.unshift(o,0),p.splice.apply(p,l),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var p=!0;s.forEach(function(o,a){if(o)for(p=!1,o.row=a;o.$oldWidget;)o.$oldWidget.row=a,o=o.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[s.row];return p&&(s.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._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 p=this.editor.renderer;s.html&&!s.el&&(s.el=h.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=h.createElement("div"),s.el.textContent=s.text),s.el&&(h.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&h.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex="5",p.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/p.layerConfig.lineHeight);var o=this.session.getFoldAt(s.row,0);if(s.$fold=o,o){var a=this.session.lineWidgets;s.row==o.end.row&&!a[o.start.row]?a[o.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,p),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 p=this.session.lineWidgets[s.row];if(p==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;p;){if(p.$oldWidget==s){p.$oldWidget=s.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var p=this.session.lineWidgets,o=p&&p[s],a=[];o;)a.push(o),o=o.$oldWidget;return a},g.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(s,p){var o=this.session._changedWidgets,a=p.layerConfig;if(!(!o||!o.length)){for(var u=1/0,l=0;l<o.length;l++){var c=o[l];if(!(!c||!c.el)&&c.session==this.session){if(!c._inDocument){if(this.session.lineWidgets[c.row]!=c)continue;c._inDocument=!0,p.container.appendChild(c.el)}c.h=c.el.offsetHeight,c.fixedWidth||(c.w=c.el.offsetWidth,c.screenWidth=Math.ceil(c.w/a.characterWidth));var d=c.h/a.lineHeight;c.coverLine&&(d-=this.session.getRowLineCount(c.row),d<0&&(d=0)),c.rowCount!=d&&(c.rowCount=d,c.row<u&&(u=c.row))}}u!=1/0&&(this.session._emit("changeFold",{data:{start:{row:u}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},g.prototype.renderWidgets=function(s,p){var o=p.layerConfig,a=this.session.lineWidgets;if(a){for(var u=Math.min(this.firstRow,o.firstRow),l=Math.max(this.lastRow,o.lastRow,a.length);u>0&&!a[u];)u--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var c=u;c<=l;c++){var d=a[c];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,p.container.appendChild(d.el));var m=p.$cursorLayer.getPixelPosition({row:c,column:0},!0).top;d.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=m-o.offset+"px";var v=d.coverGutter?0:p.gutterWidth;d.fixedWidth||(v-=p.scrollLeft),d.el.style.left=v+"px",d.fullWidth&&d.screenWidth&&(d.el.style.minWidth=o.width+2*o.padding+"px"),d.fixedWidth?d.el.style.right=p.scrollBar.getWidth()+"px":d.el.style.right=""}}}},g}();r.LineWidgets=f}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,i){r.applyDelta=function(h,f,g){var s=f.start.row,p=f.start.column,o=h[s]||"";switch(f.action){case"insert":var a=f.lines;if(a.length===1)h[s]=o.substring(0,p)+f.lines[0]+o.substring(p);else{var u=[s,1].concat(f.lines);h.splice.apply(h,u),h[s]=o.substring(0,p)+h[s],h[s+f.lines.length-1]+=o.substring(p)}break;case"remove":var l=f.end.column,c=f.end.row;s===c?h[s]=o.substring(0,p)+o.substring(l):h.splice(s,c-s+1,o.substring(0,p)+h[c].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function o(a,u,l){this.$onChange=this.onChange.bind(this),this.attach(a),typeof u!="number"?this.setPosition(u.row,u.column):this.setPosition(u,l)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var u=p(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(u.row,u.column,!0)}},o.prototype.setPosition=function(a,u,l){var c;if(l?c={row:a,column:u}:c=this.$clipPositionToDocument(a,u),!(this.row==c.row&&this.column==c.column)){var d={row:this.row,column:this.column};this.row=c.row,this.column=c.column,this._signal("change",{old:d,value:c})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(a,u){var l={};return a>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):a<0?(l.row=0,l.column=0):(l.row=a,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,u))),u<0&&(l.column=0),l},o}();g.prototype.$insertRight=!1,h.implement(g.prototype,f);function s(o,a,u){var l=u?o.column<=a.column:o.column<a.column;return o.row<a.row||o.row==a.row&&l}function p(o,a,u){var l=o.action=="insert",c=(l?1:-1)*(o.end.row-o.start.row),d=(l?1:-1)*(o.end.column-o.start.column),m=o.start,v=l?m:o.end;return s(a,m,u)?{row:a.row,column:a.column}:s(v,a,!u)?{row:a.row+c,column:a.column+(a.row==v.row?d:0)}:{row:m.row,column:m.column}}r.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,r,i){var h=n("./lib/oop"),f=n("./apply_delta").applyDelta,g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,p=n("./anchor").Anchor,o=function(){function a(u){this.$lines=[""],u.length===0?this.$lines=[""]:Array.isArray(u)?this.insertMergedLines({row:0,column:0},u):this.insert({row:0,column:0},u)}return a.prototype.setValue=function(u){var l=this.getLength()-1;this.remove(new s(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},u||"")},a.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},a.prototype.createAnchor=function(u,l){return new p(this,u,l)},a.prototype.$detectNewLine=function(u){var l=u.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
|
808
|
+
`,this._signal("changeNewLineMode")},a.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
809
|
+
`;case"unix":return`
|
810
|
+
`;default:return this.$autoNewLine||`
|
811
|
+
`}},a.prototype.setNewLineMode=function(u){this.$newLineMode!==u&&(this.$newLineMode=u,this._signal("changeNewLineMode"))},a.prototype.getNewLineMode=function(){return this.$newLineMode},a.prototype.isNewLine=function(u){return u==`\r
|
812
|
+
`||u=="\r"||u==`
|
813
|
+
`},a.prototype.getLine=function(u){return this.$lines[u]||""},a.prototype.getLines=function(u,l){return this.$lines.slice(u,l+1)},a.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},a.prototype.getLength=function(){return this.$lines.length},a.prototype.getTextRange=function(u){return this.getLinesForRange(u).join(this.getNewLineCharacter())},a.prototype.getLinesForRange=function(u){var l;if(u.start.row===u.end.row)l=[this.getLine(u.start.row).substring(u.start.column,u.end.column)];else{l=this.getLines(u.start.row,u.end.row),l[0]=(l[0]||"").substring(u.start.column);var c=l.length-1;u.end.row-u.start.row==c&&(l[c]=l[c].substring(0,u.end.column))}return l},a.prototype.insertLines=function(u,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(u,l)},a.prototype.removeLines=function(u,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(u,l)},a.prototype.insertNewLine=function(u){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(u,["",""])},a.prototype.insert=function(u,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(u,this.$split(l))},a.prototype.insertInLine=function(u,l){var c=this.clippedPos(u.row,u.column),d=this.pos(u.row,u.column+l.length);return this.applyDelta({start:c,end:d,action:"insert",lines:[l]},!0),this.clonePos(d)},a.prototype.clippedPos=function(u,l){var c=this.getLength();u===void 0?u=c:u<0?u=0:u>=c&&(u=c-1,l=void 0);var d=this.getLine(u);return l==null&&(l=d.length),l=Math.min(Math.max(l,0),d.length),{row:u,column:l}},a.prototype.clonePos=function(u){return{row:u.row,column:u.column}},a.prototype.pos=function(u,l){return{row:u,column:l}},a.prototype.$clipPosition=function(u){var l=this.getLength();return u.row>=l?(u.row=Math.max(0,l-1),u.column=this.getLine(l-1).length):(u.row=Math.max(0,u.row),u.column=Math.min(Math.max(u.column,0),this.getLine(u.row).length)),u},a.prototype.insertFullLines=function(u,l){u=Math.min(Math.max(u,0),this.getLength());var c=0;u<this.getLength()?(l=l.concat([""]),c=0):(l=[""].concat(l),u--,c=this.$lines[u].length),this.insertMergedLines({row:u,column:c},l)},a.prototype.insertMergedLines=function(u,l){var c=this.clippedPos(u.row,u.column),d={row:c.row+l.length-1,column:(l.length==1?c.column:0)+l[l.length-1].length};return this.applyDelta({start:c,end:d,action:"insert",lines:l}),this.clonePos(d)},a.prototype.remove=function(u){var l=this.clippedPos(u.start.row,u.start.column),c=this.clippedPos(u.end.row,u.end.column);return this.applyDelta({start:l,end:c,action:"remove",lines:this.getLinesForRange({start:l,end:c})}),this.clonePos(l)},a.prototype.removeInLine=function(u,l,c){var d=this.clippedPos(u,l),m=this.clippedPos(u,c);return this.applyDelta({start:d,end:m,action:"remove",lines:this.getLinesForRange({start:d,end:m})},!0),this.clonePos(d)},a.prototype.removeFullLines=function(u,l){u=Math.min(Math.max(0,u),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var c=l==this.getLength()-1&&u>0,d=l<this.getLength()-1,m=c?u-1:u,v=c?this.getLine(m).length:0,y=d?l+1:l,_=d?0:this.getLine(y).length,$=new s(m,v,y,_),w=this.$lines.slice(u,l+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),w},a.prototype.removeNewLine=function(u){u<this.getLength()-1&&u>=0&&this.applyDelta({start:this.pos(u,this.getLine(u).length),end:this.pos(u+1,0),action:"remove",lines:["",""]})},a.prototype.replace=function(u,l){if(u instanceof s||(u=s.fromPoints(u.start,u.end)),l.length===0&&u.isEmpty())return u.start;if(l==this.getTextRange(u))return u.end;this.remove(u);var c;return l?c=this.insert(u.start,l):c=u.start,c},a.prototype.applyDeltas=function(u){for(var l=0;l<u.length;l++)this.applyDelta(u[l])},a.prototype.revertDeltas=function(u){for(var l=u.length-1;l>=0;l--)this.revertDelta(u[l])},a.prototype.applyDelta=function(u,l){var c=u.action=="insert";(c?u.lines.length<=1&&!u.lines[0]:!s.comparePoints(u.start,u.end))||(c&&u.lines.length>2e4?this.$splitAndapplyLargeDelta(u,2e4):(f(this.$lines,u,l),this._signal("change",u)))},a.prototype.$safeApplyDelta=function(u){var l=this.$lines.length;(u.action=="remove"&&u.start.row<l&&u.end.row<l||u.action=="insert"&&u.start.row<=l)&&this.applyDelta(u)},a.prototype.$splitAndapplyLargeDelta=function(u,l){for(var c=u.lines,d=c.length-l+1,m=u.start.row,v=u.start.column,y=0,_=0;y<d;y=_){_+=l-1;var $=c.slice(y,_);$.push(""),this.applyDelta({start:this.pos(m+y,v),end:this.pos(m+_,v=0),action:u.action,lines:$},!0)}u.lines=c.slice(y),u.start.row=m+y,u.start.column=v,this.applyDelta(u,!0)},a.prototype.revertDelta=function(u){this.$safeApplyDelta({start:this.clonePos(u.start),end:this.clonePos(u.end),action:u.action=="insert"?"remove":"insert",lines:u.lines.slice()})},a.prototype.indexToPosition=function(u,l){for(var c=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=l||0,v=c.length;m<v;m++)if(u-=c[m].length+d,u<0)return{row:m,column:u+c[m].length+d};return{row:v-1,column:u+c[v-1].length+d}},a.prototype.positionToIndex=function(u,l){for(var c=this.$lines||this.getAllLines(),d=this.getNewLineCharacter().length,m=0,v=Math.min(u.row,c.length),y=l||0;y<v;++y)m+=c[y].length+d;return m+u.column},a.prototype.$split=function(u){return u.split(/\r\n|\r|\n/)},a}();o.prototype.$autoNewLine="",o.prototype.$newLineMode="auto",h.implement(o.prototype,g),r.Document=o}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,g=function(){function s(p,o){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var a=this;this.$worker=function(){if(a.running){for(var u=new Date,l=a.currentLine,c=-1,d=a.doc,m=l;a.lines[l];)l++;var v=d.getLength(),y=0;for(a.running=!1;l<v;){a.$tokenizeRow(l),c=l;do l++;while(a.lines[l]);if(y++,y%5===0&&new Date-u>20){a.running=setTimeout(a.$worker,20);break}}a.currentLine=l,c==-1&&(c=l),m<=c&&a.fireUpdateEvent(m,c)}}}return s.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(p,o){var a={first:p,last:o};this._signal("update",{data:a})},s.prototype.start=function(p){this.currentLine=Math.min(p||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(p){var o=p.start.row,a=p.end.row-o;if(a===0)this.lines[o]=null;else if(p.action=="remove")this.lines.splice(o,a+1,null),this.states.splice(o,a+1,null);else{var u=Array(a+1);u.unshift(o,1),this.lines.splice.apply(this.lines,u),this.states.splice.apply(this.states,u)}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(p){return this.lines[p]||this.$tokenizeRow(p)},s.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},s.prototype.$tokenizeRow=function(p){var o=this.doc.getLine(p),a=this.states[p-1],u=this.tokenizer.getLineTokens(o,a,p);return this.states[p]+""!=u.state+""?(this.states[p]=u.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=u.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();h.implement(g.prototype,f),r.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,i){var h=n("./lib/lang"),f=n("./range").Range,g=function(){function s(p,o,a){a===void 0&&(a="text"),this.setRegexp(p),this.clazz=o,this.type=a,this.docLen=0}return s.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},s.prototype.update=function(p,o,a,u){if(this.regExp){for(var l=u.firstRow,c=u.lastRow,d={},m=a.$editor&&a.$editor.$search,v=m&&m.$isMultilineSearch(a.$editor.getLastSearchOptions()),y=l;y<=c;y++){var _=this.cache[y];if(_==null||a.getValue().length!=this.docLen){if(v){_=[];var $=m.$multiLineForward(a,this.regExp,y,c);if($){var w=$.endRow<=c?$.endRow-1:c;w>y&&(y=w),_.push(new f($.startRow,$.startCol,$.endRow,$.endCol))}_.length>this.MAX_RANGES&&(_=_.slice(0,this.MAX_RANGES))}else _=h.getMatchOffsets(a.getLine(y),this.regExp),_.length>this.MAX_RANGES&&(_=_.slice(0,this.MAX_RANGES)),_=_.map(function(E){return new f(y,E.offset,y,E.offset+E.length)});this.cache[y]=_.length?_:""}if(_.length!==0)for(var b=_.length;b--;){var A=_[b].toScreenRange(a),R=A.toString();d[R]||(d[R]=!0,o.drawSingleLineMarker(p,A,this.clazz,u))}}this.docLen=a.getValue().length}},s}();g.prototype.MAX_RANGES=500,r.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,i){var h=function(){function w(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return w.prototype.addSession=function(b){this.$session=b},w.prototype.add=function(b,A,R){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),A===!1||!this.lastDeltas){this.lastDeltas=[];var E=this.$undoStack.length;E>this.$undoDepth-1&&this.$undoStack.splice(0,E-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},w.prototype.addSelection=function(b,A){this.selections.push({value:b,rev:A||this.$rev})},w.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},w.prototype.markIgnored=function(b,A){A==null&&(A=this.$rev+1);for(var R=this.$undoStack,E=R.length;E--;){var L=R[E][0];if(L.id<=b)break;L.id<A&&(L.ignore=!0)}this.lastDeltas=null},w.prototype.getSelection=function(b,A){for(var R=this.selections,E=R.length;E--;){var L=R[E];if(L.rev<b)return A&&(L=R[E+1]),L}},w.prototype.getRevision=function(){return this.$rev},w.prototype.getDeltas=function(b,A){A==null&&(A=this.$rev+1);for(var R=this.$undoStack,E=null,L=0,O=R.length;O--;){var M=R[O][0];if(M.id<A&&!E&&(E=O+1),M.id<=b){L=O+1;break}}return R.slice(L,E)},w.prototype.getChangedRanges=function(b,A){A==null&&(A=this.$rev+1)},w.prototype.getChangedLines=function(b,A){A==null&&(A=this.$rev+1)},w.prototype.undo=function(b,A){this.lastDeltas=null;var R=this.$undoStack;if(f(R,R.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var E=R.pop(),L=null;return E&&(L=b.undoChanges(E,A),this.$redoStack.push(E),this.$syncRev()),this.$fromUndo=!1,L}},w.prototype.redo=function(b,A){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);$(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(O){O[0].id=++this.$maxRev},this)}var E=this.$redoStack.pop(),L=null;return E&&(L=b.redoChanges(E,A),this.$undoStack.push(E),this.$syncRev()),this.$fromUndo=!1,L},w.prototype.$syncRev=function(){var b=this.$undoStack,A=b[b.length-1],R=A&&A[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},w.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=[]},w.prototype.canUndo=function(){return this.$undoStack.length>0},w.prototype.canRedo=function(){return this.$redoStack.length>0},w.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},w.prototype.isAtBookmark=function(){return this.$rev===this.mark},w.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},w.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},w.prototype.$prettyPrint=function(b){return b?a(b):a(this.$undoStack)+`
|
814
|
+
---
|
815
|
+
`+a(this.$redoStack)},w}();h.prototype.hasUndo=h.prototype.canUndo,h.prototype.hasRedo=h.prototype.canRedo,h.prototype.isClean=h.prototype.isAtBookmark,h.prototype.markClean=h.prototype.bookmark;function f(w,b){for(var A=b;A--;){var R=w[A];if(R&&!R[0].ignore){for(;A<b-1;){var E=c(w[A],w[A+1]);w[A]=E[0],w[A+1]=E[1],A++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function p(w){return{row:w.row,column:w.column}}function o(w){return{start:p(w.start),end:p(w.end),action:w.action,lines:w.lines.slice()}}function a(w){if(w=w||this,Array.isArray(w))return w.map(a).join(`
|
816
|
+
`);var b="";return w.action?(b=w.action=="insert"?"+":"-",b+="["+w.lines+"]"):w.value&&(Array.isArray(w.value)?b=w.value.map(u).join(`
|
817
|
+
`):b=u(w.value)),w.start&&(b+=u(w)),(w.id||w.rev)&&(b+=" ("+(w.id||w.rev)+")"),b}function u(w){return w.start.row+":"+w.start.column+"=>"+w.end.row+":"+w.end.column}function l(w,b){var A=w.action=="insert",R=b.action=="insert";if(A&&R)if(s(b.start,w.end)>=0)m(b,w,-1);else if(s(b.start,w.start)<=0)m(w,b,1);else return null;else if(A&&!R)if(s(b.start,w.end)>=0)m(b,w,-1);else if(s(b.end,w.start)<=0)m(w,b,-1);else return null;else if(!A&&R)if(s(b.start,w.start)>=0)m(b,w,1);else if(s(b.start,w.start)<=0)m(w,b,1);else return null;else if(!A&&!R)if(s(b.start,w.start)>=0)m(b,w,1);else if(s(b.end,w.start)<=0)m(w,b,-1);else return null;return[b,w]}function c(w,b){for(var A=w.length;A--;)for(var R=0;R<b.length;R++)if(!l(w[A],b[R])){for(;A<w.length;){for(;R--;)l(b[R],w[A]);R=b.length,A++}return[w,b]}return w.selectionBefore=b.selectionBefore=w.selectionAfter=b.selectionAfter=null,[b,w]}function d(w,b){var A=w.action=="insert",R=b.action=="insert";if(A&&R)s(w.start,b.start)<0?m(b,w,1):m(w,b,1);else if(A&&!R)s(w.start,b.end)>=0?m(w,b,-1):(s(w.start,b.start)<=0||m(w,g.fromPoints(b.start,w.start),-1),m(b,w,1));else if(!A&&R)s(b.start,w.end)>=0?m(b,w,-1):(s(b.start,w.start)<=0||m(b,g.fromPoints(w.start,b.start),-1),m(w,b,1));else if(!A&&!R)if(s(b.start,w.end)>=0)m(b,w,-1);else if(s(b.end,w.start)<=0)m(w,b,-1);else{var E,L;return s(w.start,b.start)<0&&(E=w,w=y(w,b.start)),s(w.end,b.end)>0&&(L=y(w,b.end)),v(b.end,w.start,w.end,-1),L&&!E&&(w.lines=L.lines,w.start=L.start,w.end=L.end,L=w),[b,E,L].filter(Boolean)}return[b,w]}function m(w,b,A){v(w.start,b.start,b.end,A),v(w.end,b.start,b.end,A)}function v(w,b,A,R){w.row==(R==1?b:A).row&&(w.column+=R*(A.column-b.column)),w.row+=R*(A.row-b.row)}function y(w,b){var A=w.lines,R=w.end;w.end=p(b);var E=w.end.row-w.start.row,L=A.splice(E,A.length),O=E?b.column:b.column-w.start.column;A.push(L[0].substring(0,O)),L[0]=L[0].substr(O);var M={start:p(b),end:R,lines:L,action:w.action};return M}function _(w,b){b=o(b);for(var A=w.length;A--;){for(var R=w[A],E=0;E<R.length;E++){var L=R[E],O=d(L,b);b=O[0],O.length!=2&&(O[2]?(R.splice(E+1,1,O[1],O[2]),E++):O[1]||(R.splice(E,1),E--))}R.length||w.splice(A,1)}return w}function $(w,b){for(var A=0;A<b.length;A++)for(var R=b[A],E=0;E<R.length;E++)_(w,R[E])}r.UndoManager=h}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,i){var h=n("../range").Range,f=function(){function g(s,p){this.foldData=s,Array.isArray(p)?this.folds=p:p=this.folds=[p];var o=p[p.length-1];this.range=new h(p[0].start.row,p[0].start.column,o.end.row,o.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(a){a.setFoldLine(this)},this)}return g.prototype.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(p){p.start.row+=s,p.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(p,o){return-p.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,p,o){var a=0,u=this.folds,l,c,d,m=!0;p==null&&(p=this.end.row,o=this.end.column);for(var v=0;v<u.length;v++){if(l=u[v],c=l.range.compareStart(p,o),c==-1){s(null,p,o,a,m);return}if(d=s(null,l.start.row,l.start.column,a,m),d=!d&&s(l.placeholder,l.start.row,l.start.column,a),d||c===0)return;m=!l.sameRow,a=l.end.column}s(null,p,o,a,m)},g.prototype.getNextFoldTo=function(s,p){for(var o,a,u=0;u<this.folds.length;u++){if(o=this.folds[u],a=o.range.compareEnd(s,p),a==-1)return{fold:o,kind:"after"};if(a===0)return{fold:o,kind:"inside"}}return null},g.prototype.addRemoveChars=function(s,p,o){var a=this.getNextFoldTo(s,p),u,l;if(a){if(u=a.fold,a.kind=="inside"&&u.start.column!=p&&u.start.row!=s)window.console&&window.console.log(s,p,u);else if(u.start.row==s){l=this.folds;var c=l.indexOf(u);for(c===0&&(this.start.column+=o),c;c<l.length;c++){if(u=l[c],u.start.column+=o,!u.sameRow)return;u.end.column+=o}this.end.column+=o}}},g.prototype.split=function(s,p){var o=this.getNextFoldTo(s,p);if(!o||o.kind=="inside")return null;var a=o.fold,u=this.folds,l=this.foldData,c=u.indexOf(a),d=u[c-1];this.end.row=d.end.row,this.end.column=d.end.column,u=u.splice(c,u.length-c);var m=new g(l,u);return l.splice(l.indexOf(this)+1,0,m),m},g.prototype.merge=function(s){for(var p=s.folds,o=0;o<p.length;o++)this.addFold(p[o]);var a=this.foldData;a.splice(a.indexOf(s),1)},g.prototype.toString=function(){var s=[this.range.toString()+": ["];return this.folds.forEach(function(p){s.push(" "+p.toString())}),s.push("]"),s.join(`
|
818
|
+
`)},g.prototype.idxToPosition=function(s){for(var p=0,o=0;o<this.folds.length;o++){var a=this.folds[o];if(s-=a.start.column-p,s<0)return{row:a.start.row,column:a.start.column+s};if(s-=a.placeholder.length,s<0)return a.start;p=a.end.column}return{row:this.end.row,column:this.end.column+s}},g}();r.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,i){var h=n("./range").Range,f=h.comparePoints,g=function(){function s(){this.ranges=[],this.$bias=1}return s.prototype.pointIndex=function(p,o,a){for(var u=this.ranges,l=a||0;l<u.length;l++){var c=u[l],d=f(p,c.end);if(!(d>0)){var m=f(p,c.start);return d===0?o&&m!==0?-l-2:l:m>0||m===0&&!o?l:-l-1}}return-l-1},s.prototype.add=function(p){var o=!p.isEmpty(),a=this.pointIndex(p.start,o);a<0&&(a=-a-1);var u=this.pointIndex(p.end,o,a);return u<0?u=-u-1:u++,this.ranges.splice(a,u-a,p)},s.prototype.addList=function(p){for(var o=[],a=p.length;a--;)o.push.apply(o,this.add(p[a]));return o},s.prototype.substractPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var p=[],o=this.ranges;o=o.sort(function(d,m){return f(d.start,m.start)});for(var a=o[0],u,l=1;l<o.length;l++){u=a,a=o[l];var c=f(u.end,a.start);c<0||c==0&&!u.isEmpty()&&!a.isEmpty()||(f(u.end,a.end)<0&&(u.end.row=a.end.row,u.end.column=a.end.column),o.splice(l,1),p.push(a),a=u,l--)}return this.ranges=o,p},s.prototype.contains=function(p,o){return this.pointIndex({row:p,column:o})>=0},s.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},s.prototype.rangeAtPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(p,o){var a=this.ranges;if(a[0].start.row>o||a[a.length-1].start.row<p)return[];var u=this.pointIndex({row:p,column:0});u<0&&(u=-u-1);var l=this.pointIndex({row:o,column:0},u);l<0&&(l=-l-1);for(var c=[],d=u;d<l;d++)c.push(a[d]);return c},s.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},s.prototype.attach=function(p){this.session&&this.detach(),this.session=p,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(p){for(var o=p.start,a=p.end,u=o.row,l=a.row,c=this.ranges,d=0,m=c.length;d<m;d++){var v=c[d];if(v.end.row>=u)break}if(p.action=="insert")for(var y=l-u,_=-o.column+a.column;d<m;d++){var v=c[d];if(v.start.row>u)break;if(v.start.row==u&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=_,v.start.row+=y)),v.end.row==u&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&_>0&&d<m-1&&v.end.column>v.start.column&&v.end.column==c[d+1].start.column&&(v.end.column-=_),v.end.column+=_,v.end.row+=y}}else for(var y=u-l,_=o.column-a.column;d<m;d++){var v=c[d];if(v.start.row>l)break;v.end.row<l&&(u<v.end.row||u==v.end.row&&o.column<v.end.column)?(v.end.row=u,v.end.column=o.column):v.end.row==l?v.end.column<=a.column?(y||v.end.column>o.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=_,v.end.row+=y):v.end.row>l&&(v.end.row+=y),v.start.row<l&&(u<v.start.row||u==v.start.row&&o.column<v.start.column)?(v.start.row=u,v.start.column=o.column):v.start.row==l?v.start.column<=a.column?(y||v.start.column>o.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=_,v.start.row+=y):v.start.row>l&&(v.start.row+=y)}if(y!=0&&d<m)for(;d<m;d++){var v=c[d];v.start.row+=y,v.end.row+=y}},s}();g.prototype.comparePoints=f,r.RangeList=g}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,i){var h=this&&this.__extends||function(){var u=function(l,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(d[v]=m[v])},u(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");u(l,c);function d(){this.constructor=l}l.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=n("../range_list").RangeList,g=function(u){h(l,u);function l(c,d){var m=u.call(this)||this;return m.foldLine=null,m.placeholder=d,m.range=c,m.start=c.start,m.end=c.end,m.sameRow=c.start.row==c.end.row,m.subFolds=m.ranges=[],m}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(c){this.foldLine=c,this.subFolds.forEach(function(d){d.setFoldLine(c)})},l.prototype.clone=function(){var c=this.range.clone(),d=new l(c,this.placeholder);return this.subFolds.forEach(function(m){d.subFolds.push(m.clone())}),d.collapseChildren=this.collapseChildren,d},l.prototype.addSubFold=function(c){if(!this.range.isEqual(c)){p(c,this.start);for(var _=c.start.row,$=c.start.column,d=0,m=-1;d<this.subFolds.length&&(m=this.subFolds[d].range.compare(_,$),m==1);d++);var v=this.subFolds[d],y=0;if(m==0){if(v.range.containsRange(c))return v.addSubFold(c);y=1}for(var _=c.range.end.row,$=c.range.end.column,w=d,m=-1;w<this.subFolds.length&&(m=this.subFolds[w].range.compare(_,$),m==1);w++);m==0&&w++;for(var b=this.subFolds.splice(d,w-d,c),A=m==0?b.length-1:b.length,R=y;R<A;R++)c.addSubFold(b[R]);return c.setFoldLine(this.foldLine),c}},l.prototype.restoreRange=function(c){return a(c,this.start)},l}(f);function s(u,l){u.row-=l.row,u.row==0&&(u.column-=l.column)}function p(u,l){s(u.start,l),s(u.end,l)}function o(u,l){u.row==0&&(u.column+=l.column),u.row+=l.row}function a(u,l){o(u.start,l),o(u.end,l)}r.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,r,i){var h=n("../range").Range,f=n("./fold_line").FoldLine,g=n("./fold").Fold,s=n("../token_iterator").TokenIterator,p=n("../mouse/mouse_event").MouseEvent;function o(){this.getFoldAt=function(a,u,l){var c=this.getFoldLine(a);if(!c)return null;for(var d=c.folds,m=0;m<d.length;m++){var v=d[m].range;if(v.contains(a,u)){if(l==1&&v.isEnd(a,u)&&!v.isEmpty())continue;if(l==-1&&v.isStart(a,u)&&!v.isEmpty())continue;return d[m]}}},this.getFoldsInRange=function(a){var u=a.start,l=a.end,c=this.$foldData,d=[];u.column+=1,l.column-=1;for(var m=0;m<c.length;m++){var v=c[m].range.compareRange(a);if(v!=2){if(v==-2)break;for(var y=c[m].folds,_=0;_<y.length;_++){var $=y[_];if(v=$.range.compareRange(a),v==-2)break;if(v==2)continue;if(v==42)break;d.push($)}}}return u.column-=1,l.column+=1,d},this.getFoldsInRangeList=function(a){if(Array.isArray(a)){var u=[];a.forEach(function(l){u=u.concat(this.getFoldsInRange(l))},this)}else var u=this.getFoldsInRange(a);return u},this.getAllFolds=function(){for(var a=[],u=this.$foldData,l=0;l<u.length;l++)for(var c=0;c<u[l].folds.length;c++)a.push(u[l].folds[c]);return a},this.getFoldStringAt=function(a,u,l,c){if(c=c||this.getFoldLine(a),!c)return null;for(var d={end:{column:0}},m,v,y=0;y<c.folds.length;y++){v=c.folds[y];var _=v.range.compareEnd(a,u);if(_==-1){m=this.getLine(v.start.row).substring(d.end.column,v.start.column);break}else if(_===0)return null;d=v}return m||(m=this.getLine(v.start.row).substring(d.end.column)),l==-1?m.substring(0,u-d.end.column):l==1?m.substring(u-d.end.column):m},this.getFoldLine=function(a,u){var l=this.$foldData,c=0;for(u&&(c=l.indexOf(u)),c==-1&&(c=0),c;c<l.length;c++){var d=l[c];if(d.start.row<=a&&d.end.row>=a)return d;if(d.end.row>a)return null}return null},this.getNextFoldLine=function(a,u){var l=this.$foldData,c=0;for(u&&(c=l.indexOf(u)),c==-1&&(c=0),c;c<l.length;c++){var d=l[c];if(d.end.row>=a)return d}return null},this.getFoldedRowCount=function(a,u){for(var l=this.$foldData,c=u-a+1,d=0;d<l.length;d++){var m=l[d],v=m.end.row,y=m.start.row;if(v>=u){y<u&&(y>=a?c-=u-y:c=0);break}else v>=a&&(y>=a?c-=v-y:c-=v-a+1)}return c},this.$addFoldLine=function(a){return this.$foldData.push(a),this.$foldData.sort(function(u,l){return u.start.row-l.start.row}),a},this.addFold=function(a,u){var l=this.$foldData,c=!1,d;a instanceof g?d=a:(d=new g(u,a),d.collapseChildren=u.collapseChildren),this.$clipRangeToDocument(d.range);var m=d.start.row,v=d.start.column,y=d.end.row,_=d.end.column,$=this.getFoldAt(m,v,1),w=this.getFoldAt(y,_,-1);if($&&w==$)return $.addSubFold(d);$&&!$.range.isStart(m,v)&&this.removeFold($),w&&!w.range.isEnd(y,_)&&this.removeFold(w);var b=this.getFoldsInRange(d.range);b.length>0&&(this.removeFolds(b),d.collapseChildren||b.forEach(function(L){d.addSubFold(L)}));for(var A=0;A<l.length;A++){var R=l[A];if(y==R.start.row){R.addFold(d),c=!0;break}else if(m==R.end.row){if(R.addFold(d),c=!0,!d.sameRow){var E=l[A+1];if(E&&E.start.row==y){R.merge(E);break}}break}else if(y<=R.start.row)break}return c||(R=this.$addFoldLine(new f(this.$foldData,d))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:d,action:"add"}),d},this.addFolds=function(a){a.forEach(function(u){this.addFold(u)},this)},this.removeFold=function(a){var u=a.foldLine,l=u.start.row,c=u.end.row,d=this.$foldData,m=u.folds;if(m.length==1)d.splice(d.indexOf(u),1);else if(u.range.isEnd(a.end.row,a.end.column))m.pop(),u.end.row=m[m.length-1].end.row,u.end.column=m[m.length-1].end.column;else if(u.range.isStart(a.start.row,a.start.column))m.shift(),u.start.row=m[0].start.row,u.start.column=m[0].start.column;else if(a.sameRow)m.splice(m.indexOf(a),1);else{var v=u.split(a.start.row,a.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(l,c):this.$updateRowLengthCache(l,c)),this.$modified=!0,this._signal("changeFold",{data:a,action:"remove"})},this.removeFolds=function(a){for(var u=[],l=0;l<a.length;l++)u.push(a[l]);u.forEach(function(c){this.removeFold(c)},this),this.$modified=!0},this.expandFold=function(a){this.removeFold(a),a.subFolds.forEach(function(u){a.restoreRange(u),this.addFold(u)},this),a.collapseChildren>0&&this.foldAll(a.start.row+1,a.end.row,a.collapseChildren-1),a.subFolds=[]},this.expandFolds=function(a){a.forEach(function(u){this.expandFold(u)},this)},this.unfold=function(a,u){var l,c;if(a==null)l=new h(0,0,this.getLength(),0),u==null&&(u=!0);else if(typeof a=="number")l=new h(a,0,a,this.getLine(a).length);else if("row"in a)l=h.fromPoints(a,a);else{if(Array.isArray(a))return c=[],a.forEach(function(m){c=c.concat(this.unfold(m))},this),c;l=a}c=this.getFoldsInRangeList(l);for(var d=c;c.length==1&&h.comparePoints(c[0].start,l.start)<0&&h.comparePoints(c[0].end,l.end)>0;)this.expandFolds(c),c=this.getFoldsInRangeList(l);if(u!=!1?this.removeFolds(c):this.expandFolds(c),d.length)return d},this.isRowFolded=function(a,u){return!!this.getFoldLine(a,u)},this.getRowFoldEnd=function(a,u){var l=this.getFoldLine(a,u);return l?l.end.row:a},this.getRowFoldStart=function(a,u){var l=this.getFoldLine(a,u);return l?l.start.row:a},this.getFoldDisplayLine=function(a,u,l,c,d){c==null&&(c=a.start.row),d==null&&(d=0),u==null&&(u=a.end.row),l==null&&(l=this.getLine(u).length);var m=this.doc,v="";return a.walk(function(y,_,$,w){if(!(_<c)){if(_==c){if($<d)return;w=Math.max(d,w)}y!=null?v+=y:v+=m.getLine(_).substring(w,$)}},u,l),v},this.getDisplayLine=function(a,u,l,c){var d=this.getFoldLine(a);if(d)return this.getFoldDisplayLine(d,a,u,l,c);var m;return m=this.doc.getLine(a),m.substring(c||0,u||m.length)},this.$cloneFoldData=function(){var a=[];return a=this.$foldData.map(function(u){var l=u.folds.map(function(c){return c.clone()});return new f(a,l)}),a},this.toggleFold=function(a){var u=this.selection,l=u.getRange(),c,d;if(l.isEmpty()){var m=l.start;if(c=this.getFoldAt(m.row,m.column),c){this.expandFold(c);return}else if(a){var v=this.getFoldLine(m.row);v&&this.expandFolds(v.folds);return}else(d=this.findMatchingBracket(m))?l.comparePoint(d)==1?l.end=d:(l.start=d,l.start.column++,l.end.column--):(d=this.findMatchingBracket({row:m.row,column:m.column+1}))?(l.comparePoint(d)==1?l.end=d:l.start=d,l.start.column++):l=this.getCommentFoldRange(m.row,m.column)||l}else{var y=this.getFoldsInRange(l);if(a&&y.length){this.expandFolds(y);return}else y.length==1&&(c=y[0])}if(c||(c=this.getFoldAt(l.start.row,l.start.column)),c&&c.range.toString()==l.toString()){this.expandFold(c);return}var _="...";if(!l.isMultiLine()){if(_=this.getTextRange(l),_.length<4)return;_=_.trim().substring(0,2)+".."}this.addFold(_,l)},this.getCommentFoldRange=function(a,u,l){var c=new s(this,a,u),d=c.getCurrentToken(),m=d&&d.type;if(d&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var v=new RegExp(m),y=new h;if(l!=1){do d=c.stepBackward();while(d&&v.test(d.type));d=c.stepForward()}y.start.row=c.getCurrentTokenRow(),y.start.column=c.getCurrentTokenColumn()+d.value.length,c=new s(this,a,u);var _=this.getState(c.$row);if(l!=-1){var $=-1;do if(d=c.stepForward(),$==-1){var w=this.getState(c.$row);_.toString()!==w.toString()&&($=c.$row)}else if(c.$row>$)break;while(d&&v.test(d.type));d=c.stepBackward()}else d=c.getCurrentToken();return y.end.row=c.getCurrentTokenRow(),y.end.column=c.getCurrentTokenColumn(),y.start.row==y.end.row&&y.start.column>y.end.column?void 0:y}},this.foldAll=function(a,u,l,c){l==null&&(l=1e5);var d=this.foldWidgets;if(d){u=u||this.getLength(),a=a||0;for(var m=a;m<u;m++)if(d[m]==null&&(d[m]=this.getFoldWidget(m)),d[m]=="start"&&!(c&&!c(m))){var v=this.getFoldWidgetRange(m);v&&v.isMultiLine()&&v.end.row<=u&&v.start.row>=a&&(m=v.end.row,v.collapseChildren=l,this.addFold("...",v))}}},this.foldToLevel=function(a){for(this.foldAll();a-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var a=this;this.foldAll(null,null,null,function(u){for(var l=a.getTokens(u),c=0;c<l.length;c++){var d=l[c];if(!(d.type=="text"&&/^\s+$/.test(d.value)))return!!/comment/.test(d.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(a){if(!this.$foldStyles[a])throw new Error("invalid fold style: "+a+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=a){this.$foldStyle=a,a=="manual"&&this.unfold();var u=this.$foldMode;this.$setFolding(null),this.$setFolding(u)}},this.$setFolding=function(a){if(this.$foldMode!=a){if(this.$foldMode=a,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!a||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=a.getFoldWidget.bind(a,this,this.$foldStyle),this.getFoldWidgetRange=a.getFoldWidgetRange.bind(a,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(a,u){var l=this.foldWidgets;if(!l||u&&l[a])return{};for(var c=a-1,d;c>=0;){var m=l[c];if(m==null&&(m=l[c]=this.getFoldWidget(c)),m=="start"){var v=this.getFoldWidgetRange(c);if(d||(d=v),v&&v.end.row>=a)break}c--}return{range:c!==-1&&v,firstRange:d}},this.onFoldWidgetClick=function(a,u){u instanceof p&&(u=u.domEvent);var l={children:u.shiftKey,all:u.ctrlKey||u.metaKey,siblings:u.altKey},c=this.$toggleFoldWidget(a,l);if(!c){var d=u.target||u.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(a,u){if(this.getFoldWidget){var l=this.getFoldWidget(a),c=this.getLine(a),d=l==="end"?-1:1,m=this.getFoldAt(a,d===-1?0:c.length,d);if(m)return u.children||u.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(a,!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(u.siblings){var y=this.getParentFoldRangeData(a);if(y.range)var _=y.range.start.row+1,$=y.range.end.row;this.foldAll(_,$,u.all?1e4:0)}else u.children?($=v?v.end.row:this.getLength(),this.foldAll(a+1,$,u.all?1e4:0)):v&&(u.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(a){var u=this.selection.getCursor().row;u=this.getRowFoldStart(u);var l=this.$toggleFoldWidget(u,{});if(!l){var c=this.getParentFoldRangeData(u,!0);if(l=c.range||c.firstRange,l){u=l.start.row;var d=this.getFoldAt(u,this.getLine(u).length,1);d?this.removeFold(d):this.addFold("...",l)}}},this.updateFoldWidgets=function(a){var u=a.start.row,l=a.end.row-u;if(l===0)this.foldWidgets[u]=null;else if(a.action=="remove")this.foldWidgets.splice(u,l+1,null);else{var c=Array(l+1);c.unshift(u,1),this.foldWidgets.splice.apply(this.foldWidgets,c)}},this.tokenizerUpdateFoldWidgets=function(a){var u=a.data;u.first!=u.last&&this.foldWidgets.length>u.first&&this.foldWidgets.splice(u.first,this.foldWidgets.length)}}r.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,i){var h=n("../token_iterator").TokenIterator,f=n("../range").Range;function g(){this.findMatchingBracket=function(s,p){if(s.column==0)return null;var o=p||this.getLine(s.row).charAt(s.column-1);if(o=="")return null;var a=o.match(/([\(\[\{])|([\)\]\}])/);return a?a[1]?this.$findClosingBracket(a[1],s):this.$findOpeningBracket(a[2],s):null},this.getBracketRange=function(s){var p=this.getLine(s.row),o=!0,a,u=p.charAt(s.column-1),l=u&&u.match(/([\(\[\{])|([\)\]\}])/);if(l||(u=p.charAt(s.column),s={row:s.row,column:s.column+1},l=u&&u.match(/([\(\[\{])|([\)\]\}])/),o=!1),!l)return null;if(l[1]){var c=this.$findClosingBracket(l[1],s);if(!c)return null;a=f.fromPoints(s,c),o||(a.end.column++,a.start.column--),a.cursor=a.end}else{var c=this.$findOpeningBracket(l[2],s);if(!c)return null;a=f.fromPoints(c,s),o||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(s,p){var o=this.getLine(s.row),a=/([\(\[\{])|([\)\]\}])/,u=!p&&o.charAt(s.column-1),l=u&&u.match(a);if(l||(u=(p===void 0||p)&&o.charAt(s.column),s={row:s.row,column:s.column+1},l=u&&u.match(a)),!l)return null;var c=new f(s.row,s.column-1,s.row,s.column),d=l[1]?this.$findClosingBracket(l[1],s):this.$findOpeningBracket(l[2],s);if(!d)return[c];var m=new f(d.row,d.column,d.row,d.column+1);return[c,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,p,o){var a=this.$brackets[s],u=1,l=new h(this,p.row,p.column),c=l.getCurrentToken();if(c||(c=l.stepForward()),!!c){o||(o=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=p.column-l.getCurrentTokenColumn()-2,m=c.value;;){for(;d>=0;){var v=m.charAt(d);if(v==a){if(u-=1,u==0)return{row:l.getCurrentTokenRow(),column:d+l.getCurrentTokenColumn()}}else v==s&&(u+=1);d-=1}do c=l.stepBackward();while(c&&!o.test(c.type));if(c==null)break;m=c.value,d=m.length-1}return null}},this.$findClosingBracket=function(s,p,o){var a=this.$brackets[s],u=1,l=new h(this,p.row,p.column),c=l.getCurrentToken();if(c||(c=l.stepForward()),!!c){o||(o=new RegExp("(\\.?"+c.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=p.column-l.getCurrentTokenColumn();;){for(var m=c.value,v=m.length;d<v;){var y=m.charAt(d);if(y==a){if(u-=1,u==0)return{row:l.getCurrentTokenRow(),column:d+l.getCurrentTokenColumn()}}else y==s&&(u+=1);d+=1}do c=l.stepForward();while(c&&!o.test(c.type));if(c==null)break;d=0}return null}},this.getMatchingTags=function(s){var p=new h(this,s.row,s.column),o=this.$findTagName(p);if(o){var a=p.stepBackward();return a.value==="<"?this.$findClosingTag(p,o):this.$findOpeningTag(p,o)}},this.$findTagName=function(s){var p=s.getCurrentToken(),o=!1,a=!1;if(p&&p.type.indexOf("tag-name")===-1)do a?p=s.stepBackward():p=s.stepForward(),p&&(p.value==="/>"?a=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(s,p){var o,a=p.value,u=p.value,l=0,c=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);p=s.stepForward();var d=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length),m=!1;do{if(o=p,o.type.indexOf("tag-close")!==-1&&!m){var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p=s.stepForward(),p){if(p.value===">"&&!m){var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(a=p.value,u===a){if(o.value==="<")l++;else if(o.value==="</"&&(l--,l<0)){s.stepBackward();var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2);p=s.stepForward();var _=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=s.stepForward()),p&&p.value===">")var $=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(u===a&&p.value==="/>"&&(l--,l<0))var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),_=y,$=_,v=new f(d.end.row,d.end.column,d.end.row,d.end.column+1)}}while(p&&l>=0);if(c&&v&&y&&$&&d&&_)return{openTag:new f(c.start.row,c.start.column,v.end.row,v.end.column),closeTag:new f(y.start.row,y.start.column,$.end.row,$.end.column),openTagName:d,closeTagName:_}},this.$findOpeningTag=function(s,p){var o=s.getCurrentToken(),a=p.value,u=0,l=s.getCurrentTokenRow(),c=s.getCurrentTokenColumn(),d=c+2,m=new f(l,c,l,d);s.stepForward();var v=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=s.stepForward()),!(!p||p.value!==">")){var y=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(p=o,l=s.getCurrentTokenRow(),c=s.getCurrentTokenColumn(),d=c+p.value.length,o=s.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(a===p.value)if(o.value==="<"){if(u++,u>0){var _=new f(l,c,l,d),$=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do p=s.stepForward();while(p&&p.value!==">");var w=new f(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value==="</"&&u--}else if(p.value==="/>"){for(var b=0,A=o;A;){if(A.type.indexOf("tag-name")!==-1&&A.value===a){u--;break}else if(A.value==="<")break;A=s.stepBackward(),b++}for(var R=0;R<b;R++)s.stepForward()}}while(o&&u<=0);if($&&w&&m&&y&&_&&v)return{openTag:new f($.start.row,$.start.column,w.end.row,w.end.column),closeTag:new f(m.start.row,m.start.column,y.end.row,y.end.column),openTagName:_,closeTagName:v}}}}r.BracketMatch=g}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),p=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,a=n("./mode/text").Mode,u=n("./range").Range,l=n("./line_widgets").LineWidgets,c=n("./document").Document,d=n("./background_tokenizer").BackgroundTokenizer,m=n("./search_highlight").SearchHighlight,v=n("./undomanager").UndoManager,y=function(){function M(x,C){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++M.$uid,this.$foldData.toString=function(){return this.join(`
|
819
|
+
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new d(new a().getTokenizer(),this);var S=this;this.bgTokenizer.on("update",function(k){S._signal("tokenizerUpdate",k)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof x!="object"||!x.getLine)&&(x=new c(x)),this.setDocument(x),this.selection=new o(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(C),s._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return M.prototype.$initOperationListeners=function(){var x=this;this.curOp=null,this.on("change",function(){x.curOp||(x.startOperation(),x.curOp.selectionBefore=x.$lastSel),x.curOp.docChanged=!0},!0),this.on("changeSelection",function(){x.curOp||(x.startOperation(),x.curOp.selectionBefore=x.$lastSel),x.curOp.selectionChanged=!0},!0),this.$operationResetTimer=f.delayedCall(this.endOperation.bind(this,!0))},M.prototype.startOperation=function(x){if(this.curOp){if(!x||this.curOp.command)return;this.prevOp=this.curOp}x||(x={}),this.$operationResetTimer.schedule(),this.curOp={command:x.command||{},args:x.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",x)},M.prototype.endOperation=function(x){if(this.curOp){if(x&&x.returnValue===!1){this.curOp=null,this._signal("endOperation",x);return}if(x==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var C=this.selection.toJSON();this.curOp.selectionAfter=C,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(C),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",x)}},M.prototype.setDocument=function(x){this.doc&&this.doc.off("change",this.$onChange),this.doc=x,x.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},M.prototype.getDocument=function(){return this.doc},Object.defineProperty(M.prototype,"widgetManager",{get:function(){var x=new l(this);return this.widgetManager=x,this.$editor&&x.attach(this.$editor),x},set:function(x){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:x})},enumerable:!1,configurable:!0}),M.prototype.$resetRowCache=function(x){if(!x){this.$docRowCache=[],this.$screenRowCache=[];return}var C=this.$docRowCache.length,S=this.$getRowCacheIndex(this.$docRowCache,x)+1;C>S&&(this.$docRowCache.splice(S,C),this.$screenRowCache.splice(S,C))},M.prototype.$getRowCacheIndex=function(x,C){for(var S=0,k=x.length-1;S<=k;){var T=S+k>>1,I=x[T];if(C>I)S=T+1;else if(C<I)k=T-1;else return T}return S-1},M.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},M.prototype.onChangeFold=function(x){var C=x.data;this.$resetRowCache(C.start.row)},M.prototype.onChange=function(x){this.$modified=!0,this.$bidiHandler.onChange(x),this.$resetRowCache(x.start.row);var C=this.$updateInternalDataOnChange(x);!this.$fromUndo&&this.$undoManager&&(C&&C.length&&(this.$undoManager.add({action:"removeFolds",folds:C},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(x,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(x),this._signal("change",x)},M.prototype.onSelectionChange=function(){this._signal("changeSelection")},M.prototype.setValue=function(x){this.doc.setValue(x),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},M.fromJSON=function(x){typeof x=="string"&&(x=JSON.parse(x));var C=new v;C.$undoStack=x.history.undo,C.$redoStack=x.history.redo,C.mark=x.history.mark,C.$rev=x.history.rev;var S=new M(x.value);return x.folds.forEach(function(k){S.addFold("...",u.fromPoints(k.start,k.end))}),S.setAnnotations(x.annotations),S.setBreakpoints(x.breakpoints),S.setMode(x.mode),S.setScrollLeft(x.scrollLeft),S.setScrollTop(x.scrollTop),S.setUndoManager(C),S.selection.fromJSON(x.selection),S},M.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(x){return x.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},M.prototype.toString=function(){return this.doc.getValue()},M.prototype.getSelection=function(){return this.selection},M.prototype.getState=function(x){return this.bgTokenizer.getState(x)},M.prototype.getTokens=function(x){return this.bgTokenizer.getTokens(x)},M.prototype.getTokenAt=function(x,C){var S=this.bgTokenizer.getTokens(x),k,T=0;if(C==null){var I=S.length-1;T=this.getLine(x).length}else for(var I=0;I<S.length&&(T+=S[I].value.length,!(T>=C));I++);return k=S[I],k?(k.index=I,k.start=T-k.value.length,k):null},M.prototype.setUndoManager=function(x){if(this.$undoManager=x,this.$informUndoManager&&this.$informUndoManager.cancel(),x){var C=this;x.addSession(this),this.$syncInformUndoManager=function(){C.$informUndoManager.cancel(),C.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},M.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},M.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},M.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},M.prototype.setUseSoftTabs=function(x){this.setOption("useSoftTabs",x)},M.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},M.prototype.setTabSize=function(x){this.setOption("tabSize",x)},M.prototype.getTabSize=function(){return this.$tabSize},M.prototype.isTabStop=function(x){return this.$useSoftTabs&&x.column%this.$tabSize===0},M.prototype.setNavigateWithinSoftTabs=function(x){this.setOption("navigateWithinSoftTabs",x)},M.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},M.prototype.setOverwrite=function(x){this.setOption("overwrite",x)},M.prototype.getOverwrite=function(){return this.$overwrite},M.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},M.prototype.addGutterDecoration=function(x,C){this.$decorations[x]||(this.$decorations[x]=""),this.$decorations[x]+=" "+C,this._signal("changeBreakpoint",{})},M.prototype.removeGutterCustomWidget=function(x){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(x)},M.prototype.addGutterCustomWidget=function(x,C){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(x,C)},M.prototype.removeGutterDecoration=function(x,C){this.$decorations[x]=(this.$decorations[x]||"").replace(" "+C,""),this._signal("changeBreakpoint",{})},M.prototype.getBreakpoints=function(){return this.$breakpoints},M.prototype.setBreakpoints=function(x){this.$breakpoints=[];for(var C=0;C<x.length;C++)this.$breakpoints[x[C]]="ace_breakpoint";this._signal("changeBreakpoint",{})},M.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},M.prototype.setBreakpoint=function(x,C){C===void 0&&(C="ace_breakpoint"),C?this.$breakpoints[x]=C:delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},M.prototype.clearBreakpoint=function(x){delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},M.prototype.addMarker=function(x,C,S,k){var T=this.$markerId++,I={range:x,type:S||"line",renderer:typeof S=="function"?S:null,clazz:C,inFront:!!k,id:T};return k?(this.$frontMarkers[T]=I,this._signal("changeFrontMarker")):(this.$backMarkers[T]=I,this._signal("changeBackMarker")),T},M.prototype.addDynamicMarker=function(x,C){if(x.update){var S=this.$markerId++;return x.id=S,x.inFront=!!C,C?(this.$frontMarkers[S]=x,this._signal("changeFrontMarker")):(this.$backMarkers[S]=x,this._signal("changeBackMarker")),x}},M.prototype.removeMarker=function(x){var C=this.$frontMarkers[x]||this.$backMarkers[x];if(C){var S=C.inFront?this.$frontMarkers:this.$backMarkers;delete S[x],this._signal(C.inFront?"changeFrontMarker":"changeBackMarker")}},M.prototype.getMarkers=function(x){return x?this.$frontMarkers:this.$backMarkers},M.prototype.highlight=function(x){if(!this.$searchHighlight){var C=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(C)}this.$searchHighlight.setRegexp(x)},M.prototype.highlightLines=function(x,C,S,k){typeof C!="number"&&(S=C,C=x),S||(S="ace_step");var T=new u(x,0,C,1/0);return T.id=this.addMarker(T,S,"fullLine",k),T},M.prototype.setAnnotations=function(x){this.$annotations=x,this._signal("changeAnnotation",{})},M.prototype.getAnnotations=function(){return this.$annotations||[]},M.prototype.clearAnnotations=function(){this.setAnnotations([])},M.prototype.$detectNewLine=function(x){var C=x.match(/^.*?(\r?\n)/m);C?this.$autoNewLine=C[1]:this.$autoNewLine=`
|
820
|
+
`},M.prototype.getWordRange=function(x,C){var S=this.getLine(x),k=!1;if(C>0&&(k=!!S.charAt(C-1).match(this.tokenRe)),k||(k=!!S.charAt(C).match(this.tokenRe)),k)var T=this.tokenRe;else if(/^\s+$/.test(S.slice(C-1,C+1)))var T=/\s/;else var T=this.nonTokenRe;var I=C;if(I>0){do I--;while(I>=0&&S.charAt(I).match(T));I++}for(var N=C;N<S.length&&S.charAt(N).match(T);)N++;return new u(x,I,x,N)},M.prototype.getAWordRange=function(x,C){for(var S=this.getWordRange(x,C),k=this.getLine(S.end.row);k.charAt(S.end.column).match(/[ \t]/);)S.end.column+=1;return S},M.prototype.setNewLineMode=function(x){this.doc.setNewLineMode(x)},M.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},M.prototype.setUseWorker=function(x){this.setOption("useWorker",x)},M.prototype.getUseWorker=function(){return this.$useWorker},M.prototype.onReloadTokenizer=function(x){var C=x.data;this.bgTokenizer.start(C.first),this._signal("tokenizerUpdate",x)},M.prototype.setMode=function(x,C){if(x&&typeof x=="object"){if(x.getTokenizer)return this.$onChangeMode(x);var S=x,k=S.path}else k=x||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new a),this.$modes[k]&&!S){this.$onChangeMode(this.$modes[k]),C&&C();return}this.$modeId=k,s.loadModule(["mode",k],(function(T){if(!this.destroyed){if(this.$modeId!==k)return C&&C();this.$modes[k]&&!S?this.$onChangeMode(this.$modes[k]):T&&T.Mode&&(T=new T.Mode(S),S||(this.$modes[k]=T,T.$id=k),this.$onChangeMode(T)),C&&C()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},M.prototype.$onChangeMode=function(x,C){if(C||(this.$modeId=x.$id),this.$mode!==x){var S=this.$mode;this.$mode=x,this.$stopWorker(),this.$useWorker&&this.$startWorker();var k=x.getTokenizer();if(k.on!==void 0){var T=this.onReloadTokenizer.bind(this);k.on("update",T)}this.bgTokenizer.setTokenizer(k),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=x.tokenRe,this.nonTokenRe=x.nonTokenRe,C||(x.attachToSession&&x.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(x.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:S,mode:x}))}},M.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},M.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(x){s.warn("Could not load worker",x),this.$worker=null}},M.prototype.getMode=function(){return this.$mode},M.prototype.setScrollTop=function(x){this.$scrollTop===x||isNaN(x)||(this.$scrollTop=x,this._signal("changeScrollTop",x))},M.prototype.getScrollTop=function(){return this.$scrollTop},M.prototype.setScrollLeft=function(x){this.$scrollLeft===x||isNaN(x)||(this.$scrollLeft=x,this._signal("changeScrollLeft",x))},M.prototype.getScrollLeft=function(){return this.$scrollLeft},M.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},M.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var x=0;return this.lineWidgets.forEach(function(C){C&&C.screenWidth>x&&(x=C.screenWidth)}),this.lineWidgetWidth=x},M.prototype.$computeWidth=function(x){if(this.$modified||x){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),S=this.$rowLengthCache,k=0,T=0,I=this.$foldData[T],N=I?I.start.row:1/0,D=C.length,F=0;F<D;F++){if(F>N){if(F=I.end.row+1,F>=D)break;I=this.$foldData[T++],N=I?I.start.row:1/0}S[F]==null&&(S[F]=this.$getStringScreenWidth(C[F])[0]),S[F]>k&&(k=S[F])}this.screenWidth=k}},M.prototype.getLine=function(x){return this.doc.getLine(x)},M.prototype.getLines=function(x,C){return this.doc.getLines(x,C)},M.prototype.getLength=function(){return this.doc.getLength()},M.prototype.getTextRange=function(x){return this.doc.getTextRange(x||this.selection.getRange())},M.prototype.insert=function(x,C){return this.doc.insert(x,C)},M.prototype.remove=function(x){return this.doc.remove(x)},M.prototype.removeFullLines=function(x,C){return this.doc.removeFullLines(x,C)},M.prototype.undoChanges=function(x,C){if(x.length){this.$fromUndo=!0;for(var S=x.length-1;S!=-1;S--){var k=x[S];k.action=="insert"||k.action=="remove"?this.doc.revertDelta(k):k.folds&&this.addFolds(k.folds)}!C&&this.$undoSelect&&(x.selectionBefore?this.selection.fromJSON(x.selectionBefore):this.selection.setRange(this.$getUndoSelection(x,!0))),this.$fromUndo=!1}},M.prototype.redoChanges=function(x,C){if(x.length){this.$fromUndo=!0;for(var S=0;S<x.length;S++){var k=x[S];(k.action=="insert"||k.action=="remove")&&this.doc.$safeApplyDelta(k)}!C&&this.$undoSelect&&(x.selectionAfter?this.selection.fromJSON(x.selectionAfter):this.selection.setRange(this.$getUndoSelection(x,!1))),this.$fromUndo=!1}},M.prototype.setUndoSelect=function(x){this.$undoSelect=x},M.prototype.$getUndoSelection=function(x,C){function S(D){return C?D.action!=="insert":D.action==="insert"}for(var k,T,I=0;I<x.length;I++){var N=x[I];if(N.start){if(!k){S(N)?k=u.fromPoints(N.start,N.end):k=u.fromPoints(N.start,N.start);continue}S(N)?(T=N.start,k.compare(T.row,T.column)==-1&&k.setStart(T),T=N.end,k.compare(T.row,T.column)==1&&k.setEnd(T)):(T=N.start,k.compare(T.row,T.column)==-1&&(k=u.fromPoints(N.start,N.start)))}}return k},M.prototype.replace=function(x,C){return this.doc.replace(x,C)},M.prototype.moveText=function(x,C,S){var k=this.getTextRange(x),T=this.getFoldsInRange(x),I=u.fromPoints(C,C);if(!S){this.remove(x);var N=x.start.row-x.end.row,D=N?-x.end.column:x.start.column-x.end.column;D&&(I.start.row==x.end.row&&I.start.column>x.end.column&&(I.start.column+=D),I.end.row==x.end.row&&I.end.column>x.end.column&&(I.end.column+=D)),N&&I.start.row>=x.end.row&&(I.start.row+=N,I.end.row+=N)}if(I.end=this.insert(I.start,k),T.length){var F=x.start,H=I.start,N=H.row-F.row,D=H.column-F.column;this.addFolds(T.map(function(G){return G=G.clone(),G.start.row==F.row&&(G.start.column+=D),G.end.row==F.row&&(G.end.column+=D),G.start.row+=N,G.end.row+=N,G}))}return I},M.prototype.indentRows=function(x,C,S){S=S.replace(/\t/g,this.getTabString());for(var k=x;k<=C;k++)this.doc.insertInLine({row:k,column:0},S)},M.prototype.outdentRows=function(x){for(var C=x.collapseRows(),S=new u(0,0,0,0),k=this.getTabSize(),T=C.start.row;T<=C.end.row;++T){var I=this.getLine(T);S.start.row=T,S.end.row=T;for(var N=0;N<k&&I.charAt(N)==" ";++N);N<k&&I.charAt(N)==" "?(S.start.column=N,S.end.column=N+1):(S.start.column=0,S.end.column=N),this.remove(S)}},M.prototype.$moveLines=function(x,C,S){if(x=this.getRowFoldStart(x),C=this.getRowFoldEnd(C),S<0){var k=this.getRowFoldStart(x+S);if(k<0)return 0;var T=k-x}else if(S>0){var k=this.getRowFoldEnd(C+S);if(k>this.doc.getLength()-1)return 0;var T=k-C}else{x=this.$clipRowToDocument(x),C=this.$clipRowToDocument(C);var T=C-x+1}var I=new u(x,0,C,Number.MAX_VALUE),N=this.getFoldsInRange(I).map(function(F){return F=F.clone(),F.start.row+=T,F.end.row+=T,F}),D=S==0?this.doc.getLines(x,C):this.doc.removeFullLines(x,C);return this.doc.insertFullLines(x+T,D),N.length&&this.addFolds(N),T},M.prototype.moveLinesUp=function(x,C){return this.$moveLines(x,C,-1)},M.prototype.moveLinesDown=function(x,C){return this.$moveLines(x,C,1)},M.prototype.duplicateLines=function(x,C){return this.$moveLines(x,C,0)},M.prototype.$clipRowToDocument=function(x){return Math.max(0,Math.min(x,this.doc.getLength()-1))},M.prototype.$clipColumnToRow=function(x,C){return C<0?0:Math.min(this.doc.getLine(x).length,C)},M.prototype.$clipPositionToDocument=function(x,C){if(C=Math.max(0,C),x<0)x=0,C=0;else{var S=this.doc.getLength();x>=S?(x=S-1,C=this.doc.getLine(S-1).length):C=Math.min(this.doc.getLine(x).length,C)}return{row:x,column:C}},M.prototype.$clipRangeToDocument=function(x){x.start.row<0?(x.start.row=0,x.start.column=0):x.start.column=this.$clipColumnToRow(x.start.row,x.start.column);var C=this.doc.getLength()-1;return x.end.row>C?(x.end.row=C,x.end.column=this.doc.getLine(C).length):x.end.column=this.$clipColumnToRow(x.end.row,x.end.column),x},M.prototype.setUseWrapMode=function(x){if(x!=this.$useWrapMode){if(this.$useWrapMode=x,this.$modified=!0,this.$resetRowCache(0),x){var C=this.getLength();this.$wrapData=Array(C),this.$updateWrapData(0,C-1)}this._signal("changeWrapMode")}},M.prototype.getUseWrapMode=function(){return this.$useWrapMode},M.prototype.setWrapLimitRange=function(x,C){(this.$wrapLimitRange.min!==x||this.$wrapLimitRange.max!==C)&&(this.$wrapLimitRange={min:x,max:C},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},M.prototype.adjustWrapLimit=function(x,C){var S=this.$wrapLimitRange;S.max<0&&(S={min:C,max:C});var k=this.$constrainWrapLimit(x,S.min,S.max);return k!=this.$wrapLimit&&k>1?(this.$wrapLimit=k,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},M.prototype.$constrainWrapLimit=function(x,C,S){return C&&(x=Math.max(C,x)),S&&(x=Math.min(S,x)),x},M.prototype.getWrapLimit=function(){return this.$wrapLimit},M.prototype.setWrapLimit=function(x){this.setWrapLimitRange(x,x)},M.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},M.prototype.$updateInternalDataOnChange=function(x){var C=this.$useWrapMode,S=x.action,k=x.start,T=x.end,I=k.row,N=T.row,D=N-I,F=null;if(this.$updating=!0,D!=0)if(S==="remove"){this[C?"$wrapData":"$rowLengthCache"].splice(I,D);var H=this.$foldData;F=this.getFoldsInRange(x),this.removeFolds(F);var W=this.getFoldLine(T.row),U=0;if(W){W.addRemoveChars(T.row,T.column,k.column-T.column),W.shiftRow(-D);var G=this.getFoldLine(I);G&&G!==W&&(G.merge(W),W=G),U=H.indexOf(W)+1}for(U;U<H.length;U++){var W=H[U];W.start.row>=T.row&&W.shiftRow(-D)}N=I}else{var V=Array(D);V.unshift(I,0);var j=C?this.$wrapData:this.$rowLengthCache;j.splice.apply(j,V);var H=this.$foldData,W=this.getFoldLine(I),U=0;if(W){var Z=W.range.compareInside(k.row,k.column);Z==0?(W=W.split(k.row,k.column),W&&(W.shiftRow(D),W.addRemoveChars(N,0,T.column-k.column))):Z==-1&&(W.addRemoveChars(I,0,T.column-k.column),W.shiftRow(D)),U=H.indexOf(W)+1}for(U;U<H.length;U++){var W=H[U];W.start.row>=I&&W.shiftRow(D)}}else{D=Math.abs(x.start.column-x.end.column),S==="remove"&&(F=this.getFoldsInRange(x),this.removeFolds(F),D=-D);var W=this.getFoldLine(I);W&&W.addRemoveChars(I,k.column,D)}return C&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,C?this.$updateWrapData(I,N):this.$updateRowLengthCache(I,N),F},M.prototype.$updateRowLengthCache=function(x,C){this.$rowLengthCache[x]=null,this.$rowLengthCache[C]=null},M.prototype.$updateWrapData=function(x,C){var S=this.doc.getAllLines(),k=this.getTabSize(),T=this.$wrapData,I=this.$wrapLimit,N,D,F=x;for(C=Math.min(C,S.length-1);F<=C;)D=this.getFoldLine(F,D),D?(N=[],D.walk((function(H,W,U,G){var V;if(H!=null){V=this.$getDisplayTokens(H,N.length),V[0]=w;for(var j=1;j<V.length;j++)V[j]=b}else V=this.$getDisplayTokens(S[W].substring(G,U),N.length);N=N.concat(V)}).bind(this),D.end.row,S[D.end.row].length+1),T[D.start.row]=this.$computeWrapSplits(N,I,k),F=D.end.row+1):(N=this.$getDisplayTokens(S[F]),T[F]=this.$computeWrapSplits(N,I,k),F++)},M.prototype.$computeWrapSplits=function(x,C,S){if(x.length==0)return[];var k=[],T=x.length,I=0,N=0,D=this.$wrapAsCode,F=this.$indentedSoftWrap,H=C<=Math.max(2*S,8)||F===!1?0:Math.floor(C/2);function W(){var Z=0;if(H===0)return Z;if(F)for(var X=0;X<x.length;X++){var Q=x[X];if(Q==R)Z+=1;else if(Q==E)Z+=S;else{if(Q==L)continue;break}}return D&&F!==!1&&(Z+=S),Math.min(Z,H)}function U(Z){for(var X=Z-I,Q=I;Q<Z;Q++){var le=x[Q];(le===12||le===2)&&(X-=1)}k.length||(G=W(),k.indent=G),N+=X,k.push(N),I=Z}for(var G=0;T-I>C-G;){var V=I+C-G;if(x[V-1]>=R&&x[V]>=R){U(V);continue}if(x[V]==w||x[V]==b){for(V;V!=I-1&&x[V]!=w;V--);if(V>I){U(V);continue}for(V=I+C,V;V<x.length&&x[V]==b;V++);if(V==x.length)break;U(V);continue}for(var j=Math.max(V-(C-(C>>2)),I-1);V>j&&x[V]<w;)V--;if(D){for(;V>j&&x[V]<w;)V--;for(;V>j&&x[V]==A;)V--}else for(;V>j&&x[V]<R;)V--;if(V>j){U(++V);continue}V=I+C,x[V]==$&&V--,U(V-G)}return k},M.prototype.$getDisplayTokens=function(x,C){var S=[],k;C=C||0;for(var T=0;T<x.length;T++){var I=x.charCodeAt(T);if(I==9){k=this.getScreenTabSize(S.length+C),S.push(E);for(var N=1;N<k;N++)S.push(L)}else I==32?S.push(R):I>39&&I<48||I>57&&I<64?S.push(A):I>=4352&&O(I)?S.push(_,$):S.push(_)}return S},M.prototype.$getStringScreenWidth=function(x,C,S){if(C==0)return[0,0];C==null&&(C=1/0),S=S||0;var k,T;for(T=0;T<x.length&&(k=x.charCodeAt(T),k==9?S+=this.getScreenTabSize(S):k>=4352&&O(k)?S+=2:S+=1,!(S>C));T++);return[S,T]},M.prototype.getRowLength=function(x){var C=1;return this.lineWidgets&&(C+=this.lineWidgets[x]&&this.lineWidgets[x].rowCount||0),!this.$useWrapMode||!this.$wrapData[x]?C:this.$wrapData[x].length+C},M.prototype.getRowLineCount=function(x){return!this.$useWrapMode||!this.$wrapData[x]?1:this.$wrapData[x].length+1},M.prototype.getRowWrapIndent=function(x){if(this.$useWrapMode){var C=this.screenToDocumentPosition(x,Number.MAX_VALUE),S=this.$wrapData[C.row];return S.length&&S[0]<C.column?S.indent:0}else return 0},M.prototype.getScreenLastRowColumn=function(x){var C=this.screenToDocumentPosition(x,Number.MAX_VALUE);return this.documentToScreenColumn(C.row,C.column)},M.prototype.getDocumentLastRowColumn=function(x,C){var S=this.documentToScreenRow(x,C);return this.getScreenLastRowColumn(S)},M.prototype.getDocumentLastRowColumnPosition=function(x,C){var S=this.documentToScreenRow(x,C);return this.screenToDocumentPosition(S,Number.MAX_VALUE/10)},M.prototype.getRowSplitData=function(x){if(this.$useWrapMode)return this.$wrapData[x]},M.prototype.getScreenTabSize=function(x){return this.$tabSize-(x%this.$tabSize|0)},M.prototype.screenToDocumentRow=function(x,C){return this.screenToDocumentPosition(x,C).row},M.prototype.screenToDocumentColumn=function(x,C){return this.screenToDocumentPosition(x,C).column},M.prototype.screenToDocumentPosition=function(x,C,S){if(x<0)return{row:0,column:0};var k,T=0,I=0,N,D=0,F=0,H=this.$screenRowCache,W=this.$getRowCacheIndex(H,x),U=H.length;if(U&&W>=0)var D=H[W],T=this.$docRowCache[W],G=x>H[U-1];else var G=!U;for(var V=this.getLength()-1,j=this.getNextFoldLine(T),Z=j?j.start.row:1/0;D<=x&&(F=this.getRowLength(T),!(D+F>x||T>=V));)D+=F,T++,T>Z&&(T=j.end.row+1,j=this.getNextFoldLine(T,j),Z=j?j.start.row:1/0),G&&(this.$docRowCache.push(T),this.$screenRowCache.push(D));if(j&&j.start.row<=T)k=this.getFoldDisplayLine(j),T=j.start.row;else{if(D+F<=x||T>V)return{row:V,column:this.getLine(V).length};k=this.getLine(T),j=null}var X=0,Q=Math.floor(x-D);if(this.$useWrapMode){var le=this.$wrapData[T];le&&(N=le[Q],Q>0&&le.length&&(X=le.indent,I=le[Q-1]||le[le.length-1],k=k.substring(I)))}return S!==void 0&&this.$bidiHandler.isBidiRow(D+Q,T,Q)&&(C=this.$bidiHandler.offsetToCol(S)),I+=this.$getStringScreenWidth(k,C-X)[1],this.$useWrapMode&&I>=N&&(I=N-1),j?j.idxToPosition(I):{row:T,column:I}},M.prototype.documentToScreenPosition=function(x,C){if(typeof C>"u")var S=this.$clipPositionToDocument(x.row,x.column);else S=this.$clipPositionToDocument(x,C);x=S.row,C=S.column;var k=0,T=null,I=null;I=this.getFoldAt(x,C,1),I&&(x=I.start.row,C=I.start.column);var N,D=0,F=this.$docRowCache,H=this.$getRowCacheIndex(F,x),W=F.length;if(W&&H>=0)var D=F[H],k=this.$screenRowCache[H],U=x>F[W-1];else var U=!W;for(var G=this.getNextFoldLine(D),V=G?G.start.row:1/0;D<x;){if(D>=V){if(N=G.end.row+1,N>x)break;G=this.getNextFoldLine(N,G),V=G?G.start.row:1/0}else N=D+1;k+=this.getRowLength(D),D=N,U&&(this.$docRowCache.push(D),this.$screenRowCache.push(k))}var j="";G&&D>=V?(j=this.getFoldDisplayLine(G,x,C),T=G.start.row):(j=this.getLine(x).substring(0,C),T=x);var Z=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Q=0;j.length>=X[Q];)k++,Q++;j=j.substring(X[Q-1]||0,j.length),Z=Q>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[D]&&this.lineWidgets[D].rowsAbove&&(k+=this.lineWidgets[D].rowsAbove),{row:k,column:Z+this.$getStringScreenWidth(j)[0]}},M.prototype.documentToScreenColumn=function(x,C){return this.documentToScreenPosition(x,C).column},M.prototype.documentToScreenRow=function(x,C){return this.documentToScreenPosition(x,C).row},M.prototype.getScreenLength=function(){var x=0,C=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,I=0,k=0,C=this.$foldData[k++],N=C?C.start.row:1/0;I<T;){var D=this.$wrapData[I];x+=D?D.length+1:1,I++,I>N&&(I=C.end.row+1,C=this.$foldData[k++],N=C?C.start.row:1/0)}else{x=this.getLength();for(var S=this.$foldData,k=0;k<S.length;k++)C=S[k],x-=C.end.row-C.start.row}return this.lineWidgets&&(x+=this.$getWidgetScreenLength()),x},M.prototype.$setFontMetrics=function(x){this.$enableVarChar&&(this.$getStringScreenWidth=function(C,S,k){if(S===0)return[0,0];S||(S=1/0),k=k||0;var T,I;for(I=0;I<C.length&&(T=C.charAt(I),T===" "?k+=this.getScreenTabSize(k):k+=x.getCharacterWidth(T),!(k>S));I++);return[k,I]})},M.prototype.getPrecedingCharacter=function(){var x=this.selection.getCursor();if(x.column===0)return x.row===0?"":this.doc.getNewLineCharacter();var C=this.getLine(x.row);return C[x.column-1]},M.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},M}();y.$uid=0,y.prototype.$modes=s.$modes,y.prototype.getValue=y.prototype.toString,y.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},y.prototype.$overwrite=!1,y.prototype.$mode=null,y.prototype.$modeId=null,y.prototype.$scrollTop=0,y.prototype.$scrollLeft=0,y.prototype.$wrapLimit=80,y.prototype.$useWrapMode=!1,y.prototype.$wrapLimitRange={min:null,max:null},y.prototype.lineWidgets=null,y.prototype.isFullWidth=O,h.implement(y.prototype,p);var _=1,$=2,w=3,b=4,A=9,R=10,E=11,L=12;function O(M){return M<4352?!1:M>=4352&&M<=4447||M>=4515&&M<=4519||M>=4602&&M<=4607||M>=9001&&M<=9002||M>=11904&&M<=11929||M>=11931&&M<=12019||M>=12032&&M<=12245||M>=12272&&M<=12283||M>=12288&&M<=12350||M>=12353&&M<=12438||M>=12441&&M<=12543||M>=12549&&M<=12589||M>=12593&&M<=12686||M>=12688&&M<=12730||M>=12736&&M<=12771||M>=12784&&M<=12830||M>=12832&&M<=12871||M>=12880&&M<=13054||M>=13056&&M<=19903||M>=19968&&M<=42124||M>=42128&&M<=42182||M>=43360&&M<=43388||M>=44032&&M<=55203||M>=55216&&M<=55238||M>=55243&&M<=55291||M>=63744&&M<=64255||M>=65040&&M<=65049||M>=65072&&M<=65106||M>=65108&&M<=65126||M>=65128&&M<=65131||M>=65281&&M<=65376||M>=65504&&M<=65510}n("./edit_session/folding").Folding.call(y.prototype),n("./edit_session/bracket_match").BracketMatch.call(y.prototype),s.defineOptions(y.prototype,"session",{wrap:{set:function(M){if(!M||M=="off"?M=!1:M=="free"?M=!0:M=="printMargin"?M=-1:typeof M=="string"&&(M=parseInt(M,10)||!1),this.$wrap!=M)if(this.$wrap=M,!M)this.setUseWrapMode(!1);else{var x=typeof M=="number"?M:null;this.setWrapLimitRange(x,x),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(M){M=M=="auto"?this.$mode.type!="text":M!="text",M!=this.$wrapAsCode&&(this.$wrapAsCode=M,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(M){this.$useWorker=M,this.$stopWorker(),M&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(M){M=parseInt(M),M>0&&this.$tabSize!==M&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=M,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(M){this.setFoldStyle(M)},handlesSet:!0},overwrite:{set:function(M){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(M){this.doc.setNewLineMode(M)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(M){this.setMode(M)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=y}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,i){var h=n("./lib/lang"),f=n("./lib/oop"),g=n("./range").Range,s=function(){function u(){this.$options={}}return u.prototype.set=function(l){return f.mixin(this.$options,l),this},u.prototype.getOptions=function(){return h.copyObject(this.$options)},u.prototype.setOptions=function(l){this.$options=l},u.prototype.find=function(l){var c=this.$options,d=this.$matchIterator(l,c);if(!d)return!1;var m=null;return d.forEach(function(v,y,_,$){return m=new g(v,y,_,$),y==$&&c.start&&c.start.start&&c.skipCurrent!=!1&&m.isEqual(c.start)?(m=null,!1):!0}),m},u.prototype.findAll=function(l){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var d=c.range,m=d?l.getLines(d.start.row,d.end.row):l.doc.getAllLines(),v=[],y=c.re;if(c.$isMultiLine){var _=y.length,$=m.length-_,w;e:for(var b=y.offset||0;b<=$;b++){for(var A=0;A<_;A++)if(m[b+A].search(y[A])==-1)continue e;var R=m[b],E=m[b+_-1],L=R.length-R.match(y[0])[0].length,O=E.match(y[_-1])[0].length;w&&w.end.row===b&&w.end.column>L||(v.push(w=new g(b,L,b+_-1,O)),_>2&&(b=b+_-2))}}else for(var M,x=0;x<m.length;x++)if(this.$isMultilineSearch(c)){var C=m.length-1;if(M=this.$multiLineForward(l,y,x,C),M){var S=M.endRow<=C?M.endRow-1:C;S>x&&(x=S),v.push(new g(M.startRow,M.startCol,M.endRow,M.endCol))}}else{M=h.getMatchOffsets(m[x],y);for(var A=0;A<M.length;A++){var k=M[A];v.push(new g(x,k.offset,x,k.offset+k.length))}}if(d){for(var T=d.start.column,I=d.end.column,x=0,A=v.length-1;x<A&&v[x].start.column<T&&v[x].start.row==0;)x++;for(var N=d.end.row-d.start.row;x<A&&v[A].end.column>I&&v[A].end.row==N;)A--;for(v=v.slice(x,A+1),x=0,A=v.length;x<A;x++)v[x].start.row+=d.start.row,v[x].end.row+=d.start.row}return v},u.prototype.parseReplaceString=function(l){for(var c={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},d="",m=0,v=l.length;m<v;m++){var y=l.charCodeAt(m);if(y===c.Backslash){if(m++,m>=v){d+="\\";break}var _=l.charCodeAt(m);switch(_){case c.Backslash:d+="\\";break;case c.n:d+=`
|
821
|
+
`;break;case c.t:d+=" ";break}continue}if(y===c.DollarSign){if(m++,m>=v){d+="$";break}var $=l.charCodeAt(m);if($===c.DollarSign){d+="$$";continue}if($===c.Digit0||$===c.Ampersand){d+="$&";continue}if(c.Digit1<=$&&$<=c.Digit9){d+="$"+l[m];continue}}d+=l[m]}return d||l},u.prototype.replace=function(l,c){var d=this.$options,m=this.$assembleRegExp(d);if(d.$isMultiLine)return c;if(m){var v=this.$isMultilineSearch(d);v&&(l=l.replace(/\r\n|\r|\n/g,`
|
822
|
+
`));var y=m.exec(l);if(!y||!v&&y[0].length!=l.length)return null;if(c=d.regExp?this.parseReplaceString(c):c.replace(/\$/g,"$$$$"),c=l.replace(m,c),d.preserveCase){c=c.split("");for(var _=Math.min(l.length,l.length);_--;){var $=l[_];$&&$.toLowerCase()!=$?c[_]=c[_].toUpperCase():c[_]=c[_].toLowerCase()}c=c.join("")}return c}},u.prototype.$assembleRegExp=function(l,c){if(l.needle instanceof RegExp)return l.re=l.needle;var d=l.needle;if(!l.needle)return l.re=!1;l.regExp||(d=h.escapeRegExp(d));var m=l.caseSensitive?"gm":"gmi";try{new RegExp(d,"u"),l.$supportsUnicodeFlag=!0,m+="u"}catch{l.$supportsUnicodeFlag=!1}if(l.wholeWord&&(d=p(d,l)),l.$isMultiLine=!c&&/[\n\r]/.test(d),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(d,m);try{var v=new RegExp(d,m)}catch{v=!1}return l.re=v},u.prototype.$assembleMultilineRegExp=function(l,c){for(var d=l.replace(/\r\n|\r|\n/g,`$
|
823
|
+
^`).split(`
|
824
|
+
`),m=[],v=0;v<d.length;v++)try{m.push(new RegExp(d[v],c))}catch{return!1}return m},u.prototype.$isMultilineSearch=function(l){return l.re&&/\\r\\n|\\r|\\n/.test(l.re.source)&&l.regExp&&!l.$isMultiLine},u.prototype.$multiLineForward=function(l,c,d,m){for(var v,y=a(l,d),_=d;_<=m;){for(var $=0;$<y&&!(_>m);$++){var w=l.getLine(_++);v=v==null?w:v+`
|
825
|
+
`+w}var b=c.exec(v);if(c.lastIndex=0,b){var A=v.slice(0,b.index).split(`
|
826
|
+
`),R=b[0].split(`
|
827
|
+
`),E=d+A.length-1,L=A[A.length-1].length,O=E+R.length-1,M=R.length==1?L+R[0].length:R[R.length-1].length;return{startRow:E,startCol:L,endRow:O,endCol:M}}}return null},u.prototype.$multiLineBackward=function(l,c,d,m,v){for(var y,_=a(l,m),$=l.getLine(m).length-d,w=m;w>=v;){for(var b=0;b<_&&w>=v;b++){var A=l.getLine(w--);y=y==null?A:A+`
|
828
|
+
`+y}var R=o(y,c,$);if(R){var E=y.slice(0,R.index).split(`
|
829
|
+
`),L=R[0].split(`
|
830
|
+
`),O=w+E.length,M=E[E.length-1].length,x=O+L.length-1,C=L.length==1?M+L[0].length:L[L.length-1].length;return{startRow:O,startCol:M,endRow:x,endCol:C}}}return null},u.prototype.$matchIterator=function(l,c){var d=this.$assembleRegExp(c);if(!d)return!1;var m=this.$isMultilineSearch(c),v=this.$multiLineForward,y=this.$multiLineBackward,_=c.backwards==!0,$=c.skipCurrent!=!1,w=d.unicode,b=c.range,A=c.start;A||(A=b?b[_?"end":"start"]:l.selection.getRange()),A.start&&(A=A[$!=_?"end":"start"]);var R=b?b.start.row:0,E=b?b.end.row:l.getLength()-1;if(_)var L=function(x){var C=A.row;if(!M(C,A.column,x)){for(C--;C>=R;C--)if(M(C,Number.MAX_VALUE,x))return;if(c.wrap!=!1){for(C=E,R=A.row;C>=R;C--)if(M(C,Number.MAX_VALUE,x))return}}};else var L=function(C){var S=A.row;if(!M(S,A.column,C)){for(S=S+1;S<=E;S++)if(M(S,0,C))return;if(c.wrap!=!1){for(S=R,E=A.row;S<=E;S++)if(M(S,0,C))return}}};if(c.$isMultiLine)var O=d.length,M=function(x,C,S){var k=_?x-O+1:x;if(!(k<0||k+O>l.getLength())){var T=l.getLine(k),I=T.search(d[0]);if(!(!_&&I<C||I===-1)){for(var N=1;N<O;N++)if(T=l.getLine(k+N),T.search(d[N])==-1)return;var D=T.match(d[O-1])[0].length;if(!(_&&D>C)&&S(k,I,k+O-1,D))return!0}}};else if(_)var M=function(C,S,k){if(m){var T=y(l,d,S,C,R);if(!T)return!1;if(k(T.startRow,T.startCol,T.endRow,T.endCol))return!0}else{var I=l.getLine(C),N=[],D,F=0;for(d.lastIndex=0;D=d.exec(I);){var H=D[0].length;if(F=D.index,!H){if(F>=I.length)break;d.lastIndex=F+=h.skipEmptyMatch(I,F,w)}if(D.index+H>S)break;N.push(D.index,H)}for(var W=N.length-1;W>=0;W-=2){var U=N[W-1],H=N[W];if(k(C,U,C,U+H))return!0}}};else var M=function(C,S,k){if(d.lastIndex=S,m){var T=v(l,d,C,E);if(T){var I=T.endRow<=E?T.endRow-1:E;I>C&&(C=I)}if(!T)return!1;if(k(T.startRow,T.startCol,T.endRow,T.endCol))return!0}else for(var N=l.getLine(C),D,F;F=d.exec(N);){var H=F[0].length;if(D=F.index,k(C,D,C,D+H))return!0;if(!H&&(d.lastIndex=D+=h.skipEmptyMatch(N,D,w),D>=N.length))return!1}};return{forEach:L}},u}();function p(u,l){var c=h.supportsLookbehind();function d(_,$){$===void 0&&($=!0);var w=c&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return w.test(_)||l.regExp?c&&l.$supportsUnicodeFlag?$?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var m=Array.from(u),v=m[0],y=m[m.length-1];return d(v)+u+d(y,!1)}function o(u,l,c){for(var d=null,m=0;m<=u.length;){l.lastIndex=m;var v=l.exec(u);if(!v)break;var y=v.index+v[0].length;if(y>u.length-c)break;(!d||y>d.index+d[0].length)&&(d=v),m=v.index+1}return d}function a(u,l){var c=5e3,d={row:l,column:0},m=u.doc.positionToIndex(d),v=m+c,y=u.doc.indexToPosition(v),_=y.row;return _+1}r.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var h=this&&this.__extends||function(){var u=function(l,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(d[v]=m[v])},u(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");u(l,c);function d(){this.constructor=l}l.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=n("../lib/keys"),g=n("../lib/useragent"),s=f.KEY_MODS,p=function(){function u(l,c){this.$init(l,c,!1)}return u.prototype.$init=function(l,c,d){this.platform=c||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=d},u.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},u.prototype.removeCommand=function(l,c){var d=l&&(typeof l=="string"?l:l.name);l=this.commands[d],c||delete this.commands[d];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==l)delete m[v];else if(Array.isArray(y)){var _=y.indexOf(l);_!=-1&&(y.splice(_,1),y.length==1&&(m[v]=y[0]))}}},u.prototype.bindKey=function(l,c,d){if(typeof l=="object"&&l&&(d==null&&(d=l.position),l=l[this.platform]),!!l){if(typeof c=="function")return this.addCommand({exec:c,bindKey:l,name:c.name||l});l.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(w){var b=this.parseKeys(w),A=s[b.hashId]+b.key;v+=(v?" ":"")+A,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var _=this.parseKeys(m),$=s[_.hashId]+_.key;this._addCommandToBinding(v+$,c,d)},this)}},u.prototype._addCommandToBinding=function(l,c,d){var m=this.commandKeyBinding,v;if(!c)delete m[l];else if(!m[l]||this.$singleCommand)m[l]=c;else{Array.isArray(m[l])?(v=m[l].indexOf(c))!=-1&&m[l].splice(v,1):m[l]=[m[l]],typeof d!="number"&&(d=o(c));var y=m[l];for(v=0;v<y.length;v++){var _=y[v],$=o(_);if($>d)break}y.splice(v,0,c)}},u.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(c){var d=l[c];if(d){if(typeof d=="string")return this.bindKey(d,c);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=c),this.addCommand(d))}},this)},u.prototype.removeCommands=function(l){Object.keys(l).forEach(function(c){this.removeCommand(l[c])},this)},u.prototype.bindKeys=function(l){Object.keys(l).forEach(function(c){this.bindKey(c,l[c])},this)},u.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},u.prototype.parseKeys=function(l){var c=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function($){return $}),d=c.pop(),m=f[d];if(f.FUNCTION_KEYS[m])d=f.FUNCTION_KEYS[m].toLowerCase();else if(c.length){if(c.length==1&&c[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var v=0,y=c.length;y--;){var _=f.KEY_MODS[c[y]];if(_==null)return typeof console<"u"&&console.error("invalid modifier "+c[y]+" in "+l),!1;v|=_}return{key:d,hashId:v}},u.prototype.findKeyCommand=function(l,c){var d=s[l]+c;return this.commandKeyBinding[d]},u.prototype.handleKeyboard=function(l,c,d,m){if(!(m<0)){var v=s[c]+d,y=this.commandKeyBinding[v];return l.$keyChain&&(l.$keyChain+=" "+v,y=this.commandKeyBinding[l.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||v,{command:"null"}):(l.$keyChain&&((!c||c==4)&&d.length==1?l.$keyChain=l.$keyChain.slice(0,-v.length-1):(c==-1||m>0)&&(l.$keyChain="")),{command:y})}},u.prototype.getStatusText=function(l,c){return c.$keyChain||""},u}();function o(u){return typeof u=="object"&&u.bindKey&&u.bindKey.position||(u.isDefault?-100:0)}var a=function(u){h(l,u);function l(c,d){var m=u.call(this,c,d)||this;return m.$singleCommand=!0,m}return l}(p);a.call=function(u,l,c){p.prototype.$init.call(u,l,c,!0)},p.call=function(u,l,c){p.prototype.$init.call(u,l,c,!1)},r.HashHandler=a,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,i){var h=this&&this.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(l[d]=c[d])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),f=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,p=function(o){h(a,o);function a(u,l){var c=o.call(this,l,u)||this;return c.byName=c.commands,c.setDefaultHandler("exec",function(d){return d.args?d.command.exec(d.editor,d.args,d.event,!1):d.command.exec(d.editor,{},d.event,!0)}),c}return a.prototype.exec=function(u,l,c){if(Array.isArray(u)){for(var d=u.length;d--;)if(this.exec(u[d],l,c))return!0;return!1}typeof u=="string"&&(u=this.commands[u]);var m={editor:l,command:u,args:c};return this.canExecute(u,l)?(m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1):(this._signal("commandUnavailable",m),!1)},a.prototype.canExecute=function(u,l){return typeof u=="string"&&(u=this.commands[u]),!(!u||l&&l.$readOnly&&!u.readOnly||this.$checkCommandState!=!1&&u.isAvailable&&!u.isAvailable(l))},a.prototype.toggleRecording=function(u){if(!this.$inReplay)return u&&u._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},a.prototype.replay=function(u){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(u);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,u):this.exec(l[0],u,l[1])},this)}finally{this.$inReplay=!1}}},a.prototype.trimMacro=function(u){return u.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},a}(g);f.implement(p.prototype,s),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,i){var h=n("../lib/lang"),f=n("../config"),g=n("../range").Range;function s(o,a){return{win:o,mac:a}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){f.loadModule("ace/ext/settings_menu",function(a){a.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(o){f.loadModule("ace/ext/error_marker",function(a){a.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(o){f.loadModule("ace/ext/error_marker",function(a){a.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,a){typeof a=="number"&&!isNaN(a)&&o.gotoLine(a),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){f.loadModule("ace/ext/searchbox",function(a){a.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,a){o.navigateUp(a.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,a){o.navigateDown(a.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,a){o.navigateLeft(a.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,a){o.navigateRight(a.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 a=o.$copyWithEmptySelection&&o.selection.isEmpty(),u=a?o.selection.getLineRange():o.selection.getRange();o._emit("cut",u),u.isEmpty()||o.session.remove(u),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,a){o.$handlePaste(a)},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){f.loadModule("ace/ext/searchbox",function(a){a.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 a=o.selection.getRange();a.start.column=0,o.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var a=o.selection.getRange();a.end.column=Number.MAX_VALUE,o.session.remove(a)},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,a){o.insert(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,a){o.insert(h.stringRepeat(a.text||"",a.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()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var a=o.selection.getRange();a.start.column=a.end.column=0,a.end.row++,o.selection.setRange(a,!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 a=o.selection.isBackwards(),u=a?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),l=a?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),c=o.session.doc.getLine(u.row).length,d=o.session.doc.getTextRange(o.selection.getRange()),m=d.replace(/\n\s*/," ").length,v=o.session.doc.getLine(u.row),y=u.row+1;y<=l.row+1;y++){var _=h.stringTrimLeft(h.stringTrimRight(o.session.doc.getLine(y)));_.length!==0&&(_=" "+_),v+=_}l.row+1<o.session.doc.getLength()-1&&(v+=o.session.doc.getNewLineCharacter()),o.clearSelection(),o.session.doc.replace(new g(u.row,0,l.row+2,0),v),m>0?(o.selection.moveCursorTo(u.row,u.column),o.selection.selectTo(u.row,u.column+m)):(c=o.session.doc.getLine(u.row).length>c?c+1:c,o.selection.moveCursorTo(u.row,c))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var a=o.session.doc.getLength()-1,u=o.session.doc.getLine(a).length,l=o.selection.rangeList.ranges,c=[];l.length<1&&(l=[o.selection.getRange()]);for(var d=0;d<l.length;d++)d==l.length-1&&(l[d].end.row===a&&l[d].end.column===u||c.push(new g(l[d].end.row,l[d].end.column,a,u))),d===0?l[d].start.row===0&&l[d].start.column===0||c.push(new g(0,0,l[d].start.row,l[d].start.column)):c.push(new g(l[d-1].end.row,l[d-1].end.column,l[d].start.row,l[d].start.column));o.exitMultiSelectMode(),o.clearSelection();for(var d=0;d<c.length;d++)o.selection.addRange(c[d],!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(`
|
831
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(o){o.selection.clearSelection();var a=o.getCursorPosition();o.selection.moveTo(a.row-1,Number.MAX_VALUE),o.insert(`
|
832
|
+
`),a.row===0&&o.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(o){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),o.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:s("F1","F1"),exec:function(o){o.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(o){o.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)r.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,exec:function(o){o.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,i){var h=n("../lib/keys"),f=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(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 f(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===h.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=h.enter)return;o.preventDefault();var a=this.editor.getCursorPosition().row;this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!0,!0),setTimeout((function(){var u=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldLaneWidget(u),c=this.$findNearestAnnotation(u);if(!(l===null&&c===null)){var d=this.$findClosestNumber(l,c,u);if(d===l)if(this.activeLane="fold",this.activeRowIndex=l,this.$isCustomWidgetVisible(l)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(o),setTimeout((function(){this.editor._signal("gutterkeydown",new s(o,this))}).bind(this),10)},p.prototype.$handleGutterKeyboardInteraction=function(o){if(o.keyCode===h.tab){o.preventDefault();return}if(o.keyCode===h.escape){o.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(o.keyCode===h.up){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(o.keyCode===h.down){switch(o.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(o.keyCode===h.left){o.preventDefault(),this.$switchLane("annotation");return}if(o.keyCode===h.right){o.preventDefault(),this.$switchLane("fold");return}if(o.keyCode===h.enter||o.keyCode===h.space){switch(o.preventDefault(),this.activeLane){case"fold":var a=this.$rowIndexToRow(this.activeRowIndex),u=this.editor.session.$gutterCustomWidgets[a];if(u)u.callbacks&&u.callbacks.onClick&&u.callbacks.onClick(o,a);else if(this.gutterLayer.session.foldWidgets[a]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),o),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==a&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(a),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var l=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=l.getBoundingClientRect(),d=this.annotationTooltip.getElement().style;d.left=c.right+"px",d.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},p.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},p.prototype.$isFoldWidgetVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),u=this.$getFoldWidget(o).style.display!=="none";return a&&u},p.prototype.$isCustomWidgetVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),u=!!this.$getCustomWidget(o);return a&&u},p.prototype.$isAnnotationVisible=function(o){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(o)),u=this.$getAnnotation(o).style.display!=="none";return a&&u},p.prototype.$getFoldWidget=function(o){var a=this.lines.get(o),u=a.element;return u.childNodes[1]},p.prototype.$getCustomWidget=function(o){var a=this.lines.get(o),u=a.element;return u.childNodes[3]},p.prototype.$getAnnotation=function(o){var a=this.lines.get(o),u=a.element;return u.childNodes[2]},p.prototype.$findNearestFoldLaneWidget=function(o){if(this.$isCustomWidgetVisible(o)||this.$isFoldWidgetVisible(o))return o;for(var a=0;o-a>0||o+a<this.lines.getLength()-1;){if(a++,o-a>=0&&this.$isCustomWidgetVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(o+a))return o+a;if(o-a>=0&&this.$isFoldWidgetVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+a))return o+a}return null},p.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var a=0;o-a>0||o+a<this.lines.getLength()-1;){if(a++,o-a>=0&&this.$isAnnotationVisible(o-a))return o-a;if(o+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+a))return o+a}return null},p.prototype.$focusFoldWidget=function(o){if(o!=null){var a=this.$getFoldWidget(o);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$focusCustomWidget=function(o){if(o!=null){var a=this.$getCustomWidget(o);a&&(a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus())}},p.prototype.$focusAnnotation=function(o){if(o!=null){var a=this.$getAnnotation(o);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},p.prototype.$blurFoldWidget=function(o){var a=this.$getFoldWidget(o);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$blurCustomWidget=function(o){var a=this.$getCustomWidget(o);a&&(a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur())},p.prototype.$blurAnnotation=function(o){var a=this.$getAnnotation(o);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)||this.$isCustomWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=o,this.$isFoldWidgetVisible(o)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o<this.lines.getLength()-1;)if(o++,this.$isFoldWidgetVisible(o)||this.$isCustomWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=o,this.$isFoldWidgetVisible(o)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},p.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}},p.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}},p.prototype.$findClosestNumber=function(o,a,u){return o===null?a:a===null||Math.abs(u-o)<=Math.abs(u-a)?o:a},p.prototype.$switchLane=function(o){switch(o){case"annotation":if(this.activeLane==="annotation")break;var a=this.$findNearestAnnotation(this.activeRowIndex);if(a==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var u=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(u===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=u,this.$isCustomWidgetVisible(u)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},p.prototype.$rowIndexToRow=function(o){var a=this.lines.get(o);return a?a.row:null},p.prototype.$rowToRowIndex=function(o){for(var a=0;a<this.lines.getLength();a++){var u=this.lines.get(a);if(u.row==o)return a}return null},p}();r.GutterKeyboardHandler=g;var s=function(){function p(o,a){this.gutterKeyboardHandler=a,this.domEvent=o}return p.prototype.getKey=function(){return h.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();r.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/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(n,r,i){var h=this&&this.__values||function(C){var S=typeof Symbol=="function"&&Symbol.iterator,k=S&&C[S],T=0;if(k)return k.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&T>=C.length&&(C=void 0),{value:C&&C[T++],done:!C}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),p=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,a=n("./mouse/mouse_handler").MouseHandler,u=n("./mouse/fold_handler").FoldHandler,l=n("./keyboard/keybinding").KeyBinding,c=n("./edit_session").EditSession,d=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,_=n("./commands/default_commands").commands,$=n("./config"),w=n("./token_iterator").TokenIterator,b=n("./keyboard/gutter_handler").GutterKeyboardHandler,A=n("./config").nls,R=n("./clipboard"),E=n("./lib/keys"),L=n("./lib/event"),O=n("./tooltip").HoverTooltip,M=function(){function C(S,k,T){this.id="editor"+ ++C.$uid,this.session,this.$toDestroy=[];var I=S.getContainerElement();this.container=I,this.renderer=S,this.commands=new y(p.isMac?"mac":"win",_),typeof document=="object"&&(this.textInput=new o(S.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new u(this)),this.keyBinding=new l(this),this.$search=new d().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(N,D){D._$emitInputEvent.schedule(31)}),this.setSession(k||T&&T.session||new c("")),$.resetOptions(this),T&&this.setOptions(T),$._signal("editor",this)}return C.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},C.prototype.startOperation=function(S){this.session.startOperation(S)},C.prototype.endOperation=function(S){this.session.endOperation(S)},C.prototype.onStartOperation=function(S){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,S||(this.previousCommand=null)},C.prototype.onEndOperation=function(S){if(this.curOp&&this.session){if(S&&S.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var k=this.curOp.command,T=k&&k.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 I=this.selection.getRange(),N=this.renderer.layerConfig;(I.start.row>=N.lastRow||I.end.row<=N.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},C.prototype.$historyTracker=function(S){if(this.$mergeUndoDeltas){var k=this.prevOp,T=this.$mergeableCommands,I=k.command&&S.command.name==k.command.name;if(S.command.name=="insertstring"){var N=S.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),I=I&&this.mergeNextCommand&&(!/\s/.test(N)||/\s/.test(k.args)),this.mergeNextCommand=!0}else I=I&&T.indexOf(S.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(I=!1),I?this.session.mergeUndoDeltas=!0:T.indexOf(S.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},C.prototype.setKeyboardHandler=function(S,k){if(S&&typeof S=="string"&&S!="ace"){this.$keybindingId=S;var T=this;$.loadModule(["keybinding",S],function(I){T.$keybindingId==S&&T.keyBinding.setKeyboardHandler(I&&I.handler),k&&k()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(S),k&&k()},C.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},C.prototype.setSession=function(S){if(this.session!=S){this.curOp&&this.endOperation(),this.curOp={};var k=this.session;if(k){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.off("changeSelection",this.$onSelectionChange)}this.session=S,S?(this.$onDocumentChange=this.onDocumentChange.bind(this),S.on("change",this.$onDocumentChange),this.renderer.setSession(S),this.$onChangeMode=this.onChangeMode.bind(this),S.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),S.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),S.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),S.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),S.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),S.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=S.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(S)),this._signal("changeSession",{session:S,oldSession:k}),this.curOp=null,k&&k._signal("changeEditor",{oldEditor:this}),k&&(k.$editor=null),S&&S._signal("changeEditor",{editor:this}),S&&(S.$editor=this),S&&!S.destroyed&&S.bgTokenizer.scheduleStart()}},C.prototype.getSession=function(){return this.session},C.prototype.setValue=function(S,k){return this.session.doc.setValue(S),k?k==1?this.navigateFileEnd():k==-1&&this.navigateFileStart():this.selectAll(),S},C.prototype.getValue=function(){return this.session.getValue()},C.prototype.getSelection=function(){return this.selection},C.prototype.resize=function(S){this.renderer.onResize(S)},C.prototype.setTheme=function(S,k){this.renderer.setTheme(S,k)},C.prototype.getTheme=function(){return this.renderer.getTheme()},C.prototype.setStyle=function(S,k){this.renderer.setStyle(S,k)},C.prototype.unsetStyle=function(S){this.renderer.unsetStyle(S)},C.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},C.prototype.setFontSize=function(S){this.setOption("fontSize",S)},C.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var S=this;this.$highlightPending=!0,setTimeout(function(){S.$highlightPending=!1;var k=S.session;if(!(!k||k.destroyed)){k.$bracketHighlight&&(k.$bracketHighlight.markerIds.forEach(function(G){k.removeMarker(G)}),k.$bracketHighlight=null);var T=S.getCursorPosition(),I=S.getKeyboardHandler(),N=I&&I.$getDirectionForHighlight&&I.$getDirectionForHighlight(S),D=k.getMatchingBracketRanges(T,N);if(!D){var F=new w(k,T.row,T.column),H=F.getCurrentToken();if(H&&/\b(?:tag-open|tag-name)/.test(H.type)){var W=k.getMatchingTags(T);W&&(D=[W.openTagName.isEmpty()?W.openTag:W.openTagName,W.closeTagName.isEmpty()?W.closeTag:W.closeTagName])}}if(!D&&k.$mode.getMatching&&(D=k.$mode.getMatching(S.session)),!D){S.getHighlightIndentGuides()&&S.renderer.$textLayer.$highlightIndentGuide();return}var U="ace_bracket";Array.isArray(D)?D.length==1&&(U="ace_error_bracket"):D=[D],D.length==2&&(m.comparePoints(D[0].end,D[1].start)==0?D=[m.fromPoints(D[0].start,D[1].end)]:m.comparePoints(D[0].start,D[1].end)==0&&(D=[m.fromPoints(D[1].start,D[0].end)])),k.$bracketHighlight={ranges:D,markerIds:D.map(function(G){return k.addMarker(G,U,"text")})},S.getHighlightIndentGuides()&&S.renderer.$textLayer.$highlightIndentGuide()}},50)}},C.prototype.focus=function(){this.textInput.focus()},C.prototype.isFocused=function(){return this.textInput.isFocused()},C.prototype.blur=function(){this.textInput.blur()},C.prototype.onFocus=function(S){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",S))},C.prototype.onBlur=function(S){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",S))},C.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},C.prototype.onDocumentChange=function(S){var k=this.session.$useWrapMode,T=S.start.row==S.end.row?S.end.row:1/0;this.renderer.updateLines(S.start.row,T,k),this._signal("change",S),this.$cursorChange()},C.prototype.onTokenizerUpdate=function(S){var k=S.data;this.renderer.updateLines(k.first,k.last)},C.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},C.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},C.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},C.prototype.$updateHighlightActiveLine=function(){var S=this.getSession(),k;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(k=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(k=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(k=!1)),S.$highlightLineMarker&&!k)S.removeMarker(S.$highlightLineMarker.id),S.$highlightLineMarker=null;else if(!S.$highlightLineMarker&&k){var T=new m(k.row,k.column,k.row,1/0);T.id=S.addMarker(T,"ace_active-line","screenLine"),S.$highlightLineMarker=T}else k&&(S.$highlightLineMarker.start.row=k.row,S.$highlightLineMarker.end.row=k.row,S.$highlightLineMarker.start.column=k.column,S._signal("changeBackMarker"))},C.prototype.onSelectionChange=function(S){var k=this.session;if(k.$selectionMarker&&k.removeMarker(k.$selectionMarker),k.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),I=this.getSelectionStyle();k.$selectionMarker=k.addMarker(T,"ace_selection",I)}var N=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(N),this._signal("changeSelection")},C.prototype.$getSelectionHighLightRegexp=function(){var S=this.session,k=this.getSelectionRange();if(!(k.isEmpty()||k.isMultiLine())){var T=k.start.column,I=k.end.column,N=S.getLine(k.start.row),D=N.substring(T,I);if(!(D.length>5e3||!/[\w\d]/.test(D))){var F=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:D}),H=N.substring(T-1,I+1);if(F.test(H))return F}}},C.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},C.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},C.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},C.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},C.prototype.onChangeMode=function(S){this.renderer.updateText(),this._emit("changeMode",S)},C.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},C.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},C.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},C.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},C.prototype.getCopyText=function(){var S=this.getSelectedText(),k=this.session.doc.getNewLineCharacter(),T=!1;if(!S&&this.$copyWithEmptySelection){T=!0;for(var I=this.selection.getAllRanges(),N=0;N<I.length;N++){var D=I[N];N&&I[N-1].start.row==D.start.row||(S+=this.session.getLine(D.start.row)+k)}}var F={text:S};return this._signal("copy",F),R.lineMode=T?F.text:!1,F.text},C.prototype.onCopy=function(){this.commands.exec("copy",this)},C.prototype.onCut=function(){this.commands.exec("cut",this)},C.prototype.onPaste=function(S,k){var T={text:S,event:k};this.commands.exec("paste",this,T)},C.prototype.$handlePaste=function(S){typeof S=="string"&&(S={text:S}),this._signal("paste",S);var k=S.text,T=k===R.lineMode,I=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?I.insert({row:this.selection.lead.row,column:0},k):this.insert(k);else if(T)this.selection.rangeList.ranges.forEach(function(U){I.insert({row:U.start.row,column:0},k)});else{var N=k.split(/\r\n|\r|\n/),D=this.selection.rangeList.ranges,F=N.length==2&&(!N[0]||!N[1]);if(N.length!=D.length||F)return this.commands.exec("insertstring",this,k);for(var H=D.length;H--;){var W=D[H];W.isEmpty()||I.remove(W),I.insert(W.start,N[H])}}},C.prototype.execCommand=function(S,k){return this.commands.exec(S,this,k)},C.prototype.insert=function(S,k){var T=this.session,I=T.getMode(),N=this.getCursorPosition();if(this.getBehavioursEnabled()&&!k){var D=I.transformAction(T.getState(N.row),"insertion",this,T,S);D&&(S!==D.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),S=D.text)}if(S==" "&&(S=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&S.indexOf(`
|
833
|
+
`)==-1){var F=m.fromPoints(N,N);F.end.column+=S.length,this.session.remove(F)}}else{var F=this.getSelectionRange();N=this.session.remove(F),this.clearSelection()}if(S==`
|
834
|
+
`||S==`\r
|
835
|
+
`){var G=T.getLine(N.row);if(N.column>G.search(/\S|$/)){var H=G.substr(N.column).search(/\S|$/);T.doc.removeInLine(N.row,N.column,N.column+H)}}this.clearSelection();var W=N.column,U=T.getState(N.row),G=T.getLine(N.row),V=I.checkOutdent(U,G,S);if(T.insert(N,S),D&&D.selection&&(D.selection.length==2?this.selection.setSelectionRange(new m(N.row,W+D.selection[0],N.row,W+D.selection[1])):this.selection.setSelectionRange(new m(N.row+D.selection[0],D.selection[1],N.row+D.selection[2],D.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(S)){var j=I.getNextLineIndent(U,G.slice(0,N.column),T.getTabString());T.insert({row:N.row+1,column:0},j)}V&&I.autoOutdent(U,T,N.row)}},C.prototype.autoIndent=function(){for(var S=this.session,k=S.getMode(),T=this.selection.isEmpty()?[new m(0,0,S.doc.getLength()-1,0)]:this.selection.getAllRanges(),I="",N="",D="",F=S.getTabString(),H=0;H<T.length;H++)for(var W=T[H].start.row,U=T[H].end.row,G=W;G<=U;G++){G>0&&(I=S.getState(G-1),N=S.getLine(G-1),D=k.getNextLineIndent(I,N,F));var V=S.getLine(G),j=k.$getIndent(V);if(D!==j){if(j.length>0){var Z=new m(G,0,G,j.length);S.remove(Z)}D.length>0&&S.insert({row:G,column:0},D)}k.autoOutdent(I,S,G)}},C.prototype.onTextInput=function(S,k){if(!k)return this.keyBinding.onTextInput(S);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,S,k);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},C.prototype.applyComposition=function(S,k){if(k.extendLeft||k.extendRight){var T=this.selection.getRange();T.start.column-=k.extendLeft,T.end.column+=k.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!S&&!T.isEmpty()&&this.remove()}if((S||!this.selection.isEmpty())&&this.insert(S,!0),k.restoreStart||k.restoreEnd){var T=this.selection.getRange();T.start.column-=k.restoreStart,T.end.column-=k.restoreEnd,this.selection.setRange(T)}},C.prototype.onCommandKey=function(S,k,T){return this.keyBinding.onCommandKey(S,k,T)},C.prototype.setOverwrite=function(S){this.session.setOverwrite(S)},C.prototype.getOverwrite=function(){return this.session.getOverwrite()},C.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},C.prototype.setScrollSpeed=function(S){this.setOption("scrollSpeed",S)},C.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},C.prototype.setDragDelay=function(S){this.setOption("dragDelay",S)},C.prototype.getDragDelay=function(){return this.getOption("dragDelay")},C.prototype.setSelectionStyle=function(S){this.setOption("selectionStyle",S)},C.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},C.prototype.setHighlightActiveLine=function(S){this.setOption("highlightActiveLine",S)},C.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},C.prototype.setHighlightGutterLine=function(S){this.setOption("highlightGutterLine",S)},C.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},C.prototype.setHighlightSelectedWord=function(S){this.setOption("highlightSelectedWord",S)},C.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},C.prototype.setAnimatedScroll=function(S){this.renderer.setAnimatedScroll(S)},C.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},C.prototype.setShowInvisibles=function(S){this.renderer.setShowInvisibles(S)},C.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},C.prototype.setDisplayIndentGuides=function(S){this.renderer.setDisplayIndentGuides(S)},C.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},C.prototype.setHighlightIndentGuides=function(S){this.renderer.setHighlightIndentGuides(S)},C.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},C.prototype.setShowPrintMargin=function(S){this.renderer.setShowPrintMargin(S)},C.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},C.prototype.setPrintMarginColumn=function(S){this.renderer.setPrintMarginColumn(S)},C.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},C.prototype.setReadOnly=function(S){this.setOption("readOnly",S)},C.prototype.getReadOnly=function(){return this.getOption("readOnly")},C.prototype.setBehavioursEnabled=function(S){this.setOption("behavioursEnabled",S)},C.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},C.prototype.setWrapBehavioursEnabled=function(S){this.setOption("wrapBehavioursEnabled",S)},C.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},C.prototype.setShowFoldWidgets=function(S){this.setOption("showFoldWidgets",S)},C.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},C.prototype.setFadeFoldWidgets=function(S){this.setOption("fadeFoldWidgets",S)},C.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},C.prototype.remove=function(S){this.selection.isEmpty()&&(S=="left"?this.selection.selectLeft():this.selection.selectRight());var k=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,I=T.getState(k.start.row),N=T.getMode().transformAction(I,"deletion",this,T,k);if(k.end.column===0){var D=T.getTextRange(k);if(D[D.length-1]==`
|
836
|
+
`){var F=T.getLine(k.end.row);/^\s+$/.test(F)&&(k.end.column=F.length)}}N&&(k=N)}this.session.remove(k),this.clearSelection()},C.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var S=this.getSelectionRange();S.start.column==S.end.column&&S.start.row==S.end.row&&(S.end.column=0,S.end.row++),this.session.remove(S),this.clearSelection()},C.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var S=this.getCursorPosition();this.insert(`
|
837
|
+
`),this.moveCursorToPosition(S)},C.prototype.setGhostText=function(S,k){this.renderer.setGhostText(S,k)},C.prototype.removeGhostText=function(){this.renderer.removeGhostText()},C.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var S=this.getCursorPosition(),k=S.column;if(k!==0){var T=this.session.getLine(S.row),I,N;k<T.length?(I=T.charAt(k)+T.charAt(k-1),N=new m(S.row,k-1,S.row,k+1)):(I=T.charAt(k-1)+T.charAt(k-2),N=new m(S.row,k-2,S.row,k)),this.session.replace(N,I),this.session.selection.moveToPosition(N.end)}}},C.prototype.toLowerCase=function(){var S=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),T=this.session.getTextRange(k);this.session.replace(k,T.toLowerCase()),this.selection.setSelectionRange(S)},C.prototype.toUpperCase=function(){var S=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),T=this.session.getTextRange(k);this.session.replace(k,T.toUpperCase()),this.selection.setSelectionRange(S)},C.prototype.indent=function(){var S=this.session,k=this.getSelectionRange();if(k.start.row<k.end.row){var T=this.$getSelectedRows();S.indentRows(T.first,T.last," ");return}else if(k.start.column<k.end.column){var I=S.getTextRange(k);if(!/^\s+$/.test(I)){var T=this.$getSelectedRows();S.indentRows(T.first,T.last," ");return}}var N=S.getLine(k.start.row),D=k.start,F=S.getTabSize(),H=S.documentToScreenColumn(D.row,D.column);if(this.session.getUseSoftTabs())var W=F-H%F,U=s.stringRepeat(" ",W);else{for(var W=H%F;N[k.start.column-1]==" "&&W;)k.start.column--,W--;this.selection.setSelectionRange(k),U=" "}return this.insert(U)},C.prototype.blockIndent=function(){var S=this.$getSelectedRows();this.session.indentRows(S.first,S.last," ")},C.prototype.blockOutdent=function(){var S=this.session.getSelection();this.session.outdentRows(S.getRange())},C.prototype.sortLines=function(){for(var S=this.$getSelectedRows(),k=this.session,T=[],I=S.first;I<=S.last;I++)T.push(k.getLine(I));T.sort(function(F,H){return F.toLowerCase()<H.toLowerCase()?-1:F.toLowerCase()>H.toLowerCase()?1:0});for(var N=new m(0,0,0,0),I=S.first;I<=S.last;I++){var D=k.getLine(I);N.start.row=I,N.end.row=I,N.end.column=D.length,k.replace(N,T[I-S.first])}},C.prototype.toggleCommentLines=function(){var S=this.session.getState(this.getCursorPosition().row),k=this.$getSelectedRows();this.session.getMode().toggleCommentLines(S,this.session,k.first,k.last)},C.prototype.toggleBlockComment=function(){var S=this.getCursorPosition(),k=this.session.getState(S.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(k,this.session,T,S)},C.prototype.getNumberAt=function(S,k){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var I=this.session.getLine(S);T.lastIndex<k;){var N=T.exec(I);if(N.index<=k&&N.index+N[0].length>=k){var D={value:N[0],start:N.index,end:N.index+N[0].length};return D}}return null},C.prototype.modifyNumber=function(S){var k=this.selection.getCursor().row,T=this.selection.getCursor().column,I=new m(k,T-1,k,T),N=this.session.getTextRange(I);if(!isNaN(parseFloat(N))&&isFinite(N)){var D=this.getNumberAt(k,T);if(D){var F=D.value.indexOf(".")>=0?D.start+D.value.indexOf(".")+1:D.end,H=D.start+D.value.length-F,W=parseFloat(D.value);W*=Math.pow(10,H),F!==D.end&&T<F?S*=Math.pow(10,D.end-T-1):S*=Math.pow(10,D.end-T),W+=S,W/=Math.pow(10,H);var U=W.toFixed(H),G=new m(k,D.start,k,D.end);this.session.replace(G,U),this.moveCursorTo(k,Math.max(D.start+1,T+U.length-D.value.length))}}else this.toggleWord()},C.prototype.toggleWord=function(){var S=this.selection.getCursor().row,k=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),I=this.selection.getWordRange().start.column,N=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),D=k-I-1;D<0&&(D=0);var F=0,H=0,W=this;T.match(/[A-Za-z0-9_]+/)&&N.forEach(function(z,B){H=F+z.length,D>=F&&D<=H&&(T=z,W.selection.clearSelection(),W.moveCursorTo(S,F+I),W.selection.selectTo(S,H+I)),F=H});for(var U=this.$toggleWordPairs,G,V=0;V<U.length;V++)for(var j=U[V],Z=0;Z<=1;Z++){var X=+!Z,Q=T.match(new RegExp("^\\s?_?("+s.escapeRegExp(j[Z])+")\\s?$","i"));if(Q){var le=T.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(Q[1])+")($|\\s)","g"));le&&(G=T.replace(new RegExp(s.escapeRegExp(j[Z]),"i"),function(z){var B=j[X];return z.toUpperCase()==z?B=B.toUpperCase():z.charAt(0).toUpperCase()==z.charAt(0)&&(B=B.substr(0,0)+j[X].charAt(0).toUpperCase()+B.substr(1)),B}),this.insert(G),G="")}}},C.prototype.findLinkAt=function(S,k){var T,I,N=this.session.getLine(S),D=N.split(/((?:https?|ftp):\/\/[\S]+)/),F=k;F<0&&(F=0);var H=0,W=0,U;try{for(var G=h(D),V=G.next();!V.done;V=G.next()){var j=V.value;if(W=H+j.length,F>=H&&F<=W&&j.match(/((?:https?|ftp):\/\/[\S]+)/)){U=j.replace(/[\s:.,'";}\]]+$/,"");break}H=W}}catch(Z){T={error:Z}}finally{try{V&&!V.done&&(I=G.return)&&I.call(G)}finally{if(T)throw T.error}}return U},C.prototype.openLink=function(){var S=this.selection.getCursor(),k=this.findLinkAt(S.row,S.column);return k&&window.open(k,"_blank"),k!=null},C.prototype.removeLines=function(){var S=this.$getSelectedRows();this.session.removeFullLines(S.first,S.last),this.clearSelection()},C.prototype.duplicateSelection=function(){var S=this.selection,k=this.session,T=S.getRange(),I=S.isBackwards();if(T.isEmpty()){var N=T.start.row;k.duplicateLines(N,N)}else{var D=I?T.start:T.end,F=k.insert(D,k.getTextRange(T));T.start=D,T.end=F,S.setSelectionRange(T,I)}},C.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},C.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},C.prototype.moveText=function(S,k,T){return this.session.moveText(S,k,T)},C.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},C.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},C.prototype.$moveLines=function(S,k){var T,I,N=this.selection;if(!N.inMultiSelectMode||this.inVirtualSelectionMode){var D=N.toOrientedRange();T=this.$getSelectedRows(D),I=this.session.$moveLines(T.first,T.last,k?0:S),k&&S==-1&&(I=0),D.moveBy(I,0),N.fromOrientedRange(D)}else{var F=N.rangeList.ranges;N.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var H=0,W=0,U=F.length,G=0;G<U;G++){var V=G;F[G].moveBy(H,0),T=this.$getSelectedRows(F[G]);for(var j=T.first,Z=T.last;++G<U;){W&&F[G].moveBy(W,0);var X=this.$getSelectedRows(F[G]);if(k&&X.first!=Z)break;if(!k&&X.first>Z+1)break;Z=X.last}for(G--,H=this.session.$moveLines(j,Z,k?0:S),k&&S==-1&&(V=G+1);V<=G;)F[V].moveBy(H,0),V++;k||(H=0),W+=H}N.fromOrientedRange(N.ranges[0]),N.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},C.prototype.$getSelectedRows=function(S){return S=(S||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(S.start.row),last:this.session.getRowFoldEnd(S.end.row)}},C.prototype.onCompositionStart=function(S){this.renderer.showComposition(S)},C.prototype.onCompositionUpdate=function(S){this.renderer.setCompositionText(S)},C.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},C.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},C.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},C.prototype.isRowVisible=function(S){return S>=this.getFirstVisibleRow()&&S<=this.getLastVisibleRow()},C.prototype.isRowFullyVisible=function(S){return S>=this.renderer.getFirstFullyVisibleRow()&&S<=this.renderer.getLastFullyVisibleRow()},C.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},C.prototype.$moveByPage=function(S,k){var T=this.renderer,I=this.renderer.layerConfig,N=S*Math.floor(I.height/I.lineHeight);k===!0?this.selection.$moveSelection(function(){this.moveCursorBy(N,0)}):k===!1&&(this.selection.moveCursorBy(N,0),this.selection.clearSelection());var D=T.scrollTop;T.scrollBy(0,N*I.lineHeight),k!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(D)},C.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},C.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},C.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},C.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},C.prototype.scrollPageDown=function(){this.$moveByPage(1)},C.prototype.scrollPageUp=function(){this.$moveByPage(-1)},C.prototype.scrollToRow=function(S){this.renderer.scrollToRow(S)},C.prototype.scrollToLine=function(S,k,T,I){this.renderer.scrollToLine(S,k,T,I)},C.prototype.centerSelection=function(){var S=this.getSelectionRange(),k={row:Math.floor(S.start.row+(S.end.row-S.start.row)/2),column:Math.floor(S.start.column+(S.end.column-S.start.column)/2)};this.renderer.alignCursor(k,.5)},C.prototype.getCursorPosition=function(){return this.selection.getCursor()},C.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},C.prototype.getSelectionRange=function(){return this.selection.getRange()},C.prototype.selectAll=function(){this.selection.selectAll()},C.prototype.clearSelection=function(){this.selection.clearSelection()},C.prototype.moveCursorTo=function(S,k){this.selection.moveCursorTo(S,k)},C.prototype.moveCursorToPosition=function(S){this.selection.moveCursorToPosition(S)},C.prototype.jumpToMatching=function(S,k){var T=this.getCursorPosition(),I=new w(this.session,T.row,T.column),N=I.getCurrentToken(),D=0;N&&N.type.indexOf("tag-name")!==-1&&(N=I.stepBackward());var F=N||I.stepForward();if(F){var H,W=!1,U={},G=T.column-F.start,V,j={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(F.value.match(/[{}()\[\]]/g)){for(;G<F.value.length&&!W;G++)if(j[F.value[G]])switch(V=j[F.value[G]]+"."+F.type.replace("rparen","lparen"),isNaN(U[V])&&(U[V]=0),F.value[G]){case"(":case"[":case"{":U[V]++;break;case")":case"]":case"}":U[V]--,U[V]===-1&&(H="bracket",W=!0);break}}else F.type.indexOf("tag-name")!==-1&&(isNaN(U[F.value])&&(U[F.value]=0),N.value==="<"&&D>1?U[F.value]++:N.value==="</"&&U[F.value]--,U[F.value]===-1&&(H="tag",W=!0));W||(N=F,D++,F=I.stepForward(),G=0)}while(F&&!W);if(H){var Z,X;if(H==="bracket")Z=this.session.getBracketRange(T),Z||(Z=new m(I.getCurrentTokenRow(),I.getCurrentTokenColumn()+G-1,I.getCurrentTokenRow(),I.getCurrentTokenColumn()+G-1),X=Z.start,(k||X.row===T.row&&Math.abs(X.column-T.column)<2)&&(Z=this.session.getBracketRange(X)));else if(H==="tag"){if(!F||F.type.indexOf("tag-name")===-1)return;if(Z=new m(I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2,I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2),Z.compare(T.row,T.column)===0){var Q=this.session.getMatchingTags(T);Q&&(Q.openTag.contains(T.row,T.column)?(Z=Q.closeTag,X=Z.start):(Z=Q.openTag,Q.closeTag.start.row===T.row&&Q.closeTag.start.column===T.column?X=Z.end:X=Z.start))}X=X||Z.start}X=Z&&Z.cursor||X,X&&(S?Z&&k?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))}}},C.prototype.gotoLine=function(S,k,T){this.selection.clearSelection(),this.session.unfold({row:S-1,column:k||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(S-1,k||0),this.isRowFullyVisible(S-1)||this.scrollToLine(S-1,!0,T)},C.prototype.navigateTo=function(S,k){this.selection.moveTo(S,k)},C.prototype.navigateUp=function(S){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(-S||-1,0)},C.prototype.navigateDown=function(S){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(S||1,0)},C.prototype.navigateLeft=function(S){if(this.selection.isEmpty())for(S=S||1;S--;)this.selection.moveCursorLeft();else{var k=this.getSelectionRange().start;this.moveCursorToPosition(k)}this.clearSelection()},C.prototype.navigateRight=function(S){if(this.selection.isEmpty())for(S=S||1;S--;)this.selection.moveCursorRight();else{var k=this.getSelectionRange().end;this.moveCursorToPosition(k)}this.clearSelection()},C.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},C.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},C.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},C.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},C.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},C.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},C.prototype.replace=function(S,k){k&&this.$search.set(k);var T=this.$search.find(this.session),I=0;return T&&(this.$tryReplace(T,S)&&(I=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),I},C.prototype.replaceAll=function(S,k){k&&this.$search.set(k);var T=this.$search.findAll(this.session),I=0;if(!T.length)return I;var N=this.getSelectionRange();this.selection.moveTo(0,0);for(var D=T.length-1;D>=0;--D)this.$tryReplace(T[D],S)&&I++;return this.selection.setSelectionRange(N),I},C.prototype.$tryReplace=function(S,k){var T=this.session.getTextRange(S);return k=this.$search.replace(T,k),k!==null?(S.end=this.session.replace(S,k),S):null},C.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},C.prototype.find=function(S,k,T){k||(k={}),typeof S=="string"||S instanceof RegExp?k.needle=S:typeof S=="object"&&f.mixin(k,S);var I=this.selection.getRange();k.needle==null&&(S=this.session.getTextRange(I)||this.$search.$options.needle,S||(I=this.session.getWordRange(I.start.row,I.start.column),S=this.session.getTextRange(I)),this.$search.set({needle:S})),this.$search.set(k),k.start||this.$search.set({start:I});var N=this.$search.find(this.session);if(k.preventScroll)return N;if(N)return this.revealRange(N,T),N;k.backwards?I.start=I.end:I.end=I.start,this.selection.setRange(I)},C.prototype.findNext=function(S,k){this.find({skipCurrent:!0,backwards:!1},S,k)},C.prototype.findPrevious=function(S,k){this.find(S,{skipCurrent:!0,backwards:!0},k)},C.prototype.revealRange=function(S,k){this.session.unfold(S),this.selection.setSelectionRange(S);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(S.start,S.end,.5),k!==!1&&this.renderer.animateScrolling(T)},C.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(S){S.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},C.prototype.setAutoScrollEditorIntoView=function(S){if(S){var k,T=this,I=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var N=this.$scrollAnchor;N.style.cssText="position:absolute",this.container.insertBefore(N,this.container.firstChild);var D=this.on("changeSelection",function(){I=!0}),F=this.renderer.on("beforeRender",function(){I&&(k=T.renderer.container.getBoundingClientRect())}),H=this.renderer.on("afterRender",function(){if(I&&k&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var W=T.renderer,U=W.$cursorLayer.$pixelPos,G=W.layerConfig,V=U.top-G.offset;U.top>=0&&V+k.top<0?I=!0:U.top<G.height&&U.top+k.top+G.lineHeight>window.innerHeight?I=!1:I=null,I!=null&&(N.style.top=V+"px",N.style.left=U.left+"px",N.style.height=G.lineHeight+"px",N.scrollIntoView(I)),I=k=null}});this.setAutoScrollEditorIntoView=function(W){W||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",D),this.renderer.off("afterRender",H),this.renderer.off("beforeRender",F))}}},C.prototype.$resetCursorStyle=function(){var S=this.$cursorStyle||"ace",k=this.renderer.$cursorLayer;k&&(k.setSmoothBlinking(/smooth/.test(S)),k.isBlinking=!this.$readOnly&&S!="wide",g.setCssClass(k.element,"ace_slim-cursors",/slim/.test(S)))},C.prototype.prompt=function(S,k,T){var I=this;$.loadModule("ace/ext/prompt",function(N){N.prompt(I,S,k,T)})},C}();M.$uid=0,M.prototype.curOp=null,M.prototype.prevOp={},M.prototype.$mergeableCommands=["backspace","del","insertstring"],M.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],f.implement(M.prototype,v),$.defineOptions(M.prototype,"editor",{selectionStyle:{set:function(C){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:C})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(C){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(C){var S=this;if(this.textInput.setReadOnly(C),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(T){var I=!1;if(T&&T.type=="keydown"){if(T&&T.key&&!T.ctrlKey&&!T.metaKey&&(T.key==" "&&T.preventDefault(),I=T.key.length==1),!I)return}else T&&T.type!=="exec"&&(I=!0);if(I){S.hoverTooltip||(S.hoverTooltip=new O);var N=g.createElement("div");N.textContent=A("editor.tooltip.disable-editing","Editing is disabled"),S.hoverTooltip.isOpen||S.hoverTooltip.showForRange(S,S.getSelectionRange(),N)}else S.hoverTooltip&&S.hoverTooltip.isOpen&&S.hoverTooltip.hide()});var k=this.textInput.getElement();C?(L.addListener(k,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(L.removeListener(k,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback),this.hoverTooltip&&(this.hoverTooltip.destroy(),this.hoverTooltip=null))}},initialValue:!1},copyWithEmptySelection:{set:function(C){this.textInput.setCopyWithEmptySelection(C)},initialValue:!1},cursorStyle:{set:function(C){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(C){this.setAutoScrollEditorIntoView(C)}},keyboardHandler:{set:function(C){this.setKeyboardHandler(C)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(C){this.session.setValue(C)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(C){this.setSession(C)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(C){this.renderer.$gutterLayer.setShowLineNumbers(C),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),C&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(C){this.$showLineNumbers&&C?x.attach(this):x.detach(this)}},placeholder:{set:function(C){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var S=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(S&&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(!S&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var k=g.createElement("div");k.className="ace_placeholder",k.textContent=this.$placeholder||"",this.renderer.placeholderNode=k,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!S&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(C){var S={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(I){I.blur(),I.renderer.scroller.focus()},readOnly:!0},k=function(I){if(I.target==this.renderer.scroller&&I.keyCode===E.enter){I.preventDefault();var N=this.getCursorPosition().row;this.isRowVisible(N)||this.scrollToLine(N,!0,!0),this.focus()}},T;C?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",A("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",A("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",k.bind(this)),this.commands.addCommand(S),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",A("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",A("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),T||(T=new b(this)),T.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",k.bind(this)),this.commands.removeCommand(S),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},textInputAriaLabel:{set:function(C){this.$textInputAriaLabel=C},initialValue:""},enableMobileMenu:{set:function(C){this.$enableMobileMenu=C},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(C,S){return(Math.abs(C.selection.lead.row-S)||S+1+(S<9?"·":""))+""},getWidth:function(C,S,k){return Math.max(S.toString().length,(k.lastRow+1).toString().length,2)*k.characterWidth},update:function(C,S){S.renderer.$loop.schedule(S.renderer.CHANGE_GUTTER)},attach:function(C){C.renderer.$gutterLayer.$renderer=this,C.on("changeSelection",this.update),this.update(null,C)},detach:function(C){C.renderer.$gutterLayer.$renderer==this&&(C.renderer.$gutterLayer.$renderer=null),C.off("changeSelection",this.update),this.update(null,C)}};r.Editor=M}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=function(){function g(s,p){this.element=s,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(s){h.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(s,p){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,p,o){var a=p.firstRowScreen*p.lineHeight,u=Math.floor(a/this.canvasHeight),l=o.documentToScreenRow(s,0)*p.lineHeight;return l-u*this.canvasHeight},g.prototype.computeLineHeight=function(s,p,o){return p.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 p=h.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.appendChild(p)}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 p=h.createFragment(this.element),o=0;o<s.length;o++)p.appendChild(s[o].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}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,p,o,a){var u=this.cellCache.pop();if(!u){var l=h.createElement("div");a&&a(l),this.element.appendChild(l),u={element:l,text:"",row:s}}return u.row=s,u},g}();r.Lines=f}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/lang"),s=n("../lib/event_emitter").EventEmitter,p=n("./lines").Lines,o=n("../config").nls,a=function(){function l(c){this.element=h.createElement("div"),this.element.className="ace_layer ace_gutter-layer",c.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new p(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(c){this.session&&this.session.off("change",this.$updateAnnotations),this.session=c,c&&c.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(c,d){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(c,d)},l.prototype.removeGutterDecoration=function(c,d){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(c,d)},l.prototype.setAnnotations=function(c){this.$annotations=[];for(var d=0;d<c.length;d++){var m=c[d],v=m.row,y=this.$annotations[v];y||(y=this.$annotations[v]={text:[],type:[],displayText:[]});var _=m.text,$=m.text,w=m.type;_=_?g.escapeHTML(_):m.html||"",$=$||m.html||"",y.text.indexOf(_)===-1&&(y.text.push(_),y.type.push(w),y.displayText.push($));var b=m.className;b?y.className=b:w==="error"?y.className=" ace_error":w==="security"&&!/\bace_error\b/.test(y.className)?y.className=" ace_security":w==="warning"&&!/\bace_(error|security)\b/.test(y.className)?y.className=" ace_warning":w==="info"&&!y.className?y.className=" ace_info":w==="hint"&&!y.className&&(y.className=" ace_hint")}},l.prototype.$updateAnnotations=function(c){if(this.$annotations.length){var d=c.start.row,m=c.end.row-d;if(m!==0)if(c.action=="remove")this.$annotations.splice(d,m+1,null);else{var v=new Array(m+1);v.unshift(d,1),this.$annotations.splice.apply(this.$annotations,v)}}},l.prototype.update=function(c){this.config=c;var d=this.session,m=c.firstRow,v=Math.min(c.lastRow+c.gutterOffset,d.getLength()-1);this.oldLastRow=v,this.config=c,this.$lines.moveContainer(c),this.$updateCursorRow();for(var y=d.getNextFoldLine(m),_=y?y.start.row:1/0,$=null,w=-1,b=m;;){if(b>_&&(b=y.end.row+1,y=d.getNextFoldLine(b,y),_=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>w+1;)this.$lines.pop();break}$=this.$lines.get(++w),$?$.row=b:($=this.$lines.createCell(b,c,this.session,u),this.$lines.push($)),this.$renderCell($,c,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(c)},l.prototype.$updateGutterWidth=function(c){var d=this.session,m=d.gutterRenderer||this.$renderer,v=d.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||d.$useWrapMode)&&(y=d.getLength()+v-1);var _=m?m.getWidth(d,y,c):y.toString().length*c.characterWidth,$=this.$padding||this.$computePadding();_+=$.left+$.right,_!==this.gutterWidth&&!isNaN(_)&&(this.gutterWidth=_,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",_))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var c=this.session.selection.getCursor();this.$cursorRow!==c.row&&(this.$cursorRow=c.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var c=this.session.selection.cursor.row;if(this.$cursorRow=c,!(this.$cursorCell&&this.$cursorCell.row==c)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var d=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<d.length;m++){var v=d[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==d[m-1].row)v=d[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},l.prototype.scrollLines=function(c){var d=this.config;if(this.config=c,this.$updateCursorRow(),this.$lines.pageChanged(d,c))return this.update(c);this.$lines.moveContainer(c);var m=Math.min(c.lastRow+c.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!d||v<c.firstRow)return this.update(c);if(m<d.firstRow)return this.update(c);if(d.firstRow<c.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,c.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();c.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLines(c,c.firstRow,d.firstRow-1)),m>v&&this.$lines.push(this.$renderLines(c,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(c)},l.prototype.$renderLines=function(c,d,m){for(var v=[],y=d,_=this.session.getNextFoldLine(y),$=_?_.start.row:1/0;y>$&&(y=_.end.row+1,_=this.session.getNextFoldLine(y,_),$=_?_.start.row:1/0),!(y>m);){var w=this.$lines.createCell(y,c,this.session,u);this.$renderCell(w,c,_,y),v.push(w),y++}return v},l.prototype.$renderCell=function(c,d,m,v){var y=c.element,_=this.session,$=y.childNodes[0],w=y.childNodes[1],b=y.childNodes[2],A=y.childNodes[3],R=b.firstChild,E=_.$firstLineNumber,L=_.$breakpoints,O=_.$decorations,M=_.gutterRenderer||this.$renderer,x=this.$showFoldWidgets&&_.foldWidgets,C=m?m.start.row:Number.MAX_VALUE,S=d.lineHeight+"px",k=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=(M?M.getText(_,v):v+E).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v<this.$cursorRow&&v>=C&&this.$cursorRow<=m.end.row)&&(k+="ace_gutter-active-line ",this.$cursorCell!=c&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=c)),L[v]&&(k+=L[v]),O[v]&&(k+=O[v]),this.$annotations[v]&&v!==C&&(k+=this.$annotations[v].className),x){var N=x[v];N==null&&(N=x[v]=_.getFoldWidget(v))}if(N){var D="ace_fold-widget ace_"+N,F=N=="start"&&v==C&&v<m.end.row;if(F){D+=" ace_closed";for(var H="",W=!1,U=v+1;U<=m.end.row;U++)if(this.$annotations[U]){if(this.$annotations[U].className===" ace_error"){W=!0,H=" ace_error_fold";break}this.$annotations[U].className===" ace_security"?(W=!0,H=" ace_security_fold"):this.$annotations[U].className===" ace_warning"&&H!==" ace_security_fold"&&(W=!0,H=" ace_warning_fold")}k+=H}else D+=" ace_open";w.className!=D&&(w.className=D),h.setStyle(w.style,"height",S),h.setStyle(w.style,"display","inline-block"),w.setAttribute("role","button"),w.setAttribute("tabindex","-1");var G=_.getFoldWidgetRange(v);G?w.setAttribute("aria-label",o("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[G.start.row+1,G.end.row+1])):m?w.setAttribute("aria-label",o("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):w.setAttribute("aria-label",o("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[v+1])),F?(w.setAttribute("aria-expanded","false"),w.setAttribute("title",o("gutter.code-folding.closed.title","Unfold code"))):(w.setAttribute("aria-expanded","true"),w.setAttribute("title",o("gutter.code-folding.open.title","Fold code")))}else w&&(h.setStyle(w.style,"display","none"),w.setAttribute("tabindex","0"),w.removeAttribute("role"),w.removeAttribute("aria-label"));var V=this.session.$gutterCustomWidgets[v];if(V?this.$addCustomWidget(v,V,c):A&&this.$removeCustomWidget(v,c),W&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",R.className=T,R.className+=H,h.setStyle(R.style,"height",S),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",S);var j;switch(H){case" ace_error_fold":j=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[I]);break;case" ace_security_fold":j=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[I]);break;case" ace_warning_fold":j=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[I]);break}b.setAttribute("aria-label",j),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[v]){b.className="ace_gutter_annotation",R.className=T,this.$useSvgGutterIcons?R.className+=this.$annotations[v].className:y.classList.add(this.$annotations[v].className.replace(" ","")),h.setStyle(R.style,"height",S),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",S);var j;switch(this.$annotations[v].className){case" ace_error":j=o("gutter.annotation.aria-label.error","Error, read annotations row $0",[I]);break;case" ace_security":j=o("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[I]);break;case" ace_warning":j=o("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[I]);break;case" ace_info":j=o("gutter.annotation.aria-label.info","Info, read annotations row $0",[I]);break;case" ace_hint":j=o("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[I]);break}b.setAttribute("aria-label",j),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else h.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return I!==$.data&&($.data=I),y.className!=k&&(y.className=k),h.setStyle(c.element.style,"height",this.$lines.computeLineHeight(v,d,_)+"px"),h.setStyle(c.element.style,"top",this.$lines.computeLineTop(v,d,_)+"px"),c.text=I,b.style.display==="none"&&w.style.display==="none"&&!V?c.element.setAttribute("aria-hidden",!0):c.element.setAttribute("aria-hidden",!1),c},l.prototype.setHighlightGutterLine=function(c){this.$highlightGutterLine=c},l.prototype.setShowLineNumbers=function(c){this.$renderer=!c&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(c){c?h.addCssClass(this.element,"ace_folding-enabled"):h.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=c,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$hideFoldWidget=function(c,d){var m=d||this.$getGutterCell(c);if(m&&m.element){var v=m.element.childNodes[1];v&&h.setStyle(v.style,"display","none")}},l.prototype.$showFoldWidget=function(c,d){var m=d||this.$getGutterCell(c);if(m&&m.element){var v=m.element.childNodes[1];v&&this.session.foldWidgets&&this.session.foldWidgets[m.row]&&h.setStyle(v.style,"display","inline-block")}},l.prototype.$getGutterCell=function(c){var d=this.$lines.cells,m=this.session.documentToScreenRow(c,0);return d[c-this.config.firstRowScreen-(c-m)]},l.prototype.$addCustomWidget=function(c,d,m){var v=d.className,y=d.label,_=d.title,$=d.callbacks;this.session.$gutterCustomWidgets[c]={className:v,label:y,title:_,callbacks:$},this.$hideFoldWidget(c,m);var w=m||this.$getGutterCell(c);if(w&&w.element){var b=w.element.querySelector(".ace_custom-widget");b&&b.remove(),b=h.createElement("span"),b.className="ace_custom-widget ".concat(v),b.setAttribute("tabindex","-1"),b.setAttribute("role","button"),b.setAttribute("aria-label",y),b.setAttribute("title",_),h.setStyle(b.style,"display","inline-block"),h.setStyle(b.style,"height","inherit"),$&&$.onClick&&b.addEventListener("click",function(A){$.onClick(A,c),A.stopPropagation()}),w.element.appendChild(b)}},l.prototype.$removeCustomWidget=function(c,d){delete this.session.$gutterCustomWidgets[c],this.$showFoldWidget(c,d);var m=d||this.$getGutterCell(c);if(m&&m.element){var v=m.element.querySelector(".ace_custom-widget");v&&m.element.removeChild(v)}},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var c=h.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(c.borderLeftWidth)||0)+(parseInt(c.paddingLeft)||0)+1,this.$padding.right=(parseInt(c.borderRightWidth)||0)+(parseInt(c.paddingRight)||0),this.$padding},l.prototype.getRegion=function(c){var d=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(c.x<d.left+m.left)return"markers";if(this.$showFoldWidgets&&c.x>m.right-d.right)return"foldWidgets"},l}();a.prototype.$fixedWidth=!1,a.prototype.$highlightGutterLine=!0,a.prototype.$renderer="",a.prototype.$showLineNumbers=!0,a.prototype.$showFoldWidgets=!0,f.implement(a.prototype,s);function u(l){var c=document.createTextNode("");l.appendChild(c);var d=h.createElement("span");l.appendChild(d);var m=h.createElement("span");l.appendChild(m);var v=h.createElement("span");return m.appendChild(v),l}r.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,i){var h=n("../range").Range,f=n("../lib/dom"),g=function(){function p(o){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,a){var u=this.i!=-1&&this.element.childNodes[this.i];u?this.i++:(u=document.createElement("div"),this.element.appendChild(u),this.i=-1),u.style.cssText=a,u.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var a;for(var u in this.markers){var l=this.markers[u];if(!l.range){l.update(a,this,this.session,o);continue}var c=l.range.clipRows(o.firstRow,o.lastRow);if(!c.isEmpty())if(c=c.toScreenRange(this.session),l.renderer){var d=this.$getTop(c.start.row,o),m=this.$padding+c.start.column*o.characterWidth;l.renderer(a,c,m,d,o)}else l.type=="fullLine"?this.drawFullLineMarker(a,c,l.clazz,o):l.type=="screenLine"?this.drawScreenLineMarker(a,c,l.clazz,o):c.isMultiLine()?l.type=="text"?this.drawTextMarker(a,c,l.clazz,o):this.drawMultiLineMarker(a,c,l.clazz,o):this.drawSingleLineMarker(a,c,l.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(o,a){return(o-a.firstRowScreen)*a.lineHeight},p.prototype.drawTextMarker=function(o,a,u,l,c){for(var d=this.session,m=a.start.row,v=a.end.row,y=m,_=0,$=0,w=d.getScreenLastRowColumn(y),b=new h(y,a.start.column,y,$);y<=v;y++)b.start.row=b.end.row=y,b.start.column=y==m?a.start.column:d.getRowWrapIndent(y),b.end.column=w,_=$,$=w,w=y+1<v?d.getScreenLastRowColumn(y+1):y==v?0:a.end.column,this.drawSingleLineMarker(o,b,u+(y==m?" ace_start":"")+" ace_br"+s(y==m||y==m+1&&a.start.column,_<$,$>w,y==v),l,y==v?0:1,c)},p.prototype.drawMultiLineMarker=function(o,a,u,l,c){var d=this.$padding,m=l.lineHeight,v=this.$getTop(a.start.row,l),y=d+a.start.column*l.characterWidth;if(c=c||"",this.session.$bidiHandler.isBidiRow(a.start.row)){var _=a.clone();_.end.row=_.start.row,_.end.column=this.session.getLine(_.start.row).length,this.drawBidiSingleLineMarker(o,_,u+" ace_br1 ace_start",l,null,c)}else this.elt(u+" ace_br1 ace_start","height:"+m+"px;right:"+d+"px;top:"+v+"px;left:"+y+"px;"+(c||""));if(this.session.$bidiHandler.isBidiRow(a.end.row)){var _=a.clone();_.start.row=_.end.row,_.start.column=0,this.drawBidiSingleLineMarker(o,_,u+" ace_br12",l,null,c)}else{v=this.$getTop(a.end.row,l);var $=a.end.column*l.characterWidth;this.elt(u+" ace_br12","height:"+m+"px;width:"+$+"px;top:"+v+"px;left:"+d+"px;"+(c||""))}if(m=(a.end.row-a.start.row-1)*l.lineHeight,!(m<=0)){v=this.$getTop(a.start.row+1,l);var w=(a.start.column?1:0)|(a.end.column?0:8);this.elt(u+(w?" ace_br"+w:""),"height:"+m+"px;right:"+d+"px;top:"+v+"px;left:"+d+"px;"+(c||""))}},p.prototype.drawSingleLineMarker=function(o,a,u,l,c,d){if(this.session.$bidiHandler.isBidiRow(a.start.row))return this.drawBidiSingleLineMarker(o,a,u,l,c,d);var m=l.lineHeight,v=(a.end.column+(c||0)-a.start.column)*l.characterWidth,y=this.$getTop(a.start.row,l),_=this.$padding+a.start.column*l.characterWidth;this.elt(u,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+_+"px;"+(d||""))},p.prototype.drawBidiSingleLineMarker=function(o,a,u,l,c,d){var m=l.lineHeight,v=this.$getTop(a.start.row,l),y=this.$padding,_=this.session.$bidiHandler.getSelections(a.start.column,a.end.column);_.forEach(function($){this.elt(u,"height:"+m+"px;width:"+($.width+(c||0))+"px;top:"+v+"px;left:"+(y+$.left)+"px;"+(d||""))},this)},p.prototype.drawFullLineMarker=function(o,a,u,l,c){var d=this.$getTop(a.start.row,l),m=l.lineHeight;a.start.row!=a.end.row&&(m+=this.$getTop(a.end.row,l)-d),this.elt(u,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(c||""))},p.prototype.drawScreenLineMarker=function(o,a,u,l,c){var d=this.$getTop(a.start.row,l),m=l.lineHeight;this.elt(u,"height:"+m+"px;top:"+d+"px;left:0;right:0;"+(c||""))},p}();g.prototype.$padding=0;function s(p,o,a,u){return(p?1:0)|(o?2:0)|(a?4:0)|(u?8:0)}r.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,i){var h=new Set(["text","rparen","lparen"]);r.isTextToken=function(f){return h.has(f)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,i){var h=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,a=n("./text_util").isTextToken,u=function(){function l(c){this.dom=f,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",c.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return l.prototype.$updateEolChar=function(){var c=this.session.doc,d=c.getNewLineCharacter()==`
|
838
|
+
`&&c.getNewLineMode()!="windows",m=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},l.prototype.setPadding=function(c){this.$padding=c,this.element.style.margin="0 "+c+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(c){this.$fontMetrics=c,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(c){this.session=c,c&&this.$computeTabString()},l.prototype.setShowInvisibles=function(c){return this.showInvisibles==c?!1:(this.showInvisibles=c,typeof c=="string"?(this.showSpaces=/tab/i.test(c),this.showTabs=/space/i.test(c),this.showEOL=/eol/i.test(c)):this.showSpaces=this.showTabs=this.showEOL=c,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(c){return this.displayIndentGuides==c?!1:(this.displayIndentGuides=c,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(c){return this.$highlightIndentGuides===c?!1:(this.$highlightIndentGuides=c,c)},l.prototype.$computeTabString=function(){var c=this.session.getTabSize();this.tabSize=c;for(var d=this.$tabStrings=[0],m=1;m<c+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),d.push(v)}else d.push(this.dom.createTextNode(g.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",_=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?g.stringRepeat(this.SPACE_CHAR,this.tabSize):g.stringRepeat(" ",this.tabSize),w=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?g.stringRepeat(this.TAB_CHAR,this.tabSize):$,v=this.dom.createElement("span");v.className=y+_,v.textContent=$,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=y+w,v.textContent=b,this.$tabStrings[" "]=v}},l.prototype.updateLines=function(c,d,m){if(this.config.lastRow!=c.lastRow||this.config.firstRow!=c.firstRow)return this.update(c);this.config=c;for(var v=Math.max(d,c.firstRow),y=Math.min(m,c.lastRow),_=this.element.childNodes,$=0,b=c.firstRow;b<v;b++){var A=this.session.getFoldLine(b);if(A)if(A.containsRow(v)){v=A.start.row;break}else b=A.end.row;$++}for(var w=!1,b=v,A=this.session.getNextFoldLine(b),R=A?A.start.row:1/0;b>R&&(b=A.end.row+1,A=this.session.getNextFoldLine(b,A),R=A?A.start.row:1/0),!(b>y);){var E=_[$++];if(E){this.dom.removeChildren(E),this.$renderLine(E,b,b==R?A:!1),w&&(E.style.top=this.$lines.computeLineTop(b,c,this.session)+"px");var L=c.lineHeight*this.session.getRowLength(b)+"px";E.style.height!=L&&(w=!0,E.style.height=L)}b++}if(w)for(;$<this.$lines.cells.length;){var O=this.$lines.cells[$++];O.element.style.top=this.$lines.computeLineTop(O.row,c,this.session)+"px"}},l.prototype.scrollLines=function(c){var d=this.config;if(this.config=c,this.$lines.pageChanged(d,c))return this.update(c);this.$lines.moveContainer(c);var m=c.lastRow,v=d?d.lastRow:-1;if(!d||v<c.firstRow)return this.update(c);if(m<d.firstRow)return this.update(c);if(!d||d.lastRow<c.firstRow)return this.update(c);if(c.lastRow<d.firstRow)return this.update(c);if(d.firstRow<c.firstRow)for(var y=this.session.getFoldedRowCount(d.firstRow,c.firstRow-1);y>0;y--)this.$lines.shift();if(d.lastRow>c.lastRow)for(var y=this.session.getFoldedRowCount(c.lastRow+1,d.lastRow);y>0;y--)this.$lines.pop();c.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(c,c.firstRow,d.firstRow-1)),c.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(c,d.lastRow+1,c.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(c,d,m){for(var v=[],y=d,_=this.session.getNextFoldLine(y),$=_?_.start.row:1/0;y>$&&(y=_.end.row+1,_=this.session.getNextFoldLine(y,_),$=_?_.start.row:1/0),!(y>m);){var w=this.$lines.createCell(y,c,this.session),b=w.element;this.dom.removeChildren(b),f.setStyle(b.style,"height",this.$lines.computeLineHeight(y,c,this.session)+"px"),f.setStyle(b.style,"top",this.$lines.computeLineTop(y,c,this.session)+"px"),this.$renderLine(b,y,y==$?_:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(w),y++}return v},l.prototype.update=function(c){this.$lines.moveContainer(c),this.config=c;for(var d=c.firstRow,m=c.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(c,d,m))},l.prototype.$renderToken=function(c,d,m,v){for(var y=this,_=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,$=this.dom.createFragment(this.element),w,b=0;w=_.exec(v);){var A=w[1],R=w[2],E=w[3],L=w[4],O=w[5];if(!(!y.showSpaces&&R)){var M=b!=w.index?v.slice(b,w.index):"";if(b=w.index+w[0].length,M&&$.appendChild(this.dom.createTextNode(M,this.element)),A){var x=y.session.getScreenTabSize(d+w.index),C=y.$tabStrings[x].cloneNode(!0);C.charCount=1,$.appendChild(C),d+=x-1}else if(R)if(y.showSpaces){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space",S.textContent=g.stringRepeat(y.SPACE_CHAR,R.length),$.appendChild(S)}else $.appendChild(this.dom.createTextNode(R,this.element));else if(E){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space ace_invalid",S.textContent=g.stringRepeat(y.SPACE_CHAR,E.length),$.appendChild(S)}else if(L){d+=1;var S=this.dom.createElement("span");S.style.width=y.config.characterWidth*2+"px",S.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",S.textContent=y.showSpaces?y.SPACE_CHAR:L,$.appendChild(S)}else if(O){d+=1;var S=this.dom.createElement("span");S.style.width=y.config.characterWidth*2+"px",S.className="ace_cjk",S.textContent=O,$.appendChild(S)}}}if($.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),a(m.type))c.appendChild($);else{var k="ace_"+m.type.replace(/\./g," ace_"),S=this.dom.createElement("span");m.type=="fold"&&(S.style.width=m.value.length*this.config.characterWidth+"px",S.setAttribute("title",o("inline-fold.closed.title","Unfold code"))),S.className=k,S.appendChild($),c.appendChild(S)}return d+v.length},l.prototype.renderIndentGuide=function(c,d,m){var v=d.search(this.$indentGuideRe);if(v<=0||v>=m)return d;if(d[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,_=0;_<y;_++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}else if(d[0]==" "){for(var _=0;_<v;_++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),d.substr(v)}return this.$highlightIndentGuide(),d},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var c=this.session.doc.$lines;if(c){var d=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(d.row))[0].length,v=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:d.row};var y=this.session.$bracketHighlight;if(y){for(var _=this.session.$bracketHighlight.ranges,$=0;$<_.length;$++)if(d.row!==_[$].start.row){this.$highlightIndentGuideMarker.end=_[$].start.row+1,d.row>_[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&c[d.row]!==""&&d.column===c[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=d.row+1;$<c.length;$++){var w=c[$],b=/^\s*/.exec(w)[0].length;if(w!==""&&(this.$highlightIndentGuideMarker.end=$,b<=m))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var c=this.element.querySelectorAll(".ace_indent-guide-active"),d=0;d<c.length;d++)c[d].classList.remove("ace_indent-guide-active")},l.prototype.$setIndentGuideActive=function(c,d){var m=this.session.doc.getLine(c.row);if(m!==""){var v=c.element;if(c.element.classList&&c.element.classList.contains("ace_line_group"))if(c.element.childNodes.length>0)v=c.element.childNodes[0];else return;var y=v.childNodes;if(y){var _=y[d-1];_&&_.classList&&_.classList.contains("ace_indent-guide")&&_.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var c=this.$lines.cells;this.$clearActiveIndentGuide();var d=this.$highlightIndentGuideMarker.indentLevel;if(d!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<c.length;m++){var v=c[m];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}else for(var m=c.length-1;m>=0;m--){var v=c[m];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}}},l.prototype.$createLineElement=function(c){var d=this.dom.createElement("div");return d.className="ace_line",d.style.height=this.config.lineHeight+"px",d},l.prototype.$renderWrappedLine=function(c,d,m){var v=0,y=0,_=m[0],$=0,w=this.$createLineElement();c.appendChild(w);for(var b=0;b<d.length;b++){var A=d[b],R=A.value;if(b==0&&this.displayIndentGuides){if(v=R.length,R=this.renderIndentGuide(w,R,_),!R)continue;v-=R.length}if(v+R.length<_)$=this.$renderToken(w,$,A,R),v+=R.length;else{for(;v+R.length>=_;){$=this.$renderToken(w,$,A,R.substring(0,_-v)),R=R.substring(_-v),v=_,w=this.$createLineElement(),c.appendChild(w);var E=this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element);E.charCount=0,w.appendChild(E),y++,$=0,_=m[y]||Number.MAX_VALUE}R.length!=0&&(v+=R.length,$=this.$renderToken(w,$,A,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(w,$,null,"",!0)},l.prototype.$renderSimpleLine=function(c,d){for(var m=0,v=0;v<d.length;v++){var y=d[v],_=y.value;if(!(v==0&&this.displayIndentGuides&&(_=this.renderIndentGuide(c,_),!_))){if(m+_.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(c,m,y,_);m=this.$renderToken(c,m,y,_)}}},l.prototype.$renderOverflowMessage=function(c,d,m,v,y){m&&this.$renderToken(c,d,m,v.slice(0,this.MAX_LINE_LENGTH-d));var _=this.dom.createElement("span");_.className="ace_inline_button ace_keyword ace_toggle_wrap",_.textContent=y?"<hide>":"<click to see more...>",c.appendChild(_)},l.prototype.$renderLine=function(c,d,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(d)),m)var v=this.$getFoldLineTokens(d,m);else var v=this.session.getTokens(d);var y=c;if(v.length){var _=this.session.getRowSplitData(d);if(_&&_.length){this.$renderWrappedLine(c,v,_);var y=c.lastChild}else{var y=c;this.$useLineGroups()&&(y=this.$createLineElement(),c.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),c.appendChild(y));if(this.showEOL&&y){m&&(d=m.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild($)}},l.prototype.$getFoldLineTokens=function(c,d){var m=this.session,v=[];function y($,w,b){for(var A=0,R=0;R+$[A].value.length<w;)if(R+=$[A].value.length,A++,A==$.length)return;if(R!=w){var E=$[A].value.substring(w-R);E.length>b-w&&(E=E.substring(0,b-w)),v.push({type:$[A].type,value:E}),R=w+E.length,A+=1}for(;R<b&&A<$.length;){var E=$[A].value;E.length+R>b?v.push({type:$[A].type,value:E.substring(0,b-R)}):v.push($[A]),R+=E.length,A+=1}}var _=m.getTokens(c);return d.walk(function($,w,b,A,R){$!=null?v.push({type:"fold",value:$}):(R&&(_=m.getTokens(w)),_.length&&y(_,A,b))},d.end.row,this.session.getLine(d.end.row).length),v},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();u.prototype.EOF_CHAR="¶",u.prototype.EOL_CHAR_LF="¬",u.prototype.EOL_CHAR_CRLF="¤",u.prototype.EOL_CHAR=u.prototype.EOL_CHAR_LF,u.prototype.TAB_CHAR="—",u.prototype.SPACE_CHAR="·",u.prototype.$padding=0,u.prototype.MAX_LINE_LENGTH=1e4,u.prototype.showInvisibles=!1,u.prototype.showSpaces=!1,u.prototype.showTabs=!1,u.prototype.showEOL=!1,u.prototype.displayIndentGuides=!0,u.prototype.$highlightIndentGuides=!0,u.prototype.$tabStrings=[],u.prototype.destroy={},u.prototype.onChangeTabSize=u.prototype.$computeTabString,h.implement(u.prototype,p),r.Text=u}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,i){var h=n("../lib/dom"),f=function(){function g(s){this.element=h.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(),h.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(s){for(var p=this.cursors,o=p.length;o--;)h.setStyle(p[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,p=s.length;p--;)s[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&h.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,h.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,h.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var s=h.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,h.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,h.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,h.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&&h.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),h.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(s,p){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(s),a=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),u=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:a,top:u}},g.prototype.isCursorInView=function(s,p){return s.top>=0&&s.top<p.maxHeight},g.prototype.update=function(s){this.config=s;var p=this.session.$selectionMarkers,o=0,a=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var o=0,u=p.length;o<u;o++){var l=this.getPixelPosition(p[o].cursor,!0);if(!((l.top>s.height+s.offset||l.top<0)&&o>1)){var c=this.cursors[a++]||this.addCursor(),d=c.style;this.drawCursor?this.drawCursor(c,l,s,p[o],this.session):this.isCursorInView(l,s)?(h.setStyle(d,"display","block"),h.translate(c,l.left,l.top),h.setStyle(d,"width",Math.round(s.characterWidth)+"px"),h.setStyle(d,"height",s.lineHeight+"px")):h.setStyle(d,"display","none")}}for(;this.cursors.length>a;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=l,this.restartTimer()},g.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();f.prototype.$padding=0,f.prototype.drawCursor=null,r.Cursor=f}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,i){var h=this&&this.__extends||function(){var c=function(d,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(v[_]=y[_])},c(d,m)};return function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");c(d,m);function v(){this.constructor=d}d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,o=32768,a=function(){function c(d,m){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),d.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return c.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},c}();f.implement(a.prototype,p);var u=function(c){h(d,c);function d(m,v){var y=c.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 d.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(m){this.element.style.height=m+"px"},d.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>o?(this.coeff=o/m,m=o):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},d.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},d}(a);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var l=function(c){h(d,c);function d(m,v){var y=c.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 d.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},d.prototype.getHeight=function(){return this.isVisible?this.height:0},d.prototype.setWidth=function(m){this.element.style.width=m+"px"},d.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},d.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},d}(a);r.ScrollBar=u,r.ScrollBarV=u,r.ScrollBarH=l,r.VScrollBar=u,r.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,i){var h=this&&this.__extends||function(){var l=function(c,d){return l=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])},l(c,d)};return function(c,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");l(c,d);function m(){this.constructor=c}c.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
839
|
+
position: absolute;
|
840
|
+
background: rgba(128, 128, 128, 0.6);
|
841
|
+
-moz-box-sizing: border-box;
|
842
|
+
box-sizing: border-box;
|
843
|
+
border: 1px solid #bbb;
|
844
|
+
border-radius: 2px;
|
845
|
+
z-index: 8;
|
846
|
+
}
|
847
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
848
|
+
position: absolute;
|
849
|
+
z-index: 6;
|
850
|
+
background: none;
|
851
|
+
overflow: hidden!important;
|
852
|
+
}
|
853
|
+
.ace_editor>.ace_sb-v {
|
854
|
+
z-index: 6;
|
855
|
+
right: 0;
|
856
|
+
top: 0;
|
857
|
+
width: 12px;
|
858
|
+
}
|
859
|
+
.ace_editor>.ace_sb-v div {
|
860
|
+
z-index: 8;
|
861
|
+
right: 0;
|
862
|
+
width: 100%;
|
863
|
+
}
|
864
|
+
.ace_editor>.ace_sb-h {
|
865
|
+
bottom: 0;
|
866
|
+
left: 0;
|
867
|
+
height: 12px;
|
868
|
+
}
|
869
|
+
.ace_editor>.ace_sb-h div {
|
870
|
+
bottom: 0;
|
871
|
+
height: 100%;
|
872
|
+
}
|
873
|
+
.ace_editor>.ace_sb_grabbed {
|
874
|
+
z-index: 8;
|
875
|
+
background: #000;
|
876
|
+
}`,"ace_scrollbar.css",!1);var o=function(){function l(c,d){this.element=g.createElement("div"),this.element.className="ace_sb"+d,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,c.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(c){this.element.style.display=c?"":"none",this.isVisible=c,this.coeff=1},l}();f.implement(o.prototype,p);var a=function(l){h(c,l);function c(d,m){var v=l.call(this,d,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=d,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return c.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,_=function(L){y=L.clientY},$=function(){clearInterval(R)},w=m.clientY,b=this.thumbTop,A=function(){if(y!==void 0){var L=v.scrollTopFromThumbTop(b+y-w);L!==v.scrollTop&&v._emit("scroll",{data:L})}};s.capture(this.inner,_,$);var R=setInterval(A,20);return s.preventDefault(m)}var E=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),s.preventDefault(m)}},c.prototype.getHeight=function(){return this.height},c.prototype.scrollTopFromThumbTop=function(d){var m=d*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},c.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},c.prototype.setHeight=function(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},c.prototype.setScrollHeight=function(d,m){this.pageHeight===d&&!m||(this.pageHeight=d,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},c.prototype.setScrollTop=function(d){this.scrollTop=d,d<0&&(d=0),this.thumbTop=d*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},c}(o);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var u=function(l){h(c,l);function c(d,m){var v=l.call(this,d,"-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 c.prototype.onMouseDown=function(d,m){if(d==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,_=function(L){y=L.clientX},$=function(){clearInterval(R)},w=m.clientX,b=this.thumbLeft,A=function(){if(y!==void 0){var L=v.scrollLeftFromThumbLeft(b+y-w);L!==v.scrollLeft&&v._emit("scroll",{data:L})}};s.capture(this.inner,_,$);var R=setInterval(A,20);return s.preventDefault(m)}var E=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),s.preventDefault(m)}},c.prototype.getHeight=function(){return this.isVisible?this.height:0},c.prototype.scrollLeftFromThumbLeft=function(d){var m=d*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},c.prototype.setWidth=function(d){this.width=Math.max(0,d),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},c.prototype.setScrollWidth=function(d,m){this.pageWidth===d&&!m||(this.pageWidth=d,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},c.prototype.setScrollLeft=function(d){this.scrollLeft=d,d<0&&(d=0),this.thumbLeft=d*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},c}(o);u.prototype.setInnerWidth=u.prototype.setScrollWidth,r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=u,r.VScrollBar=a,r.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,i){var h=n("./lib/event"),f=function(){function g(s,p){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var o=this;this._flush=function(a){o.pending=!1;var u=o.changes;if(u&&(h.blockIdle(100),o.changes=0,o.onRender(u)),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&&(h.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(s){var p=this.changes;return this.changes=0,p},g}();r.RenderLoop=f}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,i){var h=n("../lib/oop"),f=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),p=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,a=512,u=typeof ResizeObserver=="function",l=200,c=function(){function d(m){this.el=f.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=f.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=f.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",a),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},d.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var 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})}},d.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},d.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){m.checkForSizeChanges(),s.onIdle(v,500)},500)},d.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/a};return v.width===0||v.height===0?null:v},d.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,a);var v=this.$main.getBoundingClientRect();return v.width/a},d.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},d.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},d.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=f.buildDom([m(0,0),m(l,0),m(0,l),m(l,l)],this.el)},d.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function _(D,F,H){var W=D[1]*F[0]-D[0]*F[1];return[(-F[1]*H[0]+F[0]*H[1])/W,(+D[1]*H[0]-D[0]*H[1])/W]}function $(D,F){return[D[0]-F[0],D[1]-F[1]]}function w(D,F){return[D[0]+F[0],D[1]+F[1]]}function b(D,F){return[D*F[0],D*F[1]]}this.els||this.$initTransformMeasureNodes();function A(D){var F=D.getBoundingClientRect();return[F.left,F.top]}var R=A(this.els[0]),E=A(this.els[1]),L=A(this.els[2]),O=A(this.els[3]),M=_($(O,E),$(O,L),$(w(E,L),w(O,R))),x=b(1+M[0],$(E,R)),C=b(1+M[1],$(L,R));if(v){var S=v,k=M[0]*S[0]/l+M[1]*S[1]/l+1,T=w(b(S[0],x),b(S[1],C));return w(b(1/k/l,T),R)}var I=$(m,R),N=_($(x,b(M[0],I)),$(C,b(M[1],I)),I);return b(l,N)},d}();c.prototype.$characterSize={width:0,height:0},h.implement(c.prototype,o),r.FontMetrics=c}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,i){i.exports=`
|
877
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
878
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
879
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
880
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
881
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
882
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
883
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
884
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
885
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
886
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
887
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
888
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
889
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
890
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
891
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
892
|
+
|
893
|
+
|
894
|
+
.ace_editor {
|
895
|
+
position: relative;
|
896
|
+
overflow: hidden;
|
897
|
+
padding: 0;
|
898
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
899
|
+
direction: ltr;
|
900
|
+
text-align: left;
|
901
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
902
|
+
forced-color-adjust: none;
|
903
|
+
}
|
904
|
+
|
905
|
+
.ace_scroller {
|
906
|
+
position: absolute;
|
907
|
+
overflow: hidden;
|
908
|
+
top: 0;
|
909
|
+
bottom: 0;
|
910
|
+
background-color: inherit;
|
911
|
+
-ms-user-select: none;
|
912
|
+
-moz-user-select: none;
|
913
|
+
-webkit-user-select: none;
|
914
|
+
user-select: none;
|
915
|
+
cursor: text;
|
916
|
+
}
|
917
|
+
|
918
|
+
.ace_content {
|
919
|
+
position: absolute;
|
920
|
+
box-sizing: border-box;
|
921
|
+
min-width: 100%;
|
922
|
+
contain: style size layout;
|
923
|
+
font-variant-ligatures: no-common-ligatures;
|
924
|
+
}
|
925
|
+
.ace_invisible {
|
926
|
+
font-variant-ligatures: none;
|
927
|
+
}
|
928
|
+
|
929
|
+
.ace_keyboard-focus:focus {
|
930
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
931
|
+
outline: none;
|
932
|
+
}
|
933
|
+
|
934
|
+
.ace_dragging .ace_scroller:before{
|
935
|
+
position: absolute;
|
936
|
+
top: 0;
|
937
|
+
left: 0;
|
938
|
+
right: 0;
|
939
|
+
bottom: 0;
|
940
|
+
content: '';
|
941
|
+
background: rgba(250, 250, 250, 0.01);
|
942
|
+
z-index: 1000;
|
943
|
+
}
|
944
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
945
|
+
background: rgba(0, 0, 0, 0.01);
|
946
|
+
}
|
947
|
+
|
948
|
+
.ace_gutter {
|
949
|
+
position: absolute;
|
950
|
+
overflow : hidden;
|
951
|
+
width: auto;
|
952
|
+
top: 0;
|
953
|
+
bottom: 0;
|
954
|
+
left: 0;
|
955
|
+
cursor: default;
|
956
|
+
z-index: 4;
|
957
|
+
-ms-user-select: none;
|
958
|
+
-moz-user-select: none;
|
959
|
+
-webkit-user-select: none;
|
960
|
+
user-select: none;
|
961
|
+
contain: style size layout;
|
962
|
+
}
|
963
|
+
|
964
|
+
.ace_gutter-active-line {
|
965
|
+
position: absolute;
|
966
|
+
left: 0;
|
967
|
+
right: 0;
|
968
|
+
}
|
969
|
+
|
970
|
+
.ace_scroller.ace_scroll-left:after {
|
971
|
+
content: "";
|
972
|
+
position: absolute;
|
973
|
+
top: 0;
|
974
|
+
right: 0;
|
975
|
+
bottom: 0;
|
976
|
+
left: 0;
|
977
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
978
|
+
pointer-events: none;
|
979
|
+
}
|
980
|
+
|
981
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
982
|
+
position: absolute;
|
983
|
+
top: 0;
|
984
|
+
left: 0;
|
985
|
+
right: 0;
|
986
|
+
padding-left: 19px;
|
987
|
+
padding-right: 6px;
|
988
|
+
background-repeat: no-repeat;
|
989
|
+
}
|
990
|
+
|
991
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
992
|
+
margin-left: -14px;
|
993
|
+
float: left;
|
994
|
+
}
|
995
|
+
|
996
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
997
|
+
margin-left: -19px;
|
998
|
+
float: left;
|
999
|
+
}
|
1000
|
+
|
1001
|
+
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
1002
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
1003
|
+
background-repeat: no-repeat;
|
1004
|
+
background-position: 2px center;
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
1008
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
1009
|
+
background-repeat: no-repeat;
|
1010
|
+
background-position: 2px center;
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
1014
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
1015
|
+
background-repeat: no-repeat;
|
1016
|
+
background-position: 2px center;
|
1017
|
+
}
|
1018
|
+
|
1019
|
+
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
1020
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
.ace_icon_svg.ace_error {
|
1024
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
1025
|
+
background-color: crimson;
|
1026
|
+
}
|
1027
|
+
.ace_icon_svg.ace_security {
|
1028
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
1029
|
+
background-color: crimson;
|
1030
|
+
}
|
1031
|
+
.ace_icon_svg.ace_warning {
|
1032
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
1033
|
+
background-color: darkorange;
|
1034
|
+
}
|
1035
|
+
.ace_icon_svg.ace_info {
|
1036
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
1037
|
+
background-color: royalblue;
|
1038
|
+
}
|
1039
|
+
.ace_icon_svg.ace_hint {
|
1040
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
1041
|
+
background-color: silver;
|
1042
|
+
}
|
1043
|
+
|
1044
|
+
.ace_icon_svg.ace_error_fold {
|
1045
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1046
|
+
background-color: crimson;
|
1047
|
+
}
|
1048
|
+
.ace_icon_svg.ace_security_fold {
|
1049
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
1050
|
+
background-color: crimson;
|
1051
|
+
}
|
1052
|
+
.ace_icon_svg.ace_warning_fold {
|
1053
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
1054
|
+
background-color: darkorange;
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
.ace_scrollbar {
|
1058
|
+
contain: strict;
|
1059
|
+
position: absolute;
|
1060
|
+
right: 0;
|
1061
|
+
bottom: 0;
|
1062
|
+
z-index: 6;
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
.ace_scrollbar-inner {
|
1066
|
+
position: absolute;
|
1067
|
+
cursor: text;
|
1068
|
+
left: 0;
|
1069
|
+
top: 0;
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
.ace_scrollbar-v{
|
1073
|
+
overflow-x: hidden;
|
1074
|
+
overflow-y: scroll;
|
1075
|
+
top: 0;
|
1076
|
+
}
|
1077
|
+
|
1078
|
+
.ace_scrollbar-h {
|
1079
|
+
overflow-x: scroll;
|
1080
|
+
overflow-y: hidden;
|
1081
|
+
left: 0;
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
.ace_print-margin {
|
1085
|
+
position: absolute;
|
1086
|
+
height: 100%;
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
.ace_text-input {
|
1090
|
+
position: absolute;
|
1091
|
+
z-index: 0;
|
1092
|
+
width: 0.5em;
|
1093
|
+
height: 1em;
|
1094
|
+
opacity: 0;
|
1095
|
+
background: transparent;
|
1096
|
+
-moz-appearance: none;
|
1097
|
+
appearance: none;
|
1098
|
+
border: none;
|
1099
|
+
resize: none;
|
1100
|
+
outline: none;
|
1101
|
+
overflow: hidden;
|
1102
|
+
font: inherit;
|
1103
|
+
padding: 0 1px;
|
1104
|
+
margin: 0 -1px;
|
1105
|
+
contain: strict;
|
1106
|
+
-ms-user-select: text;
|
1107
|
+
-moz-user-select: text;
|
1108
|
+
-webkit-user-select: text;
|
1109
|
+
user-select: text;
|
1110
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
1111
|
+
white-space: pre!important;
|
1112
|
+
}
|
1113
|
+
.ace_text-input.ace_composition {
|
1114
|
+
background: transparent;
|
1115
|
+
color: inherit;
|
1116
|
+
z-index: 1000;
|
1117
|
+
opacity: 1;
|
1118
|
+
}
|
1119
|
+
.ace_composition_placeholder { color: transparent }
|
1120
|
+
.ace_composition_marker {
|
1121
|
+
border-bottom: 1px solid;
|
1122
|
+
position: absolute;
|
1123
|
+
border-radius: 0;
|
1124
|
+
margin-top: 1px;
|
1125
|
+
}
|
1126
|
+
|
1127
|
+
[ace_nocontext=true] {
|
1128
|
+
transform: none!important;
|
1129
|
+
filter: none!important;
|
1130
|
+
clip-path: none!important;
|
1131
|
+
mask : none!important;
|
1132
|
+
contain: none!important;
|
1133
|
+
perspective: none!important;
|
1134
|
+
mix-blend-mode: initial!important;
|
1135
|
+
z-index: auto;
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
.ace_layer {
|
1139
|
+
z-index: 1;
|
1140
|
+
position: absolute;
|
1141
|
+
overflow: hidden;
|
1142
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
1143
|
+
word-wrap: normal;
|
1144
|
+
white-space: pre;
|
1145
|
+
height: 100%;
|
1146
|
+
width: 100%;
|
1147
|
+
box-sizing: border-box;
|
1148
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
1149
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
1150
|
+
pointer-events: none;
|
1151
|
+
}
|
1152
|
+
|
1153
|
+
.ace_gutter-layer {
|
1154
|
+
position: relative;
|
1155
|
+
width: auto;
|
1156
|
+
text-align: right;
|
1157
|
+
pointer-events: auto;
|
1158
|
+
height: 1000000px;
|
1159
|
+
contain: style size layout;
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
.ace_text-layer {
|
1163
|
+
font: inherit !important;
|
1164
|
+
position: absolute;
|
1165
|
+
height: 1000000px;
|
1166
|
+
width: 1000000px;
|
1167
|
+
contain: style size layout;
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
1171
|
+
contain: style size layout;
|
1172
|
+
position: absolute;
|
1173
|
+
top: 0;
|
1174
|
+
left: 0;
|
1175
|
+
right: 0;
|
1176
|
+
}
|
1177
|
+
|
1178
|
+
.ace_hidpi .ace_text-layer,
|
1179
|
+
.ace_hidpi .ace_gutter-layer,
|
1180
|
+
.ace_hidpi .ace_content,
|
1181
|
+
.ace_hidpi .ace_gutter {
|
1182
|
+
contain: strict;
|
1183
|
+
}
|
1184
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
1185
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
1186
|
+
contain: strict;
|
1187
|
+
}
|
1188
|
+
|
1189
|
+
.ace_cjk {
|
1190
|
+
display: inline-block;
|
1191
|
+
text-align: center;
|
1192
|
+
}
|
1193
|
+
|
1194
|
+
.ace_cursor-layer {
|
1195
|
+
z-index: 4;
|
1196
|
+
}
|
1197
|
+
|
1198
|
+
.ace_cursor {
|
1199
|
+
z-index: 4;
|
1200
|
+
position: absolute;
|
1201
|
+
box-sizing: border-box;
|
1202
|
+
border-left: 2px solid;
|
1203
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
1204
|
+
transform: translatez(0);
|
1205
|
+
}
|
1206
|
+
|
1207
|
+
.ace_multiselect .ace_cursor {
|
1208
|
+
border-left-width: 1px;
|
1209
|
+
}
|
1210
|
+
|
1211
|
+
.ace_slim-cursors .ace_cursor {
|
1212
|
+
border-left-width: 1px;
|
1213
|
+
}
|
1214
|
+
|
1215
|
+
.ace_overwrite-cursors .ace_cursor {
|
1216
|
+
border-left-width: 0;
|
1217
|
+
border-bottom: 1px solid;
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
.ace_hidden-cursors .ace_cursor {
|
1221
|
+
opacity: 0.2;
|
1222
|
+
}
|
1223
|
+
|
1224
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
1225
|
+
opacity: 0;
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
.ace_smooth-blinking .ace_cursor {
|
1229
|
+
transition: opacity 0.18s;
|
1230
|
+
}
|
1231
|
+
|
1232
|
+
.ace_animate-blinking .ace_cursor {
|
1233
|
+
animation-duration: 1000ms;
|
1234
|
+
animation-timing-function: step-end;
|
1235
|
+
animation-name: blink-ace-animate;
|
1236
|
+
animation-iteration-count: infinite;
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
1240
|
+
animation-duration: 1000ms;
|
1241
|
+
animation-timing-function: ease-in-out;
|
1242
|
+
animation-name: blink-ace-animate-smooth;
|
1243
|
+
}
|
1244
|
+
|
1245
|
+
@keyframes blink-ace-animate {
|
1246
|
+
from, to { opacity: 1; }
|
1247
|
+
60% { opacity: 0; }
|
1248
|
+
}
|
1249
|
+
|
1250
|
+
@keyframes blink-ace-animate-smooth {
|
1251
|
+
from, to { opacity: 1; }
|
1252
|
+
45% { opacity: 1; }
|
1253
|
+
60% { opacity: 0; }
|
1254
|
+
85% { opacity: 0; }
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
1258
|
+
position: absolute;
|
1259
|
+
z-index: 3;
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
.ace_marker-layer .ace_selection {
|
1263
|
+
position: absolute;
|
1264
|
+
z-index: 5;
|
1265
|
+
}
|
1266
|
+
|
1267
|
+
.ace_marker-layer .ace_bracket {
|
1268
|
+
position: absolute;
|
1269
|
+
z-index: 6;
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
.ace_marker-layer .ace_error_bracket {
|
1273
|
+
position: absolute;
|
1274
|
+
border-bottom: 1px solid #DE5555;
|
1275
|
+
border-radius: 0;
|
1276
|
+
}
|
1277
|
+
|
1278
|
+
.ace_marker-layer .ace_active-line {
|
1279
|
+
position: absolute;
|
1280
|
+
z-index: 2;
|
1281
|
+
}
|
1282
|
+
|
1283
|
+
.ace_marker-layer .ace_selected-word {
|
1284
|
+
position: absolute;
|
1285
|
+
z-index: 4;
|
1286
|
+
box-sizing: border-box;
|
1287
|
+
}
|
1288
|
+
|
1289
|
+
.ace_line .ace_fold {
|
1290
|
+
box-sizing: border-box;
|
1291
|
+
|
1292
|
+
display: inline-block;
|
1293
|
+
height: 11px;
|
1294
|
+
margin-top: -2px;
|
1295
|
+
vertical-align: middle;
|
1296
|
+
|
1297
|
+
background-image:
|
1298
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1299
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
1300
|
+
background-repeat: no-repeat, repeat-x;
|
1301
|
+
background-position: center center, top left;
|
1302
|
+
color: transparent;
|
1303
|
+
|
1304
|
+
border: 1px solid black;
|
1305
|
+
border-radius: 2px;
|
1306
|
+
|
1307
|
+
cursor: pointer;
|
1308
|
+
pointer-events: auto;
|
1309
|
+
}
|
1310
|
+
|
1311
|
+
.ace_dark .ace_fold {
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
.ace_fold:hover{
|
1315
|
+
background-image:
|
1316
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
1317
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
.ace_tooltip {
|
1321
|
+
background-color: #f5f5f5;
|
1322
|
+
border: 1px solid gray;
|
1323
|
+
border-radius: 1px;
|
1324
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
1325
|
+
color: black;
|
1326
|
+
padding: 3px 4px;
|
1327
|
+
position: fixed;
|
1328
|
+
z-index: 999999;
|
1329
|
+
box-sizing: border-box;
|
1330
|
+
cursor: default;
|
1331
|
+
white-space: pre-wrap;
|
1332
|
+
word-wrap: break-word;
|
1333
|
+
line-height: normal;
|
1334
|
+
font-style: normal;
|
1335
|
+
font-weight: normal;
|
1336
|
+
letter-spacing: normal;
|
1337
|
+
pointer-events: none;
|
1338
|
+
overflow: auto;
|
1339
|
+
max-width: min(33em, 66vw);
|
1340
|
+
overscroll-behavior: contain;
|
1341
|
+
}
|
1342
|
+
.ace_tooltip pre {
|
1343
|
+
white-space: pre-wrap;
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
.ace_tooltip.ace_dark {
|
1347
|
+
background-color: #636363;
|
1348
|
+
color: #fff;
|
1349
|
+
}
|
1350
|
+
|
1351
|
+
.ace_tooltip:focus {
|
1352
|
+
outline: 1px solid #5E9ED6;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
.ace_icon {
|
1356
|
+
display: inline-block;
|
1357
|
+
width: 18px;
|
1358
|
+
vertical-align: top;
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
.ace_icon_svg {
|
1362
|
+
display: inline-block;
|
1363
|
+
width: 12px;
|
1364
|
+
vertical-align: top;
|
1365
|
+
-webkit-mask-repeat: no-repeat;
|
1366
|
+
-webkit-mask-size: 12px;
|
1367
|
+
-webkit-mask-position: center;
|
1368
|
+
}
|
1369
|
+
|
1370
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
1371
|
+
padding-right: 13px;
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
.ace_fold-widget, .ace_custom-widget {
|
1375
|
+
box-sizing: border-box;
|
1376
|
+
|
1377
|
+
margin: 0 -12px 0 1px;
|
1378
|
+
display: none;
|
1379
|
+
width: 11px;
|
1380
|
+
vertical-align: top;
|
1381
|
+
|
1382
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
1383
|
+
background-repeat: no-repeat;
|
1384
|
+
background-position: center;
|
1385
|
+
|
1386
|
+
border-radius: 3px;
|
1387
|
+
|
1388
|
+
border: 1px solid transparent;
|
1389
|
+
cursor: pointer;
|
1390
|
+
pointer-events: auto;
|
1391
|
+
}
|
1392
|
+
|
1393
|
+
.ace_custom-widget {
|
1394
|
+
background: none;
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
.ace_folding-enabled .ace_fold-widget {
|
1398
|
+
display: inline-block;
|
1399
|
+
}
|
1400
|
+
|
1401
|
+
.ace_fold-widget.ace_end {
|
1402
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
1403
|
+
}
|
1404
|
+
|
1405
|
+
.ace_fold-widget.ace_closed {
|
1406
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
.ace_fold-widget:hover {
|
1410
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
1411
|
+
background-color: rgba(255, 255, 255, 0.2);
|
1412
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
1413
|
+
}
|
1414
|
+
|
1415
|
+
.ace_fold-widget:active {
|
1416
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
1417
|
+
background-color: rgba(0, 0, 0, 0.05);
|
1418
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
1419
|
+
}
|
1420
|
+
/**
|
1421
|
+
* Dark version for fold widgets
|
1422
|
+
*/
|
1423
|
+
.ace_dark .ace_fold-widget {
|
1424
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
1425
|
+
}
|
1426
|
+
.ace_dark .ace_fold-widget.ace_end {
|
1427
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
1428
|
+
}
|
1429
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
1430
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
1431
|
+
}
|
1432
|
+
.ace_dark .ace_fold-widget:hover {
|
1433
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1434
|
+
background-color: rgba(255, 255, 255, 0.1);
|
1435
|
+
}
|
1436
|
+
.ace_dark .ace_fold-widget:active {
|
1437
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
.ace_inline_button {
|
1441
|
+
border: 1px solid lightgray;
|
1442
|
+
display: inline-block;
|
1443
|
+
margin: -1px 8px;
|
1444
|
+
padding: 0 5px;
|
1445
|
+
pointer-events: auto;
|
1446
|
+
cursor: pointer;
|
1447
|
+
}
|
1448
|
+
.ace_inline_button:hover {
|
1449
|
+
border-color: gray;
|
1450
|
+
background: rgba(200,200,200,0.2);
|
1451
|
+
display: inline-block;
|
1452
|
+
pointer-events: auto;
|
1453
|
+
}
|
1454
|
+
|
1455
|
+
.ace_fold-widget.ace_invalid {
|
1456
|
+
background-color: #FFB4B4;
|
1457
|
+
border-color: #DE5555;
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
1461
|
+
transition: opacity 0.4s ease 0.05s;
|
1462
|
+
opacity: 0;
|
1463
|
+
}
|
1464
|
+
|
1465
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
1466
|
+
transition: opacity 0.05s ease 0.05s;
|
1467
|
+
opacity:1;
|
1468
|
+
}
|
1469
|
+
|
1470
|
+
.ace_underline {
|
1471
|
+
text-decoration: underline;
|
1472
|
+
}
|
1473
|
+
|
1474
|
+
.ace_bold {
|
1475
|
+
font-weight: bold;
|
1476
|
+
}
|
1477
|
+
|
1478
|
+
.ace_nobold .ace_bold {
|
1479
|
+
font-weight: normal;
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
.ace_italic {
|
1483
|
+
font-style: italic;
|
1484
|
+
}
|
1485
|
+
|
1486
|
+
|
1487
|
+
.ace_error-marker {
|
1488
|
+
background-color: rgba(255, 0, 0,0.2);
|
1489
|
+
position: absolute;
|
1490
|
+
z-index: 9;
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
.ace_highlight-marker {
|
1494
|
+
background-color: rgba(255, 255, 0,0.2);
|
1495
|
+
position: absolute;
|
1496
|
+
z-index: 8;
|
1497
|
+
}
|
1498
|
+
|
1499
|
+
.ace_mobile-menu {
|
1500
|
+
position: absolute;
|
1501
|
+
line-height: 1.5;
|
1502
|
+
border-radius: 4px;
|
1503
|
+
-ms-user-select: none;
|
1504
|
+
-moz-user-select: none;
|
1505
|
+
-webkit-user-select: none;
|
1506
|
+
user-select: none;
|
1507
|
+
background: white;
|
1508
|
+
box-shadow: 1px 3px 2px grey;
|
1509
|
+
border: 1px solid #dcdcdc;
|
1510
|
+
color: black;
|
1511
|
+
}
|
1512
|
+
.ace_dark > .ace_mobile-menu {
|
1513
|
+
background: #333;
|
1514
|
+
color: #ccc;
|
1515
|
+
box-shadow: 1px 3px 2px grey;
|
1516
|
+
border: 1px solid #444;
|
1517
|
+
|
1518
|
+
}
|
1519
|
+
.ace_mobile-button {
|
1520
|
+
padding: 2px;
|
1521
|
+
cursor: pointer;
|
1522
|
+
overflow: hidden;
|
1523
|
+
}
|
1524
|
+
.ace_mobile-button:hover {
|
1525
|
+
background-color: #eee;
|
1526
|
+
opacity:1;
|
1527
|
+
}
|
1528
|
+
.ace_mobile-button:active {
|
1529
|
+
background-color: #ddd;
|
1530
|
+
}
|
1531
|
+
|
1532
|
+
.ace_placeholder {
|
1533
|
+
position: relative;
|
1534
|
+
font-family: arial;
|
1535
|
+
transform: scale(0.9);
|
1536
|
+
transform-origin: left;
|
1537
|
+
white-space: pre;
|
1538
|
+
opacity: 0.7;
|
1539
|
+
margin: 0 10px;
|
1540
|
+
z-index: 1;
|
1541
|
+
}
|
1542
|
+
|
1543
|
+
.ace_ghost_text {
|
1544
|
+
opacity: 0.5;
|
1545
|
+
font-style: italic;
|
1546
|
+
}
|
1547
|
+
|
1548
|
+
.ace_ghost_text_container > div {
|
1549
|
+
white-space: pre;
|
1550
|
+
}
|
1551
|
+
|
1552
|
+
.ghost_text_line_wrapped::after {
|
1553
|
+
content: "↩";
|
1554
|
+
position: absolute;
|
1555
|
+
}
|
1556
|
+
|
1557
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
1558
|
+
margin: 0px 4px
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
.ace_screenreader-only {
|
1562
|
+
position:absolute;
|
1563
|
+
left:-10000px;
|
1564
|
+
top:auto;
|
1565
|
+
width:1px;
|
1566
|
+
height:1px;
|
1567
|
+
overflow:hidden;
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
.ace_hidden_token {
|
1571
|
+
display: none;
|
1572
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,i){var h=n("../lib/dom"),f=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function p(o,a){this.renderer=a,this.pixelRatio=1,this.maxHeight=a.layerConfig.maxHeight,this.lineHeight=a.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,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)"},this.setScrollBarV(o)}return p.prototype.$createCanvas=function(){this.canvas=h.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},p.prototype.setScrollBarV=function(o){this.$createCanvas(),this.scrollbarV=o,o.element.appendChild(this.canvas),this.setDimensions()},p.prototype.$updateDecorators=function(o){if(typeof this.canvas.getContext!="function")return;var a=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(o);var u=this.canvas.getContext("2d");function l(x,C){return x.priority<C.priority?-1:x.priority>C.priority?1:0}var c=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),c){var d={info:1,warning:2,error:3};c.forEach(function(x){x.priority=d[x.type]||null}),c=c.sort(l);for(var m=0;m<c.length;m++){var v=c[m].row,y=this.getVerticalOffsetForRow(v),_=y+this.lineHeight,$=Math.round(this.heightRatio*y),w=Math.round(this.heightRatio*_),b=Math.round(($+w)/2),A=w-b;A<this.halfMinDecorationHeight&&(A=this.halfMinDecorationHeight),b-A<0&&(b=A),b+A>this.canvasHeight&&(b=this.canvasHeight-A);var R=b-A,E=b+A,L=E-R;u.fillStyle=a[c[m].type]||null,u.fillRect(0,R,Math.round(this.oneZoneWidth-1),L)}}var O=this.renderer.session.selection.getCursor();if(O){var M=Math.round(this.getVerticalOffsetForRow(O.row)*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,M,this.canvasWidth,2)}},p.prototype.getVerticalOffsetForRow=function(o){o=o|0;var a=this.renderer.session.documentToScreenRow(o,0)*this.lineHeight;return a},p.prototype.setDimensions=function(o){o=o||this.renderer.layerConfig,this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},p.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},p.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},p}();f.implement(s.prototype,g),r.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","ace/layer/text_util"],function(n,r,i){var h=n("./lib/oop"),f=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,a=n("./layer/text").Text,u=n("./layer/cursor").Cursor,l=n("./scrollbar").HScrollBar,c=n("./scrollbar").VScrollBar,d=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,_=n("./lib/event_emitter").EventEmitter,$=n("./css/editor-css"),w=n("./layer/decorators").Decorator,b=n("./lib/useragent"),A=n("./layer/text_util").isTextToken;f.importCssString($,"ace_editor.css",!1);var R=function(){function E(L,O){var M=this;this.container=L||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(O),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=f.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=f.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=f.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var x=this.$textLayer=new a(this.content);this.canvas=x.element,this.$markerFront=new o(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function(C){M.$scrollAnimation||M.session.setScrollTop(C.data-M.scrollMargin.top)}),this.scrollBarH.on("scroll",function(C){M.$scrollAnimation||M.session.setScrollLeft(C.data-M.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(C){M.updateCharacterSize(),M.onResize(!0,M.gutterWidth,M.$size.width,M.$size.height),M._signal("changeCharacterSize",C)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return E.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),f.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},E.prototype.setSession=function(L){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=L,L&&this.scrollMargin.top&&L.getScrollTop()<=0&&L.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(L),this.$markerBack.setSession(L),this.$markerFront.setSession(L),this.$gutterLayer.setSession(L),this.$textLayer.setSession(L),L&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},E.prototype.updateLines=function(L,O,M){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>L&&(this.$changedLines.firstRow=L),this.$changedLines.lastRow<O&&(this.$changedLines.lastRow=O)):this.$changedLines={firstRow:L,lastRow:O},this.$changedLines.lastRow<this.layerConfig.firstRow)if(M)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},E.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},E.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},E.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},E.prototype.updateFull=function(L){L?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},E.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},E.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},E.prototype.onResize=function(L,O,M,x){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=L?1:0;var C=this.container;x||(x=C.clientHeight||C.scrollHeight),!x&&this.$maxLines&&this.lineHeight>1&&(!C.style.height||C.style.height=="0px")&&(C.style.height="1px",x=C.clientHeight||C.scrollHeight),M||(M=C.clientWidth||C.scrollWidth);var S=this.$updateCachedSize(L,O,M,x);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!M&&!x)return this.resizing=0;L&&(this.$gutterLayer.$padding=null),L?this.$renderChanges(S|this.$changes,!0):this.$loop.schedule(S|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},E.prototype.$updateCachedSize=function(L,O,M,x){x-=this.$extraHeight||0;var C=0,S=this.$size,k={width:S.width,height:S.height,scrollerHeight:S.scrollerHeight,scrollerWidth:S.scrollerWidth};if(x&&(L||S.height!=x)&&(S.height=x,C|=this.CHANGE_SIZE,S.scrollerHeight=S.height,this.$horizScroll&&(S.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(S.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",C=C|this.CHANGE_SCROLL),M&&(L||S.width!=M)){C|=this.CHANGE_SIZE,S.width=M,O==null&&(O=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=O,f.setStyle(this.scrollBarH.element.style,"left",O+"px"),f.setStyle(this.scroller.style,"left",O+this.margin.left+"px"),S.scrollerWidth=Math.max(0,M-O-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",T),f.setStyle(this.scroller.style,"right",T),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(S.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||L)&&(C|=this.CHANGE_FULL)}return S.$dirty=!M||!x,C&&this._signal("resize",k),C},E.prototype.onGutterResize=function(L){var O=this.$showGutter?L:0;O!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,O,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},E.prototype.adjustWrapLimit=function(){var L=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(L/this.characterWidth);return this.session.adjustWrapLimit(O,this.$showPrintMargin&&this.$printMarginColumn)},E.prototype.setAnimatedScroll=function(L){this.setOption("animatedScroll",L)},E.prototype.getAnimatedScroll=function(){return this.$animatedScroll},E.prototype.setShowInvisibles=function(L){this.setOption("showInvisibles",L),this.session.$bidiHandler.setShowInvisibles(L)},E.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},E.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},E.prototype.setDisplayIndentGuides=function(L){this.setOption("displayIndentGuides",L)},E.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},E.prototype.setHighlightIndentGuides=function(L){this.setOption("highlightIndentGuides",L)},E.prototype.setShowPrintMargin=function(L){this.setOption("showPrintMargin",L)},E.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},E.prototype.setPrintMarginColumn=function(L){this.setOption("printMarginColumn",L)},E.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},E.prototype.getShowGutter=function(){return this.getOption("showGutter")},E.prototype.setShowGutter=function(L){return this.setOption("showGutter",L)},E.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},E.prototype.setFadeFoldWidgets=function(L){this.setOption("fadeFoldWidgets",L)},E.prototype.setHighlightGutterLine=function(L){this.setOption("highlightGutterLine",L)},E.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},E.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var L=f.createElement("div");L.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",L.appendChild(this.$printMarginEl),this.content.insertBefore(L,this.content.firstChild)}var O=this.$printMarginEl.style;O.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",O.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},E.prototype.getContainerElement=function(){return this.container},E.prototype.getMouseEventTarget=function(){return this.scroller},E.prototype.getTextAreaContainer=function(){return this.container},E.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var L=this.textarea.style,O=this.$composition;if(!this.$keepTextAreaAtCursor&&!O){f.translate(this.textarea,-100,0);return}var M=this.$cursorLayer.$pixelPos;if(M){O&&O.markerRange&&(M=this.$cursorLayer.getPixelPosition(O.markerRange.start,!0));var x=this.layerConfig,C=M.top,S=M.left;C-=x.offset;var k=O&&O.useTextareaForIME||b.isMobile?this.lineHeight:1;if(C<0||C>x.height-k){f.translate(this.textarea,0,0);return}var T=1,I=this.$size.height-k;if(!O)C+=this.lineHeight;else if(O.useTextareaForIME){var N=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(N)[0]}else C+=this.lineHeight+2;S-=this.scrollLeft,S>this.$size.scrollerWidth-T&&(S=this.$size.scrollerWidth-T),S+=this.gutterWidth+this.margin.left,f.setStyle(L,"height",k+"px"),f.setStyle(L,"width",T+"px"),f.translate(this.textarea,Math.min(S,this.$size.scrollerWidth-T),Math.min(C,I))}}},E.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},E.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},E.prototype.getLastFullyVisibleRow=function(){var L=this.layerConfig,O=L.lastRow,M=this.session.documentToScreenRow(O,0)*L.lineHeight;return M-this.session.getScrollTop()>L.height-L.lineHeight?O-1:O},E.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},E.prototype.setPadding=function(L){this.$padding=L,this.$textLayer.setPadding(L),this.$cursorLayer.setPadding(L),this.$markerFront.setPadding(L),this.$markerBack.setPadding(L),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},E.prototype.setScrollMargin=function(L,O,M,x){var C=this.scrollMargin;C.top=L|0,C.bottom=O|0,C.right=x|0,C.left=M|0,C.v=C.top+C.bottom,C.h=C.left+C.right,C.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-C.top),this.updateFull()},E.prototype.setMargin=function(L,O,M,x){var C=this.margin;C.top=L|0,C.bottom=O|0,C.right=x|0,C.left=M|0,C.v=C.top+C.bottom,C.h=C.left+C.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},E.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},E.prototype.setHScrollBarAlwaysVisible=function(L){this.setOption("hScrollBarAlwaysVisible",L)},E.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},E.prototype.setVScrollBarAlwaysVisible=function(L){this.setOption("vScrollBarAlwaysVisible",L)},E.prototype.$updateScrollBarV=function(){var L=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(L-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>L-O&&(L=this.scrollTop+O,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(L+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},E.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},E.prototype.freeze=function(){this.$frozen=!0},E.prototype.unfreeze=function(){this.$frozen=!1},E.prototype.$renderChanges=function(L,O){if(this.$changes&&(L|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!L&&!O){this.$changes|=L;return}if(this.$size.$dirty)return this.$changes|=L,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",L),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var M=this.layerConfig;if(L&this.CHANGE_FULL||L&this.CHANGE_SIZE||L&this.CHANGE_TEXT||L&this.CHANGE_LINES||L&this.CHANGE_SCROLL||L&this.CHANGE_H_SCROLL){if(L|=this.$computeLayerConfig()|this.$loop.clear(),M.firstRow!=this.layerConfig.firstRow&&M.firstRowScreen==this.layerConfig.firstRowScreen){var x=this.scrollTop+(M.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;x>0&&(this.scrollTop=x,L=L|this.CHANGE_SCROLL,L|=this.$computeLayerConfig()|this.$loop.clear())}M=this.layerConfig,this.$updateScrollBarV(),L&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-M.offset);var C=M.width+2*this.$padding+"px",S=M.minHeight+"px";f.setStyle(this.content.style,"width",C),f.setStyle(this.content.style,"height",S)}if(L&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-M.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),L&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(M),this.$showGutter&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M),this.$markerBack.update(M),this.$markerFront.update(M),this.$cursorLayer.update(M),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}if(L&this.CHANGE_SCROLL){this.$changedLines=null,L&this.CHANGE_TEXT||L&this.CHANGE_LINES?this.$textLayer.update(M):this.$textLayer.scrollLines(M),this.$showGutter&&(L&this.CHANGE_GUTTER||L&this.CHANGE_LINES?this.$gutterLayer.update(M):this.$gutterLayer.scrollLines(M)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M),this.$markerBack.update(M),this.$markerFront.update(M),this.$cursorLayer.update(M),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}L&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(M),this.$showGutter&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)):L&this.CHANGE_LINES?((this.$updateLines()||L&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)):L&this.CHANGE_TEXT||L&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)):L&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(M),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(M)),L&this.CHANGE_CURSOR&&(this.$cursorLayer.update(M),this.$moveTextAreaToCursor()),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(M),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(M),this._signal("afterRender",L)},E.prototype.$autosize=function(){var L=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,M=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,L))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(M+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&M>this.$maxPixelHeight&&(M=this.$maxPixelHeight);var x=M<=2*this.lineHeight,C=!x&&L>O;if(M!=this.desiredHeight||this.$size.height!=this.desiredHeight||C!=this.$vScroll){C!=this.$vScroll&&(this.$vScroll=C,this.scrollBarV.setVisible(C));var S=this.container.clientWidth;this.container.style.height=M+"px",this.$updateCachedSize(!0,this.$gutterWidth,S,M),this.desiredHeight=M,this._signal("autosize")}},E.prototype.$computeLayerConfig=function(){var L=this.session,O=this.$size,M=O.height<=2*this.lineHeight,x=this.session.getScreenLength(),C=x*this.lineHeight,S=this.$getLongestLine(),k=!M&&(this.$hScrollBarAlwaysVisible||O.scrollerWidth-S-2*this.$padding<0),T=this.$horizScroll!==k;T&&(this.$horizScroll=k,this.scrollBarH.setVisible(k));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),M=O.height<=2*this.lineHeight);var N=O.scrollerHeight+this.lineHeight,D=!this.$maxLines&&this.$scrollPastEnd?(O.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;C+=D;var F=this.scrollMargin;this.session.setScrollTop(Math.max(-F.top,Math.min(this.scrollTop,C-O.scrollerHeight+F.bottom))),this.session.setScrollLeft(Math.max(-F.left,Math.min(this.scrollLeft,S+2*this.$padding-O.scrollerWidth+F.right)));var H=!M&&(this.$vScrollBarAlwaysVisible||O.scrollerHeight-C+D<0||this.scrollTop>F.top),W=I!==H;W&&(this.$vScroll=H,this.scrollBarV.setVisible(H));var U=this.scrollTop%this.lineHeight,G=Math.ceil(N/this.lineHeight)-1,V=Math.max(0,Math.round((this.scrollTop-U)/this.lineHeight)),j=V+G,Z,X,Q=this.lineHeight;V=L.screenToDocumentRow(V,0);var le=L.getFoldLine(V);le&&(V=le.start.row),Z=L.documentToScreenRow(V,0),X=L.getRowLength(V)*Q,j=Math.min(L.screenToDocumentRow(j,0),L.getLength()-1),N=O.scrollerHeight+L.getRowLength(j)*Q+X,U=this.scrollTop-Z*Q,U<0&&Z>0&&(Z=Math.max(0,Z+Math.floor(U/Q)),U=this.scrollTop-Z*Q);var z=0;return(this.layerConfig.width!=S||T)&&(z=this.CHANGE_H_SCROLL),(T||W)&&(z|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),W&&(S=this.$getLongestLine())),this.layerConfig={width:S,padding:this.$padding,firstRow:V,firstRowScreen:Z,lastRow:j,lineHeight:Q,characterWidth:this.characterWidth,minHeight:N,maxHeight:C,offset:U,gutterOffset:Q?Math.max(0,Math.ceil((U+O.height-O.scrollerHeight)/Q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(S-this.$padding),z},E.prototype.$updateLines=function(){if(this.$changedLines){var L=this.$changedLines.firstRow,O=this.$changedLines.lastRow;this.$changedLines=null;var M=this.layerConfig;if(!(L>M.lastRow+1)&&!(O<M.firstRow)){if(O===1/0){this.$showGutter&&this.$gutterLayer.update(M),this.$textLayer.update(M);return}return this.$textLayer.updateLines(M,L,O),!0}}},E.prototype.$getLongestLine=function(){var L=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(L+=1),this.$textLayer&&L>this.$textLayer.MAX_LINE_LENGTH&&(L=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(L*this.characterWidth))},E.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},E.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},E.prototype.addGutterDecoration=function(L,O){this.$gutterLayer.addGutterDecoration(L,O)},E.prototype.removeGutterDecoration=function(L,O){this.$gutterLayer.removeGutterDecoration(L,O)},E.prototype.updateBreakpoints=function(L){this._rows=L,this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.setAnnotations=function(L){this.$gutterLayer.setAnnotations(L),this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},E.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},E.prototype.showCursor=function(){this.$cursorLayer.showCursor()},E.prototype.scrollSelectionIntoView=function(L,O,M){this.scrollCursorIntoView(L,M),this.scrollCursorIntoView(O,M)},E.prototype.scrollCursorIntoView=function(L,O,M){if(this.$size.scrollerHeight!==0){var x=this.$cursorLayer.getPixelPosition(L),C=x.left,S=x.top,k=M&&M.top||0,T=M&&M.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+k>S?(O&&I+k>S+this.lineHeight&&(S-=O*this.$size.scrollerHeight),S===0&&(S=-this.scrollMargin.top),this.session.setScrollTop(S)):I+this.$size.scrollerHeight-T<S+this.lineHeight&&(O&&I+this.$size.scrollerHeight-T<S-this.lineHeight&&(S+=O*this.$size.scrollerHeight),this.session.setScrollTop(S+this.lineHeight+T-this.$size.scrollerHeight));var N=this.scrollLeft,D=2*this.layerConfig.characterWidth;C-D<N?(C-=D,C<this.$padding+D&&(C=-this.scrollMargin.left),this.session.setScrollLeft(C)):(C+=D,N+this.$size.scrollerWidth<C+this.characterWidth?this.session.setScrollLeft(Math.round(C+this.characterWidth-this.$size.scrollerWidth)):N<=this.$padding&&C-N<this.characterWidth&&this.session.setScrollLeft(0))}},E.prototype.getScrollTop=function(){return this.session.getScrollTop()},E.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},E.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},E.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},E.prototype.scrollToRow=function(L){this.session.setScrollTop(L*this.lineHeight)},E.prototype.alignCursor=function(L,O){typeof L=="number"&&(L={row:L,column:0});var M=this.$cursorLayer.getPixelPosition(L),x=this.$size.scrollerHeight-this.lineHeight,C=M.top-x*(O||0);return this.session.setScrollTop(C),C},E.prototype.$calcSteps=function(L,O){var M=0,x=this.STEPS,C=[],S=function(k,T,I){return I*(Math.pow(k-1,3)+1)+T};for(M=0;M<x;++M)C.push(S(M/this.STEPS,L,O-L));return C},E.prototype.scrollToLine=function(L,O,M,x){var C=this.$cursorLayer.getPixelPosition({row:L,column:0}),S=C.top;O&&(S-=this.$size.scrollerHeight/2);var k=this.scrollTop;this.session.setScrollTop(S),M!==!1&&this.animateScrolling(k,x)},E.prototype.animateScrolling=function(L,O){var M=this.scrollTop;if(!this.$animatedScroll)return;var x=this;if(L==M)return;if(this.$scrollAnimation){var C=this.$scrollAnimation.steps;if(C.length&&(L=C[0],L==M))return}var S=x.$calcSteps(L,M);this.$scrollAnimation={from:L,to:M,steps:S},clearInterval(this.$timer),x.session.setScrollTop(S.shift()),x.session.$scrollTop=M;function k(){x.$timer=clearInterval(x.$timer),x.$scrollAnimation=null,x.$stopAnimation=!1,O&&O()}this.$timer=setInterval(function(){if(x.$stopAnimation){k();return}if(!x.session)return clearInterval(x.$timer);S.length?(x.session.setScrollTop(S.shift()),x.session.$scrollTop=M):M!=null?(x.session.$scrollTop=-1,x.session.setScrollTop(M),M=null):k()},10)},E.prototype.scrollToY=function(L){this.scrollTop!==L&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=L)},E.prototype.scrollToX=function(L){this.scrollLeft!==L&&(this.scrollLeft=L),this.$loop.schedule(this.CHANGE_H_SCROLL)},E.prototype.scrollTo=function(L,O){this.session.setScrollTop(O),this.session.setScrollLeft(L)},E.prototype.scrollBy=function(L,O){O&&this.session.setScrollTop(this.session.getScrollTop()+O),L&&this.session.setScrollLeft(this.session.getScrollLeft()+L)},E.prototype.isScrollableBy=function(L,O){if(O<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||O>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||L<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||L>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},E.prototype.pixelToScreenCoordinates=function(L,O){var M;if(this.$hasCssTransforms){M={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([L,O]);L=x[1]-this.gutterWidth-this.margin.left,O=x[0]}else M=this.scroller.getBoundingClientRect();var C=L+this.scrollLeft-M.left-this.$padding,S=C/this.characterWidth,k=Math.floor((O+this.scrollTop-M.top)/this.lineHeight),T=this.$blockCursor?Math.floor(S):Math.round(S);return{row:k,column:T,side:S-T>0?1:-1,offsetX:C}},E.prototype.screenToTextCoordinates=function(L,O){var M;if(this.$hasCssTransforms){M={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([L,O]);L=x[1]-this.gutterWidth-this.margin.left,O=x[0]}else M=this.scroller.getBoundingClientRect();var C=L+this.scrollLeft-M.left-this.$padding,S=C/this.characterWidth,k=this.$blockCursor?Math.floor(S):Math.round(S),T=Math.floor((O+this.scrollTop-M.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(k,0),C)},E.prototype.textToScreenCoordinates=function(L,O){var M=this.scroller.getBoundingClientRect(),x=this.session.documentToScreenPosition(L,O),C=this.$padding+(this.session.$bidiHandler.isBidiRow(x.row,L)?this.session.$bidiHandler.getPosLeft(x.column):Math.round(x.column*this.characterWidth)),S=x.row*this.lineHeight;return{pageX:M.left+C-this.scrollLeft,pageY:M.top+S-this.scrollTop}},E.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},E.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},E.prototype.showComposition=function(L){this.$composition=L,L.cssText||(L.cssText=this.textarea.style.cssText),L.useTextareaForIME==null&&(L.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):L.markerId=this.session.addMarker(L.markerRange,"ace_composition_marker","text")},E.prototype.setCompositionText=function(L){var O=this.session.selection.cursor;this.addToken(L,"composition_placeholder",O.row,O.column),this.$moveTextAreaToCursor()},E.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),f.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var L=this.session.selection.cursor;this.removeExtraToken(L.row,L.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},E.prototype.setGhostText=function(L,O){var M=this.session.selection.cursor,x=O||{row:M.row,column:M.column};this.removeGhostText();var C=this.$calculateWrappedTextChunks(L,x);this.addToken(C[0].text,"ghost_text",x.row,x.column),this.$ghostText={text:L,position:{row:x.row,column:x.column}};var S=f.createElement("div");if(C.length>1){var k=this.hideTokensAfterPosition(x.row,x.column),T;C.slice(1).forEach(function(W){var U=f.createElement("div"),G=f.createElement("span");G.className="ace_ghost_text",W.wrapped&&(U.className="ghost_text_line_wrapped"),W.text.length===0&&(W.text=" "),G.appendChild(f.createTextNode(W.text)),U.appendChild(G),S.appendChild(U),T=U}),k.forEach(function(W){var U=f.createElement("span");A(W.type)||(U.className="ace_"+W.type.replace(/\./g," ace_")),U.appendChild(f.createTextNode(W.value)),T.appendChild(U)}),this.$ghostTextWidget={el:S,row:x.row,column:x.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var I=this.$cursorLayer.getPixelPosition(x,!0),N=this.container,D=N.getBoundingClientRect().height,F=C.length*this.lineHeight,H=F<D-I.top;if(H)return;F<D?this.scrollBy(0,(C.length-1)*this.lineHeight):this.scrollToRow(x.row)}},E.prototype.$calculateWrappedTextChunks=function(L,O){var M=this.$size.scrollerWidth-this.$padding*2,x=Math.floor(M/this.characterWidth)-2;x=x<=0?60:x;for(var C=L.split(/\r?\n/),S=[],k=0;k<C.length;k++){var T=this.session.$getDisplayTokens(C[k],O.column),I=this.session.$computeWrapSplits(T,x,this.session.$tabSize);if(I.length>0){var N=0;I.push(C[k].length);for(var D=0;D<I.length;D++){var F=C[k].slice(N,I[D]);S.push({text:F,wrapped:!0}),N=I[D]}}else S.push({text:C[k],wrapped:!1})}return S},E.prototype.removeGhostText=function(){if(this.$ghostText){var L=this.$ghostText.position;this.removeExtraToken(L.row,L.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},E.prototype.addToken=function(L,O,M,x){var C=this.session;C.bgTokenizer.lines[M]=null;var S={type:O,value:L},k=C.getTokens(M);if(x==null||!k.length)k.push(S);else for(var T=0,I=0;I<k.length;I++){var N=k[I];if(T+=N.value.length,x<=T){var D=N.value.length-(T-x),F=N.value.slice(0,D),H=N.value.slice(D);k.splice(I,1,{type:N.type,value:F},S,{type:N.type,value:H});break}}this.updateLines(M,M)},E.prototype.hideTokensAfterPosition=function(L,O){for(var M=this.session.getTokens(L),x=0,C=!1,S=[],k=0;k<M.length;k++){var T=M[k];if(x+=T.value.length,T.type!=="ghost_text"){if(C){S.push({type:T.type,value:T.value}),T.type="hidden_token";continue}x===O&&(C=!0)}}return this.updateLines(L,L),S},E.prototype.removeExtraToken=function(L,O){this.session.bgTokenizer.lines[L]=null,this.updateLines(L,L)},E.prototype.setTheme=function(L,O){var M=this;if(this.$themeId=L,M._dispatchEvent("themeChange",{theme:L}),!L||typeof L=="string"){var x=L||this.$options.theme.initialValue;s.loadModule(["theme",x],C)}else C(L);function C(S){if(M.$themeId!=L)return O&&O();if(!S||!S.cssClass)throw new Error("couldn't load module "+L+" or it didn't call define");S.$id&&(M.$themeId=S.$id),f.importCssString(S.cssText,S.cssClass,M.container),M.theme&&f.removeCssClass(M.container,M.theme.cssClass);var k="padding"in S?S.padding:"padding"in(M.theme||{})?4:M.$padding;M.$padding&&k!=M.$padding&&M.setPadding(k),M.$theme=S.cssClass,M.theme=S,f.addCssClass(M.container,S.cssClass),f.setCssClass(M.container,"ace_dark",S.isDark),M.$size&&(M.$size.width=0,M.$updateSizeAsync()),M._dispatchEvent("themeLoaded",{theme:S}),O&&O(),b.isSafari&&M.scroller&&(M.scroller.style.background="red",M.scroller.style.background="")}},E.prototype.getTheme=function(){return this.$themeId},E.prototype.setStyle=function(L,O){f.setCssClass(this.container,L,O!==!1)},E.prototype.unsetStyle=function(L){f.removeCssClass(this.container,L)},E.prototype.setCursorStyle=function(L){f.setStyle(this.scroller.style,"cursor",L)},E.prototype.setMouseCursor=function(L){f.setStyle(this.scroller.style,"cursor",L)},E.prototype.attachToShadowRoot=function(){f.importCssString($,"ace_editor.css",this.container)},E.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},E.prototype.$updateCustomScrollbar=function(L){var O=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),L===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(M){O.$scrollAnimation||O.session.setScrollTop(M.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(M){O.$scrollAnimation||O.session.setScrollLeft(M.data-O.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new w(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new c(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function(M){O.$scrollAnimation||O.session.setScrollTop(M.data-O.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(M){O.$scrollAnimation||O.session.setScrollLeft(M.data-O.scrollMargin.left)}))},E.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var L=this;this.$resizeTimer=g.delayedCall(function(){L.destroyed||L.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(O){var M=O[0].contentRect.width,x=O[0].contentRect.height;Math.abs(L.$size.width-M)>1||Math.abs(L.$size.height-x)>1?L.$resizeTimer.delay():L.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},E}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,h.implement(R.prototype,_),s.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(E){!E&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):E&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(E){this.$textLayer.setShowInvisibles(E)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(E){typeof E=="number"&&(this.$printMarginColumn=E),this.$showPrintMargin=!!E,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(E){this.$gutter.style.display=E?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(E){this.$gutterLayer.$useSvgGutterIcons=E},initialValue:!1},showFoldedAnnotations:{set:function(E){this.$gutterLayer.$showFoldedAnnotations=E},initialValue:!1},fadeFoldWidgets:{set:function(E){f.setCssClass(this.$gutter,"ace_fade-fold-widgets",E)},initialValue:!1},showFoldWidgets:{set:function(E){this.$gutterLayer.setShowFoldWidgets(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(E){this.$textLayer.setDisplayIndentGuides(E)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(E){this.$textLayer.setHighlightIndentGuides(E)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(E){this.$gutterLayer.setHighlightGutterLine(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(E){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(E){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(E){typeof E=="number"&&(E=E+"px"),this.container.style.fontSize=E,this.updateFontSize()},initialValue:12},fontFamily:{set:function(E){this.container.style.fontFamily=E,this.updateFontSize()}},maxLines:{set:function(E){this.updateFull()}},minLines:{set:function(E){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(E){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(E){E=+E||0,this.$scrollPastEnd!=E&&(this.$scrollPastEnd=E,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(E){this.$gutterLayer.$fixedWidth=!!E,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(E){this.$updateCustomScrollbar(E)},initialValue:!1},theme:{set:function(E){this.setTheme(E)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,i){var h=n("../lib/oop"),f=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function p(l){var c="importScripts('"+f.qualifyURL(l)+"');";try{return new Blob([c],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new d;return m.append(c),m.getBlob("application/javascript")}}function o(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var c=p(l),d=window.URL||window.webkitURL,m=d.createObjectURL(c);return new Worker(m)}return new Worker(l)}var a=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,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(){h.implement(this,g),this.$createWorkerFromOldConfig=function(l,c,d,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(c,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var _={};l.forEach(function($){_[$]=y(n.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:_,module:c,classname:d}),this.$worker},this.onMessage=function(l){var c=l.data;switch(c.type){case"event":this._signal(c.name,{data:c.data});break;case"call":var d=this.callbacks[c.id];d&&(d(c.data),delete this.callbacks[c.id]);break;case"error":this.reportError(c.data);break;case"log":window.console&&console.log&&console.log.apply(console,c.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return f.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,c){this.$worker.postMessage({command:l,args:c})},this.call=function(l,c,d){if(d){var m=this.callbackId++;this.callbacks[m]=d,c.push(m)}this.send(l,c)},this.emit=function(l,c){try{c.data&&c.data.err&&(c.data.err={message:c.data.err.message,stack:c.data.err.stack,code:c.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:c.data}})}catch(d){console.error(d.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(a.prototype);var u=function(l,c,d){var m=null,v=!1,y=Object.create(g),_=[],$=new a({messageBuffer:_,terminate:function(){},postMessage:function(b){_.push(b),m&&(v?setTimeout(w):w())}});$.setEmitSync=function(b){v=b};var w=function(){var b=_.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){$.onMessage({data:b})},y.callback=function(b,A){this.postMessage({type:"call",id:A,data:b})},y.emit=function(b,A){this.postMessage({type:"event",name:b,data:A})},s.loadModule(["worker",c],function(b){for(m=new b[d](y);_.length;)w()}),$};r.UIWorkerClient=u,r.WorkerClient=a,r.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,i){var h=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function p(o,a,u,l,c,d){var m=this;this.length=a,this.session=o,this.doc=o.getDocument(),this.mainClass=c,this.othersClass=d,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=u;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var o=this,a=this.doc,u=this.session;this.selectionBefore=u.selection.toJSON(),u.selection.inMultiSelectMode&&u.selection.toSingleRange(),this.pos=a.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=u.addMarker(new h(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(c){var d=a.createAnchor(c.row,c.column);d.$insertRight=!0,d.detach(),o.others.push(d)}),u.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,a=this;this.othersActive=!0,this.others.forEach(function(u){u.markerId=o.addMarker(new h(u.row,u.column,u.row,u.column+a.length),a.othersClass,null,!1)})}},p.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)}},p.prototype.onUpdate=function(o){if(this.$updating)return this.updateAnchors(o);var a=o;if(a.start.row===a.end.row&&a.start.row===this.pos.row){this.$updating=!0;var u=o.action==="insert"?a.end.column-a.start.column:a.start.column-a.end.column,l=a.start.column>=this.pos.column&&a.start.column<=this.pos.column+this.length+1,c=a.start.column-this.pos.column;if(this.updateAnchors(o),l&&(this.length+=u),l&&!this.session.$fromUndo){if(o.action==="insert")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],v={row:m.row,column:m.column+c};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var d=this.others.length-1;d>=0;d--){var m=this.others[d],v={row:m.row,column:m.column+c};this.doc.remove(new h(v.row,v.column,v.row,v.column-u))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var a=this.others.length;a--;)this.others[a].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,a=this.session,u=function(c,d){a.removeMarker(c.markerId),c.markerId=a.addMarker(new h(c.row,c.column,c.row,c.column+o.length),d,null,!1)};u(this.pos,this.mainClass);for(var l=this.others.length;l--;)u(this.others[l],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var a=this.session.selection.getCursor();a.row===this.pos.row&&a.column>=this.pos.column&&a.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),a=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,u=0;u<a;u++)o.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},p}();g.implement(s.prototype,f),r.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,i){var h=n("../lib/event"),f=n("../lib/useragent");function g(p,o){return p.row==o.row&&p.column==o.column}function s(p){var o=p.domEvent,a=o.altKey,u=o.shiftKey,l=o.ctrlKey,c=p.getAccelKey(),d=p.getButton();if(l&&f.isMac&&(d=o.button),p.editor.inMultiSelectMode&&d==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!l&&!a&&!c){d===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(d===0){var m=p.editor,v=m.selection,y=m.inMultiSelectMode,_=p.getDocumentPosition(),$=v.getCursor(),w=p.inSelection()||v.isEmpty()&&g(_,$),b=p.x,A=p.y,R=function(F){b=F.clientX,A=F.clientY},E=m.session,L=m.renderer.pixelToScreenCoordinates(b,A),O=L,M;if(m.$mouseHandler.$enableJumpToDef)l&&a||c&&a?M=u?"block":"add":a&&m.$blockSelectEnabled&&(M="block");else if(c&&!a){if(M="add",!y&&u)return}else a&&m.$blockSelectEnabled&&(M="block");if(M&&f.isMac&&o.ctrlKey&&m.$mouseHandler.cancelContextMenu(),M=="add"){if(!y&&w)return;if(!y){var x=v.toOrientedRange();m.addSelectionMarker(x)}var C=v.rangeList.rangeAtPoint(_);m.inVirtualSelectionMode=!0,u&&(C=null,x=v.ranges[0]||x,m.removeSelectionMarker(x)),m.once("mouseup",function(){var F=v.toOrientedRange();C&&F.isEmpty()&&g(C.cursor,F.cursor)?v.substractPoint(F.cursor):(u?v.substractPoint(x.cursor):x&&(m.removeSelectionMarker(x),v.addRange(x)),v.addRange(F)),m.inVirtualSelectionMode=!1})}else if(M=="block"){p.stop(),m.inVirtualSelectionMode=!0;var S,k=[],T=function(){var F=m.renderer.pixelToScreenCoordinates(b,A),H=E.screenToDocumentPosition(F.row,F.column,F.offsetX);g(O,F)&&g(H,v.lead)||(O=F,m.selection.moveToPosition(H),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(k),k=v.rectangularRangeBlock(O,L),m.$mouseHandler.$clickSelection&&k.length==1&&k[0].isEmpty()&&(k[0]=m.$mouseHandler.$clickSelection.clone()),k.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};y&&!c?v.toSingleRange():!y&&c&&(S=v.toOrientedRange(),m.addSelectionMarker(S)),u?L=E.documentToScreenPosition(v.lead):v.moveToPosition(_),O={row:-1,column:-1};var I=function(F){T(),clearInterval(D),m.removeSelectionMarkers(k),k.length||(k=[v.toOrientedRange()]),S&&(m.removeSelectionMarker(S),v.toSingleRange(S));for(var H=0;H<k.length;H++)v.addRange(k[H]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},N=T;h.capture(m.container,R,I);var D=setInterval(function(){N()},20);return p.preventDefault()}}}r.onMouseDown=s}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,i){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(f){f.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(f){f.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(f){f.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(f){f.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(f){f.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(f){f.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(f){f.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(f){f.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(f){f.multiSelect.rangeCount>1?f.multiSelect.joinSelections():f.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(f){f.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(f){f.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(f){f.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(f){f.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(f){return f&&f.inMultiSelectMode}}];var h=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new h(r.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,r,i){var h=n("./range_list").RangeList,f=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),o=n("./lib/lang"),a=n("./commands/multi_select_commands");r.commands=a.defaultCommands.concat(a.multiSelectCommands);var u=n("./search").Search,l=new u;function c($,w,b){return l.$options.wrap=!0,l.$options.needle=w,l.$options.backwards=b==-1,l.find($)}var d=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function($,w){if($){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add($),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),w||this.fromOrientedRange($);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}$.cursor||($.cursor=$.end);var A=this.rangeList.add($);return this.$onAddRange($),A.length&&this.$onRemoveRange(A),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange($)}},this.toSingleRange=function($){$=$||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),$&&this.fromOrientedRange($)},this.substractPoint=function($){var w=this.rangeList.substractPoint($);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var $=this.rangeList.merge();$.length&&this.$onRemoveRange($)},this.$onAddRange=function($){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift($),this._signal("addRange",{range:$})},this.$onRemoveRange=function($){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();$.push(w),this.rangeCount=0}for(var b=$.length;b--;){var A=this.ranges.indexOf($[b]);this.ranges.splice(A,1)}this._signal("removeRange",{ranges:$}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new h,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var $=this.ranges.length?this.ranges:[this.getRange()],w=[],b=0;b<$.length;b++){var A=$[b],R=A.start.row,E=A.end.row;if(R===E)w.push(A.clone());else{for(w.push(new f(R,A.start.column,R,this.session.getLine(R).length));++R<E;)w.push(this.getLineRange(R,!0));w.push(new f(E,0,E,A.end.column))}b==0&&!this.isBackwards()&&(w=w.reverse())}this.toSingleRange();for(var b=w.length;b--;)this.addRange(w[b])},this.joinSelections=function(){var $=this.rangeList.ranges,w=$[$.length-1],b=f.fromPoints($[0].start,w.end);this.toSingleRange(),this.setSelectionRange(b,w.cursor==w.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var $=this.rangeList.ranges,w=$[$.length-1],b=f.fromPoints($[0].start,w.end);this.toSingleRange(),this.setSelectionRange(b,w.cursor==w.start)}else{var A=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(A,R);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function($,w,b){var A=[],R=$.column<w.column;if(R)var E=$.column,L=w.column,O=$.offsetX,M=w.offsetX;else var E=w.column,L=$.column,O=w.offsetX,M=$.offsetX;var x=$.row<w.row;if(x)var C=$.row,S=w.row;else var C=w.row,S=$.row;E<0&&(E=0),C<0&&(C=0),C==S&&(b=!0);for(var k,T=C;T<=S;T++){var I=f.fromPoints(this.session.screenToDocumentPosition(T,E,O),this.session.screenToDocumentPosition(T,L,M));if(I.isEmpty()){if(k&&v(I.end,k))break;k=I.end}I.cursor=R?I.start:I.end,A.push(I)}if(x&&A.reverse(),!b){for(var N=A.length-1;A[N].isEmpty()&&N>0;)N--;if(N>0)for(var D=0;A[D].isEmpty();)D++;for(var F=N;F>=D;F--)A[F].isEmpty()&&A.splice(F,1)}return A}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function($){$.cursor||($.cursor=$.end);var w=this.getSelectionStyle();return $.marker=this.session.addMarker($,"ace_selection",w),this.session.$selectionMarkers.push($),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,$},this.removeSelectionMarker=function($){if($.marker){this.session.removeMarker($.marker);var w=this.session.$selectionMarkers.indexOf($);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function($){for(var w=this.session.$selectionMarkers,b=$.length;b--;){var A=$[b];if(A.marker){this.session.removeMarker(A.marker);var R=w.indexOf(A);R!=-1&&w.splice(R,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function($){this.addSelectionMarker($.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function($){this.removeSelectionMarkers($.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function($){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(a.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function($){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(a.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function($){var w=$.command,b=$.editor;if(b.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?A=b.forEachSelection(w,$.args):w.multiSelectAction=="forEachLine"?A=b.forEachSelection(w,$.args,!0):w.multiSelectAction=="single"?(b.exitMultiSelectMode(),A=w.exec(b,$.args||{})):A=w.multiSelectAction(b,$.args||{});else{var A=w.exec(b,$.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return A}},this.forEachSelection=function($,w,b){if(!this.inVirtualSelectionMode){var A=b&&b.keepOrder,R=b==!0||b&&b.$byLines,E=this.session,L=this.selection,O=L.rangeList,M=(A?L:O).ranges,x;if(!M.length)return $.exec?$.exec(this,w||{}):$(this,w||{});var C=L._eventRegistry;L._eventRegistry={};var S=new g(E);this.inVirtualSelectionMode=!0;for(var k=M.length;k--;){if(R)for(;k>0&&M[k].start.row==M[k-1].end.row;)k--;S.fromOrientedRange(M[k]),S.index=k,this.selection=E.selection=S;var T=$.exec?$.exec(this,w||{}):$(this,w||{});!x&&T!==void 0&&(x=T),S.toOrientedRange(M[k])}S.detach(),this.selection=E.selection=L,this.inVirtualSelectionMode=!1,L._eventRegistry=C,L.mergeOverlappingRanges(),L.ranges[0]&&L.fromOrientedRange(L.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),x}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var $="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,b=[],A=0;A<w.length;A++)b.push(this.session.getTextRange(w[A]));var R=this.session.getDocument().getNewLineCharacter();$=b.join(R),$.length==(b.length-1)*R.length&&($="")}else this.selection.isEmpty()||($=this.session.getTextRange(this.getSelectionRange()));return $},this.$checkMultiselectChange=function($,w){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&w==this.multiSelect.anchor)return;var A=w==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;A.row!=w.row||this.session.$clipPositionToDocument(A.row,A.column).column!=w.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function($,w,b){if(w=w||{},w.needle=$||w.needle,w.needle==null){var A=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();w.needle=this.session.getTextRange(A)}this.$search.set(w);var R=this.$search.findAll(this.session);if(!R.length)return 0;var E=this.multiSelect;b||E.toSingleRange(R[0]);for(var L=R.length;L--;)E.addRange(R[L],!0);return A&&E.rangeList.rangeAtPoint(A.start)&&E.addRange(A,!0),R.length},this.selectMoreLines=function($,w){var b=this.selection.toOrientedRange(),A=b.cursor==b.end,R=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var E=this.session.screenToDocumentPosition(R.row+$,R.column);if(b.isEmpty())var O=E;else var L=this.session.documentToScreenPosition(A?b.end:b.start),O=this.session.screenToDocumentPosition(L.row+$,L.column);if(A){var M=f.fromPoints(E,O);M.cursor=M.start}else{var M=f.fromPoints(O,E);M.cursor=M.end}if(M.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(w)var x=b.cursor;this.selection.addRange(M),x&&this.selection.substractPoint(x)},this.transposeSelections=function($){for(var w=this.session,b=w.multiSelect,A=b.ranges,R=A.length;R--;){var E=A[R];if(E.isEmpty()){var L=w.getWordRange(E.start.row,E.start.column);E.start.row=L.start.row,E.start.column=L.start.column,E.end.row=L.end.row,E.end.column=L.end.column}}b.mergeOverlappingRanges();for(var O=[],R=A.length;R--;){var E=A[R];O.unshift(w.getTextRange(E))}$<0?O.unshift(O.pop()):O.push(O.shift());for(var R=A.length;R--;){var E=A[R],M=E.clone();w.replace(E,O[R]),E.start.row=M.start.row,E.start.column=M.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function($,w,b){var A=this.session,R=A.multiSelect,E=R.toOrientedRange();if(!(E.isEmpty()&&(E=A.getWordRange(E.start.row,E.start.column),E.cursor=$==-1?E.start:E.end,this.multiSelect.addRange(E),b))){var L=A.getTextRange(E),O=c(A,L,$);O&&(O.cursor=$==-1?O.start:O.end,this.session.unfold(O),this.multiSelect.addRange(O),this.renderer.scrollCursorIntoView(null,.5)),w&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var $=this.session,w=$.multiSelect,b=w.ranges,A=-1,R=b.filter(function(N){if(N.cursor.row==A)return!0;A=N.cursor.row});if(!b.length||R.length==b.length-1){var E=this.selection.getRange(),L=E.start.row,O=E.end.row,M=L==O;if(M){var x=this.session.getLength(),C;do C=this.session.getLine(O);while(/[=:]/.test(C)&&++O<x);do C=this.session.getLine(L);while(/[=:]/.test(C)&&--L>0);L<0&&(L=0),O>=x&&(O=x-1)}var S=this.session.removeFullLines(L,O);S=this.$reAlignText(S,M),this.session.insert({row:L,column:0},S.join(`
|
1573
|
+
`)+`
|
1574
|
+
`),M||(E.start.column=0,E.end.column=S[S.length-1].length),this.selection.setRange(E)}else{R.forEach(function(N){w.substractPoint(N.cursor)});var k=0,T=1/0,I=b.map(function(N){var D=N.cursor,F=$.getLine(D.row),H=F.substr(D.column).search(/\S/g);return H==-1&&(H=0),D.column>k&&(k=D.column),H<T&&(T=H),H});b.forEach(function(N,D){var F=N.cursor,H=k-F.column,W=I[D]-T;H>W?$.insert(F,o.stringRepeat(" ",H-W)):$.remove(new f(F.row,F.column,F.row,F.column-H+W)),N.start.column=N.end.column=k,N.start.row=N.end.row=F.row,N.cursor=N.end}),w.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function($,w){var b=!0,A=!0,R,E,L;return $.map(function(S){var k=S.match(/(\s*)(.*?)(\s*)([=:].*)/);return k?R==null?(R=k[1].length,E=k[2].length,L=k[3].length,k):(R+E+L!=k[1].length+k[2].length+k[3].length&&(A=!1),R!=k[1].length&&(b=!1),R>k[1].length&&(R=k[1].length),E<k[2].length&&(E=k[2].length),L>k[3].length&&(L=k[3].length),k):[S]}).map(w?M:b?A?x:M:C);function O(S){return o.stringRepeat(" ",S)}function M(S){return S[2]?O(R)+S[2]+O(E-S[2].length+L)+S[4].replace(/^([=:])\s+/,"$1 "):S[0]}function x(S){return S[2]?O(R+E-S[2].length)+S[2]+O(L)+S[4].replace(/^([=:])\s+/,"$1 "):S[0]}function C(S){return S[2]?O(R)+S[2]+O(L)+S[4].replace(/^([=:])\s+/,"$1 "):S[0]}}}).call(m.prototype);function v($,w){return $.row==w.row&&$.column==w.column}r.onSessionChange=function($){var w=$.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var b=$.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y($){$.$multiselectOnSessionChange||($.$onAddRange=$.$onAddRange.bind($),$.$onRemoveRange=$.$onRemoveRange.bind($),$.$onMultiSelect=$.$onMultiSelect.bind($),$.$onSingleSelect=$.$onSingleSelect.bind($),$.$multiselectOnSessionChange=r.onSessionChange.bind($),$.$checkMultiselectChange=$.$checkMultiselectChange.bind($),$.$multiselectOnSessionChange($),$.on("changeSession",$.$multiselectOnSessionChange),$.on("mousedown",s),$.commands.addCommands(a.defaultCommands),_($))}function _($){if(!$.textInput)return;var w=$.textInput.getElement(),b=!1;p.addListener(w,"keydown",function(R){var E=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);$.$blockSelectEnabled&&E?b||($.renderer.setMouseCursor("crosshair"),b=!0):b&&A()},$),p.addListener(w,"keyup",A,$),p.addListener(w,"blur",A,$);function A(R){b&&($.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function($){y(this),$?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function($){this.$blockSelectEnabled=$},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,i){var h=n("../../range").Range,f=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,p){var o=g.getLine(p);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,p){return null},this.indentationBlock=function(g,s,p){var o=/\S/,a=g.getLine(s),u=a.search(o);if(u!=-1){for(var l=p||a.length,c=g.getLength(),d=s,m=s;++s<c;){var v=g.getLine(s).search(o);if(v!=-1){if(v<=u){var y=g.getTokenAt(s,0);if(!y||y.type!=="string")break}m=s}}if(m>d){var _=g.getLine(m).length;return new h(d,l,m,_)}}},this.openingBracketBlock=function(g,s,p,o,a){var u={row:p,column:o+1},l=g.$findClosingBracket(s,u,a);if(l){var c=g.foldWidgets[l.row];return c==null&&(c=g.getFoldWidget(l.row)),c=="start"&&l.row>u.row&&(l.row--,l.column=g.getLine(l.row).length),h.fromPoints(u,l)}},this.closingBracketBlock=function(g,s,p,o,a){var u={row:p,column:o},l=g.$findOpeningBracket(s,u);if(l)return l.column++,u.column--,h.fromPoints(l,u)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(n,r,i){var h=n("../lib/dom"),f=n("../range").Range,g=n("../config").nls;function s(o,a,u){for(var l=0,c=o.length-1;l<=c;){var d=l+c>>1,m=u(a,o[d]);if(m>0)l=d+1;else if(m<0)c=d-1;else return d}return-(l+1)}function p(o,a,u){var l=o.getAnnotations().sort(f.comparePoints);if(l.length){var c=s(l,{row:a,column:-1},f.comparePoints);c<0&&(c=-c-1),c>=l.length?c=u>0?0:l.length-1:c===0&&u<0&&(c=l.length-1);var d=l[c];if(!(!d||!u)){if(d.row===a){do d=l[c+=u];while(d&&d.row===a);if(!d)return l.slice()}var m=[];a=d.row;do m[u<0?"unshift":"push"](d),d=l[c+=u];while(d&&d.row==a);return m.length&&m}}}r.showErrorMarker=function(o,a){var u=o.session,l=o.getCursorPosition(),c=l.row,d=u.widgetManager.getWidgetsAtRow(c).filter(function(R){return R.type=="errorMarker"})[0];d?d.destroy():c-=a;var m=p(u,c,a),v;if(m){var y=m[0];l.column=(y.pos&&typeof y.column!="number"?y.pos.sc:y.column)||0,l.row=y.row,v=o.renderer.$gutterLayer.$annotations[l.row]}else{if(d)return;v={displayText:[g("error-marker.good-state","Looks good!")],className:"ace_ok"}}o.session.unfold(l.row),o.selection.moveToPosition(l);var _={row:l.row,fixedWidth:!0,coverGutter:!0,el:h.createElement("div"),type:"errorMarker"},$=_.el.appendChild(h.createElement("div")),w=_.el.appendChild(h.createElement("div"));w.className="error_widget_arrow "+v.className;var b=o.renderer.$cursorLayer.getPixelPosition(l).left;w.style.left=b+o.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",$.className="error_widget "+v.className,v.displayText.forEach(function(R,E){$.appendChild(h.createTextNode(R)),E<v.displayText.length-1&&$.appendChild(h.createElement("br"))}),$.appendChild(h.createElement("div"));var A=function(R,E,L){if(E===0&&(L==="esc"||L==="return"))return _.destroy(),{command:"null"}};_.destroy=function(){o.$mouseHandler.isMousePressed||(o.keyBinding.removeKeyboardHandler(A),u.widgetManager.removeLineWidget(_),o.off("changeSelection",_.destroy),o.off("changeSession",_.destroy),o.off("mouseup",_.destroy),o.off("change",_.destroy))},o.keyBinding.addKeyboardHandler(A),o.on("changeSelection",_.destroy),o.on("changeSession",_.destroy),o.on("mouseup",_.destroy),o.on("change",_.destroy),o.session.widgetManager.addLineWidget(_),_.el.onmousedown=o.focus.bind(o),o.renderer.scrollCursorIntoView(null,.5,{bottom:_.el.offsetHeight})},h.importCssString(`
|
1575
|
+
.error_widget_wrapper {
|
1576
|
+
background: inherit;
|
1577
|
+
color: inherit;
|
1578
|
+
border:none
|
1579
|
+
}
|
1580
|
+
.error_widget {
|
1581
|
+
border-top: solid 2px;
|
1582
|
+
border-bottom: solid 2px;
|
1583
|
+
margin: 5px 0;
|
1584
|
+
padding: 10px 40px;
|
1585
|
+
white-space: pre-wrap;
|
1586
|
+
}
|
1587
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
1588
|
+
border-color: #ff5a5a
|
1589
|
+
}
|
1590
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
1591
|
+
border-color: #F1D817
|
1592
|
+
}
|
1593
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
1594
|
+
border-color: #5a5a5a
|
1595
|
+
}
|
1596
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
1597
|
+
border-color: #5aaa5a
|
1598
|
+
}
|
1599
|
+
.error_widget_arrow {
|
1600
|
+
position: absolute;
|
1601
|
+
border: solid 5px;
|
1602
|
+
border-top-color: transparent!important;
|
1603
|
+
border-right-color: transparent!important;
|
1604
|
+
border-left-color: transparent!important;
|
1605
|
+
top: -5px;
|
1606
|
+
}
|
1607
|
+
`,"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,r,i){n("./loader_build")(r);var h=n("./lib/dom"),f=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,p=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"),r.config=n("./config"),r.edit=function(u,l){if(typeof u=="string"){var c=u;if(u=document.getElementById(c),!u)throw new Error("ace.edit can't find div #"+c)}if(u&&u.env&&u.env.editor instanceof g)return u.env.editor;var d="";if(u&&/input|textarea/i.test(u.tagName)){var m=u;d=m.value,u=h.createElement("pre"),m.parentNode.replaceChild(u,m)}else u&&(d=u.textContent,u.innerHTML="");var v=r.createEditSession(d),y=new g(new o(u),v,l),_={document:v,editor:y,onResize:y.resize.bind(y,null)};return m&&(_.textarea=m),y.on("destroy",function(){_.editor.container.env=null}),y.container.env=y.env=_,y},r.createEditSession=function(u,l){var c=new s(u,l);return c.setUndoManager(new p),c},r.Range=f,r.Editor=g,r.EditSession=s,r.UndoManager=p,r.VirtualRenderer=o;var a=r.config.version;r.version=a}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var i in n)n.hasOwnProperty(i)&&(r.ace[i]=n[i]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()}(Fs)),Fs.exports}var WL=zL();const Ol=$r(WL),jL="/assets/mode-yaml-ELgwiJiP.js",BL="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Ol.config.setModuleUrl("ace/mode/yaml",jL);Ol.config.setModuleUrl("ace/theme/monokai",BL);var yg=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,h){return i[0]===n?(r=h,!0):!1}),r}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 r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,h=this.__entries__;i<h.length;i++){var f=h[i];n.call(r,f[1],f[0])}},t}()}(),La=typeof window<"u"&&typeof document<"u"&&window.document===document,mo=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")()}(),HL=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(mo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),UL=2;function VL(e,t){var n=!1,r=!1,i=0;function h(){n&&(n=!1,e()),r&&g()}function f(){HL(h)}function g(){var s=Date.now();if(n){if(s-i<UL)return;r=!0}else n=!0,r=!1,setTimeout(f,t);i=s}return g}var GL=20,ZL=["top","right","bottom","left","width","height","size","weight"],YL=typeof MutationObserver<"u",KL=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=VL(this.refresh.bind(this),GL)}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_,r=n.indexOf(t);~r&&n.splice(r,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(){!La||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),YL?(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(){!La||!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,r=n===void 0?"":n,i=ZL.some(function(h){return!!~r.indexOf(h)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bg=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},pr=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||mo},wg=rs(0,0,0,0);function vo(e){return parseFloat(e)||0}function gh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var h=e["border-"+i+"-width"];return r+vo(h)},0)}function XL(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var h=i[r],f=e["padding-"+h];n[h]=vo(f)}return n}function QL(e){var t=e.getBBox();return rs(0,0,t.width,t.height)}function JL(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return wg;var r=pr(e).getComputedStyle(e),i=XL(r),h=i.left+i.right,f=i.top+i.bottom,g=vo(r.width),s=vo(r.height);if(r.boxSizing==="border-box"&&(Math.round(g+h)!==t&&(g-=gh(r,"left","right")+h),Math.round(s+f)!==n&&(s-=gh(r,"top","bottom")+f)),!eR(e)){var p=Math.round(g+h)-t,o=Math.round(s+f)-n;Math.abs(p)!==1&&(g-=p),Math.abs(o)!==1&&(s-=o)}return rs(i.left,i.top,g,s)}var qL=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof pr(e).SVGGraphicsElement}:function(e){return e instanceof pr(e).SVGElement&&typeof e.getBBox=="function"}}();function eR(e){return e===pr(e).document.documentElement}function tR(e){return La?qL(e)?QL(e):JL(e):wg}function nR(e){var t=e.x,n=e.y,r=e.width,i=e.height,h=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(h.prototype);return bg(f,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),f}function rs(e,t,n,r){return{x:e,y:t,width:n,height:r}}var rR=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=tR(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}(),iR=function(){function e(t,n){var r=nR(n);bg(this,{target:t,contentRect:r})}return e}(),oR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new yg,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}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 pr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new rR(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 pr(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(r){return new iR(r.target,r.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}(),Sg=typeof WeakMap<"u"?new WeakMap:new yg,$g=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=KL.getInstance(),r=new oR(t,n,this);Sg.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$g.prototype[e]=function(){var t;return(t=Sg.get(this))[e].apply(t,arguments)}});var sR=function(){return typeof mo.ResizeObserver<"u"?mo.ResizeObserver:$g}();const mh=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],_g=ve({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...mh],render(){return No("div")},mounted(){const e=this._editor=Vf(Ol.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)}),mh.forEach(t=>{const n="on"+ii(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new sR(()=>e.resize()),this._ro.observe(this.$el),this.$emit("init",e)},beforeUnmount(){var e,t;(e=this._ro)===null||e===void 0||e.disconnect(),(t=this._editor)===null||t===void 0||t.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()},getAceInstance(){return this._editor}},watch:{value(e){if(this._contentBackup!==e){try{this._isSettingContent=!0,this._editor.setValue(e,1)}finally{this._isSettingContent=!1}this._contentBackup=e}},theme(e){this._editor.setTheme("ace/theme/"+e)},options(e){this._editor.setOptions(e)},readonly(e){this._editor.setReadOnly(e)},placeholder(e){this._editor.setOption("placeholder",e)},wrap(e){this._editor.setWrapBehavioursEnabled(e)},printMargin(e){this._editor.setOption("printMargin",e)},lang(e){this._editor.setOption("mode","ace/mode/"+e)},minLines(e){this._editor.setOption("minLines",e)},maxLines(e){this._editor.setOption("maxLines",e)}}}),aR={class:"block"},Cg=ve({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,r=t,i=tl(n,"yaml");return al(()=>{r("update-yaml",i.value)}),(h,f)=>(K(),re("div",aR,[ie(oe(_g),{class:"vue-ace-editor",value:i.value,"onUpdate:value":f[0]||(f[0]=g=>i.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),lR={class:"block"},cR={class:"is-size-2 block"},uR={class:"field is-grouped is-grouped-centered"},hR={class:"control"},fR={class:"icon is-small"},dR={key:0,class:"block"},pR=ve({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=yr(),r=tl(t.rule.yaml),i=ik(),h=g=>{r.value=g},f=async()=>{const g=await i.perform({yaml:r.value});n.push({name:"Rule",params:{id:g.id}})};return(g,s)=>{const p=De("font-awesome-icon");return K(),re(Ee,null,[P("div",lR,[P("h2",cR,"Edit rule: "+pe(e.rule.id),1),ie(Cg,{yaml:r.value,"onUpdate:yaml":s[0]||(s[0]=o=>r.value=o),onUpdateYaml:h},null,8,["yaml"]),P("div",uR,[P("p",hR,[P("a",{class:"button is-primary",onClick:f},[P("span",fR,[ie(p,{icon:"edit"})]),s[1]||(s[1]=P("span",null,"Edit",-1))])])])]),oe(i).last?.error?(K(),re("div",dR,[s[2]||(s[2]=P("hr",null,null,-1)),ie(st,{error:oe(i).last?.error},null,8,["error"])])):fe("",!0)],64)}}}),gR=ve({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=ig(),r=async()=>{await n.perform(t.id)};return qe(async()=>{await r()}),Fe(t,async()=>{await r()}),(i,h)=>(K(),re(Ee,null,[oe(n).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(n).isError?(K(),me(st,{key:1,error:oe(n).last?.error},null,8,["error"])):fe("",!0),oe(n).last?.value?(K(),me(pR,{key:2,rule:oe(n).last.value},null,8,["rule"])):fe("",!0)],64))}}),mR=ve({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Edit rule:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(gR,{id:e.id},null,8,["id"]))}});function vR(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(g,s){var p=s.match(/\n([\t ]+|(?!\s).)/g);return p?g.concat(p.map(function(o){var a,u;return(u=(a=o.match(/[\t ]/g))===null||a===void 0?void 0:a.length)!==null&&u!==void 0?u:0})):g},[]);if(i.length){var h=new RegExp(`
|
1608
|
+
[ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(g){return g.replace(h,`
|
1609
|
+
`)})}r[0]=r[0].replace(/^\r?\n/,"");var f=r[0];return t.forEach(function(g,s){var p=f.match(/(?:^|\n)( *)$/),o=p?p[1]:"",a=g;typeof g=="string"&&g.includes(`
|
1610
|
+
`)&&(a=String(g).split(`
|
1611
|
+
`).map(function(u,l){return l===0?u:""+o+u}).join(`
|
1612
|
+
`)),f+=a+r[s+1]}),f}var Li,yR=new Uint8Array(16);function bR(){if(!Li&&(Li=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Li))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Li(yR)}const wR=/^(?:[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 SR(e){return typeof e=="string"&&wR.test(e)}var rt=[];for(var Ps=0;Ps<256;++Ps)rt.push((Ps+256).toString(16).substr(1));function $R(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(!SR(n))throw TypeError("Stringified UUID is invalid");return n}function _R(e,t,n){e=e||{};var r=e.random||(e.rng||bR)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,$R(r)}function CR(){const e=_R(),t=ns();return vR`---
|
1613
|
+
id: ${e}
|
1614
|
+
title: Title goes here
|
1615
|
+
description: Description goes here
|
1616
|
+
created_on: ${t.format("YYYY-MM-DD")}
|
1617
|
+
queries: []`}const xR={class:"block"},AR={class:"field is-grouped is-grouped-centered"},kR={class:"control"},ER={class:"icon is-small"},MR={key:0,class:"block"},TR=ve({__name:"NewRule",setup(e){const t=yr(),n=Ne(CR()),r=rk(),i=f=>{n.value=f},h=async()=>{const f=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:f.id}})};return(f,g)=>{const s=De("font-awesome-icon");return K(),re(Ee,null,[P("div",xR,[g[2]||(g[2]=P("h2",{class:"is-size-2 block"},"New rule",-1)),ie(Cg,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=p=>n.value=p),onUpdateYaml:i},null,8,["yaml"]),P("div",AR,[P("p",kR,[P("a",{class:"button is-primary",onClick:h},[P("span",ER,[ie(s,{icon:"plus"})]),g[1]||(g[1]=P("span",null,"Create",-1))])])])]),oe(r).last?.error?(K(),re("div",MR,[g[3]||(g[3]=P("hr",null,null,-1)),ie(st,{error:oe(r).last?.error},null,8,["error"])])):fe("",!0)],64)}}}),LR=ve({__name:"NewRule",setup(e){const t=()=>{dn("New rule - Mihari")};return qe(()=>{t()}),(n,r)=>(K(),me(TR))}}),RR={class:"buttons is-pulled-right"},IR=["href"],OR={class:"icon is-small"},NR={class:"icon is-small"},DR={class:"icon is-small"},FR={class:"icon is-small"},xg=ve({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,r=t,i=ye(()=>`/api/rules/${n.rule.id}`),h=ye(()=>`rule.id:"${n.rule.id}"`),f=tk(),g=nk(),s=qo(),p=Ll(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await f.perform(n.rule.id),r("delete")}catch(l){Be.isAxiosError(l)&&r("set-error",l)}},a=async()=>{try{const u=await g.perform(n.rule.id);r("set-message",u)}catch(u){Be.isAxiosError(u)&&r("set-error",u)}};return qe(()=>{s.perform({q:h.value,page:1,limit:0}),p.perform({q:h.value,page:1,limit:0})}),(u,l)=>{const c=De("router-link"),d=De("font-awesome-icon");return K(),re("span",RR,[ie(c,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:h.value}}},{default:Ve(()=>[l[0]||(l[0]=P("span",null,"Alerts:",-1)),P("span",null,pe(oe(s).last?.value?.total),1)]),_:1},8,["to"]),ie(c,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:h.value}}},{default:Ve(()=>[l[1]||(l[1]=P("span",null,"Artifacts:",-1)),P("span",null,pe(oe(p).last?.value?.total),1)]),_:1},8,["to"]),P("a",{class:"button is-link is-light is-small",href:i.value,target:"_blank"},[l[2]||(l[2]=P("span",null,"JSON",-1)),P("span",OR,[ie(d,{icon:"barcode"})])],8,IR),P("button",{class:"button is-primary is-light is-small",onClick:a},[l[3]||(l[3]=P("span",null,"Search",-1)),P("span",NR,[oe(g).isRunning?(K(),me(d,{key:0,icon:"spinner",spin:""})):(K(),me(d,{key:1,icon:"magnifying-glass"}))])]),ie(c,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:Ve(()=>[l[4]||(l[4]=P("span",null,"Edit",-1)),P("span",DR,[ie(d,{icon:"edit"})])]),_:1},8,["to"]),P("button",{class:"button is-light is-small",onClick:o},[l[5]||(l[5]=P("span",null,"Delete",-1)),P("span",FR,[ie(d,{icon:"times"})])])])}}}),PR={class:"box"},zR={class:"block"},WR={class:"table is-fullwidth is-completely-borderless"},jR={key:0},BR={class:"help"},HR=ve({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=o=>{r.value=o},f=()=>{r.value=void 0},g=o=>{i.value=o},s=()=>{i.value=void 0},p=()=>{n("delete")};return(o,a)=>{const u=De("router-link");return K(),re("div",PR,[r.value?(K(),me(st,{key:0,class:"block",error:r.value,disposable:!0,onDispose:f},null,8,["error"])):fe("",!0),i.value?(K(),me(es,{key:1,class:"block",message:i.value,disposable:!0,onDispose:s},null,8,["message"])):fe("",!0),P("div",zR,[P("p",null,[ie(xg,{rule:e.rule,onSetError:h,onDelete:p,onSetMessage:g},null,8,["rule"])]),ie(u,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:Ve(()=>[Ge(pe(e.rule.id),1)]),_:1},8,["to"])]),P("table",WR,[P("tr",null,[a[0]||(a[0]=P("th",null,"Title",-1)),P("td",null,pe(e.rule.title),1)]),P("tr",null,[a[1]||(a[1]=P("th",null,"Description",-1)),P("td",null,pe(e.rule.description),1)]),e.rule.tags.length>0?(K(),re("tr",jR,[a[2]||(a[2]=P("th",null,"Tags",-1)),P("td",null,[ie(vi,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):fe("",!0)]),a[3]||(a[3]=P("p",{class:"block is-clearfix"},null,-1)),P("p",BR,"Created at: "+pe(e.rule.createdAt),1)])}}}),UR={key:0,class:"block"},VR={class:"help"},GR={key:1,class:"block"},ZR=ve({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,r=t,i=g=>{r("update-page",g)},h=()=>{r("refresh")},f=ye(()=>n.rules.results.length>0);return(g,s)=>f.value?(K(),re("div",UR,[(K(!0),re(Ee,null,Tt(e.rules.results,p=>(K(),me(HR,{rule:p,key:p.id,onRefresh:h,onDelete:h},null,8,["rule"]))),128)),ie(Rl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:i},null,8,["currentPage","total","pageSize"]),P("p",VR,"("+pe(e.rules.total)+" results in total, "+pe(e.rules.results.length)+" shown)",1)])):(K(),re("div",GR,[...s[0]||(s[0]=[P("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])]))}}),YR={class:"block"},KR={class:"field has-addons"},XR={class:"control is-expanded"},QR={class:"control"},JR={class:"icon is-small"},qR={class:"control"},e4={class:"icon is-small"},t4={key:0,class:"content mt-3"},n4={key:0,class:"block"},r4=ve({__name:"RulesWrapper",setup(e){const t=fr("page","1"),n=fr("q",""),r=Ne(!1),i=rg(),h=async()=>{const o={q:n.value,page:parseInt(t.value)};return await i.perform(o)},f=o=>{t.value=o.toString()},g=async()=>{t.value="1",await h()},s=g,p=ci(r);return qe(async()=>{await h()}),Fe(t,async()=>{await h()}),Fe(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,a)=>{const u=De("font-awesome-icon"),l=De("router-link");return K(),re(Ee,null,[P("div",YR,[P("div",KR,[P("p",XR,[rl(P("input",{class:"input",type:"text","onUpdate:modelValue":a[0]||(a[0]=c=>Je(n)?n.value=c:null)},null,512),[[hl,oe(n)]])]),P("p",QR,[P("a",{class:"button is-primary",onClick:g},[P("span",JR,[ie(u,{icon:"search"})]),a[2]||(a[2]=P("span",null,"Search",-1))])]),P("p",qR,[P("a",{class:"button is-info",onClick:a[1]||(a[1]=c=>oe(p)())},[P("span",e4,[ie(u,{icon:"question"})]),a[3]||(a[3]=P("span",null,"Help",-1))])])]),r.value?(K(),re("div",t4,[a[5]||(a[5]=cl('<h4 class="is-size-4">Help</h4><ul><li> Search query supports <code>AND</code>, <code>OR</code>, <code>:</code>, <code>=</code>, <code>!=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>NOT</code> and <code>()</code>. </li><li> Searchable fields are <code>id</code>, <code>title</code>, <code>description</code>, <code>tag</code>, <code>created_at</code> and <code>updated_at</code>. </li></ul><h4 class="is-size-4">Examples</h4>',3)),P("ul",null,[P("li",null,[ie(l,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:Ve(()=>[...a[4]||(a[4]=[Ge("title:foo AND created_at >= 2020-01-01",-1)])]),_:1})])])])):fe("",!0)]),oe(i).performCount>0?(K(),re("div",n4,[oe(i).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(i).isError?(K(),me(st,{key:1,error:oe(i).last?.error},null,8,["error"])):fe("",!0),oe(i).last?.value?(K(),me(ZR,{key:2,rules:oe(i).last.value,onUpdatePage:f,onRefresh:oe(s)},null,8,["rules","onRefresh"])):fe("",!0)])):fe("",!0)],64)}}}),i4=ve({__name:"RulesView",setup(e){return dn("Rules - Mihari"),(t,n)=>(K(),me(r4))}}),o4={class:"block"},s4=ve({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(K(),re("div",o4,[ie(oe(_g),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),a4={class:"block"},l4={class:"is-size-2 block"},c4={class:"block is-clearfix"},u4={class:"block"},h4=ve({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,r=Ne(),i=Ne(),h=()=>{n("delete")},f=o=>{r.value=o},g=()=>{r.value=void 0},s=o=>{o.queued?i.value=o:n("refresh")},p=()=>{i.value=void 0};return(o,a)=>(K(),re(Ee,null,[P("div",a4,[P("h2",l4,pe(e.rule.id),1),r.value?(K(),me(st,{key:0,class:"mt-3 mb-3",error:r.value,disposable:!0,onDispose:g},null,8,["error"])):fe("",!0),i.value?(K(),me(es,{key:1,class:"block",message:i.value,disposable:!0,onDispose:p},null,8,["message"])):fe("",!0),P("p",c4,[ie(xg,{rule:e.rule,onSetMessage:s,onDelete:h,onSetError:f},null,8,["rule"])]),ie(s4,{yaml:e.rule.yaml},null,8,["yaml"])]),a[1]||(a[1]=P("hr",null,null,-1)),P("div",u4,[a[0]||(a[0]=P("h2",{class:"is-size-2 block"},"Alerts",-1)),ie(dg,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),f4=ve({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=ig(),r=yr(),i=async()=>{await n.perform(t.id)},h=async()=>{await i()},f=()=>{r.push("/")};return qe(async()=>{await i()}),Fe(t,async()=>{await i()}),(g,s)=>(K(),re(Ee,null,[oe(n).isRunning?(K(),me(pn,{key:0})):fe("",!0),oe(n).isError?(K(),me(st,{key:1,error:oe(n).last?.error},null,8,["error"])):fe("",!0),oe(n).last?.value?(K(),me(h4,{key:2,rule:oe(n).last.value,onRefresh:h,onDelete:f},null,8,["rule"])):fe("",!0)],64))}}),d4=ve({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{dn(`Rule:${t.id} - Mihari`)};return qe(()=>{n()}),Fe(()=>t.id,()=>{n()}),(r,i)=>(K(),me(f4,{id:e.id},null,8,["id"]))}}),p4=[{path:"/",name:"Alerts",component:IE},{path:"/alerts/:id",name:"Alert",component:HE,props:!0},{path:"/config",name:"Config",component:PL},{path:"/artifacts/",name:"Artifacts",component:_M},{path:"/artifacts/:id",name:"Artifact",component:xL,props:!0},{path:"/rules",name:"Rules",component:i4},{path:"/rules/new",name:"NewRule",component:LR},{path:"/rules/:id",name:"Rule",component:d4,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:mR,props:!0}],g4=pS({history:H1(),routes:p4});Ry.add(Zy,Gy,Hy,zy,Dy,e0,jy,Jy,Fy,Uy,Ky,Oy,yf,By,Ny,Vy,Qy,Xy,Wy);const Ag=mw(h1);Ag.component("font-awesome-icon",Tw);Ag.use(g4).mount("#app");
|