diff --git a/resources/dist/_astro/App.cb2ce151.js b/resources/dist/_astro/App.cb2ce151.js deleted file mode 100644 index 3daa391..0000000 --- a/resources/dist/_astro/App.cb2ce151.js +++ /dev/null @@ -1,1194 +0,0 @@ -import{r as se,c as De,g as fi,R as zt}from"./index.ba55fcf9.js";function je(e,s){s===void 0&&(s="");var i=se.useState(function(){return window.localStorage.getItem(e)||s}),a=i[0],v=i[1],c=function(o){v(o),window.localStorage.setItem(e,o)};se.useEffect(function(){var u=window.localStorage.getItem(e);a!==u&&v(u||s)});var d=se.useCallback(function(u){u.key===e&&u.newValue!==a&&v(u.newValue||s)},[a]);return se.useEffect(function(){return window.addEventListener("storage",d),function(){return window.removeEventListener("storage",d)}},[d]),[a,c]}const _n=se;function ec({title:e,titleId:s,...i},a){return _n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?_n.createElement("title",{id:s},e):null,_n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const tc=_n.forwardRef(ec);var nc=tc;const Rn=se;function ic({title:e,titleId:s,...i},a){return Rn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Rn.createElement("title",{id:s},e):null,Rn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"}))}const rc=Rn.forwardRef(ic);var sc=rc;const Mn=se;function oc({title:e,titleId:s,...i},a){return Mn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Mn.createElement("title",{id:s},e):null,Mn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"}))}const ac=Mn.forwardRef(oc);var lc=ac;const Tn=se;function cc({title:e,titleId:s,...i},a){return Tn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Tn.createElement("title",{id:s},e):null,Tn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"}))}const uc=Tn.forwardRef(cc);var hc=uc;const On=se;function fc({title:e,titleId:s,...i},a){return On.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?On.createElement("title",{id:s},e):null,On.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const dc=On.forwardRef(fc);var gc=dc;const Fn=se;function pc({title:e,titleId:s,...i},a){return Fn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Fn.createElement("title",{id:s},e):null,Fn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 5.25l-7.5 7.5-7.5-7.5m15 6l-7.5 7.5-7.5-7.5"}))}const mc=Fn.forwardRef(pc);var vc=mc;const In=se;function wc({title:e,titleId:s,...i},a){return In.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?In.createElement("title",{id:s},e):null,In.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const bc=In.forwardRef(wc);var yc=bc;const Pn=se;function xc({title:e,titleId:s,...i},a){return Pn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Pn.createElement("title",{id:s},e):null,Pn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const Sc=Pn.forwardRef(xc);var kc=Sc;const Dn=se;function Cc({title:e,titleId:s,...i},a){return Dn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Dn.createElement("title",{id:s},e):null,Dn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5"}))}const $c=Dn.forwardRef(Cc);var Ac=$c;const sn=se;function Ec({title:e,titleId:s,...i},a){return sn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?sn.createElement("title",{id:s},e):null,sn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),sn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const Lc=sn.forwardRef(Ec);var _c=Lc;const Nn=se;function Rc({title:e,titleId:s,...i},a){return Nn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Nn.createElement("title",{id:s},e):null,Nn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"}))}const Mc=Nn.forwardRef(Rc);var Tc=Mc;const Bn=se;function Oc({title:e,titleId:s,...i},a){return Bn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Bn.createElement("title",{id:s},e):null,Bn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 12.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 18.75a.75.75 0 110-1.5.75.75 0 010 1.5z"}))}const Fc=Bn.forwardRef(Oc);var Ic=Fc;const Hn=se;function Pc({title:e,titleId:s,...i},a){return Hn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Hn.createElement("title",{id:s},e):null,Hn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"}))}const Dc=Hn.forwardRef(Pc);var Nc=Dc;const Wn=se;function Bc({title:e,titleId:s,...i},a){return Wn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Wn.createElement("title",{id:s},e):null,Wn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const Hc=Wn.forwardRef(Bc);var Wc=Hc;const jn=se;function jc({title:e,titleId:s,...i},a){return jn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?jn.createElement("title",{id:s},e):null,jn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"}))}const zc=jn.forwardRef(jc);var Uc=zc;const zn=se;function Vc({title:e,titleId:s,...i},a){return zn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?zn.createElement("title",{id:s},e):null,zn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const Gc=zn.forwardRef(Vc);var Kc=Gc;const Un=se;function Yc({title:e,titleId:s,...i},a){return Un.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Un.createElement("title",{id:s},e):null,Un.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"}))}const Xc=Un.forwardRef(Yc);var Qc=Xc;const Vn=se;function Jc({title:e,titleId:s,...i},a){return Vn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Vn.createElement("title",{id:s},e):null,Vn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"}))}const Zc=Vn.forwardRef(Jc);var qc=Zc;const Gn=se;function eu({title:e,titleId:s,...i},a){return Gn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Gn.createElement("title",{id:s},e):null,Gn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}))}const tu=Gn.forwardRef(eu);var nu=tu;const Kn=se;function iu({title:e,titleId:s,...i},a){return Kn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Kn.createElement("title",{id:s},e):null,Kn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 12h-15"}))}const ru=Kn.forwardRef(iu);var su=ru;const Yn=se;function ou({title:e,titleId:s,...i},a){return Yn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Yn.createElement("title",{id:s},e):null,Yn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z"}))}const au=Yn.forwardRef(ou);var lu=au;const Xn=se;function cu({title:e,titleId:s,...i},a){return Xn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Xn.createElement("title",{id:s},e):null,Xn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"}))}const uu=Xn.forwardRef(cu);var hu=uu;const Qn=se;function fu({title:e,titleId:s,...i},a){return Qn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Qn.createElement("title",{id:s},e):null,Qn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const du=Qn.forwardRef(fu);var gu=du;const Jn=se;function pu({title:e,titleId:s,...i},a){return Jn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Jn.createElement("title",{id:s},e):null,Jn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9.75h4.875a2.625 2.625 0 010 5.25H12M8.25 9.75L10.5 7.5M8.25 9.75L10.5 12m9-7.243V21.75l-3.75-1.5-3.75 1.5-3.75-1.5-3.75 1.5V4.757c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0111.186 0c1.1.128 1.907 1.077 1.907 2.185z"}))}const mu=Jn.forwardRef(pu);var vu=mu;const Zn=se;function wu({title:e,titleId:s,...i},a){return Zn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?Zn.createElement("title",{id:s},e):null,Zn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 01-1.125-1.125v-3.75zM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 01-1.125-1.125v-8.25zM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 01-1.125-1.125v-2.25z"}))}const bu=Zn.forwardRef(wu);var yu=bu;const qn=se;function xu({title:e,titleId:s,...i},a){return qn.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?qn.createElement("title",{id:s},e):null,qn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"}))}const Su=qn.forwardRef(xu);var ku=Su;const ei=se;function Cu({title:e,titleId:s,...i},a){return ei.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?ei.createElement("title",{id:s},e):null,ei.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 01-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0112 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const $u=ei.forwardRef(Cu);var Au=$u;const ti=se;function Eu({title:e,titleId:s,...i},a){return ti.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?ti.createElement("title",{id:s},e):null,ti.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const Lu=ti.forwardRef(Eu);var _u=Lu,ls=nc,Ru=sc,Mu=lc,Tu=hc,cs=gc,us=vc,di=yc,To=kc,Ou=Ac,hs=_c,Fu=Tc,Iu=Ic,Pu=Nc,Du=Wc,Nu=Uc,Bu=Kc,Hu=Qc,Wu=qc,ju=nu,fs=su,zu=lu,Oo=hu,ds=gu,Uu=vu,Vu=yu,Gu=ku,Ku=Au,Yu=_u,O={},Xu={get exports(){return O},set exports(e){O=e}},gi={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Qu=se,Ju=Symbol.for("react.element"),Zu=Symbol.for("react.fragment"),qu=Object.prototype.hasOwnProperty,eh=Qu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,th={key:!0,ref:!0,__self:!0,__source:!0};function Fo(e,s,i){var a,v={},c=null,d=null;i!==void 0&&(c=""+i),s.key!==void 0&&(c=""+s.key),s.ref!==void 0&&(d=s.ref);for(a in s)qu.call(s,a)&&!th.hasOwnProperty(a)&&(v[a]=s[a]);if(e&&e.defaultProps)for(a in s=e.defaultProps,s)v[a]===void 0&&(v[a]=s[a]);return{$$typeof:Ju,type:e,key:c,ref:d,props:v,_owner:eh.current}}gi.Fragment=Zu;gi.jsx=Fo;gi.jsxs=Fo;(function(e){e.exports=gi})(Xu);function nh(e){const{handleChangeSettings:s,handleSearch:i}=e,[a,v]=je("theme",""),[c,d]=je("sort","default"),[u,o]=je("groupby","default"),[h,t]=je("showGet","true"),[n,r]=je("showPost","true"),[l,f]=je("showDelete","true"),[g,m]=je("showPut","true"),[S,k]=je("showPatch","true"),[A,E]=je("showHead","true"),w=T=>{o(T.target.value),s(h,n,l,g,S,A,c,T.target.value)},y=T=>{d(T.target.value),s(h,n,l,g,S,A,T.target.value,u)},L=T=>{t(T.target.checked),s(T.target.checked,n,l,g,S,A,c,u)},x=T=>{r(T.target.checked),s(h,T.target.checked,l,g,S,A,c,u)},$=T=>{f(T.target.checked),s(h,n,T.target.checked,g,S,A,c,u)},p=T=>{m(T.target.checked),s(h,n,l,T.target.checked,S,A,c,u)},b=T=>{k(T.target.checked),s(h,n,l,g,T.target.checked,A,c,u)},C=T=>{E(T.target.checked),s(h,n,l,g,S,T.target.checked,c,u)},_=()=>{localStorage.clear(),window.location.reload()},M=()=>{document.documentElement.getAttribute("data-theme")==="dark"?(v("light"),document.documentElement.setAttribute("data-theme","light")):(v("dark"),document.documentElement.setAttribute("data-theme","dark"))};return se.useEffect(()=>{if(a){document.documentElement.setAttribute("data-theme",a);return}document.documentElement.getAttribute("data-theme")||window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.setAttribute("data-theme","dark"),document.documentElement.setAttribute("data-theme","light")},[]),O.jsx("header",{className:"relative bg-none",children:O.jsxs("div",{className:"navbar bg-base-200",children:[O.jsx("div",{className:"flex-1",children:O.jsx("div",{className:"normal-case text-xl",children:O.jsxs("span",{className:"pl-2",children:[O.jsx("span",{className:"title",children:"Laravel Request Docs"}),O.jsx("sup",{className:"pl-2",children:O.jsx("small",{children:O.jsxs("a",{className:"link link-info",href:"https://github.com/rakutentech/laravel-request-docs/releases/tag/2.17",target:"_blank",rel:"noreferrer",children:["version ","2.17"]})})})]})})}),O.jsxs("div",{className:"flex-none",children:[O.jsx("div",{className:"form-control",children:O.jsxs("label",{htmlFor:"search",className:"relative text-gray-400 focus-within:text-gray-600 block",children:[O.jsx(ju,{className:"pointer-events-none w-4 h-4 absolute top-1/2 transform -translate-y-1/2 left-3"}),O.jsx("input",{type:"text",placeholder:"Filter APIs",className:"input pl-10 input-sm input-bordered",onChange:T=>i(T.target.value)})]})}),O.jsx("div",{className:"menu menu-horizontal px-6 ",children:O.jsxs("label",{className:"swap swap-rotate",children:[O.jsx("input",{type:"checkbox",onChange:M}),a==="dark"?O.jsx(Gu,{className:"h-6 w-6"}):O.jsx(zu,{className:"h-6 w-6"})]})}),O.jsxs("div",{className:"ml-1",children:[O.jsx("a",{href:"#modal-settings",className:"btn btn-ghost btn-sm",children:O.jsx("span",{className:"pr-1",children:O.jsx(hs,{className:"h-6 w-6"})})}),O.jsx("div",{className:"modal",id:"modal-settings",children:O.jsxs("div",{className:"modal-box",children:[O.jsx("div",{className:"modal-action float-right",children:O.jsxs("a",{href:"#",className:"btn btn-sm btn-ghost",children:[O.jsx(Yu,{className:"h-6 w-6"})," Close"]})}),O.jsxs("h3",{className:"font-bold text-lg mt-7",children:[O.jsx(hs,{className:"inline-block h-6 w-6 mr-1"}),"Settings"]}),O.jsx("div",{className:"divider"}),O.jsxs("h4",{className:"font-bold mt-10",children:[O.jsx(Mu,{className:"inline-block h-6 w-6 mr-1"}),"Sort By"]}),O.jsx("div",{className:"divider"}),O.jsx("div",{className:"form-control",children:O.jsxs("label",{className:"label",children:[O.jsx("input",{type:"radio",onChange:y,value:"default",className:"radio",checked:c=="default"}),O.jsx("span",{className:"label-text",children:"Default"}),O.jsx("input",{type:"radio",onChange:y,value:"route_names",className:"radio",checked:c=="route_names"}),O.jsx("span",{className:"label-text",children:"Route Names"}),O.jsx("input",{type:"radio",onChange:y,value:"method_names",className:"radio",checked:c=="method_names"}),O.jsx("span",{className:"label-text",children:"HTTP Methods"})]})}),O.jsxs("h4",{className:"font-bold mt-10",children:[O.jsx(Vu,{className:"inline-block h-6 w-6 mr-1"}),"Group By"]}),O.jsx("div",{className:"divider"}),O.jsx("div",{className:"form-control",children:O.jsxs("label",{className:"label",children:[O.jsx("input",{type:"radio",onChange:w,value:"default",className:"radio",checked:u=="default"}),O.jsx("span",{className:"label-text",children:"Default"}),O.jsx("input",{type:"radio",onChange:w,value:"api_uri",className:"radio",checked:u=="api_uri"}),O.jsx("span",{className:"label-text",children:"API Name"}),O.jsx("input",{type:"radio",onChange:w,value:"controller_full_path",className:"radio",checked:u=="controller_full_path"}),O.jsx("span",{className:"label-text",children:"Controller Name"})]})}),O.jsxs("h4",{className:"font-bold mt-10",children:[O.jsx(Nu,{className:"inline-block h-6 w-6 mr-1"}),"Filter Settings"]}),O.jsx("div",{className:"divider"}),O.jsxs("div",{className:"form-control",children:[O.jsxs("label",{className:"label",children:[O.jsx("span",{className:"label-text",children:"GET"}),O.jsx("input",{type:"checkbox",onChange:L,className:"toggle toggle-success",checked:h=="true"})]}),O.jsxs("label",{className:"label",children:[O.jsx("span",{className:"label-text",children:"POST"}),O.jsx("input",{type:"checkbox",onChange:x,className:"toggle toggle-success",checked:n=="true"})]}),O.jsxs("label",{className:"label",children:[O.jsx("span",{className:"label-text",children:"DELETE"}),O.jsx("input",{type:"checkbox",onChange:$,className:"toggle toggle-success",checked:l=="true"})]}),O.jsxs("label",{className:"label",children:[O.jsx("span",{className:"label-text",children:"PUT"}),O.jsx("input",{type:"checkbox",onChange:p,className:"toggle toggle-success",checked:g=="true"})]}),O.jsxs("label",{className:"label",children:[O.jsx("span",{className:"label-text",children:"PATCH"}),O.jsx("input",{type:"checkbox",onChange:b,className:"toggle toggle-success",checked:S=="true"})]}),O.jsxs("label",{className:"label",children:[O.jsx("span",{className:"label-text",children:"HEAD"}),O.jsx("input",{type:"checkbox",onChange:C,className:"toggle toggle-success",checked:A=="true"})]})]}),O.jsxs("h4",{className:"font-bold mt-10",children:[O.jsx(To,{className:"inline-block h-6 w-6 mr-1"}),"Storage"]}),O.jsx("div",{className:"divider"}),O.jsx("div",{className:"form-control",children:O.jsxs("label",{className:"label",children:[O.jsxs("span",{className:"label-text",children:["Clear localstorage",O.jsx("p",{children:O.jsx("small",{children:"Delete localstorage data, request body and queries"})})]}),O.jsx("button",{className:"btn btn-sm btn-error",onClick:_,children:"Clear"})]})})]})})]}),O.jsx("div",{className:"ml-1 ",children:O.jsxs("a",{className:"btn btn-ghost btn-sm",href:"/request-docs/api?openapi=true",target:"_blank",children:[O.jsx("span",{className:"pr-1",children:O.jsx(Ru,{className:"h-6 w-6"})}),"OpenAPI 3.0"]})}),O.jsx("div",{className:"ml-1 ",children:O.jsxs("a",{className:"btn btn-ghost btn-sm",href:"https://github.com/rakutentech/laravel-request-docs/issues/new",target:"_blank",rel:"noreferrer",children:[O.jsx("span",{className:"pr-1",children:O.jsx(Tu,{className:"h-6 w-6"})}),"Feature request"]})})]})]})})}var rr={},ih={get exports(){return rr},set exports(e){rr=e}};(function(e,s){(function(a,v){e.exports=v(se)})(typeof self<"u"?self:De,function(i){return function(a){var v={};function c(d){if(v[d])return v[d].exports;var u=v[d]={i:d,l:!1,exports:{}};return a[d].call(u.exports,u,u.exports,c),u.l=!0,u.exports}return c.m=a,c.c=v,c.d=function(d,u,o){c.o(d,u)||Object.defineProperty(d,u,{configurable:!1,enumerable:!0,get:o})},c.n=function(d){var u=d&&d.__esModule?function(){return d.default}:function(){return d};return c.d(u,"a",u),u},c.o=function(d,u){return Object.prototype.hasOwnProperty.call(d,u)},c.p="",c(c.s=0)}([function(a,v,c){Object.defineProperty(v,"__esModule",{value:!0});var d=c(1),u=o(d);function o(h){return h&&h.__esModule?h:{default:h}}v.default=u.default},function(a,v,c){Object.defineProperty(v,"__esModule",{value:!0});var d=Object.assign||function(m){for(var S=1;S=0||Object.prototype.hasOwnProperty.call(m,A)&&(k[A]=m[A]);return k}function r(m,S){if(!(m instanceof S))throw new TypeError("Cannot call a class as a function")}function l(m,S){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:m}function f(m,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);m.prototype=Object.create(S&&S.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(m,S):m.__proto__=S)}var g=function(m){f(S,m);function S(k){r(this,S);var A=l(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,k));return A.smoothScroll=A.smoothScroll.bind(A),A}return u(S,[{key:"componentDidMount",value:function(){c(3).polyfill()}},{key:"smoothScroll",value:function(A){var E=this;A.preventDefault();var w=function(){return 0};typeof this.props.offset<"u"&&(this.props.offset&&this.props.offset.constructor&&this.props.offset.apply?w=this.props.offset:w=function(){return parseInt(E.props.offset)});var y=A.currentTarget.getAttribute("href").slice(1),L=document.getElementById(y),x=L.getBoundingClientRect().top+window.pageYOffset;window.scroll({top:x-w(),behavior:"smooth"}),this.props.onClick&&this.props.onClick(A)}},{key:"render",value:function(){var A=this.props;A.offset;var E=n(A,["offset"]);return h.default.createElement("a",d({},E,{onClick:this.smoothScroll}))}}]),S}(o.Component);v.default=g},function(a,v){a.exports=i},function(a,v,c){(function(){function d(){var u=window,o=document;if("scrollBehavior"in o.documentElement.style&&u.__forceSmoothScrollPolyfill__!==!0)return;var h=u.HTMLElement||u.Element,t=468,n={scroll:u.scroll||u.scrollTo,scrollBy:u.scrollBy,elementScroll:h.prototype.scroll||g,scrollIntoView:h.prototype.scrollIntoView},r=u.performance&&u.performance.now?u.performance.now.bind(u.performance):Date.now;function l(x){var $=["MSIE ","Trident/","Edge/"];return new RegExp($.join("|")).test(x)}var f=l(u.navigator.userAgent)?1:0;function g(x,$){this.scrollLeft=x,this.scrollTop=$}function m(x){return .5*(1-Math.cos(Math.PI*x))}function S(x){if(x===null||typeof x!="object"||x.behavior===void 0||x.behavior==="auto"||x.behavior==="instant")return!0;if(typeof x=="object"&&x.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+x.behavior+" is not a valid value for enumeration ScrollBehavior.")}function k(x,$){if($==="Y")return x.clientHeight+f1?1:_,p=m(_),b=x.startX+(x.x-x.startX)*p,C=x.startY+(x.y-x.startY)*p,x.method.call(x.scrollable,b,C),(b!==x.x||C!==x.y)&&u.requestAnimationFrame(y.bind(u,x))}function L(x,$,p){var b,C,_,M,T=r();x===o.body?(b=u,C=u.scrollX||u.pageXOffset,_=u.scrollY||u.pageYOffset,M=n.scroll):(b=x,C=x.scrollLeft,_=x.scrollTop,M=g),y({scrollable:b,method:M,startTime:T,startX:C,startY:_,x:$,y:p})}u.scroll=u.scrollTo=function(){if(arguments[0]!==void 0){if(S(arguments[0])===!0){n.scroll.call(u,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:u.scrollX||u.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:u.scrollY||u.pageYOffset);return}L.call(u,o.body,arguments[0].left!==void 0?~~arguments[0].left:u.scrollX||u.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:u.scrollY||u.pageYOffset)}},u.scrollBy=function(){if(arguments[0]!==void 0){if(S(arguments[0])){n.scrollBy.call(u,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}L.call(u,o.body,~~arguments[0].left+(u.scrollX||u.pageXOffset),~~arguments[0].top+(u.scrollY||u.pageYOffset))}},h.prototype.scroll=h.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(S(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");n.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var x=arguments[0].left,$=arguments[0].top;L.call(this,this,typeof x>"u"?this.scrollLeft:~~x,typeof $>"u"?this.scrollTop:~~$)}},h.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(S(arguments[0])===!0){n.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},h.prototype.scrollIntoView=function(){if(S(arguments[0])===!0){n.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var x=w(this),$=x.getBoundingClientRect(),p=this.getBoundingClientRect();x!==o.body?(L.call(this,x,x.scrollLeft+p.left-$.left,x.scrollTop+p.top-$.top),u.getComputedStyle(x).position!=="fixed"&&u.scrollBy({left:$.left,top:$.top,behavior:"smooth"})):u.scrollBy({left:p.left,top:p.top,behavior:"smooth"})}}a.exports={polyfill:d}})()}])})})(ih);const rh=fi(rr);var sr={},sh={get exports(){return sr},set exports(e){sr=e}},or={},oh={get exports(){return or},set exports(e){or=e}},ni=1;function ah(){return ni=(ni*9301+49297)%233280,ni/233280}function lh(e){ni=e}var ch={nextValue:ah,seed:lh},ar=ch,It="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",$t,gs,on;function lr(){on=!1}function Io(e){if(!e){$t!==It&&($t=It,lr());return}if(e!==$t){if(e.length!==It.length)throw new Error("Custom alphabet for shortid must be "+It.length+" unique characters. You submitted "+e.length+" characters: "+e);var s=e.split("").filter(function(i,a,v){return a!==v.lastIndexOf(i)});if(s.length)throw new Error("Custom alphabet for shortid must be "+It.length+" unique characters. These characters were not unique: "+s.join(", "));$t=e,lr()}}function uh(e){return Io(e),$t}function hh(e){ar.seed(e),gs!==e&&(lr(),gs=e)}function fh(){$t||Io(It);for(var e=$t.split(""),s=[],i=ar.nextValue(),a;e.length>0;)i=ar.nextValue(),a=Math.floor(i*e.length),s.push(e.splice(a,1)[0]);return s.join("")}function Po(){return on||(on=fh(),on)}function dh(e){var s=Po();return s[e]}function gh(){return $t||It}var _r={get:gh,characters:uh,seed:hh,lookup:dh,shuffled:Po},Bi=typeof window=="object"&&(window.crypto||window.msCrypto),cr;!Bi||!Bi.getRandomValues?cr=function(e){for(var s=[],i=0;i0&&(s=s+Sn(kn)),s=s+Sn(i),s}var $h=Ch,Ah=_r;function Eh(e){if(!e||typeof e!="string"||e.length<6)return!1;var s=new RegExp("[^"+Ah.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!s.test(e)}var Lh=Eh;(function(e){var s=_r,i=$h,a=Lh,v=0;function c(h){return s.seed(h),e.exports}function d(h){return v=h,e.exports}function u(h){return h!==void 0&&s.characters(h),s.shuffled()}function o(){return i(v)}e.exports=o,e.exports.generate=o,e.exports.seed=c,e.exports.worker=d,e.exports.characters=u,e.exports.isValid=a})(oh);(function(e){e.exports=or})(sh);const Te=fi(sr),ii=se;function _h({title:e,titleId:s,...i},a){return ii.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},i),e?ii.createElement("title",{id:s},e):null,ii.createElement("path",{fillRule:"evenodd",d:"M2.625 6.75a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zm4.875 0A.75.75 0 018.25 6h12a.75.75 0 010 1.5h-12a.75.75 0 01-.75-.75zM2.625 12a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zM7.5 12a.75.75 0 01.75-.75h12a.75.75 0 010 1.5h-12A.75.75 0 017.5 12zm-4.875 5.25a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zm4.875 0a.75.75 0 01.75-.75h12a.75.75 0 010 1.5h-12a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}const Rh=ii.forwardRef(_h);var Mh=Rh,Th=Mh;function Oh(e){const{lrdDocsJson:s}=e;return O.jsx(O.Fragment,{children:O.jsxs("aside",{children:[O.jsxs("h2",{className:"title pl-5 pt-2 mb-5",children:[O.jsx(Th,{className:"inline-block w-4 h-4 mr-1"}),"API List ",O.jsxs("span",{className:"text-slate-500 capitalize float-right mr-5",children:["Total ",s.length]})]}),O.jsxs("ul",{children:[s.map(i=>O.jsxs("div",{children:[i.group!=null&&i.group!=""&&i.group_index==0&&O.jsx("li",{className:"pt-5 text-slate-600",children:i.group.split("\\").pop()}),O.jsx("li",{children:O.jsxs(rh,{href:"#"+i.http_method+i.uri,offset:()=>120,onClick:()=>{window.history.pushState({},"","#"+i.http_method+i.uri)},className:"flex flex-row px-0 py-1",children:[O.jsx("span",{className:`method-${i.http_method} uppercase text-xs w-12 p-0 flex flex-row-reverse`,children:i.http_method}),O.jsx("span",{className:"flex-1 p-0 text-sm text-left break-all",children:i.uri})]})})]},Te.generate())),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"}),O.jsx("li",{className:"bg-transparent"})]})]})})}const Fh=`{ - "Content-Type": "application/json", - "Accept": "application/json" -}`,oi=(e,s,i)=>{let a="";const v=Math.floor(e.length/s);for(let c=0;c{let c="curl";c+=` - -X ${i}`;try{const o=JSON.parse(v);for(const[h,t]of Object.entries(o))c+=` - -H "${h}: ${t}"`}catch{c+=` - -H "Content-Type: application/json"`}const d=o=>(c+=` - ${e}/${s}`,c+=` -${o}`,c),u=o=>(c+=` - ${e}/${s}`,c+=` - -d '${o}'`,c);return i==="GET"||i==="DELETE"||i==="HEAD"?d(a):i==="POST"||i==="PUT"||i==="PATCH"?u(a):""};function ms(e){const{rules:s,mainRule:i}=e,a=v=>{const c=v.rule,d=c.split(":");if(c=="url")return O.jsxs("div",{className:"block",children:[O.jsx(Hu,{className:"inline-block w-4 h-4"})," ",c]});if(c=="email")return O.jsxs("div",{className:"block",children:[O.jsx(Pu,{className:"inline-block w-4 h-4"})," ",c]});if(d.length<2)return O.jsx("div",{className:"",dangerouslySetInnerHTML:{__html:oi(c,50,"
")}});const u=d[0],o=d.slice(1).join(" ");return u=="max"?O.jsx("div",{className:"block badge badge-primary badge-outline mt-1 mb-1 rounded-sm",children:`<= ${o}`}):u=="min"?O.jsx("div",{className:"block badge badge-primary badge-outline mt-1 mb-1 rounded-sm",children:`>= ${o}`}):u=="date_format"?O.jsx("div",{className:"block badge badge-info badge-outline mt-1 mb-1 rounded-sm",children:`Format: ${o}`}):u=="regex"?O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"inline-block badge badge-info badge-outline mt-1 mb-1 mr-2 rounded-sm",children:"Regexp"}),O.jsxs("code",{children:["$",o]})]}):O.jsx("div",{className:"",dangerouslySetInnerHTML:{__html:oi(c,50,"
")}})};return O.jsx(O.Fragment,{children:O.jsxs("tr",{children:[O.jsxs("th",{className:"param-cell",children:[O.jsx("span",{className:"text-blue-500 pr-1",children:"¬"}),O.jsxs("code",{className:"pl-1",children:[i,i.endsWith(".*")?O.jsx(di,{className:"inline-block w-4 h-4"},Te.generate()):O.jsx("span",{},Te.generate())]}),s.map(v=>v.split("|").map(c=>c=="file"||c=="image"?O.jsx("div",{className:"block badge badge-success badge-outline ml-4 mt-1 mb-1 rounded-sm title",children:c},Te.generate()):O.jsx("span",{},Te.generate()))),s.map(v=>v.split("|").map(c=>c=="required"?O.jsx("div",{className:"block ml-6",children:O.jsx("code",{className:"text-error font-normal",children:c})},Te.generate()):O.jsx("span",{},Te.generate()))),s.map(v=>v.split("|").map(c=>c.startsWith("required_if")?O.jsx("div",{className:"block ml-6",children:O.jsx("code",{className:"text-red-300 font-normal",children:"required_if"})},Te.generate()):O.jsx("span",{},Te.generate())))]}),O.jsxs("td",{children:[s.map(v=>v.split("|").map(c=>c=="required"?O.jsx("span",{},Te.generate()):c=="integer"||c=="string"||c=="bool"||c=="date"||c=="file"||c=="image"||c=="array"||c=="nullable"?O.jsx("div",{className:"capitalize text-slate-500",children:c},Te.generate()):O.jsx("span",{},Te.generate()))),s.map(v=>v.split("|").map(c=>c=="required"?O.jsx("span",{},Te.generate()):O.jsx("span",{},Te.generate()))),s.map(v=>v.split("|").map(c=>c=="required"||c=="integer"||c=="string"||c=="bool"||c=="date"||c=="file"||c=="image"||c=="array"||c=="nullable"?O.jsx("span",{},Te.generate()):O.jsx("span",{children:O.jsx(a,{rule:c})},Te.generate())))]})]})})}function Ih(e){const{lrdDocsItem:s,method:i}=e,[a,v]=se.useState(!1);return se.useEffect(()=>{const c=[];for(const[d,u]of Object.entries(s.rules)){if(u.length==0)continue;const o=u[0].split("|");(o.includes("file")||o.includes("image"))&&c.push(d)}v(c.length>0)},[]),O.jsxs(O.Fragment,{children:[O.jsxs("h2",{className:"text-lg",id:i+s.uri,children:[O.jsx("span",{className:`badge badge-ghost rounded-none method-${i}`,children:i}),O.jsx("span",{className:"pl-5",children:s.uri})]}),O.jsxs("h3",{className:"pt-4",children:[O.jsx("span",{className:"text-sm text-slate-500",children:"REQUEST SCHEMA"}),O.jsx("br",{}),O.jsx("code",{className:"text-xs",children:a?"multipart/form-data":"application/json"})]}),Object.keys(s.path_parameters).length>0&&O.jsxs(O.Fragment,{children:[O.jsx("h3",{className:"pt-4",children:O.jsx("span",{className:"text-sm text-slate-500",children:"PATH PARAMETERS"})}),O.jsx("div",{className:"pt-4",children:O.jsx("table",{className:"table table-fixed table-compact w-full",children:O.jsx("tbody",{children:Object.keys(s.path_parameters).map(c=>O.jsx(ms,{mainRule:c,rules:s.path_parameters[c]},Te.generate()))})})})]}),O.jsxs("h3",{className:"pt-4",children:[O.jsx("span",{className:"text-sm text-slate-500",children:i=="POST"||i=="PUT"||i=="PATCH"?"REQUEST BODY PARAMETERS":"QUERY PARAMETERS"}),s.rules&&Object.keys(s.rules).length==0&&O.jsx("div",{className:"text-sm text-slate-500",children:"No Rules Defined"})]}),O.jsx("div",{className:"pt-4",children:O.jsx("table",{className:"table table-fixed table-compact w-full",children:O.jsx("tbody",{children:s.rules&&Object.keys(s.rules).map(c=>O.jsx(ms,{mainRule:c,rules:s.rules[c]},Te.generate()))})})})]})}var Gt={},Ph={get exports(){return Gt},set exports(e){Gt=e}};(function(e,s){(function(){var i="ace",a=function(){return this}();!a&&typeof window<"u"&&(a=window);var v=function(t,n,r){if(typeof t!="string"){v.original?v.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=n),v.modules[t]||(v.payloads[t]=r,v.modules[t]=null)};v.modules={},v.payloads={};var c=function(t,n,r){if(typeof n=="string"){var l=o(t,n);if(l!=null)return r&&r(),l}else if(Object.prototype.toString.call(n)==="[object Array]"){for(var f=[],g=0,m=n.length;go.length)&&(u=o.length),u-=d.length;var h=o.indexOf(d,u);return h!==-1&&h===u}),String.prototype.repeat||c(String.prototype,"repeat",function(d){for(var u="",o=this;d>0;)d&1&&(u+=o),(d>>=1)&&(o+=o);return u}),String.prototype.includes||c(String.prototype,"includes",function(d,u){return this.indexOf(d,u)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var u=Object(d),o=1;o>>0,h=arguments[1],t=h>>0,n=t<0?Math.max(o+t,0):Math.min(t,o),r=arguments[2],l=r===void 0?o:r>>0,f=l<0?Math.max(o+l,0):Math.min(l,o);n0;)o&1&&(h+=u),(o>>=1)&&(u+=u);return h};var c=/^\s\s*/,d=/\s\s*$/;a.stringTrimLeft=function(u){return u.replace(c,"")},a.stringTrimRight=function(u){return u.replace(d,"")},a.copyObject=function(u){var o={};for(var h in u)o[h]=u[h];return o},a.copyArray=function(u){for(var o=[],h=0,t=u.length;h=0?parseFloat((u.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((u.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),a.isOldIE=a.isIE&&a.isIE<9,a.isGecko=a.isMozilla=u.match(/ Gecko\/\d+/),a.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",a.isWebKit=parseFloat(u.split("WebKit/")[1])||void 0,a.isChrome=parseFloat(u.split(" Chrome/")[1])||void 0,a.isEdge=parseFloat(u.split(" Edge/")[1])||void 0,a.isAIR=u.indexOf("AdobeAIR")>=0,a.isAndroid=u.indexOf("Android")>=0,a.isChromeOS=u.indexOf(" CrOS ")>=0,a.isIOS=/iPad|iPhone|iPod/.test(u)&&!window.MSStream,a.isIOS&&(a.isMac=!0),a.isMobile=a.isIOS||a.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(i,a,v){var c=i("./useragent"),d="http://www.w3.org/1999/xhtml";a.buildDom=function r(l,f,g){if(typeof l=="string"&&l){var m=document.createTextNode(l);return f&&f.appendChild(m),m}if(!Array.isArray(l))return l&&l.appendChild&&f&&f.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var S=[],k=0;k"u")){if(o){if(f)h();else if(f===!1)return o.push([r,l])}if(!u){var g=f;!f||!f.getRootNode?g=document:(g=f.getRootNode(),(!g||g==f)&&(g=document));var m=g.ownerDocument||g;if(l&&a.hasCssString(l,g))return null;l&&(r+=` -/*# sourceURL=ace/css/`+l+" */");var S=a.createElement("style");S.appendChild(m.createTextNode(r)),l&&(S.id=l),g==m&&(g=a.getDocumentHead(m)),g.insertBefore(S,g.firstChild)}}}if(a.importCssString=t,a.importCssStylsheet=function(r,l){a.buildDom(["link",{rel:"stylesheet",href:r}],a.getDocumentHead(l))},a.scrollbarWidth=function(r){var l=a.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var f=a.createElement("ace_outer"),g=f.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",f.appendChild(l);var m=r&&r.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(f);var S=l.offsetWidth;g.overflow="scroll";var k=l.offsetWidth;return S===k&&(k=f.clientWidth),m.removeChild(f),S-k},a.computedStyle=function(r,l){return window.getComputedStyle(r,"")||{}},a.setStyle=function(r,l,f){r[l]!==f&&(r[l]=f)},a.HAS_CSS_ANIMATION=!1,a.HAS_CSS_TRANSFORMS=!1,a.HI_DPI=c.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,c.isChromeOS&&(a.HI_DPI=!1),typeof document<"u"){var n=document.createElement("div");a.HI_DPI&&n.style.transform!==void 0&&(a.HAS_CSS_TRANSFORMS=!0),!c.isEdge&&typeof n.style.animationName<"u"&&(a.HAS_CSS_ANIMATION=!0),n=null}a.HAS_CSS_TRANSFORMS?a.translate=function(r,l,f){r.style.transform="translate("+Math.round(l)+"px, "+Math.round(f)+"px)"}:a.translate=function(r,l,f){r.style.top=Math.round(f)+"px",r.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(i,a,v){/* -* based on code from: -* -* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. -* Available via the MIT or new BSD license. -* see: http://github.com/jrburke/requirejs for details -*/var c=i("./dom");a.get=function(d,u){var o=new XMLHttpRequest;o.open("GET",d,!0),o.onreadystatechange=function(){o.readyState===4&&u(o.responseText)},o.send(null)},a.loadScript=function(d,u){var o=c.getDocumentHead(),h=document.createElement("script");h.src=d,o.appendChild(h),h.onload=h.onreadystatechange=function(t,n){(n||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,n||u())}},a.qualifyURL=function(d){var u=document.createElement("a");return u.href=d,u.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(i,a,v){var c={},d=function(){this.propagationStopped=!0},u=function(){this.defaultPrevented=!0};c._emit=c._dispatchEvent=function(o,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[o]||[],n=this._defaultHandlers[o];if(!(!t.length&&!n)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=o),h.stopPropagation||(h.stopPropagation=d),h.preventDefault||(h.preventDefault=u),t=t.slice();for(var r=0;r1&&(m=f[f.length-2]);var k=h[l+"Path"];return k==null?k=h.basePath:g=="/"&&(l=g=""),k&&k.slice(-1)!="/"&&(k+="/"),k+l+g+m+this.get("suffix")},a.setModuleUrl=function(r,l){return h.$moduleUrls[r]=l};var t=function(r,l){return r=="ace/theme/textmate"?l(null,i("./theme/textmate")):console.error("loader is not configured")};a.setLoader=function(r){t=r},a.$loading={},a.loadModule=function(r,l){var f,g;Array.isArray(r)&&(g=r[0],r=r[1]);try{f=i(r)}catch{}if(f&&!a.$loading[r])return l&&l(f);if(a.$loading[r]||(a.$loading[r]=[]),a.$loading[r].push(l),!(a.$loading[r].length>1)){var m=function(){t(r,function(S,k){a._emit("load.module",{name:r,module:k});var A=a.$loading[r];a.$loading[r]=null,A.forEach(function(E){E&&E(k)})})};if(!a.get("packaged"))return m();d.loadScript(a.moduleUrl(r,g),m),n()}};var n=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),n=function(){})};a.version="1.15.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(i,a,v){i("./lib/fixoldbrowsers");var c=i("./config");c.setLoader(function(h,t){i([h],function(n){t(null,n)})});var d=function(){return this||typeof window<"u"&&window}();v.exports=function(h){c.init=u,h.require=i},u(!0);function u(h){if(!(!d||!d.document)){c.set("packaged",h||i.packaged||v.packaged||d.define&&(void 0).packaged);for(var t={},n="",r=document.currentScript||document._currentScript,l=r&&r.ownerDocument||document,f=l.getElementsByTagName("script"),g=0;g1?(x++,x>4&&(x=1)):x=1,d.isIE){var T=Math.abs(M.clientX-$)>5||Math.abs(M.clientY-p)>5;(!b||T)&&(x=1),b&&clearTimeout(b),b=setTimeout(function(){b=null},E[x-1]||600),x==1&&($=M.clientX,p=M.clientY)}if(M._clicks=x,w[y]("mousedown",M),x>4)x=0;else if(x>1)return w[y](C[x],M)}Array.isArray(A)||(A=[A]),A.forEach(function(M){l(M,"mousedown",_,L)})};var g=function(A){return 0|(A.ctrlKey?1:0)|(A.altKey?2:0)|(A.shiftKey?4:0)|(A.metaKey?8:0)};a.getModifierString=function(A){return c.KEY_MODS[g(A)]};function m(A,E,w){var y=g(E);if(!d.isMac&&u){if(E.getModifierState&&(E.getModifierState("OS")||E.getModifierState("Win"))&&(y|=8),u.altGr)if((3&y)!=3)u.altGr=0;else return;if(w===18||w===17){var L="location"in E?E.location:E.keyLocation;if(w===17&&L===1)u[w]==1&&(o=E.timeStamp);else if(w===18&&y===3&&L===2){var x=E.timeStamp-o;x<50&&(u.altGr=!0)}}}if(w in c.MODIFIER_KEYS&&(w=-1),!y&&w===13){var L="location"in E?E.location:E.keyLocation;if(L===3&&(A(E,y,-w),E.defaultPrevented))return}if(d.isChromeOS&&y&8){if(A(E,y,w),E.defaultPrevented)return;y&=-9}return!y&&!(w in c.FUNCTION_KEYS)&&!(w in c.PRINTABLE_KEYS)?!1:A(E,y,w)}a.addCommandKeyListener=function(A,E,w){if(d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)){var y=null;l(A,"keydown",function(x){y=x.keyCode},w),l(A,"keypress",function(x){return m(E,x,y)},w)}else{var L=null;l(A,"keydown",function(x){u[x.keyCode]=(u[x.keyCode]||0)+1;var $=m(E,x,x.keyCode);return L=x.defaultPrevented,$},w),l(A,"keypress",function(x){L&&(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&(a.stopEvent(x),L=null)},w),l(A,"keyup",function(x){u[x.keyCode]=null},w),u||(S(),l(window,"focus",S))}};function S(){u=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var k=1;a.nextTick=function(A,E){E=E||window;var w="zero-timeout-message-"+k++,y=function(L){L.data==w&&(a.stopPropagation(L),f(E,"message",y),A())};l(E,"message",y),E.postMessage(w,"*")}}a.$idleBlocked=!1,a.onIdle=function(A,E){return setTimeout(function w(){a.$idleBlocked?setTimeout(w,100):A()},E)},a.$idleBlockId=null,a.blockIdle=function(A){a.$idleBlockId&&clearTimeout(a.$idleBlockId),a.$idleBlocked=!0,a.$idleBlockId=setTimeout(function(){a.$idleBlocked=!1},A||100)},a.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),a.nextFrame?a.nextFrame=a.nextFrame.bind(window):a.nextFrame=function(A){setTimeout(A,17)}}),ace.define("ace/range",["require","exports","module"],function(i,a,v){var c=function(u,o){return u.row-o.row||u.column-o.column},d=function(u,o,h,t){this.start={row:u,column:o},this.end={row:h,column:t}};(function(){this.isEqual=function(u){return this.start.row===u.start.row&&this.end.row===u.end.row&&this.start.column===u.start.column&&this.end.column===u.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(u,o){return this.compare(u,o)==0},this.compareRange=function(u){var o,h=u.end,t=u.start;return o=this.compare(h.row,h.column),o==1?(o=this.compare(t.row,t.column),o==1?2:o==0?1:0):o==-1?-2:(o=this.compare(t.row,t.column),o==-1?-1:o==1?42:0)},this.comparePoint=function(u){return this.compare(u.row,u.column)},this.containsRange=function(u){return this.comparePoint(u.start)==0&&this.comparePoint(u.end)==0},this.intersects=function(u){var o=this.compareRange(u);return o==-1||o==0||o==1},this.isEnd=function(u,o){return this.end.row==u&&this.end.column==o},this.isStart=function(u,o){return this.start.row==u&&this.start.column==o},this.setStart=function(u,o){typeof u=="object"?(this.start.column=u.column,this.start.row=u.row):(this.start.row=u,this.start.column=o)},this.setEnd=function(u,o){typeof u=="object"?(this.end.column=u.column,this.end.row=u.row):(this.end.row=u,this.end.column=o)},this.inside=function(u,o){return this.compare(u,o)==0?!(this.isEnd(u,o)||this.isStart(u,o)):!1},this.insideStart=function(u,o){return this.compare(u,o)==0?!this.isEnd(u,o):!1},this.insideEnd=function(u,o){return this.compare(u,o)==0?!this.isStart(u,o):!1},this.compare=function(u,o){return!this.isMultiLine()&&u===this.start.row?othis.end.column?1:0:uthis.end.row?1:this.start.row===u?o>=this.start.column?0:-1:this.end.row===u?o<=this.end.column?0:1:0},this.compareStart=function(u,o){return this.start.row==u&&this.start.column==o?-1:this.compare(u,o)},this.compareEnd=function(u,o){return this.end.row==u&&this.end.column==o?1:this.compare(u,o)},this.compareInside=function(u,o){return this.end.row==u&&this.end.column==o?1:this.start.row==u&&this.start.column==o?-1:this.compare(u,o)},this.clipRows=function(u,o){if(this.end.row>o)var h={row:o+1,column:0};else if(this.end.rowo)var t={row:o+1,column:0};else if(this.start.rowDate.now()-50?!0:c=!1},cancel:function(){c=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(i,a,v){var c=i("../lib/event"),d=i("../lib/useragent"),u=i("../lib/dom"),o=i("../lib/lang"),h=i("../clipboard"),t=d.isChrome<18,n=d.isIE,r=d.isChrome>63,l=400,f=i("../lib/keys"),g=f.KEY_MODS,m=d.isIOS,S=m?/\s/:/\n/,k=d.isMobile,A=function(E,w){var y=u.createElement("textarea");y.className="ace_text-input",y.setAttribute("wrap","off"),y.setAttribute("autocorrect","off"),y.setAttribute("autocapitalize","off"),y.setAttribute("spellcheck",!1),y.style.opacity="0",E.insertBefore(y,E.firstChild);var L=!1,x=!1,$=!1,p=!1,b="";k||(y.style.fontSize="1px");var C=!1,_=!1,M="",T=0,R=0,D=0;try{var N=document.activeElement===y}catch{}this.setAriaOptions=function(Y){Y.activeDescendant?(y.setAttribute("aria-haspopup","true"),y.setAttribute("aria-autocomplete","list"),y.setAttribute("aria-activedescendant",Y.activeDescendant)):(y.setAttribute("aria-haspopup","false"),y.setAttribute("aria-autocomplete","both"),y.removeAttribute("aria-activedescendant")),Y.role&&y.setAttribute("role",Y.role)},this.setAriaOptions({role:"textbox"}),c.addListener(y,"blur",function(Y){_||(w.onBlur(Y),N=!1)},w),c.addListener(y,"focus",function(Y){if(!_){if(N=!0,d.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(Y),d.isEdge?setTimeout(B):B()}},w),this.$focusScroll=!1,this.focus=function(){if(b||r||this.$focusScroll=="browser")return y.focus({preventScroll:!0});var Y=y.style.top;y.style.position="fixed",y.style.top="0px";try{var le=y.getBoundingClientRect().top!=0}catch{return}var ce=[];if(le)for(var ke=y.parentElement;ke&&ke.nodeType==1;)ce.push(ke),ke.setAttribute("ace_nocontext",!0),!ke.parentElement&&ke.getRootNode?ke=ke.getRootNode().host:ke=ke.parentElement;y.focus({preventScroll:!0}),le&&ce.forEach(function(Ae){Ae.removeAttribute("ace_nocontext")}),setTimeout(function(){y.style.position="",y.style.top=="0px"&&(y.style.top=Y)},0)},this.blur=function(){y.blur()},this.isFocused=function(){return N},w.on("beforeEndOperation",function(){var Y=w.curOp,le=Y&&Y.command&&Y.command.name;if(le!="insertstring"){var ce=le&&(Y.docChanged||Y.selectionChanged);$&&ce&&(M=y.value="",me()),B()}});var B=m?function(Y){if(!(!N||L&&!Y||p)){Y||(Y="");var le=` - ab`+Y+`cde fg -`;le!=y.value&&(y.value=M=le);var ce=4,ke=4+(Y.length||(w.selection.isEmpty()?0:1));(T!=ce||R!=ke)&&y.setSelectionRange(ce,ke),T=ce,R=ke}}:function(){if(!($||p)&&!(!N&&!H)){$=!0;var Y=0,le=0,ce="";if(w.session){var ke=w.selection,Ae=ke.getRange(),Re=ke.cursor.row;if(Y=Ae.start.column,le=Ae.end.column,ce=w.session.getLine(Re),Ae.start.row!=Re){var U=w.session.getLine(Re-1);Y=Ae.start.rowRe+1?X.length:le,le+=ce.length+1,ce=ce+` -`+X}else k&&Re>0&&(ce=` -`+ce,le+=1,Y+=1);ce.length>l&&(Y=M.length&&Y.value===M&&M&&Y.selectionEnd!==R},F=function(Y){$||(L?L=!1:W(y)?(w.selectAll(),B()):k&&y.selectionStart!=T&&B())},I=null;this.setInputHandler=function(Y){I=Y},this.getInputHandler=function(){return I};var H=!1,z=function(Y,le){if(H&&(H=!1),x)return B(),Y&&w.onPaste(Y),x=!1,"";for(var ce=y.selectionStart,ke=y.selectionEnd,Ae=T,Re=M.length-R,U=Y,X=Y.length-ce,ne=Y.length-ke,oe=0;Ae>0&&M[oe]==Y[oe];)oe++,Ae--;for(U=U.slice(oe),oe=1;Re>0&&M.length-oe>T-1&&M[M.length-oe]==Y[Y.length-oe];)oe++,Re--;X-=oe-1,ne-=oe-1;var be=U.length-oe+1;if(be<0&&(Ae=-be,be=0),U=U.slice(0,be),!le&&!U&&!X&&!Ae&&!Re&&!ne)return"";p=!0;var We=!1;return d.isAndroid&&U==". "&&(U=" ",We=!0),U&&!Ae&&!Re&&!X&&!ne||C?w.onTextInput(U):w.onTextInput(U,{extendLeft:Ae,extendRight:Re,restoreStart:X,restoreEnd:ne}),p=!1,M=Y,T=ce,R=ke,D=ne,We?` -`:U},V=function(Y){if($)return ge();if(Y&&Y.inputType){if(Y.inputType=="historyUndo")return w.execCommand("undo");if(Y.inputType=="historyRedo")return w.execCommand("redo")}var le=y.value,ce=z(le,!0);(le.length>l+100||S.test(ce)||k&&T<1&&T==R)&&B()},K=function(Y,le,ce){var ke=Y.clipboardData||window.clipboardData;if(!(!ke||t)){var Ae=n||ce?"Text":"text/plain";try{return le?ke.setData(Ae,le)!==!1:ke.getData(Ae)}catch(Re){if(!ce)return K(Re,le,!0)}}},Z=function(Y,le){var ce=w.getCopyText();if(!ce)return c.preventDefault(Y);K(Y,ce)?(m&&(B(ce),L=ce,setTimeout(function(){L=!1},10)),le?w.onCut():w.onCopy(),c.preventDefault(Y)):(L=!0,y.value=ce,y.select(),setTimeout(function(){L=!1,B(),le?w.onCut():w.onCopy()}))},G=function(Y){Z(Y,!0)},re=function(Y){Z(Y,!1)},J=function(Y){var le=K(Y);h.pasteCancelled()||(typeof le=="string"?(le&&w.onPaste(le,Y),d.isIE&&setTimeout(B),c.preventDefault(Y)):(y.value="",x=!0))};c.addCommandKeyListener(y,w.onCommandKey.bind(w),w),c.addListener(y,"select",F,w),c.addListener(y,"input",V,w),c.addListener(y,"cut",G,w),c.addListener(y,"copy",re,w),c.addListener(y,"paste",J,w),(!("oncut"in y)||!("oncopy"in y)||!("onpaste"in y))&&c.addListener(E,"keydown",function(Y){if(!(d.isMac&&!Y.metaKey||!Y.ctrlKey))switch(Y.keyCode){case 67:re(Y);break;case 86:J(Y);break;case 88:G(Y);break}},w);var te=function(Y){if(!($||!w.onCompositionStart||w.$readOnly)&&($={},!C)){Y.data&&($.useTextareaForIME=!1),setTimeout(ge,0),w._signal("compositionStart"),w.on("mousedown",ie);var le=w.getSelectionRange();le.end.row=le.start.row,le.end.column=le.start.column,$.markerRange=le,$.selectionStart=T,w.onCompositionStart($),$.useTextareaForIME?(M=y.value="",T=0,R=0):(y.msGetInputContext&&($.context=y.msGetInputContext()),y.getInputContext&&($.context=y.getInputContext()))}},ge=function(){if(!(!$||!w.onCompositionUpdate||w.$readOnly)){if(C)return ie();if($.useTextareaForIME)w.onCompositionUpdate(y.value);else{var Y=y.value;z(Y),$.markerRange&&($.context&&($.markerRange.start.column=$.selectionStart=$.context.compositionStartOffset),$.markerRange.end.column=$.markerRange.start.column+R-$.selectionStart+D)}}},me=function(Y){!w.onCompositionEnd||w.$readOnly||($=!1,w.onCompositionEnd(),w.off("mousedown",ie),Y&&V())};function ie(){_=!0,y.blur(),y.focus(),_=!1}var q=o.delayedCall(ge,50).schedule.bind(null,null);function he(Y){Y.keyCode==27&&y.value.lengthR&&M[ne]==` -`?oe=f.end:XR&&M.slice(0,ne).split(` -`).length>2?oe=f.down:ne>R&&M[ne-1]==" "?(oe=f.right,be=g.option):(ne>R||ne==R&&R!=T&&X==ne)&&(oe=f.right),X!==ne&&(be|=g.shift),oe){var We=le.onCommandKey({},be,oe);if(!We&&le.commands){oe=f.keyCodeToString(oe);var Xe=le.commands.findKeyCommand(be,oe);Xe&&le.execCommand(Xe)}T=X,R=ne,B("")}}};document.addEventListener("selectionchange",Re),le.on("destroy",function(){document.removeEventListener("selectionchange",Re)})}this.destroy=function(){y.parentElement&&y.parentElement.removeChild(y)}};a.TextInput=A,a.$setUserAgentForTests=function(E,w){k=E,m=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(i,a,v){var c=i("../lib/useragent"),d=0,u=550;function o(n){n.$clickSelection=null;var r=n.editor;r.setDefaultHandler("mousedown",this.onMouseDown.bind(n)),r.setDefaultHandler("dblclick",this.onDoubleClick.bind(n)),r.setDefaultHandler("tripleclick",this.onTripleClick.bind(n)),r.setDefaultHandler("quadclick",this.onQuadClick.bind(n)),r.setDefaultHandler("mousewheel",this.onMouseWheel.bind(n));var l=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];l.forEach(function(f){n[f]=this[f]},this),n.selectByLines=this.extendSelectionBy.bind(n,"getLineRange"),n.selectByWords=this.extendSelectionBy.bind(n,"getWordRange")}(function(){this.onMouseDown=function(n){var r=n.inSelection(),l=n.getDocumentPosition();this.mousedownEvent=n;var f=this.editor,g=n.getButton();if(g!==0){var m=f.getSelectionRange(),S=m.isEmpty();(S||g==1)&&f.selection.moveToPosition(l),g==2&&(f.textInput.onContextMenu(n.domEvent),c.isMozilla||n.preventDefault());return}if(this.mousedownEvent.time=Date.now(),r&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(n);return}return this.captureMouse(n),this.startSelect(l,n.domEvent._clicks>1),n.preventDefault()},this.startSelect=function(n,r){n=n||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var l=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?l.selection.selectToPosition(n):r||l.selection.moveToPosition(n),r||this.select(),l.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var n,r=this.editor,l=r.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(l);if(f==-1)n=this.$clickSelection.end;else if(f==1)n=this.$clickSelection.start;else{var g=t(this.$clickSelection,l);l=g.cursor,n=g.anchor}r.selection.setSelectionAnchor(n.row,n.column)}r.selection.selectToPosition(l),r.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(n){var r,l=this.editor,f=l.renderer.screenToTextCoordinates(this.x,this.y),g=l.selection[n](f.row,f.column);if(this.$clickSelection){var m=this.$clickSelection.comparePoint(g.start),S=this.$clickSelection.comparePoint(g.end);if(m==-1&&S<=0)r=this.$clickSelection.end,(g.end.row!=f.row||g.end.column!=f.column)&&(f=g.start);else if(S==1&&m>=0)r=this.$clickSelection.start,(g.start.row!=f.row||g.start.column!=f.column)&&(f=g.end);else if(m==-1&&S==1)f=g.end,r=g.start;else{var k=t(this.$clickSelection,f);f=k.cursor,r=k.anchor}l.selection.setSelectionAnchor(r.row,r.column)}l.selection.selectToPosition(f),l.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},this.focusWait=function(){var n=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),r=Date.now();(n>d||r-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(n){var r=n.getDocumentPosition(),l=this.editor,f=l.session,g=f.getBracketRange(r);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=l.selection.getWordRange(r.row,r.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},this.onTripleClick=function(n){var r=n.getDocumentPosition(),l=this.editor;this.setState("selectByLines");var f=l.getSelectionRange();f.isMultiLine()&&f.contains(r.row,r.column)?(this.$clickSelection=l.selection.getLineRange(f.start.row),this.$clickSelection.end=l.selection.getLineRange(f.end.row).end):this.$clickSelection=l.selection.getLineRange(r.row),this.select()},this.onQuadClick=function(n){var r=this.editor;r.selectAll(),this.$clickSelection=r.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(n){if(!n.getAccelKey()){n.getShiftKey()&&n.wheelY&&!n.wheelX&&(n.wheelX=n.wheelY,n.wheelY=0);var r=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var l=this.$lastScroll,f=n.domEvent.timeStamp,g=f-l.t,m=g?n.wheelX/g:l.vx,S=g?n.wheelY/g:l.vy;g=1&&r.renderer.isScrollableBy(n.wheelX*n.speed,0)&&(A=!0),k<=1&&r.renderer.isScrollableBy(0,n.wheelY*n.speed)&&(A=!0),A)l.allowed=f;else if(f-l.allowedr.session.documentToScreenRow($.row,$.column))return A()}if(S!=y){S=y.text.join("
"),f.setHtml(S);var p=y.className;if(p&&f.setClassName(p.trim()),f.show(),r._signal("showGutterTooltip",f),r.on("mousewheel",A),n.$tooltipFollowsMouse)E(m);else{var b=m.domEvent.target,C=b.getBoundingClientRect(),_=f.getElement().style;_.left=C.right+"px",_.top=C.bottom+"px"}}}function A(){g&&(g=clearTimeout(g)),S&&(f.hide(),S=null,r._signal("hideGutterTooltip",f),r.off("mousewheel",A))}function E(w){f.setPosition(w.x,w.y)}n.editor.setDefaultHandler("guttermousemove",function(w){var y=w.domEvent.target||w.domEvent.srcElement;if(c.hasCssClass(y,"ace_fold-widget"))return A();S&&n.$tooltipFollowsMouse&&E(w),m=w,!g&&(g=setTimeout(function(){g=null,m&&!n.isMousePressed?k():A()},50))}),u.addListener(r.renderer.$gutter,"mouseout",function(w){m=null,!(!S||g)&&(g=setTimeout(function(){g=null,A()},50))},r),r.on("changeSession",A)}function t(n){o.call(this,n)}d.inherits(t,o),function(){this.setPosition=function(n,r){var l=window.innerWidth||document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight,g=this.getWidth(),m=this.getHeight();n+=15,r+=15,n+g>l&&(n-=n+g-l),r+m>f&&(r-=20+m),o.prototype.setPosition.call(this,n,r)}}.call(t.prototype),a.GutterHandler=h}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(i,a,v){var c=i("../lib/event"),d=i("../lib/useragent"),u=a.MouseEvent=function(o,h){this.domEvent=o,this.editor=h,this.x=this.clientX=o.clientX,this.y=this.clientY=o.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){c.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){c.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var o=this.editor,h=o.getSelectionRange();if(h.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=h.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return c.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=d.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(u.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(i,a,v){var c=i("../lib/dom"),d=i("../lib/event"),u=i("../lib/useragent"),o=200,h=200,t=5;function n(l){var f=l.editor,g=c.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(H){l[H]=this[H]},this),f.on("mousedown",this.onMouseDown.bind(l));var S=f.container,k,A,E,w,y,L,x=0,$,p,b,C,_;this.onDragStart=function(H){if(this.cancelDrag||!S.draggable){var z=this;return setTimeout(function(){z.startSelect(),z.captureMouse(H)},0),H.preventDefault()}y=f.getSelectionRange();var V=H.dataTransfer;V.effectAllowed=f.getReadOnly()?"copy":"copyMove",f.container.appendChild(g),V.setDragImage&&V.setDragImage(g,0,0),setTimeout(function(){f.container.removeChild(g)}),V.clearData(),V.setData("Text",f.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(H){if(S.draggable=!1,p=!1,this.setState(null),!f.getReadOnly()){var z=H.dataTransfer.dropEffect;!$&&z=="move"&&f.session.remove(f.getSelectionRange()),f.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(f.getReadOnly()||!F(H.dataTransfer)))return A=H.clientX,E=H.clientY,k||D(),x++,H.dataTransfer.dropEffect=$=I(H),d.preventDefault(H)},this.onDragOver=function(H){if(!(f.getReadOnly()||!F(H.dataTransfer)))return A=H.clientX,E=H.clientY,k||(D(),x++),B!==null&&(B=null),H.dataTransfer.dropEffect=$=I(H),d.preventDefault(H)},this.onDragLeave=function(H){if(x--,x<=0&&k)return N(),$=null,d.preventDefault(H)},this.onDrop=function(H){if(L){var z=H.dataTransfer;if(p)switch($){case"move":y.contains(L.row,L.column)?y={start:L,end:L}:y=f.moveText(y,L);break;case"copy":y=f.moveText(y,L,!0);break}else{var V=z.getData("Text");y={start:L,end:f.session.insert(L,V)},f.focus(),$=null}return N(),d.preventDefault(H)}},d.addListener(S,"dragstart",this.onDragStart.bind(l),f),d.addListener(S,"dragend",this.onDragEnd.bind(l),f),d.addListener(S,"dragenter",this.onDragEnter.bind(l),f),d.addListener(S,"dragover",this.onDragOver.bind(l),f),d.addListener(S,"dragleave",this.onDragLeave.bind(l),f),d.addListener(S,"drop",this.onDrop.bind(l),f);function M(H,z){var V=Date.now(),K=!z||H.row!=z.row,Z=!z||H.column!=z.column;if(!C||K||Z)f.moveCursorToPosition(H),C=V,_={x:A,y:E};else{var G=r(_.x,_.y,A,E);G>t?C=null:V-C>=h&&(f.renderer.scrollCursorIntoView(),C=null)}}function T(H,z){var V=Date.now(),K=f.renderer.layerConfig.lineHeight,Z=f.renderer.layerConfig.characterWidth,G=f.renderer.scroller.getBoundingClientRect(),re={x:{left:A-G.left,right:G.right-A},y:{top:E-G.top,bottom:G.bottom-E}},J=Math.min(re.x.left,re.x.right),te=Math.min(re.y.top,re.y.bottom),ge={row:H.row,column:H.column};J/Z<=2&&(ge.column+=re.x.left=o&&f.renderer.scrollCursorIntoView(ge):b=V:b=null}function R(){var H=L;L=f.renderer.screenToTextCoordinates(A,E),M(L,H),T(L,H)}function D(){y=f.selection.toOrientedRange(),k=f.session.addMarker(y,"ace_selection",f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),R(),w=setInterval(R,20),x=0,d.addListener(document,"mousemove",W)}function N(){clearInterval(w),f.session.removeMarker(k),k=null,f.selection.fromOrientedRange(y),f.isFocused()&&!p&&f.$resetCursorStyle(),y=null,L=null,x=0,b=null,C=null,d.removeListener(document,"mousemove",W)}var B=null;function W(){B==null&&(B=setTimeout(function(){B!=null&&k&&N()},20))}function F(H){var z=H.types;return!z||Array.prototype.some.call(z,function(V){return V=="text/plain"||V=="Text"})}function I(H){var z=["copy","copymove","all","uninitialized"],V=["move","copymove","linkmove","all","uninitialized"],K=u.isMac?H.altKey:H.ctrlKey,Z="uninitialized";try{Z=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var G="none";return K&&z.indexOf(Z)>=0?G="copy":V.indexOf(Z)>=0?G="move":z.indexOf(Z)>=0&&(G="copy"),G}}(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,f=l.container;f.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var g=u.isWin?"default":"move";l.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(l){var f=this.editor.container;if(u.isIE&&this.state=="dragReady"){var g=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&f.dragDrop()}if(this.state==="dragWait"){var g=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(f.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var f=this.editor,g=l.inSelection(),m=l.getButton(),S=l.domEvent.detail||1;if(S===1&&m===0&&g){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var k=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in k&&(k.unselectable="on"),f.getDragDelay()){if(u.isWebKit){this.cancelDrag=!0;var A=f.container;A.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(n.prototype);function r(l,f,g,m){return Math.sqrt(Math.pow(g-l,2)+Math.pow(m-f,2))}a.DragdropHandler=n}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(i,a,v){var c=i("./mouse_event").MouseEvent,d=i("../lib/event"),u=i("../lib/dom");a.addTouchListeners=function(o,h){var t="scroll",n,r,l,f,g,m,S=0,k,A=0,E=0,w=0,y,L;function x(){var M=window.navigator&&window.navigator.clipboard,T=!1,R=function(){var N=h.getCopyText(),B=h.session.getUndoManager().hasUndo();L.replaceChild(u.buildDom(T?["span",!N&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],M&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],B&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),L.firstChild)},D=function(N){var B=N.target.getAttribute("action");if(B=="more"||!T)return T=!T,R();B=="paste"?M.readText().then(function(W){h.execCommand(B,W)}):B&&((B=="cut"||B=="copy")&&(M?M.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(B)),L.firstChild.style.display="none",T=!1,B!="openCommandPallete"&&h.focus()};L=u.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){t="menu",N.stopPropagation(),N.preventDefault(),h.textInput.focus()},ontouchend:function(N){N.stopPropagation(),N.preventDefault(),D(N)},onclick:D},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function $(){L||x();var M=h.selection.cursor,T=h.renderer.textToScreenCoordinates(M.row,M.column),R=h.renderer.textToScreenCoordinates(0,0).pageX,D=h.renderer.scrollLeft,N=h.container.getBoundingClientRect();L.style.top=T.pageY-N.top-3+"px",T.pageX-N.left=2?h.selection.getLineRange(k.row):h.session.getBracketRange(k);M&&!M.isEmpty()?h.selection.setRange(M):h.selection.selectWord(),t="wait"}d.addListener(o,"contextmenu",function(M){if(y){var T=h.textInput.getElement();T.focus()}},h),d.addListener(o,"touchstart",function(M){var T=M.touches;if(g||T.length>1){clearTimeout(g),g=null,l=-1,t="zoom";return}y=h.$mouseHandler.isMousePressed=!0;var R=h.renderer.layerConfig.lineHeight,D=h.renderer.layerConfig.lineHeight,N=M.timeStamp;f=N;var B=T[0],W=B.clientX,F=B.clientY;Math.abs(n-W)+Math.abs(r-F)>R&&(l=-1),n=M.clientX=W,r=M.clientY=F,E=w=0;var I=new c(M,h);if(k=I.getDocumentPosition(),N-l<500&&T.length==1&&!S)A++,M.preventDefault(),M.button=0,C();else{A=0;var H=h.selection.cursor,z=h.selection.isEmpty()?H:h.selection.anchor,V=h.renderer.$cursorLayer.getPixelPosition(H,!0),K=h.renderer.$cursorLayer.getPixelPosition(z,!0),Z=h.renderer.scroller.getBoundingClientRect(),G=h.renderer.layerConfig.offset,re=h.renderer.scrollLeft,J=function(me,ie){return me=me/D,ie=ie/R-.75,me*me+ie*ie};if(M.clientXge?"cursor":"anchor"),ge<3.5?t="anchor":te<3.5?t="cursor":t="scroll",g=setTimeout(b,450)}l=N},h),d.addListener(o,"touchend",function(M){y=h.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),t=="zoom"?(t="",S=0):g?(h.selection.moveToPosition(k),S=0,$()):t=="scroll"?(_(),p()):$(),clearTimeout(g),g=null},h),d.addListener(o,"touchmove",function(M){g&&(clearTimeout(g),g=null);var T=M.touches;if(!(T.length>1||t=="zoom")){var R=T[0],D=n-R.clientX,N=r-R.clientY;if(t=="wait")if(D*D+N*N>4)t="cursor";else return M.preventDefault();n=R.clientX,r=R.clientY,M.clientX=R.clientX,M.clientY=R.clientY;var B=M.timeStamp,W=B-f;if(f=B,t=="scroll"){var F=new c(M,h);F.speed=1,F.wheelX=D,F.wheelY=N,10*Math.abs(D)0)if(ge==16){for(q=ie;q-1){for(q=ie;q=0&&K[Se]==y;Se--)z[Se]=c}}}function W(H,z,V){if(!(d=H){for(G=Z+1;G=H;)G++;for(re=Z,J=G-1;re=z.length||(G=V[K-1])!=m&&G!=S||(re=z[K+1])!=m&&re!=S?k:(u&&(re=S),re==G?re:k);case x:return G=K>0?V[K-1]:A,G==m&&K+10&&V[K-1]==m)return m;if(u)return k;for(te=K+1,J=z.length;te=1425&&ge<=2303||ge==64286;if(G=z[te],me&&(G==g||G==w))return g}return K<1||(G=z[K-1])==A?k:V[K-1];case A:return u=!1,o=!0,c;case E:return h=!0,k;case b:case C:case M:case T:case _:u=!1;case R:return k}}function I(H){var z=H.charCodeAt(0),V=z>>8;return V==0?z>191?f:D[z]:V==5?/[\u0591-\u05f4]/.test(H)?g:f:V==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?p:/[\u0660-\u0669\u066b-\u066c]/.test(H)?S:z==1642?$:/[\u06f0-\u06f9]/.test(H)?m:w:V==32&&z<=8287?N[z&255]:V==254&&z>=65136?w:k}a.L=f,a.R=g,a.EN=m,a.ON_R=3,a.AN=4,a.R_H=5,a.B=6,a.RLE=7,a.DOT="·",a.doBidiReorder=function(H,z,V){if(H.length<2)return{};var K=H.split(""),Z=new Array(K.length),G=new Array(K.length),re=[];c=V?l:r,B(K,re,K.length,z);for(var J=0;Jw&&z[J]0&&K[J-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(K[J])&&(re[J-1]=re[J]=a.R_H,J++);K[K.length-1]===a.DOT&&(re[K.length-1]=a.B),K[0]==="‫"&&(re[0]=a.RLE);for(var J=0;J=0&&(h=this.session.$docRowCache[n])}return h},this.getSplitIndex=function(){var h=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-h>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-h-1),n===r);)r=n,h++;else h=this.currentRow;return h},this.updateRowLine=function(h,t){h===void 0&&(h=this.getDocumentRow());var n=h===this.session.getLength()-1,r=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(h),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var l=this.session.$wrapData[h];l&&(t===void 0&&(t=this.getSplitIndex()),t>0&&l.length?(this.wrapIndent=l.indent,this.wrapOffset=this.wrapIndent*this.charWidths[c.L],this.line=tt?this.session.getOverwrite()?h:h-1:t,r=c.getVisualFromLogicalIdx(n,this.bidiMap),l=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&h<=t&&l[r]%2!==0&&r++;for(var g=0;gt&&l[r]%2===0&&(f+=this.charWidths[l[r]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},this.getSelections=function(h,t){var n=this.bidiMap,r=n.bidiLevels,l,f=[],g=0,m=Math.min(h,t)-this.wrapIndent,S=Math.max(h,t)-this.wrapIndent,k=!1,A=!1,E=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,y=0;y=m&&wr+g/2;){if(r+=g,l===f.length-1){g=0;break}g=this.charWidths[f[++l]]}return l>0&&f[l-1]%2!==0&&f[l]%2===0?(n0&&f[l-1]%2===0&&f[l]%2!==0?t=1+(n>r?this.bidiMap.logicalFromVisual[l]:this.bidiMap.logicalFromVisual[l-1]):this.isRtlDir&&l===f.length-1&&g===0&&f[l-1]%2===0||!this.isRtlDir&&l===0&&f[l]%2!==0?t=1+this.bidiMap.logicalFromVisual[l]:(l>0&&f[l-1]%2!==0&&g!==0&&l--,t=this.bidiMap.logicalFromVisual[l]),t===0&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(o.prototype),a.BidiHandler=o}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(i,a,v){var c=i("./lib/oop"),d=i("./lib/lang"),u=i("./lib/event_emitter").EventEmitter,o=i("./range").Range,h=function(t){this.session=t,this.doc=t.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var n=this;this.cursor.on("change",function(r){n.$cursorChanged=!0,n.$silent||n._emit("changeCursor"),!n.$isEmpty&&!n.$silent&&n._emit("changeSelection"),!n.$keepDesiredColumnOnChange&&r.old.column!=r.value.column&&(n.$desiredColumn=null)}),this.anchor.on("change",function(){n.$anchorChanged=!0,!n.$isEmpty&&!n.$silent&&n._emit("changeSelection")})};(function(){c.implement(this,u),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setAnchor=function(t,n){this.$isEmpty=!1,this.anchor.setPosition(t,n)},this.setSelectionAnchor=this.setAnchor,this.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionAnchor=this.getAnchor,this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var t=this.anchor,n=this.lead;return t.row>n.row||t.row==n.row&&t.column>n.column},this.getRange=function(){var t=this.anchor,n=this.lead;return this.$isEmpty?o.fromPoints(n,n):this.isBackwards()?o.fromPoints(n,t):o.fromPoints(t,n)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(t,n){var r=n?t.end:t.start,l=n?t.start:t.end;this.$setSelection(r.row,r.column,l.row,l.column)},this.$setSelection=function(t,n,r,l){if(!this.$silent){var f=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(t,n),this.cursor.setPosition(r,l),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||g)&&this._emit("changeSelection")}},this.$moveSelection=function(t){var n=this.lead;this.$isEmpty&&this.setSelectionAnchor(n.row,n.column),t.call(this)},this.selectTo=function(t,n){this.$moveSelection(function(){this.moveCursorTo(t,n)})},this.selectToPosition=function(t){this.$moveSelection(function(){this.moveCursorToPosition(t)})},this.moveTo=function(t,n){this.clearSelection(),this.moveCursorTo(t,n)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,n){if(typeof n>"u"){var r=t||this.lead;t=r.row,n=r.column}return this.session.getWordRange(t,n)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),n=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(n)},this.getLineRange=function(t,n){var r=typeof t=="number"?t:this.lead.row,l,f=this.session.getFoldLine(r);return f?(r=f.start.row,l=f.end.row):l=r,n===!0?new o(r,0,l,this.session.getLine(l).length):new o(r,0,l+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,n,r){var l=t.column,f=t.column+n;return r<0&&(l=t.column-n,f=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(l,f).split(" ").length-1==n},this.moveCursorLeft=function(){var t=this.lead.getPosition(),n;if(n=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(n.start.row,n.start.column);else if(t.column===0)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t=this.lead.getPosition(),n;if(n=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(n.end.row,n.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(n.column=l)}}this.moveCursorTo(n.row,n.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,n=this.doc.getLine(t).length;this.moveCursorTo(t,n)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,n=this.lead.column,r=this.doc.getLine(t),l=r.substring(n);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(t,n,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(l)&&(n+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,l=r.substring(n)),n>=r.length){this.moveCursorTo(t,r.length),this.moveCursorRight(),t0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)},this.$shortWordEndIndex=function(t){var n=0,r,l=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(t))n=this.session.tokenRe.lastIndex;else{for(;(r=t[n])&&l.test(r);)n++;if(n<1){for(f.lastIndex=0;(r=t[n])&&!f.test(r);)if(f.lastIndex=0,n++,l.test(r))if(n>2){n--;break}else{for(;(r=t[n])&&l.test(r);)n++;if(n>2)break}}}return f.lastIndex=0,n},this.moveCursorShortWordRight=function(){var t=this.lead.row,n=this.lead.column,r=this.doc.getLine(t),l=r.substring(n),f=this.session.getFoldAt(t,n,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(n==r.length){var g=this.doc.getLength();do t++,l=this.doc.getLine(t);while(t0&&/^\s*$/.test(l));n=l.length,/\s+$/.test(l)||(l="")}var f=d.stringReverse(l),g=this.$shortWordEndIndex(f);return this.moveCursorTo(t,n-g)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,n){var r=this.session.documentToScreenPosition(this.lead.row,this.lead.column),l;if(n===0&&(t!==0&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(l=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(l/this.session.$bidiHandler.charWidths[0])):l=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),t!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];t<0?t-=f.rowsAbove||0:t>0&&(t+=f.rowCount-(f.rowsAbove||0))}var g=this.session.screenToDocumentPosition(r.row+t,r.column,l);t!==0&&n===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.column+n,n===0)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,n,r){var l=this.session.getFoldAt(t,n,1);l&&(t=l.start.row,n=l.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(f.charAt(n))&&f.charAt(n-1)&&(this.lead.row==t&&this.lead.column==n+1?n=n-1:n=n+1),this.lead.setPosition(t,n),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,n,r){var l=this.session.screenToDocumentPosition(t,n);this.moveCursorTo(l.row,l.column,r)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var n=this.getRange();return t?(t.start.column=n.start.column,t.start.row=n.start.row,t.end.column=n.end.column,t.end.row=n.end.row):t=n,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var n=this.getCursor();try{t(this);var r=this.getCursor();return o.fromPoints(n,r)}catch{return o.fromPoints(n,n)}finally{this.moveCursorToPosition(n)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map(function(n){var r=n.clone();return r.isBackwards=n.cursor==n.start,r});else{var t=this.getRange();t.isBackwards=this.isBackwards()}return t},this.fromJSON=function(t){if(t.start==null)if(this.rangeList&&t.length>1){this.toSingleRange(t[0]);for(var n=t.length;n--;){var r=o.fromPoints(t[n].start,t[n].end);t[n].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}else t=t[0];this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var n=this.ranges.length;n--;)if(!this.ranges[n].isEqual(t[n]))return!1;return!0}}).call(h.prototype),a.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(i,a,v){var c=i("./config"),d=2e3,u=function(o){this.states=o,this.regExps={},this.matchMappings={};for(var h in this.states){for(var t=this.states[h],n=[],r=0,l=this.matchMappings[h]={defaultToken:"text"},f="g",g=[],m=0;m1?S.onMatch=this.$applyToken:S.onMatch=S.token),A>1&&(/\\\d/.test(S.regex)?k=S.regex.replace(/\\([0-9]+)/g,function(E,w){return"\\"+(parseInt(w,10)+r+1)}):(A=1,k=this.removeCapturingGroups(S.regex)),!S.splitRegex&&typeof S.token!="string"&&g.push(S)),l[r]=m,r+=A,n.push(k),S.onMatch||(S.onMatch=null)}}n.length||(l[0]=0,n.push("$")),g.forEach(function(E){E.splitRegex=this.createSplitterRegexp(E.regex,f)},this),this.regExps[h]=new RegExp("("+n.join(")|(")+")|($)",f)}};(function(){this.$setMaxTokenCount=function(o){d=o|0},this.$applyToken=function(o){var h=this.splitRegex.exec(o).slice(1),t=this.token.apply(this,h);if(typeof t=="string")return[{type:t,value:o}];for(var n=[],r=0,l=t.length;rS){var x=o.substring(S,L-y.length);A.type==E?A.value+=x:(A.type&&m.push(A),A={type:E,value:x})}for(var $=0;$d){for(k>2*o.length&&this.reportError("infinite loop with in ace tokenizer",{startState:h,line:o});S1&&t[0]!==n&&t.unshift("#tmp",n),{tokens:m,state:t.length?t:n}},this.reportError=c.reportError}).call(u.prototype),a.Tokenizer=u}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(i,a,v){var c=i("../lib/lang"),d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,t){if(!t){for(var n in h)this.$rules[n]=h[n];return}for(var n in h){for(var r=h[n],l=0;l=this.$rowTokens.length;){if(this.$row+=1,u||(u=this.$session.getLength()),this.$row>=u)return this.$row=u-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var u=this.$rowTokens,o=this.$tokenIndex,h=u[o].start;if(h!==void 0)return h;for(h=0;o>0;)o-=1,h+=u[o].value.length;return h},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var u=this.$rowTokens[this.$tokenIndex],o=this.getCurrentTokenColumn();return new c(this.$row,o,this.$row,o+u.value.length)}}).call(d.prototype),a.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(i,a,v){var c=i("../../lib/oop"),d=i("../behaviour").Behaviour,u=i("../../token_iterator").TokenIterator,o=i("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],t=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],n,r={},l={'"':'"',"'":"'"},f=function(S){var k=-1;if(S.multiSelect&&(k=S.selection.index,r.rangeCount!=S.multiSelect.rangeCount&&(r={rangeCount:S.multiSelect.rangeCount})),r[k])return n=r[k];n=r[k]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(S,k,A,E){var w=S.end.row-S.start.row;return{text:A+k+E,selection:[0,S.start.column+1,w,S.end.column+(w?0:1)]}},m=function(S){this.add("braces","insertion",function(k,A,E,w,y){var L=E.getCursorPosition(),x=w.doc.getLine(L.row);if(y=="{"){f(E);var $=E.getSelectionRange(),p=w.doc.getTextRange($);if(p!==""&&p!=="{"&&E.getWrapBehavioursEnabled())return g($,p,"{","}");if(m.isSaneInsertion(E,w))return/[\]\}\)]/.test(x[L.column])||E.inMultiSelectMode||S&&S.braces?(m.recordAutoInsert(E,w,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(E,w,"{"),{text:"{",selection:[1,1]})}else if(y=="}"){f(E);var b=x.substring(L.column,L.column+1);if(b=="}"){var C=w.$findOpeningBracket("}",{column:L.column+1,row:L.row});if(C!==null&&m.isAutoInsertedClosing(L,x,y))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(y==` -`||y==`\r -`){f(E);var _="";m.isMaybeInsertedClosing(L,x)&&(_=o.stringRepeat("}",n.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var b=x.substring(L.column,L.column+1);if(b==="}"){var M=w.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!M)return null;var T=this.$getIndent(w.getLine(M.row))}else if(_)var T=this.$getIndent(x);else{m.clearMaybeInsertedClosing();return}var R=T+w.getTabString();return{text:` -`+R+` -`+T+_,selection:[1,R.length,1,R.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(k,A,E,w,y){var L=w.doc.getTextRange(y);if(!y.isMultiLine()&&L=="{"){f(E);var x=w.doc.getLine(y.start.row),$=x.substring(y.end.column,y.end.column+1);if($=="}")return y.end.column++,y;n.maybeInsertedBrackets--}}),this.add("parens","insertion",function(k,A,E,w,y){if(y=="("){f(E);var L=E.getSelectionRange(),x=w.doc.getTextRange(L);if(x!==""&&E.getWrapBehavioursEnabled())return g(L,x,"(",")");if(m.isSaneInsertion(E,w))return m.recordAutoInsert(E,w,")"),{text:"()",selection:[1,1]}}else if(y==")"){f(E);var $=E.getCursorPosition(),p=w.doc.getLine($.row),b=p.substring($.column,$.column+1);if(b==")"){var C=w.$findOpeningBracket(")",{column:$.column+1,row:$.row});if(C!==null&&m.isAutoInsertedClosing($,p,y))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(k,A,E,w,y){var L=w.doc.getTextRange(y);if(!y.isMultiLine()&&L=="("){f(E);var x=w.doc.getLine(y.start.row),$=x.substring(y.start.column+1,y.start.column+2);if($==")")return y.end.column++,y}}),this.add("brackets","insertion",function(k,A,E,w,y){if(y=="["){f(E);var L=E.getSelectionRange(),x=w.doc.getTextRange(L);if(x!==""&&E.getWrapBehavioursEnabled())return g(L,x,"[","]");if(m.isSaneInsertion(E,w))return m.recordAutoInsert(E,w,"]"),{text:"[]",selection:[1,1]}}else if(y=="]"){f(E);var $=E.getCursorPosition(),p=w.doc.getLine($.row),b=p.substring($.column,$.column+1);if(b=="]"){var C=w.$findOpeningBracket("]",{column:$.column+1,row:$.row});if(C!==null&&m.isAutoInsertedClosing($,p,y))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(k,A,E,w,y){var L=w.doc.getTextRange(y);if(!y.isMultiLine()&&L=="["){f(E);var x=w.doc.getLine(y.start.row),$=x.substring(y.start.column+1,y.start.column+2);if($=="]")return y.end.column++,y}}),this.add("string_dquotes","insertion",function(k,A,E,w,y){var L=w.$mode.$quotes||l;if(y.length==1&&L[y]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(y)!=-1)return;f(E);var x=y,$=E.getSelectionRange(),p=w.doc.getTextRange($);if(p!==""&&(p.length!=1||!L[p])&&E.getWrapBehavioursEnabled())return g($,p,x,x);if(!p){var b=E.getCursorPosition(),C=w.doc.getLine(b.row),_=C.substring(b.column-1,b.column),M=C.substring(b.column,b.column+1),T=w.getTokenAt(b.row,b.column),R=w.getTokenAt(b.row,b.column+1);if(_=="\\"&&T&&/escape/.test(T.type))return null;var D=T&&/string|escape/.test(T.type),N=!R||/string|escape/.test(R.type),B;if(M==x)B=D!==N,B&&/string\.end/.test(R.type)&&(B=!1);else{if(D&&!N||D&&N)return null;var W=w.$mode.tokenRe;W.lastIndex=0;var F=W.test(_);W.lastIndex=0;var I=W.test(_);if(F||I||M&&!/[\s;,.})\]\\]/.test(M))return null;var H=C[b.column-2];if(_==x&&(H==x||W.test(H)))return null;B=!0}return{text:B?x+x:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(k,A,E,w,y){var L=w.$mode.$quotes||l,x=w.doc.getTextRange(y);if(!y.isMultiLine()&&L.hasOwnProperty(x)){f(E);var $=w.doc.getLine(y.start.row),p=$.substring(y.start.column+1,y.start.column+2);if(p==x)return y.end.column++,y}})};m.isSaneInsertion=function(S,k){var A=S.getCursorPosition(),E=new u(k,A.row,A.column);if(!this.$matchTokenType(E.getCurrentToken()||"text",h)){if(/[)}\]]/.test(S.session.getLine(A.row)[A.column]))return!0;var w=new u(k,A.row,A.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",h))return!1}return E.stepForward(),E.getCurrentTokenRow()!==A.row||this.$matchTokenType(E.getCurrentToken()||"text",t)},m.$matchTokenType=function(S,k){return k.indexOf(S.type||S)>-1},m.recordAutoInsert=function(S,k,A){var E=S.getCursorPosition(),w=k.doc.getLine(E.row);this.isAutoInsertedClosing(E,w,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=E.row,n.autoInsertedLineEnd=A+w.substr(E.column),n.autoInsertedBrackets++},m.recordMaybeInsert=function(S,k,A){var E=S.getCursorPosition(),w=k.doc.getLine(E.row);this.isMaybeInsertedClosing(E,w)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=E.row,n.maybeInsertedLineStart=w.substr(0,E.column)+A,n.maybeInsertedLineEnd=w.substr(E.column),n.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(S,k,A){return n.autoInsertedBrackets>0&&S.row===n.autoInsertedRow&&A===n.autoInsertedLineEnd[0]&&k.substr(S.column)===n.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(S,k){return n.maybeInsertedBrackets>0&&S.row===n.maybeInsertedRow&&k.substr(S.column)===n.maybeInsertedLineEnd&&k.substr(0,S.column)==n.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},c.inherits(m,d),a.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(i,a,v){for(var c=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,u=[],o=0;o2?V%y!=y-1:V%y==0}}else{if(!this.blockComment)return!1;var x=this.blockComment.start,$=this.blockComment.end,p=new RegExp("^(\\s*)(?:"+t.escapeRegExp(x)+")"),b=new RegExp("(?:"+t.escapeRegExp($)+")\\s*$"),C=function(B,W){M(B,W)||(!A||/\S/.test(B))&&(k.insertInLine({row:W,column:B.length},$),k.insertInLine({row:W,column:w},x))},_=function(B,W){var F;(F=B.match(b))&&k.removeInLine(W,B.length-F[0].length,B.length),(F=B.match(p))&&k.removeInLine(W,F[1].length,F[0].length)},M=function(B,W){if(p.test(B))return!0;for(var F=g.getTokens(W),I=0;IB.length&&(N=B.length)}),w==1/0&&(w=N,A=!1,E=!1),L&&w%y!=0&&(w=Math.floor(w/y)*y),D(E?_:C)},this.toggleBlockComment=function(f,g,m,S){var k=this.blockComment;if(k){!k.start&&k[0]&&(k=k[0]);var A=new n(g,S.row,S.column),E=A.getCurrentToken();g.selection;var w=g.selection.toOrientedRange(),y,L;if(E&&/comment/.test(E.type)){for(var x,$;E&&/comment/.test(E.type);){var p=E.value.indexOf(k.start);if(p!=-1){var b=A.getCurrentTokenRow(),C=A.getCurrentTokenColumn()+p;x=new r(b,C,b,C+k.start.length);break}E=A.stepBackward()}for(var A=new n(g,S.row,S.column),E=A.getCurrentToken();E&&/comment/.test(E.type);){var p=E.value.indexOf(k.end);if(p!=-1){var b=A.getCurrentTokenRow(),C=A.getCurrentTokenColumn()+p;$=new r(b,C,b,C+k.end.length);break}E=A.stepForward()}$&&g.remove($),x&&(g.remove(x),y=x.start.row,L=-k.start.length)}else L=k.start.length,y=m.start.row,g.insert(m.end,k.end),g.insert(m.start,k.start);w.start.row==y&&(w.start.column+=L),w.end.row==y&&(w.end.column+=L),g.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(f,g,m){return this.$getIndent(g)},this.checkOutdent=function(f,g,m){return!1},this.autoOutdent=function(f,g,m){},this.$getIndent=function(f){return f.match(/^\s*/)[0]},this.createWorker=function(f){return null},this.createModeDelegates=function(f){this.$embeds=[],this.$modes={};for(var g in f)if(f[g]){var m=f[g],S=m.prototype.$id,k=c.$modes[S];k||(c.$modes[S]=k=new m),c.$modes[g]||(c.$modes[g]=k),this.$embeds.push(g),this.$modes[g]=k}for(var A=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],g=0;g"u"?this.setPosition(h.row,h.column):this.setPosition(h,t)};(function(){c.implement(this,d),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row)&&!(t.start.row>this.row)){var n=h(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}};function o(t,n,r){var l=r?t.column<=n.column:t.column=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):t<0?(r.row=0,r.column=0):(r.row=t,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,n))),n<0&&(r.column=0),r}}).call(u.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(i,a,v){var c=i("./lib/oop"),d=i("./apply_delta").applyDelta,u=i("./lib/event_emitter").EventEmitter,o=i("./range").Range,h=i("./anchor").Anchor,t=function(n){this.$lines=[""],n.length===0?this.$lines=[""]:Array.isArray(n)?this.insertMergedLines({row:0,column:0},n):this.insert({row:0,column:0},n)};(function(){c.implement(this,u),this.setValue=function(n){var r=this.getLength()-1;this.remove(new o(0,0,r,this.getLine(r).length)),this.insert({row:0,column:0},n||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(n,r){return new h(this,n,r)},"aaa".split(/a/).length===0?this.$split=function(n){return n.replace(/\r\n|\r/g,` -`).split(` -`)}:this.$split=function(n){return n.split(/\r\n|\r|\n/)},this.$detectNewLine=function(n){var r=n.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=r?r[1]:` -`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r -`;case"unix":return` -`;default:return this.$autoNewLine||` -`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(n){this.$newLineMode!==n&&(this.$newLineMode=n,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(n){return n==`\r -`||n=="\r"||n==` -`},this.getLine=function(n){return this.$lines[n]||""},this.getLines=function(n,r){return this.$lines.slice(n,r+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(n){return this.getLinesForRange(n).join(this.getNewLineCharacter())},this.getLinesForRange=function(n){var r;if(n.start.row===n.end.row)r=[this.getLine(n.start.row).substring(n.start.column,n.end.column)];else{r=this.getLines(n.start.row,n.end.row),r[0]=(r[0]||"").substring(n.start.column);var l=r.length-1;n.end.row-n.start.row==l&&(r[l]=r[l].substring(0,n.end.column))}return r},this.insertLines=function(n,r){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(n,r)},this.removeLines=function(n,r){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(n,r)},this.insertNewLine=function(n){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(n,["",""])},this.insert=function(n,r){return this.getLength()<=1&&this.$detectNewLine(r),this.insertMergedLines(n,this.$split(r))},this.insertInLine=function(n,r){var l=this.clippedPos(n.row,n.column),f=this.pos(n.row,n.column+r.length);return this.applyDelta({start:l,end:f,action:"insert",lines:[r]},!0),this.clonePos(f)},this.clippedPos=function(n,r){var l=this.getLength();n===void 0?n=l:n<0?n=0:n>=l&&(n=l-1,r=void 0);var f=this.getLine(n);return r==null&&(r=f.length),r=Math.min(Math.max(r,0),f.length),{row:n,column:r}},this.clonePos=function(n){return{row:n.row,column:n.column}},this.pos=function(n,r){return{row:n,column:r}},this.$clipPosition=function(n){var r=this.getLength();return n.row>=r?(n.row=Math.max(0,r-1),n.column=this.getLine(r-1).length):(n.row=Math.max(0,n.row),n.column=Math.min(Math.max(n.column,0),this.getLine(n.row).length)),n},this.insertFullLines=function(n,r){n=Math.min(Math.max(n,0),this.getLength());var l=0;n0,f=r=0&&this.applyDelta({start:this.pos(n,this.getLine(n).length),end:this.pos(n+1,0),action:"remove",lines:["",""]})},this.replace=function(n,r){if(n instanceof o||(n=o.fromPoints(n.start,n.end)),r.length===0&&n.isEmpty())return n.start;if(r==this.getTextRange(n))return n.end;this.remove(n);var l;return r?l=this.insert(n.start,r):l=n.start,l},this.applyDeltas=function(n){for(var r=0;r=0;r--)this.revertDelta(n[r])},this.applyDelta=function(n,r){var l=n.action=="insert";(l?n.lines.length<=1&&!n.lines[0]:!o.comparePoints(n.start,n.end))||(l&&n.lines.length>2e4?this.$splitAndapplyLargeDelta(n,2e4):(d(this.$lines,n,r),this._signal("change",n)))},this.$safeApplyDelta=function(n){var r=this.$lines.length;(n.action=="remove"&&n.start.row20){t.running=setTimeout(t.$worker,20);break}}t.currentLine=r,l==-1&&(l=r),g<=l&&t.fireUpdateEvent(g,l)}}};(function(){c.implement(this,d),this.setTokenizer=function(o){this.tokenizer=o,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(o){this.doc=o,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(o,h){var t={first:o,last:h};this._signal("update",{data:t})},this.start=function(o){this.currentLine=Math.min(o||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)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(o){var h=o.start.row,t=o.end.row-h;if(t===0)this.lines[h]=null;else if(o.action=="remove")this.lines.splice(h,t+1,null),this.states.splice(h,t+1,null);else{var n=Array(t+1);n.unshift(h,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(h,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(o){return this.lines[o]||this.$tokenizeRow(o)},this.getState=function(o){return this.currentLine==o&&this.$tokenizeRow(o),this.states[o]||"start"},this.$tokenizeRow=function(o){var h=this.doc.getLine(o),t=this.states[o-1],n=this.tokenizer.getLineTokens(h,t,o);return this.states[o]+""!=n.state+""?(this.states[o]=n.state,this.lines[o+1]=null,this.currentLine>o+1&&(this.currentLine=o+1)):this.currentLine==o&&(this.currentLine=o+1),this.lines[o]=n.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(u.prototype),a.BackgroundTokenizer=u}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(i,a,v){var c=i("./lib/lang");i("./lib/oop");var d=i("./range").Range,u=function(o,h,t){this.setRegexp(o),this.clazz=h,this.type=t||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(o){this.regExp+""!=o+""&&(this.regExp=o,this.cache=[])},this.update=function(o,h,t,n){if(this.regExp)for(var r=n.firstRow,l=n.lastRow,f={},g=r;g<=l;g++){var m=this.cache[g];m==null&&(m=c.getMatchOffsets(t.getLine(g),this.regExp),m.length>this.MAX_RANGES&&(m=m.slice(0,this.MAX_RANGES)),m=m.map(function(E){return new d(g,E.offset,g,E.offset+E.length)}),this.cache[g]=m.length?m:"");for(var S=m.length;S--;){var k=m[S].toScreenRange(t),A=k.toString();f[A]||(f[A]=!0,h.drawSingleLineMarker(o,k,this.clazz,n))}}}}).call(u.prototype),a.SearchHighlight=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(i,a,v){var c=i("../range").Range;function d(u,o){this.foldData=u,Array.isArray(o)?this.folds=o:o=this.folds=[o];var h=o[o.length-1];this.range=new c(o[0].start.row,o[0].start.column,h.end.row,h.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(t){t.setFoldLine(this)},this)}(function(){this.shiftRow=function(u){this.start.row+=u,this.end.row+=u,this.folds.forEach(function(o){o.start.row+=u,o.end.row+=u})},this.addFold=function(u){if(u.sameRow){if(u.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(u),this.folds.sort(function(o,h){return-o.range.compareEnd(h.start.row,h.start.column)}),this.range.compareEnd(u.start.row,u.start.column)>0?(this.end.row=u.end.row,this.end.column=u.end.column):this.range.compareStart(u.end.row,u.end.column)<0&&(this.start.row=u.start.row,this.start.column=u.start.column)}else if(u.start.row==this.end.row)this.folds.push(u),this.end.row=u.end.row,this.end.column=u.end.column;else if(u.end.row==this.start.row)this.folds.unshift(u),this.start.row=u.start.row,this.start.column=u.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");u.foldLine=this},this.containsRow=function(u){return u>=this.start.row&&u<=this.end.row},this.walk=function(u,o,h){var t=0,n=this.folds,r,l,f,g=!0;o==null&&(o=this.end.row,h=this.end.column);for(var m=0;m0)){var g=d(o,l.start);return f===0?h&&g!==0?-r-2:r:g>0||g===0&&!h?r:-r-1}}return-r-1},this.add=function(o){var h=!o.isEmpty(),t=this.pointIndex(o.start,h);t<0&&(t=-t-1);var n=this.pointIndex(o.end,h,t);return n<0?n=-n-1:n++,this.ranges.splice(t,n-t,o)},this.addList=function(o){for(var h=[],t=o.length;t--;)h.push.apply(h,this.add(o[t]));return h},this.substractPoint=function(o){var h=this.pointIndex(o);if(h>=0)return this.ranges.splice(h,1)},this.merge=function(){var o=[],h=this.ranges;h=h.sort(function(f,g){return d(f.start,g.start)});for(var t=h[0],n,r=1;r=0},this.containsPoint=function(o){return this.pointIndex(o)>=0},this.rangeAtPoint=function(o){var h=this.pointIndex(o);if(h>=0)return this.ranges[h]},this.clipRows=function(o,h){var t=this.ranges;if(t[0].start.row>h||t[t.length-1].start.row=n)break}if(o.action=="insert")for(var S=r-n,k=-h.column+t.column;fn)break;if(m.start.row==n&&m.start.column>=h.column&&(m.start.column==h.column&&this.$bias<=0||(m.start.column+=k,m.start.row+=S)),m.end.row==n&&m.end.column>=h.column){if(m.end.column==h.column&&this.$bias<0)continue;m.end.column==h.column&&k>0&&fm.start.column&&m.end.column==l[f+1].start.column&&(m.end.column-=k),m.end.column+=k,m.end.row+=S}}else for(var S=n-r,k=h.column-t.column;fr)break;m.end.rowh.column)&&(m.end.column=h.column,m.end.row=h.row):(m.end.column+=k,m.end.row+=S):m.end.row>r&&(m.end.row+=S),m.start.rowh.column)&&(m.start.column=h.column,m.start.row=h.row):(m.start.column+=k,m.start.row+=S):m.start.row>r&&(m.start.row+=S)}if(S!=0&&f=t)return f;if(f.end.row>t)return null}return null},this.getNextFoldLine=function(t,n){var r=this.$foldData,l=0;for(n&&(l=r.indexOf(n)),l==-1&&(l=0),l;l=t)return f}return null},this.getFoldedRowCount=function(t,n){for(var r=this.$foldData,l=n-t+1,f=0;f=n){S=t?l-=n-S:l=0);break}else m>=t&&(S>=t?l-=m-S:l-=m-t+1)}return l},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort(function(n,r){return n.start.row-r.start.row}),t},this.addFold=function(t,n){var r=this.$foldData,l=!1,f;t instanceof u?f=t:(f=new u(n,t),f.collapseChildren=n.collapseChildren),this.$clipRangeToDocument(f.range);var g=f.start.row,m=f.start.column,S=f.end.row,k=f.end.column,A=this.getFoldAt(g,m,1),E=this.getFoldAt(S,k,-1);if(A&&E==A)return A.addSubFold(f);A&&!A.range.isStart(g,m)&&this.removeFold(A),E&&!E.range.isEnd(S,k)&&this.removeFold(E);var w=this.getFoldsInRange(f.range);w.length>0&&(this.removeFolds(w),f.collapseChildren||w.forEach(function($){f.addSubFold($)}));for(var y=0;y0&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach(function(n){this.expandFold(n)},this)},this.unfold=function(t,n){var r,l;if(t==null)r=new c(0,0,this.getLength(),0),n==null&&(n=!0);else if(typeof t=="number")r=new c(t,0,t,this.getLine(t).length);else if("row"in t)r=c.fromPoints(t,t);else{if(Array.isArray(t))return l=[],t.forEach(function(g){l=l.concat(this.unfold(g))},this),l;r=t}l=this.getFoldsInRangeList(r);for(var f=l;l.length==1&&c.comparePoints(l[0].start,r.start)<0&&c.comparePoints(l[0].end,r.end)>0;)this.expandFolds(l),l=this.getFoldsInRangeList(r);if(n!=!1?this.removeFolds(l):this.expandFolds(l),f.length)return f},this.isRowFolded=function(t,n){return!!this.getFoldLine(t,n)},this.getRowFoldEnd=function(t,n){var r=this.getFoldLine(t,n);return r?r.end.row:t},this.getRowFoldStart=function(t,n){var r=this.getFoldLine(t,n);return r?r.start.row:t},this.getFoldDisplayLine=function(t,n,r,l,f){l==null&&(l=t.start.row),f==null&&(f=0),n==null&&(n=t.end.row),r==null&&(r=this.getLine(n).length);var g=this.doc,m="";return t.walk(function(S,k,A,E){if(!(kk)break;while(f&&m.test(f.type)&&!/^comment.start/.test(f.type));f=l.stepBackward()}else f=l.getCurrentToken();return S.end.row=l.getCurrentTokenRow(),S.end.column=l.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(S.end.column+=f.value.length-2),S}},this.foldAll=function(t,n,r,l){r==null&&(r=1e5);var f=this.foldWidgets;if(f){n=n||this.getLength(),t=t||0;for(var g=t;g=t&&(g=m.end.row,m.collapseChildren=r,this.addFold("...",m))}}},this.foldToLevel=function(t){for(this.foldAll();t-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var t=this;this.foldAll(null,null,null,function(n){for(var r=t.getTokens(n),l=0;l=0;){var g=r[l];if(g==null&&(g=r[l]=this.getFoldWidget(l)),g=="start"){var m=this.getFoldWidgetRange(l);if(f||(f=m),m&&m.end.row>=t)break}l--}return{range:l!==-1&&m,firstRange:f}},this.onFoldWidgetClick=function(t,n){n=n.domEvent;var r={children:n.shiftKey,all:n.ctrlKey||n.metaKey,siblings:n.altKey},l=this.$toggleFoldWidget(t,r);if(!l){var f=n.target||n.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,n){if(this.getFoldWidget){var r=this.getFoldWidget(t),l=this.getLine(t),f=r==="end"?-1:1,g=this.getFoldAt(t,f===-1?0:l.length,f);if(g)return n.children||n.all?this.removeFold(g):this.expandFold(g),g;var m=this.getFoldWidgetRange(t,!0);if(m&&!m.isMultiLine()&&(g=this.getFoldAt(m.start.row,m.start.column,1),g&&m.isEqual(g.range)))return this.removeFold(g),g;if(n.siblings){var S=this.getParentFoldRangeData(t);if(S.range)var k=S.range.start.row+1,A=S.range.end.row;this.foldAll(k,A,n.all?1e4:0)}else n.children?(A=m?m.end.row:this.getLength(),this.foldAll(t+1,A,n.all?1e4:0)):m&&(n.all&&(m.collapseChildren=1e4),this.addFold("...",m));return m}},this.toggleFoldWidget=function(t){var n=this.selection.getCursor().row;n=this.getRowFoldStart(n);var r=this.$toggleFoldWidget(n,{});if(!r){var l=this.getParentFoldRangeData(n,!0);if(r=l.range||l.firstRange,r){n=r.start.row;var f=this.getFoldAt(n,this.getLine(n).length,1);f?this.removeFold(f):this.addFold("...",r)}}},this.updateFoldWidgets=function(t){var n=t.start.row,r=t.end.row-n;if(r===0)this.foldWidgets[n]=null;else if(t.action=="remove")this.foldWidgets.splice(n,r+1,null);else{var l=Array(r+1);l.unshift(n,1),this.foldWidgets.splice.apply(this.foldWidgets,l)}},this.tokenizerUpdateFoldWidgets=function(t){var n=t.data;n.first!=n.last&&this.foldWidgets.length>n.first&&this.foldWidgets.splice(n.first,this.foldWidgets.length)}}a.Folding=h}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(i,a,v){var c=i("../token_iterator").TokenIterator,d=i("../range").Range;function u(){this.findMatchingBracket=function(o,h){if(o.column==0)return null;var t=h||this.getLine(o.row).charAt(o.column-1);if(t=="")return null;var n=t.match(/([\(\[\{])|([\)\]\}])/);return n?n[1]?this.$findClosingBracket(n[1],o):this.$findOpeningBracket(n[2],o):null},this.getBracketRange=function(o){var h=this.getLine(o.row),t=!0,n,r=h.charAt(o.column-1),l=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(l||(r=h.charAt(o.column),o={row:o.row,column:o.column+1},l=r&&r.match(/([\(\[\{])|([\)\]\}])/),t=!1),!l)return null;if(l[1]){var f=this.$findClosingBracket(l[1],o);if(!f)return null;n=d.fromPoints(o,f),t||(n.end.column++,n.start.column--),n.cursor=n.end}else{var f=this.$findOpeningBracket(l[2],o);if(!f)return null;n=d.fromPoints(f,o),t||(n.start.column++,n.end.column--),n.cursor=n.start}return n},this.getMatchingBracketRanges=function(o,h){var t=this.getLine(o.row),n=/([\(\[\{])|([\)\]\}])/,r=!h&&t.charAt(o.column-1),l=r&&r.match(n);if(l||(r=(h===void 0||h)&&t.charAt(o.column),o={row:o.row,column:o.column+1},l=r&&r.match(n)),!l)return null;var f=new d(o.row,o.column-1,o.row,o.column),g=l[1]?this.$findClosingBracket(l[1],o):this.$findOpeningBracket(l[2],o);if(!g)return[f];var m=new d(g.row,g.column,g.row,g.column+1);return[f,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(o,h,t){var n=this.$brackets[o],r=1,l=new c(this,h.row,h.column),f=l.getCurrentToken();if(f||(f=l.stepForward()),!!f){t||(t=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-l.getCurrentTokenColumn()-2,m=f.value;;){for(;g>=0;){var S=m.charAt(g);if(S==n){if(r-=1,r==0)return{row:l.getCurrentTokenRow(),column:g+l.getCurrentTokenColumn()}}else S==o&&(r+=1);g-=1}do f=l.stepBackward();while(f&&!t.test(f.type));if(f==null)break;m=f.value,g=m.length-1}return null}},this.$findClosingBracket=function(o,h,t){var n=this.$brackets[o],r=1,l=new c(this,h.row,h.column),f=l.getCurrentToken();if(f||(f=l.stepForward()),!!f){t||(t=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-l.getCurrentTokenColumn();;){for(var m=f.value,S=m.length;g"?n=!0:h.type.indexOf("tag-name")!==-1&&(t=!0));while(h&&!t);return h},this.$findClosingTag=function(o,h){var t,n=h.value,r=h.value,l=0,f=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);h=o.stepForward();var g=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+h.value.length),m=!1;do if(t=h,h=o.stepForward(),h){if(h.value===">"&&!m){var S=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(h.type.indexOf("tag-name")!==-1){if(n=h.value,r===n){if(t.value==="<")l++;else if(t.value==="")var E=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);else return}}}else if(r===n&&h.value==="/>"&&(l--,l<0))var k=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2),A=k,E=A,S=new d(g.end.row,g.end.column,g.end.row,g.end.column+1)}while(h&&l>=0);if(f&&S&&k&&E&&g&&A)return{openTag:new d(f.start.row,f.start.column,S.end.row,S.end.column),closeTag:new d(k.start.row,k.start.column,E.end.row,E.end.column),openTagName:g,closeTagName:A}},this.$findOpeningTag=function(o,h){var t=o.getCurrentToken(),n=h.value,r=0,l=o.getCurrentTokenRow(),f=o.getCurrentTokenColumn(),g=f+2,m=new d(l,f,l,g);o.stepForward();var S=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+h.value.length);if(h=o.stepForward(),!(!h||h.value!==">")){var k=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);o.stepBackward(),o.stepBackward();do if(h=t,l=o.getCurrentTokenRow(),f=o.getCurrentTokenColumn(),g=f+h.value.length,t=o.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(n===h.value)if(t.value==="<"){if(r++,r>0){var A=new d(l,f,l,g),E=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);do h=o.stepForward();while(h&&h.value!==">");var w=new d(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1)}}else t.value===""){for(var y=0,L=t;L;){if(L.type.indexOf("tag-name")!==-1&&L.value===n){r--;break}else if(L.value==="<")break;L=o.stepBackward(),y++}for(var x=0;xC&&(this.$docRowCache.splice(C,b),this.$screenRowCache.splice(C,b))},this.$getRowCacheIndex=function(p,b){for(var C=0,_=p.length-1;C<=_;){var M=C+_>>1,T=p[M];if(b>T)C=M+1;else if(b=b));T++);return _=C[T],_?(_.index=T,_.start=M-_.value.length,_):null},this.setUndoManager=function(p){if(this.$undoManager=p,this.$informUndoManager&&this.$informUndoManager.cancel(),p){var b=this;p.addSession(this),this.$syncInformUndoManager=function(){b.$informUndoManager.cancel(),b.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(p){this.setOption("useSoftTabs",p)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(p){this.setOption("tabSize",p)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(p){return this.$useSoftTabs&&p.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(p){this.setOption("navigateWithinSoftTabs",p)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(p){this.setOption("overwrite",p)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(p,b){this.$decorations[p]||(this.$decorations[p]=""),this.$decorations[p]+=" "+b,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(p,b){this.$decorations[p]=(this.$decorations[p]||"").replace(" "+b,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(p){this.$breakpoints=[];for(var b=0;b0&&(_=!!C.charAt(b-1).match(this.tokenRe)),_||(_=!!C.charAt(b).match(this.tokenRe)),_)var M=this.tokenRe;else if(/^\s+$/.test(C.slice(b-1,b+1)))var M=/\s/;else var M=this.nonTokenRe;var T=b;if(T>0){do T--;while(T>=0&&C.charAt(T).match(M));T++}for(var R=b;Rp&&(p=b.screenWidth)}),this.lineWidgetWidth=p},this.$computeWidth=function(p){if(this.$modified||p){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var b=this.doc.getAllLines(),C=this.$rowLengthCache,_=0,M=0,T=this.$foldData[M],R=T?T.start.row:1/0,D=b.length,N=0;NR){if(N=T.end.row+1,N>=D)break;T=this.$foldData[M++],R=T?T.start.row:1/0}C[N]==null&&(C[N]=this.$getStringScreenWidth(b[N])[0]),C[N]>_&&(_=C[N])}this.screenWidth=_}},this.getLine=function(p){return this.doc.getLine(p)},this.getLines=function(p,b){return this.doc.getLines(p,b)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(p){return this.doc.getTextRange(p||this.selection.getRange())},this.insert=function(p,b){return this.doc.insert(p,b)},this.remove=function(p){return this.doc.remove(p)},this.removeFullLines=function(p,b){return this.doc.removeFullLines(p,b)},this.undoChanges=function(p,b){if(p.length){this.$fromUndo=!0;for(var C=p.length-1;C!=-1;C--){var _=p[C];_.action=="insert"||_.action=="remove"?this.doc.revertDelta(_):_.folds&&this.addFolds(_.folds)}!b&&this.$undoSelect&&(p.selectionBefore?this.selection.fromJSON(p.selectionBefore):this.selection.setRange(this.$getUndoSelection(p,!0))),this.$fromUndo=!1}},this.redoChanges=function(p,b){if(p.length){this.$fromUndo=!0;for(var C=0;Cp.end.column&&(T.start.column+=D),T.end.row==p.end.row&&T.end.column>p.end.column&&(T.end.column+=D)),R&&T.start.row>=p.end.row&&(T.start.row+=R,T.end.row+=R)}if(T.end=this.insert(T.start,_),M.length){var N=p.start,B=T.start,R=B.row-N.row,D=B.column-N.column;this.addFolds(M.map(function(I){return I=I.clone(),I.start.row==N.row&&(I.start.column+=D),I.end.row==N.row&&(I.end.column+=D),I.start.row+=R,I.end.row+=R,I}))}return T},this.indentRows=function(p,b,C){C=C.replace(/\t/g,this.getTabString());for(var _=p;_<=b;_++)this.doc.insertInLine({row:_,column:0},C)},this.outdentRows=function(p){for(var b=p.collapseRows(),C=new r(0,0,0,0),_=this.getTabSize(),M=b.start.row;M<=b.end.row;++M){var T=this.getLine(M);C.start.row=M,C.end.row=M;for(var R=0;R<_&&T.charAt(R)==" ";++R);R<_&&T.charAt(R)==" "?(C.start.column=R,C.end.column=R+1):(C.start.column=0,C.end.column=R),this.remove(C)}},this.$moveLines=function(p,b,C){if(p=this.getRowFoldStart(p),b=this.getRowFoldEnd(b),C<0){var _=this.getRowFoldStart(p+C);if(_<0)return 0;var M=_-p}else if(C>0){var _=this.getRowFoldEnd(b+C);if(_>this.doc.getLength()-1)return 0;var M=_-b}else{p=this.$clipRowToDocument(p),b=this.$clipRowToDocument(b);var M=b-p+1}var T=new r(p,0,b,Number.MAX_VALUE),R=this.getFoldsInRange(T).map(function(N){return N=N.clone(),N.start.row+=M,N.end.row+=M,N}),D=C==0?this.doc.getLines(p,b):this.doc.removeFullLines(p,b);return this.doc.insertFullLines(p+M,D),R.length&&this.addFolds(R),M},this.moveLinesUp=function(p,b){return this.$moveLines(p,b,-1)},this.moveLinesDown=function(p,b){return this.$moveLines(p,b,1)},this.duplicateLines=function(p,b){return this.$moveLines(p,b,0)},this.$clipRowToDocument=function(p){return Math.max(0,Math.min(p,this.doc.getLength()-1))},this.$clipColumnToRow=function(p,b){return b<0?0:Math.min(this.doc.getLine(p).length,b)},this.$clipPositionToDocument=function(p,b){if(b=Math.max(0,b),p<0)p=0,b=0;else{var C=this.doc.getLength();p>=C?(p=C-1,b=this.doc.getLine(C-1).length):b=Math.min(this.doc.getLine(p).length,b)}return{row:p,column:b}},this.$clipRangeToDocument=function(p){p.start.row<0?(p.start.row=0,p.start.column=0):p.start.column=this.$clipColumnToRow(p.start.row,p.start.column);var b=this.doc.getLength()-1;return p.end.row>b?(p.end.row=b,p.end.column=this.doc.getLine(b).length):p.end.column=this.$clipColumnToRow(p.end.row,p.end.column),p},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(p){if(p!=this.$useWrapMode){if(this.$useWrapMode=p,this.$modified=!0,this.$resetRowCache(0),p){var b=this.getLength();this.$wrapData=Array(b),this.$updateWrapData(0,b-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(p,b){(this.$wrapLimitRange.min!==p||this.$wrapLimitRange.max!==b)&&(this.$wrapLimitRange={min:p,max:b},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(p,b){var C=this.$wrapLimitRange;C.max<0&&(C={min:b,max:b});var _=this.$constrainWrapLimit(p,C.min,C.max);return _!=this.$wrapLimit&&_>1?(this.$wrapLimit=_,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(p,b,C){return b&&(p=Math.max(b,p)),C&&(p=Math.min(C,p)),p},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(p){this.setWrapLimitRange(p,p)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(p){var b=this.$useWrapMode,C=p.action,_=p.start,M=p.end,T=_.row,R=M.row,D=R-T,N=null;if(this.$updating=!0,D!=0)if(C==="remove"){this[b?"$wrapData":"$rowLengthCache"].splice(T,D);var B=this.$foldData;N=this.getFoldsInRange(p),this.removeFolds(N);var W=this.getFoldLine(M.row),F=0;if(W){W.addRemoveChars(M.row,M.column,_.column-M.column),W.shiftRow(-D);var I=this.getFoldLine(T);I&&I!==W&&(I.merge(W),W=I),F=B.indexOf(W)+1}for(F;F=M.row&&W.shiftRow(-D)}R=T}else{var H=Array(D);H.unshift(T,0);var z=b?this.$wrapData:this.$rowLengthCache;z.splice.apply(z,H);var B=this.$foldData,W=this.getFoldLine(T),F=0;if(W){var V=W.range.compareInside(_.row,_.column);V==0?(W=W.split(_.row,_.column),W&&(W.shiftRow(D),W.addRemoveChars(R,0,M.column-_.column))):V==-1&&(W.addRemoveChars(T,0,M.column-_.column),W.shiftRow(D)),F=B.indexOf(W)+1}for(F;F=T&&W.shiftRow(D)}}else{D=Math.abs(p.start.column-p.end.column),C==="remove"&&(N=this.getFoldsInRange(p),this.removeFolds(N),D=-D);var W=this.getFoldLine(T);W&&W.addRemoveChars(T,_.column,D)}return b&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,b?this.$updateWrapData(T,R):this.$updateRowLengthCache(T,R),N},this.$updateRowLengthCache=function(p,b,C){this.$rowLengthCache[p]=null,this.$rowLengthCache[b]=null},this.$updateWrapData=function(p,b){var C=this.doc.getAllLines(),_=this.getTabSize(),M=this.$wrapData,T=this.$wrapLimit,R,D,N=p;for(b=Math.min(b,C.length-1);N<=b;)D=this.getFoldLine(N,D),D?(R=[],D.walk(function(B,W,F,I){var H;if(B!=null){H=this.$getDisplayTokens(B,R.length),H[0]=A;for(var z=1;zb-I;){var H=T+b-I;if(p[H-1]>=y&&p[H]>=y){F(H);continue}if(p[H]==A||p[H]==E){for(H;H!=T-1&&p[H]!=A;H--);if(H>T){F(H);continue}for(H=T+b,H;H>2)),T-1);H>z&&p[H]z&&p[H]z&&p[H]==w;)H--}else for(;H>z&&p[H]z){F(++H);continue}H=T+b,p[H]==k&&H--,F(H-I)}return _},this.$getDisplayTokens=function(p,b){var C=[],_;b=b||0;for(var M=0;M39&&T<48||T>57&&T<64?C.push(w):T>=4352&&$(T)?C.push(S,k):C.push(S)}return C},this.$getStringScreenWidth=function(p,b,C){if(b==0)return[0,0];b==null&&(b=1/0),C=C||0;var _,M;for(M=0;M=4352&&$(_)?C+=2:C+=1,!(C>b));M++);return[C,M]},this.lineWidgets=null,this.getRowLength=function(p){var b=1;return this.lineWidgets&&(b+=this.lineWidgets[p]&&this.lineWidgets[p].rowCount||0),!this.$useWrapMode||!this.$wrapData[p]?b:this.$wrapData[p].length+b},this.getRowLineCount=function(p){return!this.$useWrapMode||!this.$wrapData[p]?1:this.$wrapData[p].length+1},this.getRowWrapIndent=function(p){if(this.$useWrapMode){var b=this.screenToDocumentPosition(p,Number.MAX_VALUE),C=this.$wrapData[b.row];return C.length&&C[0]=0)var D=B[W],M=this.$docRowCache[W],I=p>B[F-1];else var I=!F;for(var H=this.getLength()-1,z=this.getNextFoldLine(M),V=z?z.start.row:1/0;D<=p&&(N=this.getRowLength(M),!(D+N>p||M>=H));)D+=N,M++,M>V&&(M=z.end.row+1,z=this.getNextFoldLine(M,z),V=z?z.start.row:1/0),I&&(this.$docRowCache.push(M),this.$screenRowCache.push(D));if(z&&z.start.row<=M)_=this.getFoldDisplayLine(z),M=z.start.row;else{if(D+N<=p||M>H)return{row:H,column:this.getLine(H).length};_=this.getLine(M),z=null}var K=0,Z=Math.floor(p-D);if(this.$useWrapMode){var G=this.$wrapData[M];G&&(R=G[Z],Z>0&&G.length&&(K=G.indent,T=G[Z-1]||G[G.length-1],_=_.substring(T)))}return C!==void 0&&this.$bidiHandler.isBidiRow(D+Z,M,Z)&&(b=this.$bidiHandler.offsetToCol(C)),T+=this.$getStringScreenWidth(_,b-K)[1],this.$useWrapMode&&T>=R&&(T=R-1),z?z.idxToPosition(T):{row:M,column:T}},this.documentToScreenPosition=function(p,b){if(typeof b>"u")var C=this.$clipPositionToDocument(p.row,p.column);else C=this.$clipPositionToDocument(p,b);p=C.row,b=C.column;var _=0,M=null,T=null;T=this.getFoldAt(p,b,1),T&&(p=T.start.row,b=T.start.column);var R,D=0,N=this.$docRowCache,B=this.$getRowCacheIndex(N,p),W=N.length;if(W&&B>=0)var D=N[B],_=this.$screenRowCache[B],F=p>N[W-1];else var F=!W;for(var I=this.getNextFoldLine(D),H=I?I.start.row:1/0;D=H){if(R=I.end.row+1,R>p)break;I=this.getNextFoldLine(R,I),H=I?I.start.row:1/0}else R=D+1;_+=this.getRowLength(D),D=R,F&&(this.$docRowCache.push(D),this.$screenRowCache.push(_))}var z="";I&&D>=H?(z=this.getFoldDisplayLine(I,p,b),M=I.start.row):(z=this.getLine(p).substring(0,b),M=p);var V=0;if(this.$useWrapMode){var K=this.$wrapData[M];if(K){for(var Z=0;z.length>=K[Z];)_++,Z++;z=z.substring(K[Z-1]||0,z.length),V=Z>0?K.indent:0}}return this.lineWidgets&&this.lineWidgets[D]&&this.lineWidgets[D].rowsAbove&&(_+=this.lineWidgets[D].rowsAbove),{row:_,column:V+this.$getStringScreenWidth(z)[0]}},this.documentToScreenColumn=function(p,b){return this.documentToScreenPosition(p,b).column},this.documentToScreenRow=function(p,b){return this.documentToScreenPosition(p,b).row},this.getScreenLength=function(){var p=0,b=null;if(this.$useWrapMode)for(var M=this.$wrapData.length,T=0,_=0,b=this.$foldData[_++],R=b?b.start.row:1/0;TR&&(T=b.end.row+1,b=this.$foldData[_++],R=b?b.start.row:1/0)}else{p=this.getLength();for(var C=this.$foldData,_=0;_C));T++);return[_,T]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=$;function $(p){return p<4352?!1:p>=4352&&p<=4447||p>=4515&&p<=4519||p>=4602&&p<=4607||p>=9001&&p<=9002||p>=11904&&p<=11929||p>=11931&&p<=12019||p>=12032&&p<=12245||p>=12272&&p<=12283||p>=12288&&p<=12350||p>=12353&&p<=12438||p>=12441&&p<=12543||p>=12549&&p<=12589||p>=12593&&p<=12686||p>=12688&&p<=12730||p>=12736&&p<=12771||p>=12784&&p<=12830||p>=12832&&p<=12871||p>=12880&&p<=13054||p>=13056&&p<=19903||p>=19968&&p<=42124||p>=42128&&p<=42182||p>=43360&&p<=43388||p>=44032&&p<=55203||p>=55216&&p<=55238||p>=55243&&p<=55291||p>=63744&&p<=64255||p>=65040&&p<=65049||p>=65072&&p<=65106||p>=65108&&p<=65126||p>=65128&&p<=65131||p>=65281&&p<=65376||p>=65504&&p<=65510}}.call(m.prototype),i("./edit_session/folding").Folding.call(m.prototype),i("./edit_session/bracket_match").BracketMatch.call(m.prototype),o.defineOptions(m.prototype,"session",{wrap:{set:function(S){if(!S||S=="off"?S=!1:S=="free"?S=!0:S=="printMargin"?S=-1:typeof S=="string"&&(S=parseInt(S,10)||!1),this.$wrap!=S)if(this.$wrap=S,!S)this.setUseWrapMode(!1);else{var k=typeof S=="number"?S:null;this.setWrapLimitRange(k,k),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(S){S=S=="auto"?this.$mode.type!="text":S!="text",S!=this.$wrapAsCode&&(this.$wrapAsCode=S,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(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){S=parseInt(S),S>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),a.EditSession=m}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(i,a,v){var c=i("./lib/lang"),d=i("./lib/oop"),u=i("./range").Range,o=function(){this.$options={}};(function(){this.set=function(t){return d.mixin(this.$options,t),this},this.getOptions=function(){return c.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var n=this.$options,r=this.$matchIterator(t,n);if(!r)return!1;var l=null;return r.forEach(function(f,g,m,S){return l=new u(f,g,m,S),g==S&&n.start&&n.start.start&&n.skipCurrent!=!1&&l.isEqual(n.start)?(l=null,!1):!0}),l},this.findAll=function(t){var n=this.$options;if(!n.needle)return[];this.$assembleRegExp(n);var r=n.range,l=r?t.getLines(r.start.row,r.end.row):t.doc.getAllLines(),f=[],g=n.re;if(n.$isMultiLine){var m=g.length,S=l.length-m,k;e:for(var A=g.offset||0;A<=S;A++){for(var E=0;EL||(f.push(k=new u(A,L,A+m-1,x)),m>2&&(A=A+m-2))}}else for(var $=0;$_&&f[E].end.row==M;)E--;for(f=f.slice($,E+1),$=0,E=f.length;$=S;L--)if(w(L,Number.MAX_VALUE,y))return;if(n.wrap!=!1){for(L=k,S=m.row;L>=S;L--)if(w(L,Number.MAX_VALUE,y))return}}};else var A=function(L){var x=m.row;if(!w(x,m.column,L)){for(x=x+1;x<=k;x++)if(w(x,0,L))return;if(n.wrap!=!1){for(x=S,k=m.row;x<=k;x++)if(w(x,0,L))return}}};if(n.$isMultiLine)var E=r.length,w=function(y,L,x){var $=l?y-E+1:y;if(!($<0||$+E>t.getLength())){var p=t.getLine($),b=p.search(r[0]);if(!(!l&&bL)&&x($,b,$+E-1,_))return!0}}};else if(l)var w=function(L,x,$){var p=t.getLine(L),b=[],C,_=0;for(r.lastIndex=0;C=r.exec(p);){var M=C[0].length;if(_=C.index,!M){if(_>=p.length)break;r.lastIndex=_+=1}if(C.index+M>x)break;b.push(C.index,M)}for(var T=b.length-1;T>=0;T-=2){var R=b[T-1],M=b[T];if($(L,R,L,R+M))return!0}};else var w=function(L,x,$){var p=t.getLine(L),b,C;for(r.lastIndex=x;C=r.exec(p);){var _=C[0].length;if(b=C.index,$(L,b,L,b+_))return!0;if(!_&&(r.lastIndex=b+=1,b>=p.length))return!1}};return{forEach:A}}}).call(o.prototype);function h(t,n){function r(l){return/\w/.test(l)||n.regExp?"\\b":""}return r(t[0])+t+r(t[t.length-1])}a.Search=o}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(i,a,v){var c=i("../lib/keys"),d=i("../lib/useragent"),u=c.KEY_MODS;function o(t,n){this.platform=n||(d.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function h(t,n){o.call(this,t,n),this.$singleCommand=!1}h.prototype=o.prototype,function(){this.addCommand=function(n){this.commands[n.name]&&this.removeCommand(n),this.commands[n.name]=n,n.bindKey&&this._buildKeyHash(n)},this.removeCommand=function(n,r){var l=n&&(typeof n=="string"?n:n.name);n=this.commands[l],r||delete this.commands[l];var f=this.commandKeyBinding;for(var g in f){var m=f[g];if(m==n)delete f[g];else if(Array.isArray(m)){var S=m.indexOf(n);S!=-1&&(m.splice(S,1),m.length==1&&(f[g]=m[0]))}}},this.bindKey=function(n,r,l){if(typeof n=="object"&&n&&(l==null&&(l=n.position),n=n[this.platform]),!!n){if(typeof r=="function")return this.addCommand({exec:r,bindKey:n,name:r.name||n});n.split("|").forEach(function(f){var g="";if(f.indexOf(" ")!=-1){var m=f.split(/\s+/);f=m.pop(),m.forEach(function(A){var E=this.parseKeys(A),w=u[E.hashId]+E.key;g+=(g?" ":"")+w,this._addCommandToBinding(g,"chainKeys")},this),g+=" "}var S=this.parseKeys(f),k=u[S.hashId]+S.key;this._addCommandToBinding(g+k,r,l)},this)}};function t(n){return typeof n=="object"&&n.bindKey&&n.bindKey.position||(n.isDefault?-100:0)}this._addCommandToBinding=function(n,r,l){var f=this.commandKeyBinding,g;if(!r)delete f[n];else if(!f[n]||this.$singleCommand)f[n]=r;else{Array.isArray(f[n])?(g=f[n].indexOf(r))!=-1&&f[n].splice(g,1):f[n]=[f[n]],typeof l!="number"&&(l=t(r));var m=f[n];for(g=0;gl)break}m.splice(g,0,r)}},this.addCommands=function(n){n&&Object.keys(n).forEach(function(r){var l=n[r];if(l){if(typeof l=="string")return this.bindKey(l,r);typeof l=="function"&&(l={exec:l}),typeof l=="object"&&(l.name||(l.name=r),this.addCommand(l))}},this)},this.removeCommands=function(n){Object.keys(n).forEach(function(r){this.removeCommand(n[r])},this)},this.bindKeys=function(n){Object.keys(n).forEach(function(r){this.bindKey(r,n[r])},this)},this._buildKeyHash=function(n){this.bindKey(n.bindKey,n)},this.parseKeys=function(n){var r=n.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(k){return k}),l=r.pop(),f=c[l];if(c.FUNCTION_KEYS[f])l=c.FUNCTION_KEYS[f].toLowerCase();else if(r.length){if(r.length==1&&r[0]=="shift")return{key:l.toUpperCase(),hashId:-1}}else return{key:l,hashId:-1};for(var g=0,m=r.length;m--;){var S=c.KEY_MODS[r[m]];if(S==null)return typeof console<"u"&&console.error("invalid modifier "+r[m]+" in "+n),!1;g|=S}return{key:l,hashId:g}},this.findKeyCommand=function(r,l){var f=u[r]+l;return this.commandKeyBinding[f]},this.handleKeyboard=function(n,r,l,f){if(!(f<0)){var g=u[r]+l,m=this.commandKeyBinding[g];return n.$keyChain&&(n.$keyChain+=" "+g,m=this.commandKeyBinding[n.$keyChain]||m),m&&(m=="chainKeys"||m[m.length-1]=="chainKeys")?(n.$keyChain=n.$keyChain||g,{command:"null"}):(n.$keyChain&&((!r||r==4)&&l.length==1?n.$keyChain=n.$keyChain.slice(0,-g.length-1):(r==-1||f>0)&&(n.$keyChain="")),{command:m})}},this.getStatusText=function(n,r){return r.$keyChain||""}}.call(o.prototype),a.HashHandler=o,a.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(i,a,v){var c=i("../lib/oop"),d=i("../keyboard/hash_handler").MultiHashHandler,u=i("../lib/event_emitter").EventEmitter,o=function(h,t){d.call(this,t,h),this.byName=this.commands,this.setDefaultHandler("exec",function(n){return n.args?n.command.exec(n.editor,n.args,n.event,!1):n.command.exec(n.editor,{},n.event,!0)})};c.inherits(o,d),function(){c.implement(this,u),this.exec=function(h,t,n){if(Array.isArray(h)){for(var r=h.length;r--;)if(this.exec(h[r],t,n))return!0;return!1}if(typeof h=="string"&&(h=this.commands[h]),!h||t&&t.$readOnly&&!h.readOnly||this.$checkCommandState!=!1&&h.isAvailable&&!h.isAvailable(t))return!1;var l={editor:t,command:h,args:n};return l.returnValue=this._emit("exec",l),this._signal("afterExec",l),l.returnValue!==!1},this.toggleRecording=function(h){if(!this.$inReplay)return h&&h._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(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(h){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(h);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t=="string"?this.exec(t,h):this.exec(t[0],h,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(h){return h.map(function(t){return typeof t[0]!="string"&&(t[0]=t[0].name),t[1]||(t=t[0]),t})}}.call(o.prototype),a.CommandManager=o}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(i,a,v){var c=i("../lib/lang"),d=i("../config"),u=i("../range").Range;function o(t,n){return{win:t,mac:n}}a.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:o("Ctrl-,","Command-,"),exec:function(t){d.loadModule("ace/ext/settings_menu",function(n){n.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:o("Alt-E","F4"),exec:function(t){d.loadModule("ace/ext/error_marker",function(n){n.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(t){d.loadModule("ace/ext/error_marker",function(n){n.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:o("Ctrl-A","Command-A"),exec:function(t){t.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:o(null,"Ctrl-L"),exec:function(t){t.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:o("Ctrl-L","Command-L"),exec:function(t,n){typeof n=="number"&&!isNaN(n)&&t.gotoLine(n),t.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(t){t.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(t){t.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:o("F2","F2"),exec:function(t){t.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:o("Alt-F2","Alt-F2"),exec:function(t){t.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:o("Alt-0","Command-Option-0"),exec:function(t){t.session.foldAll(),t.session.unfold(t.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(t){t.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:o("Ctrl-K","Command-G"),exec:function(t){t.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(t){t.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:o("Alt-K","Ctrl-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:o("Ctrl-F","Command-F"),exec:function(t){d.loadModule("ace/ext/searchbox",function(n){n.Search(t)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(t){t.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(t){t.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(t){t.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(t){t.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:o("Up","Up|Ctrl-P"),exec:function(t,n){t.navigateUp(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(t){t.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(t){t.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(t){t.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:o("Down","Down|Ctrl-N"),exec:function(t,n){t.navigateDown(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(t){t.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:o("Ctrl-Left","Option-Left"),exec:function(t){t.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(t){t.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(t){t.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:o("Left","Left|Ctrl-B"),exec:function(t,n){t.navigateLeft(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(t){t.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:o("Ctrl-Right","Option-Right"),exec:function(t){t.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(t){t.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:o("Shift-Right","Shift-Right"),exec:function(t){t.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:o("Right","Right|Ctrl-F"),exec:function(t,n){t.navigateRight(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(t){t.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:o(null,"Option-PageDown"),exec:function(t){t.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(t){t.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(t){t.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:o(null,"Option-PageUp"),exec:function(t){t.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(t){t.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:o("Ctrl-Up",null),exec:function(t){t.renderer.scrollBy(0,-2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:o("Ctrl-Down",null),exec:function(t){t.renderer.scrollBy(0,2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(t){t.commands.toggleRecording(t)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(t){t.commands.replay(t)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:o("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(t){t.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:o("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(t){t.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(t){t.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(t){},readOnly:!0},{name:"cut",description:"Cut",exec:function(t){var n=t.$copyWithEmptySelection&&t.selection.isEmpty(),r=n?t.selection.getLineRange():t.selection.getRange();t._emit("cut",r),r.isEmpty()||t.session.remove(r),t.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(t,n){t.$handlePaste(n)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:o("Ctrl-D","Command-D"),exec:function(t){t.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(t){t.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(t){t.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:o("Ctrl-/","Command-/"),exec:function(t){t.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(t){t.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(t){t.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(t){t.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(t){d.loadModule("ace/ext/searchbox",function(n){n.Search(t,!0)})}},{name:"undo",description:"Undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(t){t.undo()}},{name:"redo",description:"Redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(t){t.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(t){t.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:o("Alt-Up","Option-Up"),exec:function(t){t.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(t){t.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:o("Alt-Down","Option-Down"),exec:function(t){t.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(t){t.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(t){t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:o("Shift-Delete",null),exec:function(t){if(t.selection.isEmpty())t.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(t){t.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(t){t.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(t){var n=t.selection.getRange();n.start.column=0,t.session.remove(n)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(t){var n=t.selection.getRange();n.end.column=Number.MAX_VALUE,t.session.remove(n)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(t){t.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(t){t.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(t){t.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:o("Tab","Tab"),exec:function(t){t.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(t){t.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(t){t.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(t,n){t.insert(n)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(t,n){t.insert(c.stringRepeat(n.text||"",n.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:o(null,"Ctrl-O"),exec:function(t){t.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(t){t.transposeLetters()},multiSelectAction:function(t){t.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(t){t.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(t){t.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:o(null,null),exec:function(t){t.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(t){var n=t.selection.getRange();n.start.column=n.end.column=0,n.end.row++,t.selection.setRange(n,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:o("Ctrl+F3","F3"),exec:function(t){t.openLink()}},{name:"joinlines",description:"Join lines",bindKey:o(null,null),exec:function(t){for(var n=t.selection.isBackwards(),r=n?t.selection.getSelectionLead():t.selection.getSelectionAnchor(),l=n?t.selection.getSelectionAnchor():t.selection.getSelectionLead(),f=t.session.doc.getLine(r.row).length,g=t.session.doc.getTextRange(t.selection.getRange()),m=g.replace(/\n\s*/," ").length,S=t.session.doc.getLine(r.row),k=r.row+1;k<=l.row+1;k++){var A=c.stringTrimLeft(c.stringTrimRight(t.session.doc.getLine(k)));A.length!==0&&(A=" "+A),S+=A}l.row+10?(t.selection.moveCursorTo(r.row,r.column),t.selection.selectTo(r.row,r.column+m)):(f=t.session.doc.getLine(r.row).length>f?f+1:f,t.selection.moveCursorTo(r.row,f))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:o(null,null),exec:function(t){var n=t.session.doc.getLength()-1,r=t.session.doc.getLine(n).length,l=t.selection.rangeList.ranges,f=[];l.length<1&&(l=[t.selection.getRange()]);for(var g=0;go[h].column&&h++,r.unshift(h,0),o.splice.apply(o,r),this.$updateRows()}}},this.$updateRows=function(){var u=this.session.lineWidgets;if(u){var o=!0;u.forEach(function(h,t){if(h)for(o=!1,h.row=t;h.$oldWidget;)h.$oldWidget.row=t,h=h.$oldWidget}),o&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(u){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var o=this.session.lineWidgets[u.row];return o&&(u.$oldWidget=o,o.el&&o.el.parentNode&&(o.el.parentNode.removeChild(o.el),o._inDocument=!1)),this.session.lineWidgets[u.row]=u,u},this.addLineWidget=function(u){if(this.$registerLineWidget(u),u.session=this.session,!this.editor)return u;var o=this.editor.renderer;u.html&&!u.el&&(u.el=c.createElement("div"),u.el.innerHTML=u.html),u.text&&!u.el&&(u.el=c.createElement("div"),u.el.textContent=u.text),u.el&&(c.addCssClass(u.el,"ace_lineWidgetContainer"),u.className&&c.addCssClass(u.el,u.className),u.el.style.position="absolute",u.el.style.zIndex=5,o.container.appendChild(u.el),u._inDocument=!0,u.coverGutter||(u.el.style.zIndex=3),u.pixelHeight==null&&(u.pixelHeight=u.el.offsetHeight)),u.rowCount==null&&(u.rowCount=u.pixelHeight/o.layerConfig.lineHeight);var h=this.session.getFoldAt(u.row,0);if(u.$fold=h,h){var t=this.session.lineWidgets;u.row==h.end.row&&!t[h.start.row]?t[h.start.row]=u:u.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows(),this.renderWidgets(null,o),this.onWidgetChanged(u),u},this.removeLineWidget=function(u){if(u._inDocument=!1,u.session=null,u.el&&u.el.parentNode&&u.el.parentNode.removeChild(u.el),u.editor&&u.editor.destroy)try{u.editor.destroy()}catch{}if(this.session.lineWidgets){var o=this.session.lineWidgets[u.row];if(o==u)this.session.lineWidgets[u.row]=u.$oldWidget,u.$oldWidget&&this.onWidgetChanged(u.$oldWidget);else for(;o;){if(o.$oldWidget==u){o.$oldWidget=u.$oldWidget;break}o=o.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(u){for(var o=this.session.lineWidgets,h=o&&o[u],t=[];h;)t.push(h),h=h.$oldWidget;return t},this.onWidgetChanged=function(u){this.session._changedWidgets.push(u),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(u,o){var h=this.session._changedWidgets,t=o.layerConfig;if(!(!h||!h.length)){for(var n=1/0,r=0;r0&&!t[n];)n--;this.firstRow=h.firstRow,this.lastRow=h.lastRow,o.$cursorLayer.config=h;for(var l=n;l<=r;l++){var f=t[l];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,o.container.appendChild(f.el));var g=o.$cursorLayer.getPixelPosition({row:l,column:0},!0).top;f.coverLine||(g+=h.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=g-h.offset+"px";var m=f.coverGutter?0:o.gutterWidth;f.fixedWidth||(m-=o.scrollLeft),f.el.style.left=m+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=h.width+2*h.padding+"px"),f.fixedWidth?f.el.style.right=o.scrollBar.getWidth()+"px":f.el.style.right=""}}}}}).call(d.prototype),a.LineWidgets=d}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/clipboard"],function(i,a,v){var c=this&&this.__values||function(p){var b=typeof Symbol=="function"&&Symbol.iterator,C=b&&p[b],_=0;if(C)return C.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&_>=p.length&&(p=void 0),{value:p&&p[_++],done:!p}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},d=i("./lib/oop"),u=i("./lib/dom"),o=i("./lib/lang"),h=i("./lib/useragent"),t=i("./keyboard/textinput").TextInput,n=i("./mouse/mouse_handler").MouseHandler,r=i("./mouse/fold_handler").FoldHandler,l=i("./keyboard/keybinding").KeyBinding,f=i("./edit_session").EditSession,g=i("./search").Search,m=i("./range").Range,S=i("./lib/event_emitter").EventEmitter,k=i("./commands/command_manager").CommandManager,A=i("./commands/default_commands").commands,E=i("./config"),w=i("./token_iterator").TokenIterator,y=i("./line_widgets").LineWidgets,L=i("./clipboard"),x=function(p,b,C){this.$toDestroy=[];var _=p.getContainerElement();this.container=_,this.renderer=p,this.id="editor"+ ++x.$uid,this.commands=new k(h.isMac?"mac":"win",A),typeof document=="object"&&(this.textInput=new t(p.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new n(this),new r(this)),this.keyBinding=new l(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(M,T){T._$emitInputEvent.schedule(31)}),this.setSession(b||C&&C.session||new f("")),E.resetOptions(this),C&&this.setOptions(C),E._signal("editor",this)};x.$uid=0,function(){d.implement(this,S),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(p){if(this.curOp){if(!p||this.curOp.command)return;this.prevOp=this.curOp}p||(this.previousCommand=null,p={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:p.command||{},args:p.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(p){if(this.curOp&&this.session){if(p&&p.returnValue===!1||!this.session)return this.curOp=null;if(p==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var b=this.curOp.command,C=b&&b.scrollIntoView;if(C){switch(C){case"center-animate":C="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var _=this.selection.getRange(),M=this.renderer.layerConfig;(_.start.row>=M.lastRow||_.end.row<=M.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}C=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var T=this.selection.toJSON();this.curOp.selectionAfter=T,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(T),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(p){if(this.$mergeUndoDeltas){var b=this.prevOp,C=this.$mergeableCommands,_=b.command&&p.command.name==b.command.name;if(p.command.name=="insertstring"){var M=p.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),_=_&&this.mergeNextCommand&&(!/\s/.test(M)||/\s/.test(b.args)),this.mergeNextCommand=!0}else _=_&&C.indexOf(p.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(_=!1),_?this.session.mergeUndoDeltas=!0:C.indexOf(p.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(p,b){if(p&&typeof p=="string"&&p!="ace"){this.$keybindingId=p;var C=this;E.loadModule(["keybinding",p],function(_){C.$keybindingId==p&&C.keyBinding.setKeyboardHandler(_&&_.handler),b&&b()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(p),b&&b()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(p){if(this.session!=p){this.curOp&&this.endOperation(),this.curOp={};var b=this.session;if(b){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var C=this.session.getSelection();C.off("changeCursor",this.$onCursorChange),C.off("changeSelection",this.$onSelectionChange)}this.session=p,p?(this.$onDocumentChange=this.onDocumentChange.bind(this),p.on("change",this.$onDocumentChange),this.renderer.setSession(p),this.$onChangeMode=this.onChangeMode.bind(this),p.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),p.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),p.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),p.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),p.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),p.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=p.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(p)),this._signal("changeSession",{session:p,oldSession:b}),this.curOp=null,b&&b._signal("changeEditor",{oldEditor:this}),p&&p._signal("changeEditor",{editor:this}),p&&!p.destroyed&&p.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(p,b){return this.session.doc.setValue(p),b?b==1?this.navigateFileEnd():b==-1&&this.navigateFileStart():this.selectAll(),p},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(p){this.renderer.onResize(p)},this.setTheme=function(p,b){this.renderer.setTheme(p,b)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(p){this.renderer.setStyle(p)},this.unsetStyle=function(p){this.renderer.unsetStyle(p)},this.getFontSize=function(){return this.getOption("fontSize")||u.computedStyle(this.container).fontSize},this.setFontSize=function(p){this.setOption("fontSize",p)},this.$highlightBrackets=function(){if(!this.$highlightPending){var p=this;this.$highlightPending=!0,setTimeout(function(){p.$highlightPending=!1;var b=p.session;if(!(!b||b.destroyed)){b.$bracketHighlight&&(b.$bracketHighlight.markerIds.forEach(function(W){b.removeMarker(W)}),b.$bracketHighlight=null);var C=p.getCursorPosition(),_=p.getKeyboardHandler(),M=_&&_.$getDirectionForHighlight&&_.$getDirectionForHighlight(p),T=b.getMatchingBracketRanges(C,M);if(!T){var R=new w(b,C.row,C.column),D=R.getCurrentToken();if(D&&/\b(?:tag-open|tag-name)/.test(D.type)){var N=b.getMatchingTags(C);N&&(T=[N.openTagName,N.closeTagName])}}if(!T&&b.$mode.getMatching&&(T=b.$mode.getMatching(p.session)),!T){p.getHighlightIndentGuides()&&p.renderer.$textLayer.$highlightIndentGuide();return}var B="ace_bracket";Array.isArray(T)?T.length==1&&(B="ace_error_bracket"):T=[T],T.length==2&&(m.comparePoints(T[0].end,T[1].start)==0?T=[m.fromPoints(T[0].start,T[1].end)]:m.comparePoints(T[0].start,T[1].end)==0&&(T=[m.fromPoints(T[1].start,T[0].end)])),b.$bracketHighlight={ranges:T,markerIds:T.map(function(W){return b.addMarker(W,B,"text")})},p.getHighlightIndentGuides()&&p.renderer.$textLayer.$highlightIndentGuide()}},50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(p){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",p))},this.onBlur=function(p){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",p))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(p){var b=this.session.$useWrapMode,C=p.start.row==p.end.row?p.end.row:1/0;this.renderer.updateLines(p.start.row,C,b),this._signal("change",p),this.$cursorChange()},this.onTokenizerUpdate=function(p){var b=p.data;this.renderer.updateLines(b.first,b.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var p=this.getSession(),b;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(b=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(b=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(b=!1)),p.$highlightLineMarker&&!b)p.removeMarker(p.$highlightLineMarker.id),p.$highlightLineMarker=null;else if(!p.$highlightLineMarker&&b){var C=new m(b.row,b.column,b.row,1/0);C.id=p.addMarker(C,"ace_active-line","screenLine"),p.$highlightLineMarker=C}else b&&(p.$highlightLineMarker.start.row=b.row,p.$highlightLineMarker.end.row=b.row,p.$highlightLineMarker.start.column=b.column,p._signal("changeBackMarker"))},this.onSelectionChange=function(p){var b=this.session;if(b.$selectionMarker&&b.removeMarker(b.$selectionMarker),b.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var C=this.selection.getRange(),_=this.getSelectionStyle();b.$selectionMarker=b.addMarker(C,"ace_selection",_)}var M=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(M),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var p=this.session,b=this.getSelectionRange();if(!(b.isEmpty()||b.isMultiLine())){var C=b.start.column,_=b.end.column,M=p.getLine(b.start.row),T=M.substring(C,_);if(!(T.length>5e3||!/[\w\d]/.test(T))){var R=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:T}),D=M.substring(C-1,_+1);if(R.test(D))return R}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(p){this.renderer.updateText(),this._emit("changeMode",p)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var p=this.getSelectedText(),b=this.session.doc.getNewLineCharacter(),C=!1;if(!p&&this.$copyWithEmptySelection){C=!0;for(var _=this.selection.getAllRanges(),M=0;M<_.length;M++){var T=_[M];M&&_[M-1].start.row==T.start.row||(p+=this.session.getLine(T.start.row)+b)}}var R={text:p};return this._signal("copy",R),L.lineMode=C?R.text:!1,R.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(p,b){var C={text:p,event:b};this.commands.exec("paste",this,C)},this.$handlePaste=function(p){typeof p=="string"&&(p={text:p}),this._signal("paste",p);var b=p.text,C=b===L.lineMode,_=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)C?_.insert({row:this.selection.lead.row,column:0},b):this.insert(b);else if(C)this.selection.rangeList.ranges.forEach(function(B){_.insert({row:B.start.row,column:0},b)});else{var M=b.split(/\r\n|\r|\n/),T=this.selection.rangeList.ranges,R=M.length==2&&(!M[0]||!M[1]);if(M.length!=T.length||R)return this.commands.exec("insertstring",this,b);for(var D=T.length;D--;){var N=T[D];N.isEmpty()||_.remove(N),_.insert(N.start,M[D])}}},this.execCommand=function(p,b){return this.commands.exec(p,this,b)},this.insert=function(p,b){var C=this.session,_=C.getMode(),M=this.getCursorPosition();if(this.getBehavioursEnabled()&&!b){var T=_.transformAction(C.getState(M.row),"insertion",this,C,p);T&&(p!==T.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),p=T.text)}if(p==" "&&(p=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&p.indexOf(` -`)==-1){var R=new m.fromPoints(M,M);R.end.column+=p.length,this.session.remove(R)}}else{var R=this.getSelectionRange();M=this.session.remove(R),this.clearSelection()}if(p==` -`||p==`\r -`){var W=C.getLine(M.row);if(M.column>W.search(/\S|$/)){var D=W.substr(M.column).search(/\S|$/);C.doc.removeInLine(M.row,M.column,M.column+D)}}this.clearSelection();var N=M.column,B=C.getState(M.row),W=C.getLine(M.row),F=_.checkOutdent(B,W,p);if(C.insert(M,p),T&&T.selection&&(T.selection.length==2?this.selection.setSelectionRange(new m(M.row,N+T.selection[0],M.row,N+T.selection[1])):this.selection.setSelectionRange(new m(M.row+T.selection[0],T.selection[1],M.row+T.selection[2],T.selection[3]))),this.$enableAutoIndent){if(C.getDocument().isNewLine(p)){var I=_.getNextLineIndent(B,W.slice(0,M.column),C.getTabString());C.insert({row:M.row+1,column:0},I)}F&&_.autoOutdent(B,C,M.row)}},this.autoIndent=function(){var p=this.session,b=p.getMode(),C,_;if(this.selection.isEmpty())C=0,_=p.doc.getLength()-1;else{var M=this.getSelectionRange();C=M.start.row,_=M.end.row}for(var T="",R="",D="",N,B,W,F=p.getTabString(),I=C;I<=_;I++)I>0&&(T=p.getState(I-1),R=p.getLine(I-1),D=b.getNextLineIndent(T,R,F)),N=p.getLine(I),B=b.$getIndent(N),D!==B&&(B.length>0&&(W=new m(I,0,I,B.length),p.remove(W)),D.length>0&&p.insert({row:I,column:0},D)),b.autoOutdent(T,p,I)},this.onTextInput=function(p,b){if(!b)return this.keyBinding.onTextInput(p);this.startOperation({command:{name:"insertstring"}});var C=this.applyComposition.bind(this,p,b);this.selection.rangeCount?this.forEachSelection(C):C(),this.endOperation()},this.applyComposition=function(p,b){if(b.extendLeft||b.extendRight){var C=this.selection.getRange();C.start.column-=b.extendLeft,C.end.column+=b.extendRight,C.start.column<0&&(C.start.row--,C.start.column+=this.session.getLine(C.start.row).length+1),this.selection.setRange(C),!p&&!C.isEmpty()&&this.remove()}if((p||!this.selection.isEmpty())&&this.insert(p,!0),b.restoreStart||b.restoreEnd){var C=this.selection.getRange();C.start.column-=b.restoreStart,C.end.column-=b.restoreEnd,this.selection.setRange(C)}},this.onCommandKey=function(p,b,C){return this.keyBinding.onCommandKey(p,b,C)},this.setOverwrite=function(p){this.session.setOverwrite(p)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(p){this.setOption("scrollSpeed",p)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(p){this.setOption("dragDelay",p)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(p){this.setOption("selectionStyle",p)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(p){this.setOption("highlightActiveLine",p)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(p){this.setOption("highlightGutterLine",p)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(p){this.setOption("highlightSelectedWord",p)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(p){this.renderer.setAnimatedScroll(p)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(p){this.renderer.setShowInvisibles(p)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(p){this.renderer.setDisplayIndentGuides(p)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(p){this.renderer.setHighlightIndentGuides(p)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(p){this.renderer.setShowPrintMargin(p)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(p){this.renderer.setPrintMarginColumn(p)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(p){this.setOption("readOnly",p)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(p){this.setOption("behavioursEnabled",p)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(p){this.setOption("wrapBehavioursEnabled",p)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(p){this.setOption("showFoldWidgets",p)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(p){this.setOption("fadeFoldWidgets",p)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(p){this.selection.isEmpty()&&(p=="left"?this.selection.selectLeft():this.selection.selectRight());var b=this.getSelectionRange();if(this.getBehavioursEnabled()){var C=this.session,_=C.getState(b.start.row),M=C.getMode().transformAction(_,"deletion",this,C,b);if(b.end.column===0){var T=C.getTextRange(b);if(T[T.length-1]==` -`){var R=C.getLine(b.end.row);/^\s+$/.test(R)&&(b.end.column=R.length)}}M&&(b=M)}this.session.remove(b),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var p=this.getSelectionRange();p.start.column==p.end.column&&p.start.row==p.end.row&&(p.end.column=0,p.end.row++),this.session.remove(p),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var p=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition(p)},this.setGhostText=function(p,b){this.session.widgetManager||(this.session.widgetManager=new y(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(p,b)},this.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},this.transposeLetters=function(){if(this.selection.isEmpty()){var p=this.getCursorPosition(),b=p.column;if(b!==0){var C=this.session.getLine(p.row),_,M;bD.toLowerCase()?1:0});for(var M=new m(0,0,0,0),_=p.first;_<=p.last;_++){var T=b.getLine(_);M.start.row=_,M.end.row=_,M.end.column=T.length,b.replace(M,C[_-p.first])}},this.toggleCommentLines=function(){var p=this.session.getState(this.getCursorPosition().row),b=this.$getSelectedRows();this.session.getMode().toggleCommentLines(p,this.session,b.first,b.last)},this.toggleBlockComment=function(){var p=this.getCursorPosition(),b=this.session.getState(p.row),C=this.getSelectionRange();this.session.getMode().toggleBlockComment(b,this.session,C,p)},this.getNumberAt=function(p,b){var C=/[\-]?[0-9]+(?:\.[0-9]+)?/g;C.lastIndex=0;for(var _=this.session.getLine(p);C.lastIndex=b){var T={value:M[0],start:M.index,end:M.index+M[0].length};return T}}return null},this.modifyNumber=function(p){var b=this.selection.getCursor().row,C=this.selection.getCursor().column,_=new m(b,C-1,b,C),M=this.session.getTextRange(_);if(!isNaN(parseFloat(M))&&isFinite(M)){var T=this.getNumberAt(b,C);if(T){var R=T.value.indexOf(".")>=0?T.start+T.value.indexOf(".")+1:T.end,D=T.start+T.value.length-R,N=parseFloat(T.value);N*=Math.pow(10,D),R!==T.end&&C=R&&T<=D&&(C=Z,N.selection.clearSelection(),N.moveCursorTo(p,R+_),N.selection.selectTo(p,D+_)),R=D});for(var B=this.$toggleWordPairs,W,F=0;F=D&&R<=N&&I.match(/((?:https?|ftp):\/\/[\S]+)/)){B=I.replace(/[\s:.,'";}\]]+$/,"");break}D=N}}catch(H){C={error:H}}finally{try{F&&!F.done&&(_=W.return)&&_.call(W)}finally{if(C)throw C.error}}return B},this.openLink=function(){var p=this.selection.getCursor(),b=this.findLinkAt(p.row,p.column);return b&&window.open(b,"_blank"),b!=null},this.removeLines=function(){var p=this.$getSelectedRows();this.session.removeFullLines(p.first,p.last),this.clearSelection()},this.duplicateSelection=function(){var p=this.selection,b=this.session,C=p.getRange(),_=p.isBackwards();if(C.isEmpty()){var M=C.start.row;b.duplicateLines(M,M)}else{var T=_?C.start:C.end,R=b.insert(T,b.getTextRange(C),!1);C.start=T,C.end=R,p.setSelectionRange(C,_)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(p,b,C){return this.session.moveText(p,b,C)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(p,b){var C,_,M=this.selection;if(!M.inMultiSelectMode||this.inVirtualSelectionMode){var T=M.toOrientedRange();C=this.$getSelectedRows(T),_=this.session.$moveLines(C.first,C.last,b?0:p),b&&p==-1&&(_=0),T.moveBy(_,0),M.fromOrientedRange(T)}else{var R=M.rangeList.ranges;M.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var D=0,N=0,B=R.length,W=0;WH+1)break;H=z.last}for(W--,D=this.session.$moveLines(I,H,b?0:p),b&&p==-1&&(F=W+1);F<=W;)R[F].moveBy(D,0),F++;b||(D=0),N+=D}M.fromOrientedRange(M.ranges[0]),M.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(p){return p=(p||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(p.start.row),last:this.session.getRowFoldEnd(p.end.row)}},this.onCompositionStart=function(p){this.renderer.showComposition(p)},this.onCompositionUpdate=function(p){this.renderer.setCompositionText(p)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(p){return p>=this.getFirstVisibleRow()&&p<=this.getLastVisibleRow()},this.isRowFullyVisible=function(p){return p>=this.renderer.getFirstFullyVisibleRow()&&p<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(p,b){var C=this.renderer,_=this.renderer.layerConfig,M=p*Math.floor(_.height/_.lineHeight);b===!0?this.selection.$moveSelection(function(){this.moveCursorBy(M,0)}):b===!1&&(this.selection.moveCursorBy(M,0),this.selection.clearSelection());var T=C.scrollTop;C.scrollBy(0,M*_.lineHeight),b!=null&&C.scrollCursorIntoView(null,.5),C.animateScrolling(T)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(p){this.renderer.scrollToRow(p)},this.scrollToLine=function(p,b,C,_){this.renderer.scrollToLine(p,b,C,_)},this.centerSelection=function(){var p=this.getSelectionRange(),b={row:Math.floor(p.start.row+(p.end.row-p.start.row)/2),column:Math.floor(p.start.column+(p.end.column-p.start.column)/2)};this.renderer.alignCursor(b,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(p,b){this.selection.moveCursorTo(p,b)},this.moveCursorToPosition=function(p){this.selection.moveCursorToPosition(p)},this.jumpToMatching=function(p,b){var C=this.getCursorPosition(),_=new w(this.session,C.row,C.column),M=_.getCurrentToken(),T=0;M&&M.type.indexOf("tag-name")!==-1&&(M=_.stepBackward());var R=M||_.stepForward();if(R){var D,N=!1,B={},W=C.column-R.start,F,I={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(R.value.match(/[{}()\[\]]/g)){for(;W1?B[R.value]++:M.value==="=0;--T)this.$tryReplace(C[T],p)&&_++;return this.selection.setSelectionRange(M),_},this.$tryReplace=function(p,b){var C=this.session.getTextRange(p);return b=this.$search.replace(C,b),b!==null?(p.end=this.session.replace(p,b),p):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(p,b,C){b||(b={}),typeof p=="string"||p instanceof RegExp?b.needle=p:typeof p=="object"&&d.mixin(b,p);var _=this.selection.getRange();b.needle==null&&(p=this.session.getTextRange(_)||this.$search.$options.needle,p||(_=this.session.getWordRange(_.start.row,_.start.column),p=this.session.getTextRange(_)),this.$search.set({needle:p})),this.$search.set(b),b.start||this.$search.set({start:_});var M=this.$search.find(this.session);if(b.preventScroll)return M;if(M)return this.revealRange(M,C),M;b.backwards?_.start=_.end:_.end=_.start,this.selection.setRange(_)},this.findNext=function(p,b){this.find({skipCurrent:!0,backwards:!1},p,b)},this.findPrevious=function(p,b){this.find(p,{skipCurrent:!0,backwards:!0},b)},this.revealRange=function(p,b){this.session.unfold(p),this.selection.setSelectionRange(p);var C=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(p.start,p.end,.5),b!==!1&&this.renderer.animateScrolling(C)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(p){p.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(p){if(p){var b,C=this,_=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var M=this.$scrollAnchor;M.style.cssText="position:absolute",this.container.insertBefore(M,this.container.firstChild);var T=this.on("changeSelection",function(){_=!0}),R=this.renderer.on("beforeRender",function(){_&&(b=C.renderer.container.getBoundingClientRect())}),D=this.renderer.on("afterRender",function(){if(_&&b&&(C.isFocused()||C.searchBox&&C.searchBox.isFocused())){var N=C.renderer,B=N.$cursorLayer.$pixelPos,W=N.layerConfig,F=B.top-W.offset;B.top>=0&&F+b.top<0?_=!0:B.topwindow.innerHeight?_=!1:_=null,_!=null&&(M.style.top=F+"px",M.style.left=B.left+"px",M.style.height=W.lineHeight+"px",M.scrollIntoView(_)),_=b=null}});this.setAutoScrollEditorIntoView=function(N){N||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",T),this.renderer.off("afterRender",D),this.renderer.off("beforeRender",R))}}},this.$resetCursorStyle=function(){var p=this.$cursorStyle||"ace",b=this.renderer.$cursorLayer;b&&(b.setSmoothBlinking(/smooth/.test(p)),b.isBlinking=!this.$readOnly&&p!="wide",u.setCssClass(b.element,"ace_slim-cursors",/slim/.test(p)))},this.prompt=function(p,b,C){var _=this;E.loadModule("ace/ext/prompt",function(M){M.prompt(_,p,b,C)})}}.call(x.prototype),E.defineOptions(x.prototype,"editor",{selectionStyle:{set:function(p){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:p})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(p){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(p){this.textInput.setReadOnly(p),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(p){this.textInput.setCopyWithEmptySelection(p)},initialValue:!1},cursorStyle:{set:function(p){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(p){this.setAutoScrollEditorIntoView(p)}},keyboardHandler:{set:function(p){this.setKeyboardHandler(p)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(p){this.session.setValue(p)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(p){this.setSession(p)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(p){this.renderer.$gutterLayer.setShowLineNumbers(p),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),p&&this.$relativeLineNumbers?$.attach(this):$.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(p){this.$showLineNumbers&&p?$.attach(this):$.detach(this)}},placeholder:{set:function(p){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var b=this.session&&(this.renderer.$composition||this.getValue());if(b&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),u.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!b&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),u.addCssClass(this.container,"ace_hasPlaceholder");var C=u.createElement("div");C.className="ace_placeholder",C.textContent=this.$placeholder||"",this.renderer.placeholderNode=C,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!b&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},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",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 $={getText:function(p,b){return(Math.abs(p.selection.lead.row-b)||b+1+(b<9?"·":""))+""},getWidth:function(p,b,C){return Math.max(b.toString().length,(C.lastRow+1).toString().length,2)*C.characterWidth},update:function(p,b){b.renderer.$loop.schedule(b.renderer.CHANGE_GUTTER)},attach:function(p){p.renderer.$gutterLayer.$renderer=this,p.on("changeSelection",this.update),this.update(null,p)},detach:function(p){p.renderer.$gutterLayer.$renderer==this&&(p.renderer.$gutterLayer.$renderer=null),p.off("changeSelection",this.update),this.update(null,p)}};a.Editor=x}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(i,a,v){var c=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};(function(){this.addSession=function(w){this.$session=w},this.add=function(w,y,L){if(!this.$fromUndo&&w!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),y===!1||!this.lastDeltas){this.lastDeltas=[];var x=this.$undoStack.length;x>this.$undoDepth-1&&this.$undoStack.splice(0,x-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),w.id=this.$rev=++this.$maxRev}(w.action=="remove"||w.action=="insert")&&(this.$lastDelta=w),this.lastDeltas.push(w)}},this.addSelection=function(w,y){this.selections.push({value:w,rev:y||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(w,y){y==null&&(y=this.$rev+1);for(var L=this.$undoStack,x=L.length;x--;){var $=L[x][0];if($.id<=w)break;$.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(w){return w?n(w):n(this.$undoStack)+` ---- -`+n(this.$redoStack)}}).call(c.prototype);function d(w,y){for(var L=y;L--;){var x=w[L];if(x&&!x[0].ignore){for(;L"+w.end.row+":"+w.end.column}function l(w,y){var L=w.action=="insert",x=y.action=="insert";if(L&&x)if(o(y.start,w.end)>=0)m(y,w,-1);else if(o(y.start,w.start)<=0)m(w,y,1);else return null;else if(L&&!x)if(o(y.start,w.end)>=0)m(y,w,-1);else if(o(y.end,w.start)<=0)m(w,y,-1);else return null;else if(!L&&x)if(o(y.start,w.start)>=0)m(y,w,1);else if(o(y.start,w.start)<=0)m(w,y,1);else return null;else if(!L&&!x)if(o(y.start,w.start)>=0)m(y,w,1);else if(o(y.end,w.start)<=0)m(w,y,-1);else return null;return[y,w]}function f(w,y){for(var L=w.length;L--;)for(var x=0;x=0?m(w,y,-1):(o(w.start,y.start)<=0||m(w,u.fromPoints(y.start,w.start),-1),m(y,w,1));else if(!L&&x)o(y.start,w.end)>=0?m(y,w,-1):(o(y.start,w.start)<=0||m(y,u.fromPoints(w.start,y.start),-1),m(w,y,1));else if(!L&&!x)if(o(y.start,w.end)>=0)m(y,w,-1);else if(o(y.end,w.start)<=0)m(w,y,-1);else{var $,p;return o(w.start,y.start)<0&&($=w,w=k(w,y.start)),o(w.end,y.end)>0&&(p=k(w,y.end)),S(y.end,w.start,w.end,-1),p&&!$&&(w.lines=p.lines,w.start=p.start,w.end=p.end,p=w),[y,$,p].filter(Boolean)}return[y,w]}function m(w,y,L){S(w.start,y.start,y.end,L),S(w.end,y.start,y.end,L)}function S(w,y,L,x){w.row==(x==1?y:L).row&&(w.column+=x*(L.column-y.column)),w.row+=x*(L.row-y.row)}function k(w,y){var L=w.lines,x=w.end;w.end=h(y);var $=w.end.row-w.start.row,p=L.splice($,L.length),b=$?y.column:y.column-w.start.column;L.push(p[0].substring(0,b)),p[0]=p[0].substr(b);var C={start:h(y),end:x,lines:p,action:w.action};return C}function A(w,y){y=t(y);for(var L=w.length;L--;){for(var x=w[L],$=0;$S&&(E=m.end.row+1,m=l.getNextFoldLine(E,m),S=m?m.start.row:1/0),E>g){for(;this.$lines.getLength()>A+1;)this.$lines.pop();break}k=this.$lines.get(++A),k?k.row=E:(k=this.$lines.createCell(E,r,this.session,n),this.$lines.push(k)),this.$renderCell(k,r,m,E),E++}this._signal("afterRender"),this.$updateGutterWidth(r)},this.$updateGutterWidth=function(r){var l=this.session,f=l.gutterRenderer||this.$renderer,g=l.$firstLineNumber,m=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||l.$useWrapMode)&&(m=l.getLength()+g-1);var S=f?f.getWidth(l,m,r):m.toString().length*r.characterWidth,k=this.$padding||this.$computePadding();S+=k.left+k.right,S!==this.gutterWidth&&!isNaN(S)&&(this.gutterWidth=S,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",S))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var r=this.session.selection.getCursor();this.$cursorRow!==r.row&&(this.$cursorRow=r.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var r=this.session.selection.cursor.row;if(this.$cursorRow=r,!(this.$cursorCell&&this.$cursorCell.row==r)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var l=this.$lines.cells;this.$cursorCell=null;for(var f=0;f=this.$cursorRow){if(g.row>this.$cursorRow){var m=this.session.getFoldLine(this.$cursorRow);if(f>0&&m&&m.start.row==l[f-1].row)g=l[f-1];else break}g.element.className="ace_gutter-active-line "+g.element.className,this.$cursorCell=g;break}}}}},this.scrollLines=function(r){var l=this.config;if(this.config=r,this.$updateCursorRow(),this.$lines.pageChanged(l,r))return this.update(r);this.$lines.moveContainer(r);var f=Math.min(r.lastRow+r.gutterOffset,this.session.getLength()-1),g=this.oldLastRow;if(this.oldLastRow=f,!l||g0;m--)this.$lines.shift();if(g>f)for(var m=this.session.getFoldedRowCount(f+1,g);m>0;m--)this.$lines.pop();r.firstRowg&&this.$lines.push(this.$renderLines(r,g+1,f)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(r)},this.$renderLines=function(r,l,f){for(var g=[],m=l,S=this.session.getNextFoldLine(m),k=S?S.start.row:1/0;m>k&&(m=S.end.row+1,S=this.session.getNextFoldLine(m,S),k=S?S.start.row:1/0),!(m>f);){var A=this.$lines.createCell(m,r,this.session,n);this.$renderCell(A,r,S,m),g.push(A),m++}return g},this.$renderCell=function(r,l,f,g){var m=r.element,S=this.session,k=m.childNodes[0],A=m.childNodes[1],E=S.$firstLineNumber,w=S.$breakpoints,y=S.$decorations,L=S.gutterRenderer||this.$renderer,x=this.$showFoldWidgets&&S.foldWidgets,$=f?f.start.row:Number.MAX_VALUE,p="ace_gutter-cell ";if(this.$highlightGutterLine&&(g==this.$cursorRow||f&&g=$&&this.$cursorRow<=f.end.row)&&(p+="ace_gutter-active-line ",this.$cursorCell!=r&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=r)),w[g]&&(p+=w[g]),y[g]&&(p+=y[g]),this.$annotations[g]&&(p+=this.$annotations[g].className),m.className!=p&&(m.className=p),x){var b=x[g];b==null&&(b=x[g]=S.getFoldWidget(g))}if(b){var p="ace_fold-widget ace_"+b;b=="start"&&g==$&&gf.right-l.right)return"foldWidgets"}}).call(t.prototype);function n(r){var l=document.createTextNode("");r.appendChild(l);var f=c.createElement("span");return r.appendChild(f),r}a.Gutter=t}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(i,a,v){var c=i("../range").Range,d=i("../lib/dom"),u=function(o){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(h){this.$padding=h},this.setSession=function(h){this.session=h},this.setMarkers=function(h){this.markers=h},this.elt=function(h,t){var n=this.i!=-1&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=h},this.update=function(h){if(h){this.config=h,this.i=0;var t;for(var n in this.markers){var r=this.markers[n];if(!r.range){r.update(t,this,this.session,h);continue}var l=r.range.clipRows(h.firstRow,h.lastRow);if(!l.isEmpty())if(l=l.toScreenRange(this.session),r.renderer){var f=this.$getTop(l.start.row,h),g=this.$padding+l.start.column*h.characterWidth;r.renderer(t,l,g,f,h)}else r.type=="fullLine"?this.drawFullLineMarker(t,l,r.clazz,h):r.type=="screenLine"?this.drawScreenLineMarker(t,l,r.clazz,h):l.isMultiLine()?r.type=="text"?this.drawTextMarker(t,l,r.clazz,h):this.drawMultiLineMarker(t,l,r.clazz,h):this.drawSingleLineMarker(t,l,r.clazz+" ace_start ace_br15",h)}if(this.i!=-1)for(;this.iE,S==m),r,S==m?0:1,l)},this.drawMultiLineMarker=function(h,t,n,r,l){var f=this.$padding,g=r.lineHeight,m=this.$getTop(t.start.row,r),S=f+t.start.column*r.characterWidth;if(l=l||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var k=t.clone();k.end.row=k.start.row,k.end.column=this.session.getLine(k.start.row).length,this.drawBidiSingleLineMarker(h,k,n+" ace_br1 ace_start",r,null,l)}else this.elt(n+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+m+"px;left:"+S+"px;"+(l||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var k=t.clone();k.start.row=k.end.row,k.start.column=0,this.drawBidiSingleLineMarker(h,k,n+" ace_br12",r,null,l)}else{m=this.$getTop(t.end.row,r);var A=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+g+"px;width:"+A+"px;top:"+m+"px;left:"+f+"px;"+(l||""))}if(g=(t.end.row-t.start.row-1)*r.lineHeight,!(g<=0)){m=this.$getTop(t.start.row+1,r);var E=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(E?" ace_br"+E:""),"height:"+g+"px;right:0;top:"+m+"px;left:"+f+"px;"+(l||""))}},this.drawSingleLineMarker=function(h,t,n,r,l,f){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(h,t,n,r,l,f);var g=r.lineHeight,m=(t.end.column+(l||0)-t.start.column)*r.characterWidth,S=this.$getTop(t.start.row,r),k=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+g+"px;width:"+m+"px;top:"+S+"px;left:"+k+"px;"+(f||""))},this.drawBidiSingleLineMarker=function(h,t,n,r,l,f){var g=r.lineHeight,m=this.$getTop(t.start.row,r),S=this.$padding,k=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);k.forEach(function(A){this.elt(n,"height:"+g+"px;width:"+(A.width+(l||0))+"px;top:"+m+"px;left:"+(S+A.left)+"px;"+(f||""))},this)},this.drawFullLineMarker=function(h,t,n,r,l){var f=this.$getTop(t.start.row,r),g=r.lineHeight;t.start.row!=t.end.row&&(g+=this.$getTop(t.end.row,r)-f),this.elt(n,"height:"+g+"px;top:"+f+"px;left:0;right:0;"+(l||""))},this.drawScreenLineMarker=function(h,t,n,r,l){var f=this.$getTop(t.start.row,r),g=r.lineHeight;this.elt(n,"height:"+g+"px;top:"+f+"px;left:0;right:0;"+(l||""))}}).call(u.prototype),a.Marker=u}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(i,a,v){var c=i("../lib/oop"),d=i("../lib/dom"),u=i("../lib/lang"),o=i("./lines").Lines,h=i("../lib/event_emitter").EventEmitter,t=function(n){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",n.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new o(this.element)};(function(){c.implement(this,h),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var n=this.session.doc,r=n.getNewLineCharacter()==` -`&&n.getNewLineMode()!="windows",l=r?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=l)return this.EOL_CHAR=l,!0},this.setPadding=function(n){this.$padding=n,this.element.style.margin="0 "+n+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(n){this.$fontMetrics=n,this.$fontMetrics.on("changeCharacterSize",function(r){this._signal("changeCharacterSize",r)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(n){this.session=n,n&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(n){return this.showInvisibles==n?!1:(this.showInvisibles=n,typeof n=="string"?(this.showSpaces=/tab/i.test(n),this.showTabs=/space/i.test(n),this.showEOL=/eol/i.test(n)):this.showSpaces=this.showTabs=this.showEOL=n,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(n){return this.displayIndentGuides==n?!1:(this.displayIndentGuides=n,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(n){return this.$highlightIndentGuides===n?!1:(this.$highlightIndentGuides=n,n)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var n=this.session.getTabSize();this.tabSize=n;for(var r=this.$tabStrings=[0],l=1;lw&&(A=E.end.row+1,E=this.session.getNextFoldLine(A,E),w=E?E.start.row:1/0),!(A>g);){var y=m[S++];if(y){this.dom.removeChildren(y),this.$renderLine(y,A,A==w?E:!1),k&&(y.style.top=this.$lines.computeLineTop(A,n,this.session)+"px");var L=n.lineHeight*this.session.getRowLength(A)+"px";y.style.height!=L&&(k=!0,y.style.height=L)}A++}if(k)for(;S0;g--)this.$lines.shift();if(r.lastRow>n.lastRow)for(var g=this.session.getFoldedRowCount(n.lastRow+1,r.lastRow);g>0;g--)this.$lines.pop();n.firstRowr.lastRow&&this.$lines.push(this.$renderLinesFragment(n,r.lastRow+1,n.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(n,r,l){for(var f=[],g=r,m=this.session.getNextFoldLine(g),S=m?m.start.row:1/0;g>S&&(g=m.end.row+1,m=this.session.getNextFoldLine(g,m),S=m?m.start.row:1/0),!(g>l);){var k=this.$lines.createCell(g,n,this.session),A=k.element;this.dom.removeChildren(A),d.setStyle(A.style,"height",this.$lines.computeLineHeight(g,n,this.session)+"px"),d.setStyle(A.style,"top",this.$lines.computeLineTop(g,n,this.session)+"px"),this.$renderLine(A,g,g==S?m:!1),this.$useLineGroups()?A.className="ace_line_group":A.className="ace_line",f.push(k),g++}return f},this.update=function(n){this.$lines.moveContainer(n),this.config=n;for(var r=n.firstRow,l=n.lastRow,f=this.$lines;f.getLength();)f.pop();f.push(this.$renderLinesFragment(n,r,l))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(n,r,l,f){for(var g=this,m=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,S=this.dom.createFragment(this.element),k,A=0;k=m.exec(f);){var E=k[1],w=k[2],y=k[3],L=k[4],x=k[5];if(!(!g.showSpaces&&w)){var $=A!=k.index?f.slice(A,k.index):"";if(A=k.index+k[0].length,$&&S.appendChild(this.dom.createTextNode($,this.element)),E){var p=g.session.getScreenTabSize(r+k.index);S.appendChild(g.$tabStrings[p].cloneNode(!0)),r+=p-1}else if(w)if(g.showSpaces){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space",b.textContent=u.stringRepeat(g.SPACE_CHAR,w.length),S.appendChild(b)}else S.appendChild(this.com.createTextNode(w,this.element));else if(y){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space ace_invalid",b.textContent=u.stringRepeat(g.SPACE_CHAR,y.length),S.appendChild(b)}else if(L){r+=1;var b=this.dom.createElement("span");b.style.width=g.config.characterWidth*2+"px",b.className=g.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=g.showSpaces?g.SPACE_CHAR:L,S.appendChild(b)}else if(x){r+=1;var b=this.dom.createElement("span");b.style.width=g.config.characterWidth*2+"px",b.className="ace_cjk",b.textContent=x,S.appendChild(b)}}}if(S.appendChild(this.dom.createTextNode(A?f.slice(A):f,this.element)),this.$textToken[l.type])n.appendChild(S);else{var C="ace_"+l.type.replace(/\./g," ace_"),b=this.dom.createElement("span");l.type=="fold"&&(b.style.width=l.value.length*this.config.characterWidth+"px"),b.className=C,b.appendChild(S),n.appendChild(b)}return r+f.length},this.renderIndentGuide=function(n,r,l){var f=r.search(this.$indentGuideRe);if(f<=0||f>=l)return r;if(r[0]==" "){f-=f%this.tabSize;for(var g=f/this.tabSize,m=0;mm[S].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&n[r.row]!==""&&r.column===n[r.row].length){this.$highlightIndentGuideMarker.dir=1;for(var S=r.row+1;S0){for(var g=0;g=this.$highlightIndentGuideMarker.start+1){if(f.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(f,r)}}else for(var l=n.length-1;l>=0;l--){var f=n[l];if(this.$highlightIndentGuideMarker.end&&f.row=m;)S=this.$renderToken(k,S,E,w.substring(0,m-f)),w=w.substring(m-f),f=m,k=this.$createLineElement(),n.appendChild(k),k.appendChild(this.dom.createTextNode(u.stringRepeat(" ",l.indent),this.element)),g++,S=0,m=l[g]||Number.MAX_VALUE;w.length!=0&&(f+=w.length,S=this.$renderToken(k,S,E,w))}}l[l.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,S,null,"",!0)},this.$renderSimpleLine=function(n,r){for(var l=0,f=0;fthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(n,l,g,m);l=this.$renderToken(n,l,g,m)}}},this.$renderOverflowMessage=function(n,r,l,f,g){l&&this.$renderToken(n,r,l,f.slice(0,this.MAX_LINE_LENGTH-r));var m=this.dom.createElement("span");m.className="ace_inline_button ace_keyword ace_toggle_wrap",m.textContent=g?"":"",n.appendChild(m)},this.$renderLine=function(n,r,l){if(!l&&l!=!1&&(l=this.session.getFoldLine(r)),l)var f=this.$getFoldLineTokens(r,l);else var f=this.session.getTokens(r);var g=n;if(f.length){var m=this.session.getRowSplitData(r);if(m&&m.length){this.$renderWrappedLine(n,f,m);var g=n.lastChild}else{var g=n;this.$useLineGroups()&&(g=this.$createLineElement(),n.appendChild(g)),this.$renderSimpleLine(g,f)}}else this.$useLineGroups()&&(g=this.$createLineElement(),n.appendChild(g));if(this.showEOL&&g){l&&(r=l.end.row);var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_eol",S.textContent=r==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,g.appendChild(S)}},this.$getFoldLineTokens=function(n,r){var l=this.session,f=[];function g(S,k,A){for(var E=0,w=0;w+S[E].value.lengthA-k&&(y=y.substring(0,A-k)),f.push({type:S[E].type,value:y}),w=k+y.length,E+=1}for(;wA?f.push({type:S[E].type,value:y.substring(0,A-w)}):f.push(S[E]),w+=y.length,E+=1}}var m=l.getTokens(n);return r.walk(function(S,k,A,E,w){S!=null?f.push({type:"fold",value:S}):(w&&(m=l.getTokens(k)),m.length&&g(m,E,A))},r.end.row,this.session.getLine(r.end.row).length),f},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(t.prototype),a.Text=t}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(i,a,v){var c=i("../lib/dom"),d=function(u){this.element=c.createElement("div"),this.element.className="ace_layer ace_cursor-layer",u.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),c.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(u){for(var o=this.cursors,h=o.length;h--;)c.setStyle(o[h].style,"opacity",u?"":"0")},this.$startCssAnimation=function(){for(var u=this.cursors,o=u.length;o--;)u[o].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&c.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,c.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(u){this.$padding=u},this.setSession=function(u){this.session=u},this.setBlinking=function(u){u!=this.isBlinking&&(this.isBlinking=u,this.restartTimer())},this.setBlinkInterval=function(u){u!=this.blinkInterval&&(this.blinkInterval=u,this.restartTimer())},this.setSmoothBlinking=function(u){u!=this.smoothBlinking&&(this.smoothBlinking=u,c.setCssClass(this.element,"ace_smooth-blinking",u),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var u=c.createElement("div");return u.className="ace_cursor",this.element.appendChild(u),this.cursors.push(u),u},this.removeCursor=function(){if(this.cursors.length>1){var u=this.cursors.pop();return u.parentNode.removeChild(u),u}},this.hideCursor=function(){this.isVisible=!1,c.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,c.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var u=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,c.removeCssClass(this.element,"ace_smooth-blinking")),u(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&c.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),c.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var o=function(){this.timeoutId=setTimeout(function(){u(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){u(!0),o()},this.blinkInterval),o()}},this.getPixelPosition=function(u,o){if(!this.config||!this.session)return{left:0,top:0};u||(u=this.session.selection.getCursor());var h=this.session.documentToScreenPosition(u),t=this.$padding+(this.session.$bidiHandler.isBidiRow(h.row,u.row)?this.session.$bidiHandler.getPosLeft(h.column):h.column*this.config.characterWidth),n=(h.row-(o?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:t,top:n}},this.isCursorInView=function(u,o){return u.top>=0&&u.topu.height+u.offset||r.top<0)&&h>1)){var l=this.cursors[t++]||this.addCursor(),f=l.style;this.drawCursor?this.drawCursor(l,r,u,o[h],this.session):this.isCursorInView(r,u)?(c.setStyle(f,"display","block"),c.translate(l,r.left,r.top),c.setStyle(f,"width",Math.round(u.characterWidth)+"px"),c.setStyle(f,"height",u.lineHeight+"px")):c.setStyle(f,"display","none")}}for(;this.cursors.length>t;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(u){u!=this.overwrite&&(this.overwrite=u,u?c.addCssClass(this.element,"ace_overwrite-cursors"):c.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(d.prototype),a.Cursor=d}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(i,a,v){var c=i("./lib/oop"),d=i("./lib/dom"),u=i("./lib/event"),o=i("./lib/event_emitter").EventEmitter,h=32768,t=function(l){this.element=d.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=d.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),l.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,u.addListener(this.element,"scroll",this.onScroll.bind(this)),u.addListener(this.element,"mousedown",u.preventDefault)};(function(){c.implement(this,o),this.setVisible=function(l){this.element.style.display=l?"":"none",this.isVisible=l,this.coeff=1}}).call(t.prototype);var n=function(l,f){t.call(this,l),this.scrollTop=0,this.scrollHeight=0,f.$scrollbarWidth=this.width=d.scrollbarWidth(l.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};c.inherits(n,t),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var l=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-l)/(this.coeff-l)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(l){this.element.style.height=l+"px"},this.setInnerHeight=this.setScrollHeight=function(l){this.scrollHeight=l,l>h?(this.coeff=h/l,l=h):this.coeff!=1&&(this.coeff=1),this.inner.style.height=l+"px"},this.setScrollTop=function(l){this.scrollTop!=l&&(this.skipEvent=!0,this.scrollTop=l,this.element.scrollTop=l*this.coeff)}}.call(n.prototype);var r=function(l,f){t.call(this,l),this.scrollLeft=0,this.height=f.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};c.inherits(r,t),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(l){this.element.style.width=l+"px"},this.setInnerWidth=function(l){this.inner.style.width=l+"px"},this.setScrollWidth=function(l){this.inner.style.width=l+"px"},this.setScrollLeft=function(l){this.scrollLeft!=l&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=l)}}.call(r.prototype),a.ScrollBar=n,a.ScrollBarV=n,a.ScrollBarH=r,a.VScrollBar=n,a.HScrollBar=r}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(i,a,v){var c=i("./lib/oop"),d=i("./lib/dom"),u=i("./lib/event"),o=i("./lib/event_emitter").EventEmitter;d.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ - position: absolute; - background: rgba(128, 128, 128, 0.6); - -moz-box-sizing: border-box; - box-sizing: border-box; - border: 1px solid #bbb; - border-radius: 2px; - z-index: 8; -} -.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { - position: absolute; - z-index: 6; - background: none; - overflow: hidden!important; -} -.ace_editor>.ace_sb-v { - z-index: 6; - right: 0; - top: 0; - width: 12px; -} -.ace_editor>.ace_sb-v div { - z-index: 8; - right: 0; - width: 100%; -} -.ace_editor>.ace_sb-h { - bottom: 0; - left: 0; - height: 12px; -} -.ace_editor>.ace_sb-h div { - bottom: 0; - height: 100%; -} -.ace_editor>.ace_sb_grabbed { - z-index: 8; - background: #000; -}`,"ace_scrollbar.css",!1);var h=function(r){this.element=d.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=d.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,r.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,u.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){c.implement(this,o),this.setVisible=function(r){this.element.style.display=r?"":"none",this.isVisible=r,this.coeff=1}}).call(h.prototype);var t=function(r,l){h.call(this,r),this.scrollTop=0,this.scrollHeight=0,this.parent=r,this.width=this.VScrollWidth,this.renderer=l,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};c.inherits(t,h),function(){this.classSuffix="-v",c.implement(this,o),this.onMouseDown=function(r,l){if(r==="mousedown"&&!(u.getButton(l)!==0||l.detail===2)){if(l.target===this.inner){var f=this,g=l.clientY,m=function(L){g=L.clientY},S=function(){clearInterval(w)},k=l.clientY,A=this.thumbTop,E=function(){if(g!==void 0){var L=f.scrollTopFromThumbTop(A+g-k);L!==f.scrollTop&&f._emit("scroll",{data:L})}};u.capture(this.inner,m,S);var w=setInterval(E,20);return u.preventDefault(l)}var y=l.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(y)}),u.preventDefault(l)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(r){var l=r*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return l=l>>0,l<0?l=0:l>this.pageHeight-this.viewHeight&&(l=this.pageHeight-this.viewHeight),l},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(r){this.height=Math.max(0,r),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(r,l){this.pageHeight===r&&!l||(this.pageHeight=r,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})))},this.setScrollTop=function(r){this.scrollTop=r,r<0&&(r=0),this.thumbTop=r*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(t.prototype);var n=function(r,l){h.call(this,r),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=l};c.inherits(n,h),function(){this.classSuffix="-h",c.implement(this,o),this.onMouseDown=function(r,l){if(r==="mousedown"&&!(u.getButton(l)!==0||l.detail===2)){if(l.target===this.inner){var f=this,g=l.clientX,m=function(L){g=L.clientX},S=function(){clearInterval(w)},k=l.clientX,A=this.thumbLeft,E=function(){if(g!==void 0){var L=f.scrollLeftFromThumbLeft(A+g-k);L!==f.scrollLeft&&f._emit("scroll",{data:L})}};u.capture(this.inner,m,S);var w=setInterval(E,20);return u.preventDefault(l)}var y=l.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(y)}),u.preventDefault(l)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(r){var l=r*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return l=l>>0,l<0?l=0:l>this.pageWidth-this.viewWidth&&(l=this.pageWidth-this.viewWidth),l},this.setWidth=function(r){this.width=Math.max(0,r),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(r,l){this.pageWidth===r&&!l||(this.pageWidth=r,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})))},this.setScrollLeft=function(r){this.scrollLeft=r,r<0&&(r=0),this.thumbLeft=r*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(n.prototype),a.ScrollBar=t,a.ScrollBarV=t,a.ScrollBarH=n,a.VScrollBar=t,a.HScrollBar=n}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(i,a,v){var c=i("./lib/event"),d=function(u,o){this.onRender=u,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=o||window;var h=this;this._flush=function(t){h.pending=!1;var n=h.changes;if(n&&(c.blockIdle(100),h.changes=0,h.onRender(n)),h.changes){if(h.$recursionLimit--<0)return;h.schedule()}else h.$recursionLimit=2}};(function(){this.schedule=function(u){this.changes=this.changes|u,this.changes&&!this.pending&&(c.nextFrame(this._flush),this.pending=!0)},this.clear=function(u){var o=this.changes;return this.changes=0,o}}).call(d.prototype),a.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(i,a,v){var c=i("../lib/oop"),d=i("../lib/dom"),u=i("../lib/lang"),o=i("../lib/event"),h=i("../lib/useragent"),t=i("../lib/event_emitter").EventEmitter,n=512,r=typeof ResizeObserver=="function",l=200,f=a.FontMetrics=function(g){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=u.stringRepeat("X",n),this.$characterSize={width:0,height:0},r?this.$addObserver():this.checkForSizeChanges()};(function(){c.implement(this,t),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(g,m){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",h.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=m?"hidden":"visible"},this.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var m=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=m&&m.width===g.width&&m.height===g.height,this._emit("changeCharacterSize",{data:g})}},this.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(m){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=o.onIdle(function m(){g.checkForSizeChanges(),o.onIdle(m,500)},500)},this.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(g){var m={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/n};return m.width===0||m.height===0?null:m},this.$measureCharWidth=function(g){this.$main.textContent=u.stringRepeat(g,n);var m=this.$main.getBoundingClientRect();return m.width/n},this.getCharacterWidth=function(g){var m=this.charSizes[g];return m===void 0&&(m=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),m},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function g(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*g(m.parentElement)},this.$initTransformMeasureNodes=function(){var g=function(m,S){return["div",{style:"position: absolute;top:"+m+"px;left:"+S+"px;"}]};this.els=d.buildDom([g(0,0),g(l,0),g(0,l),g(l,l)],this.el)},this.transformCoordinates=function(g,m){if(g){var S=this.$getZoom(this.el);g=w(1/S,g)}function k(B,W,F){var I=B[1]*W[0]-B[0]*W[1];return[(-W[1]*F[0]+W[0]*F[1])/I,(+B[1]*F[0]-B[0]*F[1])/I]}function A(B,W){return[B[0]-W[0],B[1]-W[1]]}function E(B,W){return[B[0]+W[0],B[1]+W[1]]}function w(B,W){return[B*W[0],B*W[1]]}this.els||this.$initTransformMeasureNodes();function y(B){var W=B.getBoundingClientRect();return[W.left,W.top]}var L=y(this.els[0]),x=y(this.els[1]),$=y(this.els[2]),p=y(this.els[3]),b=k(A(p,x),A(p,$),A(E(x,$),E(p,L))),C=w(1+b[0],A(x,L)),_=w(1+b[1],A($,L));if(m){var M=m,T=b[0]*M[0]/l+b[1]*M[1]/l+1,R=E(w(M[0],C),w(M[1],_));return E(w(1/T/l,R),L)}var D=A(g,L),N=k(A(C,w(b[0],D)),A(_,w(b[1],D)),D);return w(l,N)}}).call(f.prototype)}),ace.define("ace/css/editor.css",["require","exports","module"],function(i,a,v){v.exports=` -.ace_br1 {border-top-left-radius : 3px;} -.ace_br2 {border-top-right-radius : 3px;} -.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} -.ace_br4 {border-bottom-right-radius: 3px;} -.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} -.ace_br8 {border-bottom-left-radius : 3px;} -.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} - - -.ace_editor { - position: relative; - overflow: hidden; - padding: 0; - font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; - direction: ltr; - text-align: left; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -.ace_scroller { - position: absolute; - overflow: hidden; - top: 0; - bottom: 0; - background-color: inherit; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - cursor: text; -} - -.ace_content { - position: absolute; - box-sizing: border-box; - min-width: 100%; - contain: style size layout; - font-variant-ligatures: no-common-ligatures; -} - -.ace_dragging .ace_scroller:before{ - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - content: ''; - background: rgba(250, 250, 250, 0.01); - z-index: 1000; -} -.ace_dragging.ace_dark .ace_scroller:before{ - background: rgba(0, 0, 0, 0.01); -} - -.ace_gutter { - position: absolute; - overflow : hidden; - width: auto; - top: 0; - bottom: 0; - left: 0; - cursor: default; - z-index: 4; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - contain: style size layout; -} - -.ace_gutter-active-line { - position: absolute; - left: 0; - right: 0; -} - -.ace_scroller.ace_scroll-left:after { - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; - pointer-events: none; -} - -.ace_gutter-cell { - position: absolute; - top: 0; - left: 0; - right: 0; - padding-left: 19px; - padding-right: 6px; - background-repeat: no-repeat; -} - -.ace_gutter-cell.ace_error { - 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=="); - background-repeat: no-repeat; - background-position: 2px center; -} - -.ace_gutter-cell.ace_warning { - 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=="); - background-position: 2px center; -} - -.ace_gutter-cell.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); - background-position: 2px center; -} -.ace_dark .ace_gutter-cell.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); -} - -.ace_scrollbar { - contain: strict; - position: absolute; - right: 0; - bottom: 0; - z-index: 6; -} - -.ace_scrollbar-inner { - position: absolute; - cursor: text; - left: 0; - top: 0; -} - -.ace_scrollbar-v{ - overflow-x: hidden; - overflow-y: scroll; - top: 0; -} - -.ace_scrollbar-h { - overflow-x: scroll; - overflow-y: hidden; - left: 0; -} - -.ace_print-margin { - position: absolute; - height: 100%; -} - -.ace_text-input { - position: absolute; - z-index: 0; - width: 0.5em; - height: 1em; - opacity: 0; - background: transparent; - -moz-appearance: none; - appearance: none; - border: none; - resize: none; - outline: none; - overflow: hidden; - font: inherit; - padding: 0 1px; - margin: 0 -1px; - contain: strict; - -ms-user-select: text; - -moz-user-select: text; - -webkit-user-select: text; - user-select: text; - /*with \`pre-line\` chrome inserts   instead of space*/ - white-space: pre!important; -} -.ace_text-input.ace_composition { - background: transparent; - color: inherit; - z-index: 1000; - opacity: 1; -} -.ace_composition_placeholder { color: transparent } -.ace_composition_marker { - border-bottom: 1px solid; - position: absolute; - border-radius: 0; - margin-top: 1px; -} - -[ace_nocontext=true] { - transform: none!important; - filter: none!important; - clip-path: none!important; - mask : none!important; - contain: none!important; - perspective: none!important; - mix-blend-mode: initial!important; - z-index: auto; -} - -.ace_layer { - z-index: 1; - position: absolute; - overflow: hidden; - /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ - word-wrap: normal; - white-space: pre; - height: 100%; - width: 100%; - box-sizing: border-box; - /* setting pointer-events: auto; on node under the mouse, which changes - during scroll, will break mouse wheel scrolling in Safari */ - pointer-events: none; -} - -.ace_gutter-layer { - position: relative; - width: auto; - text-align: right; - pointer-events: auto; - height: 1000000px; - contain: style size layout; -} - -.ace_text-layer { - font: inherit !important; - position: absolute; - height: 1000000px; - width: 1000000px; - contain: style size layout; -} - -.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { - contain: style size layout; - position: absolute; - top: 0; - left: 0; - right: 0; -} - -.ace_hidpi .ace_text-layer, -.ace_hidpi .ace_gutter-layer, -.ace_hidpi .ace_content, -.ace_hidpi .ace_gutter { - contain: strict; - will-change: transform; -} -.ace_hidpi .ace_text-layer > .ace_line, -.ace_hidpi .ace_text-layer > .ace_line_group { - contain: strict; -} - -.ace_cjk { - display: inline-block; - text-align: center; -} - -.ace_cursor-layer { - z-index: 4; -} - -.ace_cursor { - z-index: 4; - position: absolute; - box-sizing: border-box; - border-left: 2px solid; - /* workaround for smooth cursor repaintng whole screen in chrome */ - transform: translatez(0); -} - -.ace_multiselect .ace_cursor { - border-left-width: 1px; -} - -.ace_slim-cursors .ace_cursor { - border-left-width: 1px; -} - -.ace_overwrite-cursors .ace_cursor { - border-left-width: 0; - border-bottom: 1px solid; -} - -.ace_hidden-cursors .ace_cursor { - opacity: 0.2; -} - -.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { - opacity: 0; -} - -.ace_smooth-blinking .ace_cursor { - transition: opacity 0.18s; -} - -.ace_animate-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: step-end; - animation-name: blink-ace-animate; - animation-iteration-count: infinite; -} - -.ace_animate-blinking.ace_smooth-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: ease-in-out; - animation-name: blink-ace-animate-smooth; -} - -@keyframes blink-ace-animate { - from, to { opacity: 1; } - 60% { opacity: 0; } -} - -@keyframes blink-ace-animate-smooth { - from, to { opacity: 1; } - 45% { opacity: 1; } - 60% { opacity: 0; } - 85% { opacity: 0; } -} - -.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { - position: absolute; - z-index: 3; -} - -.ace_marker-layer .ace_selection { - position: absolute; - z-index: 5; -} - -.ace_marker-layer .ace_bracket { - position: absolute; - z-index: 6; -} - -.ace_marker-layer .ace_error_bracket { - position: absolute; - border-bottom: 1px solid #DE5555; - border-radius: 0; -} - -.ace_marker-layer .ace_active-line { - position: absolute; - z-index: 2; -} - -.ace_marker-layer .ace_selected-word { - position: absolute; - z-index: 4; - box-sizing: border-box; -} - -.ace_line .ace_fold { - box-sizing: border-box; - - display: inline-block; - height: 11px; - margin-top: -2px; - vertical-align: middle; - - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); - background-repeat: no-repeat, repeat-x; - background-position: center center, top left; - color: transparent; - - border: 1px solid black; - border-radius: 2px; - - cursor: pointer; - pointer-events: auto; -} - -.ace_dark .ace_fold { -} - -.ace_fold:hover{ - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); -} - -.ace_tooltip { - background-color: #FFF; - background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1)); - border: 1px solid gray; - border-radius: 1px; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); - color: black; - max-width: 100%; - padding: 3px 4px; - position: fixed; - z-index: 999999; - box-sizing: border-box; - cursor: default; - white-space: pre; - word-wrap: break-word; - line-height: normal; - font-style: normal; - font-weight: normal; - letter-spacing: normal; - pointer-events: none; -} - -.ace_folding-enabled > .ace_gutter-cell { - padding-right: 13px; -} - -.ace_fold-widget { - box-sizing: border-box; - - margin: 0 -12px 0 1px; - display: none; - width: 11px; - vertical-align: top; - - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: center; - - border-radius: 3px; - - border: 1px solid transparent; - cursor: pointer; -} - -.ace_folding-enabled .ace_fold-widget { - display: inline-block; -} - -.ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); -} - -.ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); -} - -.ace_fold-widget:hover { - border: 1px solid rgba(0, 0, 0, 0.3); - background-color: rgba(255, 255, 255, 0.2); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); -} - -.ace_fold-widget:active { - border: 1px solid rgba(0, 0, 0, 0.4); - background-color: rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); -} -/** - * Dark version for fold widgets - */ -.ace_dark .ace_fold-widget { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); -} -.ace_dark .ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget:hover { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); - background-color: rgba(255, 255, 255, 0.1); -} -.ace_dark .ace_fold-widget:active { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); -} - -.ace_inline_button { - border: 1px solid lightgray; - display: inline-block; - margin: -1px 8px; - padding: 0 5px; - pointer-events: auto; - cursor: pointer; -} -.ace_inline_button:hover { - border-color: gray; - background: rgba(200,200,200,0.2); - display: inline-block; - pointer-events: auto; -} - -.ace_fold-widget.ace_invalid { - background-color: #FFB4B4; - border-color: #DE5555; -} - -.ace_fade-fold-widgets .ace_fold-widget { - transition: opacity 0.4s ease 0.05s; - opacity: 0; -} - -.ace_fade-fold-widgets:hover .ace_fold-widget { - transition: opacity 0.05s ease 0.05s; - opacity:1; -} - -.ace_underline { - text-decoration: underline; -} - -.ace_bold { - font-weight: bold; -} - -.ace_nobold .ace_bold { - font-weight: normal; -} - -.ace_italic { - font-style: italic; -} - - -.ace_error-marker { - background-color: rgba(255, 0, 0,0.2); - position: absolute; - z-index: 9; -} - -.ace_highlight-marker { - background-color: rgba(255, 255, 0,0.2); - position: absolute; - z-index: 8; -} - -.ace_mobile-menu { - position: absolute; - line-height: 1.5; - border-radius: 4px; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - background: white; - box-shadow: 1px 3px 2px grey; - border: 1px solid #dcdcdc; - color: black; -} -.ace_dark > .ace_mobile-menu { - background: #333; - color: #ccc; - box-shadow: 1px 3px 2px grey; - border: 1px solid #444; - -} -.ace_mobile-button { - padding: 2px; - cursor: pointer; - overflow: hidden; -} -.ace_mobile-button:hover { - background-color: #eee; - opacity:1; -} -.ace_mobile-button:active { - background-color: #ddd; -} - -.ace_placeholder { - font-family: arial; - transform: scale(0.9); - transform-origin: left; - white-space: pre; - opacity: 0.7; - margin: 0 10px; -} - -.ace_ghost_text { - opacity: 0.5; - font-style: italic; -}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(i,a,v){var c=i("../lib/dom"),d=i("../lib/oop"),u=i("../lib/event_emitter").EventEmitter,o=function(h,t){this.canvas=c.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=h.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=h.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},h.element.appendChild(this.canvas)};(function(){d.implement(this,u),this.$updateDecorators=function(h){var t=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(h){this.maxHeight=h.maxHeight,this.lineHeight=h.lineHeight,this.canvasHeight=h.height;var n=(h.lastRow+1)*this.lineHeight;nb.priority?1:0}var f=this.renderer.session.$annotations;if(r.clearRect(0,0,this.canvas.width,this.canvas.height),f){var g={info:1,warning:2,error:3};f.forEach(function(p){p.priority=g[p.type]||null}),f=f.sort(l);for(var m=this.renderer.session.$foldData,S=0;Sthis.canvasHeight&&(x=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(x-this.halfMinDecorationHeight),y=Math.round(x+this.halfMinDecorationHeight)}r.fillStyle=t[f[S].type]||null,r.fillRect(0,E,this.canvasWidth,y-w)}}var $=this.renderer.session.selection.getCursor();if($){var A=this.compensateFoldRows($.row,m),E=Math.round(($.row-A)*this.lineHeight*this.heightRatio);r.fillStyle="rgba(0, 0, 0, 0.5)",r.fillRect(0,E,this.canvasWidth,2)}},this.compensateFoldRows=function(h,t){var n=0;if(t&&t.length>0)for(var r=0;rt[r].start.row&&h=t[r].end.row&&(n+=t[r].end.row-t[r].start.row);return n}}).call(o.prototype),a.Decorator=o}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],function(i,a,v){var c=i("./lib/oop"),d=i("./lib/dom"),u=i("./config"),o=i("./layer/gutter").Gutter,h=i("./layer/marker").Marker,t=i("./layer/text").Text,n=i("./layer/cursor").Cursor,r=i("./scrollbar").HScrollBar,l=i("./scrollbar").VScrollBar,f=i("./scrollbar_custom").HScrollBar,g=i("./scrollbar_custom").VScrollBar,m=i("./renderloop").RenderLoop,S=i("./layer/font_metrics").FontMetrics,k=i("./lib/event_emitter").EventEmitter,A=i("./css/editor.css"),E=i("./layer/decorators").Decorator,w=i("./lib/useragent"),y=w.isIE;d.importCssString(A,"ace_editor.css",!1);var L=function(x,$){var p=this;this.container=x||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme($),u.get("useStrictCSP")==null&&u.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new o(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new h(this.content);var b=this.$textLayer=new t(this.content);this.canvas=b.element,this.$markerFront=new h(this.content),this.$cursorLayer=new n(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new l(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(C){p.$scrollAnimation||p.session.setScrollTop(C.data-p.scrollMargin.top)}),this.scrollBarH.on("scroll",function(C){p.$scrollAnimation||p.session.setScrollLeft(C.data-p.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new S(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(C){p.updateCharacterSize(),p.onResize(!0,p.gutterWidth,p.$size.width,p.$size.height),p._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=!w.isIOS,this.$loop=new m(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),u.resetOptions(this),u._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,c.implement(this,k),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(x){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=x,x&&this.scrollMargin.top&&x.getScrollTop()<=0&&x.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(x),this.$markerBack.setSession(x),this.$markerFront.setSession(x),this.$gutterLayer.setSession(x),this.$textLayer.setSession(x),x&&(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))},this.updateLines=function(x,$,p){if($===void 0&&($=1/0),this.$changedLines?(this.$changedLines.firstRow>x&&(this.$changedLines.firstRow=x),this.$changedLines.lastRow<$&&(this.$changedLines.lastRow=$)):this.$changedLines={firstRow:x,lastRow:$},this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(x){x?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(x,$,p,b){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=x?1:0;var C=this.container;b||(b=C.clientHeight||C.scrollHeight),p||(p=C.clientWidth||C.scrollWidth);var _=this.$updateCachedSize(x,$,p,b);if(!this.$size.scrollerHeight||!p&&!b)return this.resizing=0;x&&(this.$gutterLayer.$padding=null),x?this.$renderChanges(_|this.$changes,!0):this.$loop.schedule(_|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(x,$,p,b){b-=this.$extraHeight||0;var C=0,_=this.$size,M={width:_.width,height:_.height,scrollerHeight:_.scrollerHeight,scrollerWidth:_.scrollerWidth};if(b&&(x||_.height!=b)&&(_.height=b,C|=this.CHANGE_SIZE,_.scrollerHeight=_.height,this.$horizScroll&&(_.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(_.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",C=C|this.CHANGE_SCROLL),p&&(x||_.width!=p)){C|=this.CHANGE_SIZE,_.width=p,$==null&&($=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=$,d.setStyle(this.scrollBarH.element.style,"left",$+"px"),d.setStyle(this.scroller.style,"left",$+this.margin.left+"px"),_.scrollerWidth=Math.max(0,p-$-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",T),d.setStyle(this.scroller.style,"right",T),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(_.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||x)&&(C|=this.CHANGE_FULL)}return _.$dirty=!p||!b,C&&this._signal("resize",M),C},this.onGutterResize=function(x){var $=this.$showGutter?x:0;$!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,$,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()},this.adjustWrapLimit=function(){var x=this.$size.scrollerWidth-this.$padding*2,$=Math.floor(x/this.characterWidth);return this.session.adjustWrapLimit($,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(x){this.setOption("animatedScroll",x)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(x){this.setOption("showInvisibles",x),this.session.$bidiHandler.setShowInvisibles(x)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(x){this.setOption("displayIndentGuides",x)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(x){this.setOption("highlightIndentGuides",x)},this.setShowPrintMargin=function(x){this.setOption("showPrintMargin",x)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(x){this.setOption("printMarginColumn",x)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(x){return this.setOption("showGutter",x)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(x){this.setOption("fadeFoldWidgets",x)},this.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var x=d.createElement("div");x.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",x.appendChild(this.$printMarginEl),this.content.insertBefore(x,this.content.firstChild)}var $=this.$printMarginEl.style;$.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",$.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var x=this.textarea.style,$=this.$composition;if(!this.$keepTextAreaAtCursor&&!$){d.translate(this.textarea,-100,0);return}var p=this.$cursorLayer.$pixelPos;if(p){$&&$.markerRange&&(p=this.$cursorLayer.getPixelPosition($.markerRange.start,!0));var b=this.layerConfig,C=p.top,_=p.left;C-=b.offset;var M=$&&$.useTextareaForIME?this.lineHeight:y?0:1;if(C<0||C>b.height-M){d.translate(this.textarea,0,0);return}var T=1,R=this.$size.height-M;if(!$)C+=this.lineHeight;else if($.useTextareaForIME){var D=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(D)[0]}else C+=this.lineHeight+2;_-=this.scrollLeft,_>this.$size.scrollerWidth-T&&(_=this.$size.scrollerWidth-T),_+=this.gutterWidth+this.margin.left,d.setStyle(x,"height",M+"px"),d.setStyle(x,"width",T+"px"),d.translate(this.textarea,Math.min(_,this.$size.scrollerWidth-T),Math.min(C,R))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var x=this.layerConfig,$=x.lastRow,p=this.session.documentToScreenRow($,0)*x.lineHeight;return p-this.session.getScrollTop()>x.height-x.lineHeight?$-1:$},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(x){this.$padding=x,this.$textLayer.setPadding(x),this.$cursorLayer.setPadding(x),this.$markerFront.setPadding(x),this.$markerBack.setPadding(x),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(x,$,p,b){var C=this.scrollMargin;C.top=x|0,C.bottom=$|0,C.right=b|0,C.left=p|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()},this.setMargin=function(x,$,p,b){var C=this.margin;C.top=x|0,C.bottom=$|0,C.right=b|0,C.left=p|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()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(x){this.setOption("hScrollBarAlwaysVisible",x)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(x){this.setOption("vScrollBarAlwaysVisible",x)},this.$updateScrollBarV=function(){var x=this.layerConfig.maxHeight,$=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(x-=($-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>x-$&&(x=this.scrollTop+$,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(x+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(x,$){if(this.$changes&&(x|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!x&&!$){this.$changes|=x;return}if(this.$size.$dirty)return this.$changes|=x,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",x),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var p=this.layerConfig;if(x&this.CHANGE_FULL||x&this.CHANGE_SIZE||x&this.CHANGE_TEXT||x&this.CHANGE_LINES||x&this.CHANGE_SCROLL||x&this.CHANGE_H_SCROLL){if(x|=this.$computeLayerConfig()|this.$loop.clear(),p.firstRow!=this.layerConfig.firstRow&&p.firstRowScreen==this.layerConfig.firstRowScreen){var b=this.scrollTop+(p.firstRow-this.layerConfig.firstRow)*this.lineHeight;b>0&&(this.scrollTop=b,x=x|this.CHANGE_SCROLL,x|=this.$computeLayerConfig()|this.$loop.clear())}p=this.layerConfig,this.$updateScrollBarV(),x&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-p.offset);var C=p.width+2*this.$padding+"px",_=p.minHeight+"px";d.setStyle(this.content.style,"width",C),d.setStyle(this.content.style,"height",_)}if(x&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-p.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),x&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(p),this.$showGutter&&this.$gutterLayer.update(p),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(p),this.$markerBack.update(p),this.$markerFront.update(p),this.$cursorLayer.update(p),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}if(x&this.CHANGE_SCROLL){this.$changedLines=null,x&this.CHANGE_TEXT||x&this.CHANGE_LINES?this.$textLayer.update(p):this.$textLayer.scrollLines(p),this.$showGutter&&(x&this.CHANGE_GUTTER||x&this.CHANGE_LINES?this.$gutterLayer.update(p):this.$gutterLayer.scrollLines(p)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(p),this.$markerBack.update(p),this.$markerFront.update(p),this.$cursorLayer.update(p),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}x&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(p),this.$showGutter&&this.$gutterLayer.update(p),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(p)):x&this.CHANGE_LINES?((this.$updateLines()||x&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(p),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(p)):x&this.CHANGE_TEXT||x&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(p),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(p)):x&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(p),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(p)),x&this.CHANGE_CURSOR&&(this.$cursorLayer.update(p),this.$moveTextAreaToCursor()),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(p),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(p),this._signal("afterRender",x)},this.$autosize=function(){var x=this.session.getScreenLength()*this.lineHeight,$=this.$maxLines*this.lineHeight,p=Math.min($,Math.max((this.$minLines||1)*this.lineHeight,x))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(p+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&p>this.$maxPixelHeight&&(p=this.$maxPixelHeight);var b=p<=2*this.lineHeight,C=!b&&x>$;if(p!=this.desiredHeight||this.$size.height!=this.desiredHeight||C!=this.$vScroll){C!=this.$vScroll&&(this.$vScroll=C,this.scrollBarV.setVisible(C));var _=this.container.clientWidth;this.container.style.height=p+"px",this.$updateCachedSize(!0,this.$gutterWidth,_,p),this.desiredHeight=p,this._signal("autosize")}},this.$computeLayerConfig=function(){var x=this.session,$=this.$size,p=$.height<=2*this.lineHeight,b=this.session.getScreenLength(),C=b*this.lineHeight,_=this.$getLongestLine(),M=!p&&(this.$hScrollBarAlwaysVisible||$.scrollerWidth-_-2*this.$padding<0),T=this.$horizScroll!==M;T&&(this.$horizScroll=M,this.scrollBarH.setVisible(M));var R=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var D=$.scrollerHeight+this.lineHeight,N=!this.$maxLines&&this.$scrollPastEnd?($.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;C+=N;var B=this.scrollMargin;this.session.setScrollTop(Math.max(-B.top,Math.min(this.scrollTop,C-$.scrollerHeight+B.bottom))),this.session.setScrollLeft(Math.max(-B.left,Math.min(this.scrollLeft,_+2*this.$padding-$.scrollerWidth+B.right)));var W=!p&&(this.$vScrollBarAlwaysVisible||$.scrollerHeight-C+N<0||this.scrollTop>B.top),F=R!==W;F&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var I=this.scrollTop%this.lineHeight,H=Math.ceil(D/this.lineHeight)-1,z=Math.max(0,Math.round((this.scrollTop-I)/this.lineHeight)),V=z+H,K,Z,G=this.lineHeight;z=x.screenToDocumentRow(z,0);var re=x.getFoldLine(z);re&&(z=re.start.row),K=x.documentToScreenRow(z,0),Z=x.getRowLength(z)*G,V=Math.min(x.screenToDocumentRow(V,0),x.getLength()-1),D=$.scrollerHeight+x.getRowLength(V)*G+Z,I=this.scrollTop-K*G;var J=0;return(this.layerConfig.width!=_||T)&&(J=this.CHANGE_H_SCROLL),(T||F)&&(J|=this.$updateCachedSize(!0,this.gutterWidth,$.width,$.height),this._signal("scrollbarVisibilityChanged"),F&&(_=this.$getLongestLine())),this.layerConfig={width:_,padding:this.$padding,firstRow:z,firstRowScreen:K,lastRow:V,lineHeight:G,characterWidth:this.characterWidth,minHeight:D,maxHeight:C,offset:I,gutterOffset:G?Math.max(0,Math.ceil((I+$.height-$.scrollerHeight)/G)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(_-this.$padding),J},this.$updateLines=function(){if(this.$changedLines){var x=this.$changedLines.firstRow,$=this.$changedLines.lastRow;this.$changedLines=null;var p=this.layerConfig;if(!(x>p.lastRow+1)&&!($this.$textLayer.MAX_LINE_LENGTH&&(x=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(x*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(x,$){this.$gutterLayer.addGutterDecoration(x,$)},this.removeGutterDecoration=function(x,$){this.$gutterLayer.removeGutterDecoration(x,$)},this.updateBreakpoints=function(x){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(x){this.$gutterLayer.setAnnotations(x),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(x,$,p){this.scrollCursorIntoView(x,p),this.scrollCursorIntoView($,p)},this.scrollCursorIntoView=function(x,$,p){if(this.$size.scrollerHeight!==0){var b=this.$cursorLayer.getPixelPosition(x),C=b.left,_=b.top,M=p&&p.top||0,T=p&&p.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var R=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;R+M>_?($&&R+M>_+this.lineHeight&&(_-=$*this.$size.scrollerHeight),_===0&&(_=-this.scrollMargin.top),this.session.setScrollTop(_)):R+this.$size.scrollerHeight-T<_+this.lineHeight&&($&&R+this.$size.scrollerHeight-T<_-this.lineHeight&&(_+=$*this.$size.scrollerHeight),this.session.setScrollTop(_+this.lineHeight+T-this.$size.scrollerHeight));var D=this.scrollLeft,N=2*this.layerConfig.characterWidth;C-N=1-this.scrollMargin.top||$>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||x<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||x>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(x,$){var p;if(this.$hasCssTransforms){p={top:0,left:0};var b=this.$fontMetrics.transformCoordinates([x,$]);x=b[1]-this.gutterWidth-this.margin.left,$=b[0]}else p=this.scroller.getBoundingClientRect();var C=x+this.scrollLeft-p.left-this.$padding,_=C/this.characterWidth,M=Math.floor(($+this.scrollTop-p.top)/this.lineHeight),T=this.$blockCursor?Math.floor(_):Math.round(_);return{row:M,column:T,side:_-T>0?1:-1,offsetX:C}},this.screenToTextCoordinates=function(x,$){var p;if(this.$hasCssTransforms){p={top:0,left:0};var b=this.$fontMetrics.transformCoordinates([x,$]);x=b[1]-this.gutterWidth-this.margin.left,$=b[0]}else p=this.scroller.getBoundingClientRect();var C=x+this.scrollLeft-p.left-this.$padding,_=C/this.characterWidth,M=this.$blockCursor?Math.floor(_):Math.round(_),T=Math.floor(($+this.scrollTop-p.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(M,0),C)},this.textToScreenCoordinates=function(x,$){var p=this.scroller.getBoundingClientRect(),b=this.session.documentToScreenPosition(x,$),C=this.$padding+(this.session.$bidiHandler.isBidiRow(b.row,x)?this.session.$bidiHandler.getPosLeft(b.column):Math.round(b.column*this.characterWidth)),_=b.row*this.lineHeight;return{pageX:p.left+C-this.scrollLeft,pageY:p.top+_-this.scrollTop}},this.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},this.showComposition=function(x){this.$composition=x,x.cssText||(x.cssText=this.textarea.style.cssText),x.useTextareaForIME==null&&(x.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):x.markerId=this.session.addMarker(x.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(x){var $=this.session.selection.cursor;this.addToken(x,"composition_placeholder",$.row,$.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var x=this.session.selection.cursor;this.removeExtraToken(x.row,x.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.setGhostText=function(x,$){var p=this.session.selection.cursor,b=$||{row:p.row,column:p.column};this.removeGhostText();var C=x.split(` -`);this.addToken(C[0],"ghost_text",b.row,b.column),this.$ghostText={text:x,position:{row:b.row,column:b.column}},C.length>1&&(this.$ghostTextWidget={text:C.slice(1).join(` -`),row:b.row,column:b.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},this.removeGhostText=function(){if(this.$ghostText){var x=this.$ghostText.position;this.removeExtraToken(x.row,x.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},this.addToken=function(x,$,p,b){var C=this.session;C.bgTokenizer.lines[p]=null;var _={type:$,value:x},M=C.getTokens(p);if(b==null)M.push(_);else for(var T=0,R=0;R"u")return{postMessage:function(){},terminate:function(){}};if(o.get("loadWorkerFromBlob")){var f=h(l),g=window.URL||window.webkitURL,m=g.createObjectURL(f);return new Worker(m)}return new Worker(l)}var n=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(){c.implement(this,u),this.$createWorkerFromOldConfig=function(l,f,g,m,S){if(i.nameToUrl&&!i.toUrl&&(i.toUrl=i.nameToUrl),o.get("packaged")||!i.toUrl)m=m||o.moduleUrl(f,"worker");else{var k=this.$normalizePath;m=m||k(i.toUrl("ace/worker/worker.js",null,"_"));var A={};l.forEach(function(E){A[E]=k(i.toUrl(E,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=t(m),S&&this.send("importScripts",S),this.$worker.postMessage({init:!0,tlns:A,module:f,classname:g}),this.$worker},this.onMessage=function(l){var f=l.data;switch(f.type){case"event":this._signal(f.name,{data:f.data});break;case"call":var g=this.callbacks[f.id];g&&(g(f.data),delete this.callbacks[f.id]);break;case"error":this.reportError(f.data);break;case"log":window.console&&console.log&&console.log.apply(console,f.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return d.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,f){this.$worker.postMessage({command:l,args:f})},this.call=function(l,f,g){if(g){var m=this.callbackId++;this.callbacks[m]=g,f.push(m)}this.send(l,f)},this.emit=function(l,f){try{f.data&&f.data.err&&(f.data.err={message:f.data.err.message,stack:f.data.err.stack,code:f.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:f.data}})}catch(g){console.error(g.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(n.prototype);var r=function(l,f,g){var m=null,S=!1,k=Object.create(u),A=[],E=new n({messageBuffer:A,terminate:function(){},postMessage:function(y){A.push(y),m&&(S?setTimeout(w):w())}});E.setEmitSync=function(y){S=y};var w=function(){var y=A.shift();y.command?m[y.command].apply(m,y.args):y.event&&k._signal(y.event,y.data)};return k.postMessage=function(y){E.onMessage({data:y})},k.callback=function(y,L){this.postMessage({type:"call",id:L,data:y})},k.emit=function(y,L){this.postMessage({type:"event",name:y,data:L})},o.loadModule(["worker",f],function(y){for(m=new y[g](k);A.length;)w()}),E};a.UIWorkerClient=r,a.WorkerClient=n,a.createWorker=t}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(i,a,v){var c=i("./range").Range,d=i("./lib/event_emitter").EventEmitter,u=i("./lib/oop"),o=function(h,t,n,r,l,f){var g=this;this.length=t,this.session=h,this.doc=h.getDocument(),this.mainClass=l,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=n;var m=h.getUndoManager().$undoStack||h.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=m.length,this.setup(),h.selection.on("changeCursor",this.$onCursorChange)};(function(){u.implement(this,d),this.setup=function(){var h=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=n.addMarker(new c(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(l){var f=t.createAnchor(l.row,l.column);f.$insertRight=!0,f.detach(),h.others.push(f)}),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var h=this.session,t=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=h.addMarker(new c(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var h=0;h=this.pos.column&&t.start.column<=this.pos.column+this.length+1,l=t.start.column-this.pos.column;if(this.updateAnchors(h),r&&(this.length+=n),r&&!this.session.$fromUndo){if(h.action==="insert")for(var f=this.others.length-1;f>=0;f--){var g=this.others[f],m={row:g.row,column:g.column+l};this.doc.insertMergedLines(m,h.lines)}else if(h.action==="remove")for(var f=this.others.length-1;f>=0;f--){var g=this.others[f],m={row:g.row,column:g.column+l};this.doc.remove(new c(m.row,m.column,m.row,m.column-n))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(h){this.pos.onChange(h);for(var t=this.others.length;t--;)this.others[t].onChange(h);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var h=this,t=this.session,n=function(l,f){t.removeMarker(l.markerId),l.markerId=t.addMarker(new c(l.row,l.column,l.row,l.column+h.length),f,null,!1)};n(this.pos,this.mainClass);for(var r=this.others.length;r--;)n(this.others[r],this.othersClass)}},this.onCursorChange=function(h){if(!(this.$updating||!this.session)){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",h)):(this.hideOtherMarkers(),this._emit("cursorLeave",h))}},this.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},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var h=this.session.getUndoManager(),t=(h.$undoStack||h.$undostack).length-this.$undoStackDepth,n=0;n1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],a.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var c=i("../keyboard/hash_handler").HashHandler;a.keyboardHandler=new c(a.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(i,a,v){var c=i("./range_list").RangeList,d=i("./range").Range,u=i("./selection").Selection,o=i("./mouse/multi_select_handler").onMouseDown,h=i("./lib/event"),t=i("./lib/lang"),n=i("./commands/multi_select_commands");a.commands=n.defaultCommands.concat(n.multiSelectCommands);var r=i("./search").Search,l=new r;function f(E,w,y){return l.$options.wrap=!0,l.$options.needle=w,l.$options.backwards=y==-1,l.find(E)}var g=i("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(E,w){if(E){if(!this.inMultiSelectMode&&this.rangeCount===0){var y=this.toOrientedRange();if(this.rangeList.add(y),this.rangeList.add(E),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),w||this.fromOrientedRange(E);this.rangeList.removeAll(),this.rangeList.add(y),this.$onAddRange(y)}E.cursor||(E.cursor=E.end);var L=this.rangeList.add(E);return this.$onAddRange(E),L.length&&this.$onRemoveRange(L),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(E)}},this.toSingleRange=function(E){E=E||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),E&&this.fromOrientedRange(E)},this.substractPoint=function(E){var w=this.rangeList.substractPoint(E);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var E=this.rangeList.merge();E.length&&this.$onRemoveRange(E)},this.$onAddRange=function(E){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(E),this._signal("addRange",{range:E})},this.$onRemoveRange=function(E){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();E.push(w),this.rangeCount=0}for(var y=E.length;y--;){var L=this.ranges.indexOf(E[y]);this.ranges.splice(L,1)}this._signal("removeRange",{ranges:E}),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 c,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var E=this.ranges.length?this.ranges:[this.getRange()],w=[],y=0;y1){var E=this.rangeList.ranges,w=E[E.length-1],y=d.fromPoints(E[0].start,w.end);this.toSingleRange(),this.setSelectionRange(y,w.cursor==w.start)}else{var L=this.session.documentToScreenPosition(this.cursor),x=this.session.documentToScreenPosition(this.anchor),$=this.rectangularRangeBlock(L,x);$.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(E,w,y){var L=[],x=E.column0;)B--;if(B>0)for(var W=0;L[W].isEmpty();)W++;for(var F=B;F>=W;F--)L[F].isEmpty()&&L.splice(F,1)}return L}}.call(u.prototype);var m=i("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(E){E.cursor||(E.cursor=E.end);var w=this.getSelectionStyle();return E.marker=this.session.addMarker(E,"ace_selection",w),this.session.$selectionMarkers.push(E),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,E},this.removeSelectionMarker=function(E){if(E.marker){this.session.removeMarker(E.marker);var w=this.session.$selectionMarkers.indexOf(E);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(E){for(var w=this.session.$selectionMarkers,y=E.length;y--;){var L=E[y];if(L.marker){this.session.removeMarker(L.marker);var x=w.indexOf(L);x!=-1&&w.splice(x,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(E){this.addSelectionMarker(E.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(E){this.removeSelectionMarkers(E.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(E){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(n.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(E){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(n.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(E){var w=E.command,y=E.editor;if(y.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?L=y.forEachSelection(w,E.args):w.multiSelectAction=="forEachLine"?L=y.forEachSelection(w,E.args,!0):w.multiSelectAction=="single"?(y.exitMultiSelectMode(),L=w.exec(y,E.args||{})):L=w.multiSelectAction(y,E.args||{});else{var L=w.exec(y,E.args||{});y.multiSelect.addRange(y.multiSelect.toOrientedRange()),y.multiSelect.mergeOverlappingRanges()}return L}},this.forEachSelection=function(E,w,y){if(!this.inVirtualSelectionMode){var L=y&&y.keepOrder,x=y==!0||y&&y.$byLines,$=this.session,p=this.selection,b=p.rangeList,C=(L?p:b).ranges,_;if(!C.length)return E.exec?E.exec(this,w||{}):E(this,w||{});var M=p._eventRegistry;p._eventRegistry={};var T=new u($);this.inVirtualSelectionMode=!0;for(var R=C.length;R--;){if(x)for(;R>0&&C[R].start.row==C[R-1].end.row;)R--;T.fromOrientedRange(C[R]),T.index=R,this.selection=$.selection=T;var D=E.exec?E.exec(this,w||{}):E(this,w||{});!_&&D!==void 0&&(_=D),T.toOrientedRange(C[R])}T.detach(),this.selection=$.selection=p,this.inVirtualSelectionMode=!1,p._eventRegistry=M,p.mergeOverlappingRanges(),p.ranges[0]&&p.fromOrientedRange(p.ranges[0]);var N=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),N&&N.from==N.to&&this.renderer.animateScrolling(N.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var E="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,y=[],L=0;L0);p<0&&(p=0),b>=_&&(b=_-1)}var T=this.session.removeFullLines(p,b);T=this.$reAlignText(T,C),this.session.insert({row:p,column:0},T.join(` -`)+` -`),C||($.start.column=0,$.end.column=T[T.length-1].length),this.selection.setRange($)}else{x.forEach(function(B){w.substractPoint(B.cursor)});var R=0,D=1/0,N=y.map(function(B){var W=B.cursor,F=E.getLine(W.row),I=F.substr(W.column).search(/\S/g);return I==-1&&(I=0),W.column>R&&(R=W.column),IH?E.insert(F,t.stringRepeat(" ",I-H)):E.remove(new d(F.row,F.column,F.row,F.column-I+H)),B.start.column=B.end.column=R,B.start.row=B.end.row=F.row,B.cursor=B.end}),w.fromOrientedRange(y[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(E,w){var y=!0,L=!0,x,$,p;return E.map(function(T){var R=T.match(/(\s*)(.*?)(\s*)([=:].*)/);return R?x==null?(x=R[1].length,$=R[2].length,p=R[3].length,R):(x+$+p!=R[1].length+R[2].length+R[3].length&&(L=!1),x!=R[1].length&&(y=!1),x>R[1].length&&(x=R[1].length),$R[3].length&&(p=R[3].length),R):[T]}).map(w?C:y?L?_:C:M);function b(T){return t.stringRepeat(" ",T)}function C(T){return T[2]?b(x)+T[2]+b($-T[2].length+p)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function _(T){return T[2]?b(x+$-T[2].length)+T[2]+b(p)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function M(T){return T[2]?b(x)+T[2]+b(p)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}}}).call(m.prototype);function S(E,w){return E.row==w.row&&E.column==w.column}a.onSessionChange=function(E){var w=E.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var y=E.oldSession;y&&(y.multiSelect.off("addRange",this.$onAddRange),y.multiSelect.off("removeRange",this.$onRemoveRange),y.multiSelect.off("multiSelect",this.$onMultiSelect),y.multiSelect.off("singleSelect",this.$onSingleSelect),y.multiSelect.lead.off("change",this.$checkMultiselectChange),y.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 k(E){E.$multiselectOnSessionChange||(E.$onAddRange=E.$onAddRange.bind(E),E.$onRemoveRange=E.$onRemoveRange.bind(E),E.$onMultiSelect=E.$onMultiSelect.bind(E),E.$onSingleSelect=E.$onSingleSelect.bind(E),E.$multiselectOnSessionChange=a.onSessionChange.bind(E),E.$checkMultiselectChange=E.$checkMultiselectChange.bind(E),E.$multiselectOnSessionChange(E),E.on("changeSession",E.$multiselectOnSessionChange),E.on("mousedown",o),E.commands.addCommands(n.defaultCommands),A(E))}function A(E){if(!E.textInput)return;var w=E.textInput.getElement(),y=!1;h.addListener(w,"keydown",function(x){var $=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.metaKey);E.$blockSelectEnabled&&$?y||(E.renderer.setMouseCursor("crosshair"),y=!0):y&&L()},E),h.addListener(w,"keyup",L,E),h.addListener(w,"blur",L,E);function L(x){y&&(E.renderer.setMouseCursor(""),y=!1)}}a.MultiSelect=k,i("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(E){k(this),E?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",o)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",o))},value:!0},enableBlockSelect:{set:function(E){this.$blockSelectEnabled=E},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(i,a,v){var c=i("../../range").Range,d=a.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(u,o,h){var t=u.getLine(h);return this.foldingStartMarker.test(t)?"start":o=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(u,o,h){return null},this.indentationBlock=function(u,o,h){var t=/\S/,n=u.getLine(o),r=n.search(t);if(r!=-1){for(var l=h||n.length,f=u.getLength(),g=o,m=o;++og){var A=u.getLine(m).length;return new c(g,l,m,A)}}},this.openingBracketBlock=function(u,o,h,t,n){var r={row:h,column:t+1},l=u.$findClosingBracket(o,r,n);if(l){var f=u.foldWidgets[l.row];return f==null&&(f=u.getFoldWidget(l.row)),f=="start"&&l.row>r.row&&(l.row--,l.column=u.getLine(l.row).length),c.fromPoints(r,l)}},this.closingBracketBlock=function(u,o,h,t,n){var r={row:h,column:t},l=u.$findOpeningBracket(o,r);if(l)return l.column++,r.column--,c.fromPoints(l,r)}}).call(d.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(i,a,v){var c=i("../line_widgets").LineWidgets,d=i("../lib/dom"),u=i("../range").Range;function o(t,n,r){for(var l=0,f=t.length-1;l<=f;){var g=l+f>>1,m=r(n,t[g]);if(m>0)l=g+1;else if(m<0)f=g-1;else return g}return-(l+1)}function h(t,n,r){var l=t.getAnnotations().sort(u.comparePoints);if(l.length){var f=o(l,{row:n,column:-1},u.comparePoints);f<0&&(f=-f-1),f>=l.length?f=r>0?0:l.length-1:f===0&&r<0&&(f=l.length-1);var g=l[f];if(!(!g||!r)){if(g.row===n){do g=l[f+=r];while(g&&g.row===n);if(!g)return l.slice()}var m=[];n=g.row;do m[r<0?"unshift":"push"](g),g=l[f+=r];while(g&&g.row==n);return m.length&&m}}}a.showErrorMarker=function(t,n){var r=t.session;r.widgetManager||(r.widgetManager=new c(r),r.widgetManager.attach(t));var l=t.getCursorPosition(),f=l.row,g=r.widgetManager.getWidgetsAtRow(f).filter(function(x){return x.type=="errorMarker"})[0];g?g.destroy():f-=n;var m=h(r,f,n),S;if(m){var k=m[0];l.column=(k.pos&&typeof k.column!="number"?k.pos.sc:k.column)||0,l.row=k.row,S=t.renderer.$gutterLayer.$annotations[l.row]}else{if(g)return;S={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(l.row),t.selection.moveToPosition(l);var A={row:l.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},E=A.el.appendChild(d.createElement("div")),w=A.el.appendChild(d.createElement("div"));w.className="error_widget_arrow "+S.className;var y=t.renderer.$cursorLayer.getPixelPosition(l).left;w.style.left=y+t.renderer.gutterWidth-5+"px",A.el.className="error_widget_wrapper",E.className="error_widget "+S.className,E.innerHTML=S.text.join("
"),E.appendChild(d.createElement("div"));var L=function(x,$,p){if($===0&&(p==="esc"||p==="return"))return A.destroy(),{command:"null"}};A.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(L),r.widgetManager.removeLineWidget(A),t.off("changeSelection",A.destroy),t.off("changeSession",A.destroy),t.off("mouseup",A.destroy),t.off("change",A.destroy))},t.keyBinding.addKeyboardHandler(L),t.on("changeSelection",A.destroy),t.on("changeSession",A.destroy),t.on("mouseup",A.destroy),t.on("change",A.destroy),t.session.widgetManager.addLineWidget(A),A.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:A.el.offsetHeight})},d.importCssString(` - .error_widget_wrapper { - background: inherit; - color: inherit; - border:none - } - .error_widget { - border-top: solid 2px; - border-bottom: solid 2px; - margin: 5px 0; - padding: 10px 40px; - white-space: pre-wrap; - } - .error_widget.ace_error, .error_widget_arrow.ace_error{ - border-color: #ff5a5a - } - .error_widget.ace_warning, .error_widget_arrow.ace_warning{ - border-color: #F1D817 - } - .error_widget.ace_info, .error_widget_arrow.ace_info{ - border-color: #5a5a5a - } - .error_widget.ace_ok, .error_widget_arrow.ace_ok{ - border-color: #5aaa5a - } - .error_widget_arrow { - position: absolute; - border: solid 5px; - border-top-color: transparent!important; - border-right-color: transparent!important; - border-left-color: transparent!important; - top: -5px; - } -`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","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(i,a,v){i("./loader_build")(a);var c=i("./lib/dom"),d=i("./lib/event"),u=i("./range").Range,o=i("./editor").Editor,h=i("./edit_session").EditSession,t=i("./undomanager").UndoManager,n=i("./virtual_renderer").VirtualRenderer;i("./worker/worker_client"),i("./keyboard/hash_handler"),i("./placeholder"),i("./multi_select"),i("./mode/folding/fold_mode"),i("./theme/textmate"),i("./ext/error_marker"),a.config=i("./config"),a.edit=function(r,l){if(typeof r=="string"){var f=r;if(r=document.getElementById(f),!r)throw new Error("ace.edit can't find div #"+f)}if(r&&r.env&&r.env.editor instanceof o)return r.env.editor;var g="";if(r&&/input|textarea/i.test(r.tagName)){var m=r;g=m.value,r=c.createElement("pre"),m.parentNode.replaceChild(r,m)}else r&&(g=r.textContent,r.innerHTML="");var S=a.createEditSession(g),k=new o(new n(r),S,l),A={document:S,editor:k,onResize:k.resize.bind(k,null)};return m&&(A.textarea=m),d.addListener(window,"resize",A.onResize),k.on("destroy",function(){d.removeListener(window,"resize",A.onResize),A.editor.container.env=null}),k.container.env=k.env=A,k},a.createEditSession=function(r,l){var f=new h(r,l);return f.setUndoManager(new t),f},a.Range=u,a.Editor=o,a.EditSession=h,a.UndoManager=t,a.VirtualRenderer=n,a.version=a.config.version}),function(){ace.require(["ace/ace"],function(i){i&&(i.config.init(!0),i.define=ace.define),window.ace||(window.ace=i);for(var a in i)i.hasOwnProperty(a)&&(window.ace[a]=i[a]);window.ace.default=window.ace,e&&(e.exports=window.ace)})}()})(Ph);const fn="/request-docs/_astro/worker-json.bba8ee7e.js";var Kt={},Rr={},pe={},Dh={get exports(){return pe},set exports(e){pe=e}},Nh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Bh=Nh,Hh=Bh;function Do(){}function No(){}No.resetWarningCache=Do;var Wh=function(){function e(a,v,c,d,u,o){if(o!==Hh){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}e.isRequired=e;function s(){return e}var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:s,element:e,elementType:e,instanceOf:s,node:e,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:No,resetWarningCache:Do};return i.PropTypes=i,i};Dh.exports=Wh();var cn={},jh={get exports(){return cn},set exports(e){cn=e}};(function(e,s){var i=200,a="__lodash_hash_undefined__",v=1,c=2,d=9007199254740991,u="[object Arguments]",o="[object Array]",h="[object AsyncFunction]",t="[object Boolean]",n="[object Date]",r="[object Error]",l="[object Function]",f="[object GeneratorFunction]",g="[object Map]",m="[object Number]",S="[object Null]",k="[object Object]",A="[object Promise]",E="[object Proxy]",w="[object RegExp]",y="[object Set]",L="[object String]",x="[object Symbol]",$="[object Undefined]",p="[object WeakMap]",b="[object ArrayBuffer]",C="[object DataView]",_="[object Float32Array]",M="[object Float64Array]",T="[object Int8Array]",R="[object Int16Array]",D="[object Int32Array]",N="[object Uint8Array]",B="[object Uint8ClampedArray]",W="[object Uint16Array]",F="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,V={};V[_]=V[M]=V[T]=V[R]=V[D]=V[N]=V[B]=V[W]=V[F]=!0,V[u]=V[o]=V[b]=V[t]=V[C]=V[n]=V[r]=V[l]=V[g]=V[m]=V[k]=V[w]=V[y]=V[L]=V[p]=!1;var K=typeof De=="object"&&De&&De.Object===Object&&De,Z=typeof self=="object"&&self&&self.Object===Object&&self,G=K||Z||Function("return this")(),re=s&&!s.nodeType&&s,J=re&&!0&&e&&!e.nodeType&&e,te=J&&J.exports===re,ge=te&&K.process,me=function(){try{return ge&&ge.binding&&ge.binding("util")}catch{}}(),ie=me&&me.isTypedArray;function q(P,j){for(var Q=-1,ae=P==null?0:P.length,Me=0,ye=[];++Q-1}function yl(P,j){var Q=this.__data__,ae=vn(Q,P);return ae<0?(++this.size,Q.push([P,j])):Q[ae][1]=j,this}pt.prototype.clear=ml,pt.prototype.delete=vl,pt.prototype.get=wl,pt.prototype.has=bl,pt.prototype.set=yl;function Rt(P){var j=-1,Q=P==null?0:P.length;for(this.clear();++jze))return!1;var Ie=ye.get(P);if(Ie&&ye.get(j))return Ie==j;var Qe=-1,lt=!0,Ge=Q&c?new mn:void 0;for(ye.set(P,j),ye.set(j,P);++Qe-1&&P%1==0&&P-1&&P%1==0&&P<=d}function ss(P){var j=typeof P;return P!=null&&(j=="object"||j=="function")}function nn(P){return P!=null&&typeof P=="object"}var os=ie?we(ie):Dl;function Jl(P){return Xl(P)?Ol(P):Nl(P)}function Zl(){return[]}function ql(){return!1}e.exports=Ql})(jh,cn);var ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.getAceInstance=ct.debounce=ct.editorEvents=ct.editorOptions=void 0;var zh=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];ct.editorOptions=zh;var Uh=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];ct.editorEvents=Uh;var Vh=function(){var e;return typeof window>"u"?(De.window={},e=Gt,delete De.window):window.ace?(e=window.ace,e.acequire=window.ace.require||window.ace.acequire):e=Gt,e};ct.getAceInstance=Vh;var Gh=function(e,s){var i=null;return function(){var a=this,v=arguments;clearTimeout(i),i=setTimeout(function(){e.apply(a,v)},s)}};ct.debounce=Gh;var Kh=De&&De.__extends||function(){var e=function(s,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,v){a.__proto__=v}||function(a,v){for(var c in v)Object.prototype.hasOwnProperty.call(v,c)&&(a[c]=v[c])},e(s,i)};return function(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(s,i);function a(){this.constructor=s}s.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),ur=De&&De.__assign||function(){return ur=Object.assign||function(e){for(var s,i=1,a=arguments.length;i0&&this.handleMarkers(y);var p=this.editor.$options;jt.editorOptions.forEach(function(b){p.hasOwnProperty(b)?i.editor.setOption(b,i.props[b]):i.props[b]&&console.warn("ReactAce: editor option ".concat(b," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(E)&&E.forEach(function(b){typeof b.exec=="string"?i.editor.commands.bindKey(b.bindKey,b.exec):i.editor.commands.addCommand(b)}),k&&this.editor.setKeyboardHandler("ace/keyboard/"+k),v&&(this.refEditor.className+=" "+v),A&&A(this.editor),this.editor.resize(),o&&this.editor.focus()},s.prototype.componentDidUpdate=function(i){for(var a=i,v=this.props,c=0;c 0!";if(n!=this.$splits){if(n>this.$splits){for(;this.$splitsn;)r=this.$editors[this.$splits-1],this.$container.removeChild(r.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(n){return this.$editors[n]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(n){this.$editors.forEach(function(r){r.setTheme(n)})},this.setKeyboardHandler=function(n){this.$editors.forEach(function(r){r.setKeyboardHandler(n)})},this.forEach=function(n,r){this.$editors.forEach(n,r)},this.$fontSize="",this.setFontSize=function(n){this.$fontSize=n,this.forEach(function(r){r.setFontSize(n)})},this.$cloneSession=function(n){var r=new h(n.getDocument(),n.getMode()),l=n.getUndoManager();return r.setUndoManager(l),r.setTabSize(n.getTabSize()),r.setUseSoftTabs(n.getUseSoftTabs()),r.setOverwrite(n.getOverwrite()),r.setBreakpoints(n.getBreakpoints()),r.setUseWrapMode(n.getUseWrapMode()),r.setUseWorker(n.getUseWorker()),r.setWrapLimitRange(n.$wrapLimitRange.min,n.$wrapLimitRange.max),r.$foldData=n.$cloneFoldData(),r},this.setSession=function(n,r){var l;r==null?l=this.$cEditor:l=this.$editors[r];var f=this.$editors.some(function(g){return g.session===n});return f&&(n=this.$cloneSession(n)),l.setSession(n),n},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(n){this.$orientation!=n&&(this.$orientation=n,this.resize())},this.resize=function(){var n=this.$container.clientWidth,r=this.$container.clientHeight,l;if(this.$orientation==this.BESIDE)for(var f=n/this.$splits,g=0;g-1}function Ef(e,s){var i=this.__data__,a=mi(i,e);return a<0?i.push([e,s]):i[a][1]=s,this}Yt.prototype.clear=kf;Yt.prototype.delete=Cf;Yt.prototype.get=$f;Yt.prototype.has=Af;Yt.prototype.set=Ef;function Bt(e){var s=-1,i=e?e.length:0;for(this.clear();++s0&&i.handleMarkers(N,C);for(var M=0;M"u"&&(this.Diff_Timeout<=0?o=Number.MAX_VALUE:o=new Date().getTime()+this.Diff_Timeout*1e3);var h=o;if(c==null||d==null)throw new Error("Null input. (diff_main)");if(c==d)return c?[new s.Diff(v,c)]:[];typeof u>"u"&&(u=!0);var t=u,n=this.diff_commonPrefix(c,d),r=c.substring(0,n);c=c.substring(n),d=d.substring(n),n=this.diff_commonSuffix(c,d);var l=c.substring(c.length-n);c=c.substring(0,c.length-n),d=d.substring(0,d.length-n);var f=this.diff_compute_(c,d,t,h);return r&&f.unshift(new s.Diff(v,r)),l&&f.push(new s.Diff(v,l)),this.diff_cleanupMerge(f),f},s.prototype.diff_compute_=function(c,d,u,o){var h;if(!c)return[new s.Diff(a,d)];if(!d)return[new s.Diff(i,c)];var t=c.length>d.length?c:d,n=c.length>d.length?d:c,r=t.indexOf(n);if(r!=-1)return h=[new s.Diff(a,t.substring(0,r)),new s.Diff(v,n),new s.Diff(a,t.substring(r+n.length))],c.length>d.length&&(h[0][0]=h[2][0]=i),h;if(n.length==1)return[new s.Diff(i,c),new s.Diff(a,d)];var l=this.diff_halfMatch_(c,d);if(l){var f=l[0],g=l[1],m=l[2],S=l[3],k=l[4],A=this.diff_main(f,m,u,o),E=this.diff_main(g,S,u,o);return A.concat([new s.Diff(v,k)],E)}return u&&c.length>100&&d.length>100?this.diff_lineMode_(c,d,o):this.diff_bisect_(c,d,o)},s.prototype.diff_lineMode_=function(c,d,u){var o=this.diff_linesToChars_(c,d);c=o.chars1,d=o.chars2;var h=o.lineArray,t=this.diff_main(c,d,!1,u);this.diff_charsToLines_(t,h),this.diff_cleanupSemantic(t),t.push(new s.Diff(v,""));for(var n=0,r=0,l=0,f="",g="";n=1&&l>=1){t.splice(n-r-l,r+l),n=n-r-l;for(var m=this.diff_main(f,g,!1,u),S=m.length-1;S>=0;S--)t.splice(n,0,m[S]);n=n+m.length}l=0,r=0,f="",g="";break}n++}return t.pop(),t},s.prototype.diff_bisect_=function(c,d,u){for(var o=c.length,h=d.length,t=Math.ceil((o+h)/2),n=t,r=2*t,l=new Array(r),f=new Array(r),g=0;gu);y++){for(var L=-y+k;L<=y-A;L+=2){var x=n+L,$;L==-y||L!=y&&l[x-1]o)A+=2;else if(p>h)k+=2;else if(S){var b=n+m-L;if(b>=0&&b=C)return this.diff_bisectSplit_(c,d,$,p,u)}}}for(var _=-y+E;_<=y-w;_+=2){var b=n+_,C;_==-y||_!=y&&f[b-1]o)w+=2;else if(M>h)E+=2;else if(!S){var x=n+m-_;if(x>=0&&x=C)return this.diff_bisectSplit_(c,d,$,p,u)}}}}return[new s.Diff(i,c),new s.Diff(a,d)]},s.prototype.diff_bisectSplit_=function(c,d,u,o,h){var t=c.substring(0,u),n=d.substring(0,o),r=c.substring(u),l=d.substring(o),f=this.diff_main(t,n,!1,h),g=this.diff_main(r,l,!1,h);return f.concat(g)},s.prototype.diff_linesToChars_=function(c,d){var u=[],o={};u[0]="";function h(l){for(var f="",g=0,m=-1,S=u.length;mo?c=c.substring(u-o):ud.length?c:d,o=c.length>d.length?d:c;if(u.length<4||o.length*2=A.length?[$,p,b,C,x]:null}var n=t(u,o,Math.ceil(u.length/4)),r=t(u,o,Math.ceil(u.length/2)),l;if(!n&&!r)return null;r?n?l=n[4].length>r[4].length?n:r:l=r:l=n;var f,g,m,S;c.length>d.length?(f=l[0],g=l[1],m=l[2],S=l[3]):(m=l[0],S=l[1],f=l[2],g=l[3]);var k=l[4];return[f,g,m,S,k]},s.prototype.diff_cleanupSemantic=function(c){for(var d=!1,u=[],o=0,h=null,t=0,n=0,r=0,l=0,f=0;t0?u[o-1]:-1,n=0,r=0,l=0,f=0,h=null,d=!0)),t++;for(d&&this.diff_cleanupMerge(c),this.diff_cleanupSemanticLossless(c),t=1;t=k?(S>=g.length/2||S>=m.length/2)&&(c.splice(t,0,new s.Diff(v,m.substring(0,S))),c[t-1][1]=g.substring(0,g.length-S),c[t+1][1]=m.substring(S),t++):(k>=g.length/2||k>=m.length/2)&&(c.splice(t,0,new s.Diff(v,g.substring(0,k))),c[t-1][0]=a,c[t-1][1]=m.substring(0,m.length-k),c[t+1][0]=i,c[t+1][1]=g.substring(k),t++),t++}t++}},s.prototype.diff_cleanupSemanticLossless=function(c){function d(k,A){if(!k||!A)return 6;var E=k.charAt(k.length-1),w=A.charAt(0),y=E.match(s.nonAlphaNumericRegex_),L=w.match(s.nonAlphaNumericRegex_),x=y&&E.match(s.whitespaceRegex_),$=L&&w.match(s.whitespaceRegex_),p=x&&E.match(s.linebreakRegex_),b=$&&w.match(s.linebreakRegex_),C=p&&k.match(s.blanklineEndRegex_),_=b&&A.match(s.blanklineStartRegex_);return C||_?5:p||b?4:y&&!x&&$?3:x||$?2:y||L?1:0}for(var u=1;u=m&&(m=S,l=o,f=h,g=t)}c[u-1][1]!=l&&(l?c[u-1][1]=l:(c.splice(u-1,1),u--),c[u][1]=f,g?c[u+1][1]=g:(c.splice(u+1,1),u--))}u++}},s.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,s.whitespaceRegex_=/\s/,s.linebreakRegex_=/[\r\n]/,s.blanklineEndRegex_=/\n\r?\n$/,s.blanklineStartRegex_=/^\r?\n\r?\n/,s.prototype.diff_cleanupEfficiency=function(c){for(var d=!1,u=[],o=0,h=null,t=0,n=!1,r=!1,l=!1,f=!1;t0?u[o-1]:-1,l=f=!1),d=!0)),t++;d&&this.diff_cleanupMerge(c)},s.prototype.diff_cleanupMerge=function(c){c.push(new s.Diff(v,""));for(var d=0,u=0,o=0,h="",t="",n;d1?(u!==0&&o!==0&&(n=this.diff_commonPrefix(t,h),n!==0&&(d-u-o>0&&c[d-u-o-1][0]==v?c[d-u-o-1][1]+=t.substring(0,n):(c.splice(0,0,new s.Diff(v,t.substring(0,n))),d++),t=t.substring(n),h=h.substring(n)),n=this.diff_commonSuffix(t,h),n!==0&&(c[d][1]=t.substring(t.length-n)+c[d][1],t=t.substring(0,t.length-n),h=h.substring(0,h.length-n))),d-=u+o,c.splice(d,u+o),h.length&&(c.splice(d,0,new s.Diff(i,h)),d++),t.length&&(c.splice(d,0,new s.Diff(a,t)),d++),d++):d!==0&&c[d-1][0]==v?(c[d-1][1]+=c[d][1],c.splice(d,1)):d++,o=0,u=0,h="",t="";break}c[c.length-1][1]===""&&c.pop();var r=!1;for(d=1;dd));n++)h=u,t=o;return c.length!=n&&c[n][0]===i?t:t+(d-h)},s.prototype.diff_prettyHtml=function(c){for(var d=[],u=/&/g,o=//g,t=/\n/g,n=0;n");switch(r){case a:d[n]=''+f+"";break;case i:d[n]=''+f+"";break;case v:d[n]=""+f+"";break}}return d.join("")},s.prototype.diff_text1=function(c){for(var d=[],u=0;uthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(d),h=this;function t($,p){var b=$/d.length,C=Math.abs(u-p);return h.Match_Distance?b+C/h.Match_Distance:C?1:b}var n=this.Match_Threshold,r=c.indexOf(d,u);r!=-1&&(n=Math.min(t(0,r),n),r=c.lastIndexOf(d,u+d.length),r!=-1&&(n=Math.min(t(0,r),n)));var l=1<=A;y--){var L=o[c.charAt(y-1)];if(k===0?w[y]=(w[y+1]<<1|1)&L:w[y]=(w[y+1]<<1|1)&L|((S[y+1]|S[y])<<1|1)|S[y+1],w[y]&l){var x=t(k,y-1);if(x<=n)if(n=x,r=y-1,r>u)A=Math.max(1,2*u-r);else break}}if(t(k+1,u)>n)break;S=w}return r},s.prototype.match_alphabet_=function(c){for(var d={},u=0;u"u")o=c,h=this.diff_main(o,d,!0),h.length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(c&&typeof c=="object"&&typeof d>"u"&&typeof u>"u")h=c,o=this.diff_text1(h);else if(typeof c=="string"&&d&&typeof d=="object"&&typeof u>"u")o=c,h=d;else if(typeof c=="string"&&typeof d=="string"&&u&&typeof u=="object")o=c,h=u;else throw new Error("Unknown call format to patch_make.");if(h.length===0)return[];for(var t=[],n=new s.patch_obj,r=0,l=0,f=0,g=o,m=o,S=0;S=2*this.Patch_Margin&&r&&(this.patch_addContext_(n,g),t.push(n),n=new s.patch_obj,r=0,g=m,l=f);break}k!==a&&(l+=A.length),k!==i&&(f+=A.length)}return r&&(this.patch_addContext_(n,g),t.push(n)),t},s.prototype.patch_deepCopy=function(c){for(var d=[],u=0;uthis.Match_MaxBits?(l=this.match_main(d,r.substring(0,this.Match_MaxBits),n),l!=-1&&(f=this.match_main(d,r.substring(r.length-this.Match_MaxBits),n+r.length-this.Match_MaxBits),(f==-1||l>=f)&&(l=-1))):l=this.match_main(d,r,n),l==-1)h[t]=!1,o-=c[t].length2-c[t].length1;else{h[t]=!0,o=l-n;var g;if(f==-1?g=d.substring(l,l+r.length):g=d.substring(l,f+this.Match_MaxBits),r==g)d=d.substring(0,l)+this.diff_text2(c[t].diffs)+d.substring(l+r.length);else{var m=this.diff_main(r,g,!1);if(r.length>this.Match_MaxBits&&this.diff_levenshtein(m)/r.length>this.Patch_DeleteThreshold)h[t]=!1;else{this.diff_cleanupSemanticLossless(m);for(var S=0,k,A=0;At[0][1].length){var n=d-t[0][1].length;t[0][1]=u.substring(t[0][1].length)+t[0][1],h.start1-=n,h.start2-=n,h.length1+=n,h.length2+=n}if(h=c[c.length-1],t=h.diffs,t.length==0||t[t.length-1][0]!=v)t.push(new s.Diff(v,u)),h.length1+=d,h.length2+=d;else if(d>t[t.length-1][1].length){var n=d-t[t.length-1][1].length;t[t.length-1][1]+=u.substring(0,n),h.length1+=n,h.length2+=n}return u},s.prototype.patch_splitMax=function(c){for(var d=this.Match_MaxBits,u=0;u2*d?(r.length1+=g.length,h+=g.length,l=!1,r.diffs.push(new s.Diff(f,g)),o.diffs.shift()):(g=g.substring(0,d-r.length1-this.Patch_Margin),r.length1+=g.length,h+=g.length,f===v?(r.length2+=g.length,t+=g.length):l=!1,r.diffs.push(new s.Diff(f,g)),g==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(g.length))}n=this.diff_text2(r.diffs),n=n.substring(n.length-this.Patch_Margin);var m=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);m!==""&&(r.length1+=m.length,r.length2+=m.length,r.diffs.length!==0&&r.diffs[r.diffs.length-1][0]===v?r.diffs[r.diffs.length-1][1]+=m:r.diffs.push(new s.Diff(v,m))),l||c.splice(++u,0,r)}}},s.prototype.patch_toText=function(c){for(var d=[],u=0;uS)break;var k=this.getFoldWidgetRange(h,"all",t);if(k){if(k.start.row<=l)break;if(k.isMultiLine())t=k.end.row;else if(r==S)break}g=t}}return new d(l,f,g,h.getLine(g).length)},this.getCommentRegionBlock=function(h,t,n){for(var r=t.search(/\s*$/),l=h.getLength(),f=n,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++nf)return new d(f,r,k,t.length)}}.call(o.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(i,a,v){var c=i("../lib/oop"),d=i("./text").Mode,u=i("./json_highlight_rules").JsonHighlightRules,o=i("./matching_brace_outdent").MatchingBraceOutdent,h=i("./behaviour/cstyle").CstyleBehaviour,t=i("./folding/cstyle").FoldMode,n=i("../worker/worker_client").WorkerClient,r=function(){this.HighlightRules=u,this.$outdent=new o,this.$behaviour=new h,this.foldingRules=new t};c.inherits(r,d),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(l,f,g){var m=this.$getIndent(f);if(l=="start"){var S=f.match(/^.*[\{\(\[]\s*$/);S&&(m+=g)}return m},this.checkOutdent=function(l,f,g){return this.$outdent.checkOutdent(f,g)},this.autoOutdent=function(l,f,g){this.$outdent.autoOutdent(f,g)},this.createWorker=function(l){var f=new n(["ace"],"ace/mode/json_worker","JsonWorker");return f.attachToDocument(l.getDocument()),f.on("annotate",function(g){l.setAnnotations(g.data)}),f.on("terminate",function(){l.clearAnnotations()}),f},this.$id="ace/mode/json"}.call(r.prototype),a.Mode=r}),function(){ace.require(["ace/mode/json"],function(i){e&&(e.exports=i)})}()})(ad);var As={},ld={get exports(){return As},set exports(e){As=e}};(function(e,s){ace.define("ace/theme/one_dark.css",["require","exports","module"],function(i,a,v){v.exports=`.ace-one-dark .ace_gutter { - background: #282c34; - color: #6a6f7a -} - -.ace-one-dark .ace_print-margin { - width: 1px; - background: #e8e8e8 -} - -.ace-one-dark { - background-color: #282c34; - color: #abb2bf -} - -.ace-one-dark .ace_cursor { - color: #528bff -} - -.ace-one-dark .ace_marker-layer .ace_selection { - background: #3d4350 -} - -.ace-one-dark.ace_multiselect .ace_selection.ace_start { - box-shadow: 0 0 3px 0 #282c34; - border-radius: 2px -} - -.ace-one-dark .ace_marker-layer .ace_step { - background: #c6dbae -} - -.ace-one-dark .ace_marker-layer .ace_bracket { - margin: -1px 0 0 -1px; - border: 1px solid #747369 -} - -.ace-one-dark .ace_marker-layer .ace_active-line { - background: rgba(76, 87, 103, .19) -} - -.ace-one-dark .ace_gutter-active-line { - background-color: rgba(76, 87, 103, .19) -} - -.ace-one-dark .ace_marker-layer .ace_selected-word { - border: 1px solid #3d4350 -} - -.ace-one-dark .ace_fold { - background-color: #61afef; - border-color: #abb2bf -} - -.ace-one-dark .ace_keyword { - color: #c678dd -} - -.ace-one-dark .ace_keyword.ace_operator { - color: #c678dd -} - -.ace-one-dark .ace_keyword.ace_other.ace_unit { - color: #d19a66 -} - -.ace-one-dark .ace_constant.ace_language { - color: #d19a66 -} - -.ace-one-dark .ace_constant.ace_numeric { - color: #d19a66 -} - -.ace-one-dark .ace_constant.ace_character { - color: #56b6c2 -} - -.ace-one-dark .ace_constant.ace_other { - color: #56b6c2 -} - -.ace-one-dark .ace_support.ace_function { - color: #61afef -} - -.ace-one-dark .ace_support.ace_constant { - color: #d19a66 -} - -.ace-one-dark .ace_support.ace_class { - color: #e5c07b -} - -.ace-one-dark .ace_support.ace_type { - color: #e5c07b -} - -.ace-one-dark .ace_storage { - color: #c678dd -} - -.ace-one-dark .ace_storage.ace_type { - color: #c678dd -} - -.ace-one-dark .ace_invalid { - color: #fff; - background-color: #f2777a -} - -.ace-one-dark .ace_invalid.ace_deprecated { - color: #272b33; - background-color: #d27b53 -} - -.ace-one-dark .ace_string { - color: #98c379 -} - -.ace-one-dark .ace_string.ace_regexp { - color: #e06c75 -} - -.ace-one-dark .ace_comment { - font-style: italic; - color: #5c6370 -} - -.ace-one-dark .ace_variable { - color: #e06c75 -} - -.ace-one-dark .ace_variable.ace_parameter { - color: #d19a66 -} - -.ace-one-dark .ace_meta.ace_tag { - color: #e06c75 -} - -.ace-one-dark .ace_entity.ace_other.ace_attribute-name { - color: #e06c75 -} - -.ace-one-dark .ace_entity.ace_name.ace_function { - color: #61afef -} - -.ace-one-dark .ace_entity.ace_name.ace_tag { - color: #e06c75 -} - -.ace-one-dark .ace_markup.ace_heading { - color: #98c379 -} - -.ace-one-dark .ace_indent-guide { - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ09NrYAgMjP4PAAtGAwchHMyAAAAAAElFTkSuQmCC) right repeat-y -} - -.ace-one-dark .ace_indent-guide-active { - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y; -} -`}),ace.define("ace/theme/one_dark",["require","exports","module","ace/theme/one_dark.css","ace/lib/dom"],function(i,a,v){a.isDark=!0,a.cssClass="ace-one-dark",a.cssText=i("./one_dark.css");var c=i("../lib/dom");c.importCssString(a.cssText,a.cssClass,!1)}),function(){ace.require(["ace/theme/one_dark"],function(i){e&&(e.exports=i)})}()})(ld);var Es={},cd={get exports(){return Es},set exports(e){Es=e}};(function(e,s){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(i,a,v){var c=i("./lib/dom"),d=i("./lib/oop"),u=i("./lib/event_emitter").EventEmitter,o=i("./lib/lang"),h=i("./range").Range,t=i("./range_list").RangeList,n=i("./keyboard/hash_handler").HashHandler,r=i("./tokenizer").Tokenizer,l=i("./clipboard"),f={CURRENT_WORD:function(w){return w.session.getTextRange(w.session.getWordRange())},SELECTION:function(w,y,L){var x=w.session.getTextRange();return L?x.replace(/\n\r?([ \t]*\S)/g,` -`+L+"$1"):x},CURRENT_LINE:function(w){return w.session.getLine(w.getCursorPosition().row)},PREV_LINE:function(w){return w.session.getLine(w.getCursorPosition().row-1)},LINE_INDEX:function(w){return w.getCursorPosition().row},LINE_NUMBER:function(w){return w.getCursorPosition().row+1},SOFT_TABS:function(w){return w.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(w){return w.session.getTabSize()},CLIPBOARD:function(w){return l.getText&&l.getText()},FILENAME:function(w){return/[^/\\]*$/.exec(this.FILEPATH(w))[0]},FILENAME_BASE:function(w){return/[^/\\]*$/.exec(this.FILEPATH(w))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(w){return this.FILEPATH(w).replace(/[^/\\]*$/,"")},FILEPATH:function(w){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(w){var y=w.session.$mode||{};return y.blockComment&&y.blockComment.start||""},BLOCK_COMMENT_END:function(w){var y=w.session.$mode||{};return y.blockComment&&y.blockComment.end||""},LINE_COMMENT:function(w){var y=w.session.$mode||{};return y.lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};f.SELECTED_TEXT=f.SELECTION;function g(w){var y=new Date().toLocaleString("en-us",w);return y.length==1?"0"+y:y}var m=function(){this.snippetMap={},this.snippetNameMap={}};(function(){d.implement(this,u),this.getTokenizer=function(){return m.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function w(x){return x=x.substr(1),/^\d+$/.test(x)?[{tabstopId:parseInt(x,10)}]:[{text:x}]}function y(x){return"(?:[^\\\\"+x+"]|\\\\.)"}var L={regex:"/("+y("/")+"+)/",onMatch:function(x,$,p){var b=p[0];return b.fmtString=!0,b.guard=x.slice(1,-1),b.flag="",""},next:"formatString"};return m.$tokenizer=new r({start:[{regex:/\\./,onMatch:function(x,$,p){var b=x[1];return(b=="}"&&p.length||"`$\\".indexOf(b)!=-1)&&(x=b),[x]}},{regex:/}/,onMatch:function(x,$,p){return[p.length?p.shift():x]}},{regex:/\$(?:\d+|\w+)/,onMatch:w},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(x,$,p){var b=w(x.substr(1));return p.unshift(b[0]),b},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+y("\\|")+"*\\|",onMatch:function(x,$,p){var b=x.slice(1,-1).replace(/\\[,|\\]|,/g,function(C){return C.length==2?C[1]:"\0"}).split("\0").map(function(C){return{value:C}});return p[0].choices=b,[b[0]]},next:"start"},L,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(x,$,p){return p.length&&p[0].expectElse?(p[0].expectElse=!1,p[0].ifEnd={elseEnd:p[0]},[p[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(x,$,p){var b=x[1];return b=="}"&&p.length||"`$\\".indexOf(b)!=-1?x=b:b=="n"?x=` -`:b=="t"?x=" ":"ulULE".indexOf(b)!=-1&&(x={changeCase:b,local:b>"a"}),[x]}},{regex:"/\\w*}",onMatch:function(x,$,p){var b=p.shift();return b&&(b.flag=x.slice(1,-1)),this.next=b&&b.tabstopId?"start":"",[b||x]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(x,$,p){return[{text:x.slice(1)}]}},{regex:/\${\w+/,onMatch:function(x,$,p){var b={text:x.slice(2)};return p.unshift(b),[b]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(x,$,p){var b=p.shift();return this.next=b&&b.tabstopId?"start":"",[b||x]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(x,$,p){var b=p[0];return b.formatFunction=x.slice(2,-1),[p.shift()]},next:"formatString"},L,{regex:/:[\?\-+]?/,onMatch:function(x,$,p){x[1]=="+"&&(p[0].ifEnd=p[0]),x[1]=="?"&&(p[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),m.$tokenizer},this.tokenizeTmSnippet=function(w,y){return this.getTokenizer().getLineTokens(w,y).tokens.map(function(L){return L.value||L})},this.getVariableValue=function(w,y,L){if(/^\d+$/.test(y))return(this.variables.__||{})[y]||"";if(/^[A-Z]\d+$/.test(y))return(this.variables[y[0]+"__"]||{})[y.substr(1)]||"";if(y=y.replace(/^TM_/,""),!this.variables.hasOwnProperty(y))return"";var x=this.variables[y];return typeof x=="function"&&(x=this.variables[y](w,y,L)),x??""},this.variables=f,this.tmStrFormat=function(w,y,L){if(!y.fmt)return w;var x=y.flag||"",$=y.guard;$=new RegExp($,x.replace(/[^gim]/g,""));var p=typeof y.fmt=="string"?this.tokenizeTmSnippet(y.fmt,"formatString"):y.fmt,b=this,C=w.replace($,function(){var _=b.variables.__;b.variables.__=[].slice.call(arguments);for(var M=b.resolveVariables(p,L),T="E",R=0;R1?(I=re[re.length-1].length,F+=re.length-1):I+=G.length,H+=G}else G&&(G.start?G.end={row:F,column:I}:G.start={row:F,column:I})});var z=w.getSelectionRange(),V=w.session.replace(z,H),K=new S(w),Z=w.inVirtualSelectionMode&&w.selection.index;K.addTabstops(C,z.start,V,Z)},this.insertSnippet=function(w,y){var L=this;if(w.inVirtualSelectionMode)return L.insertSnippetForSelection(w,y);w.forEachSelection(function(){L.insertSnippetForSelection(w,y)},null,{keepOrder:!0}),w.tabstopManager&&w.tabstopManager.tabNext()},this.$getScope=function(w){var y=w.session.$mode.$id||"";if(y=y.split("/").pop(),y==="html"||y==="php"){y==="php"&&!w.session.$mode.inlinePhp&&(y="html");var L=w.getCursorPosition(),x=w.session.getState(L.row);typeof x=="object"&&(x=x[0]),x.substring&&(x.substring(0,3)=="js-"?y="javascript":x.substring(0,4)=="css-"?y="css":x.substring(0,4)=="php-"&&(y="php"))}return y},this.getActiveScopes=function(w){var y=this.$getScope(w),L=[y],x=this.snippetMap;return x[y]&&x[y].includeScopes&&L.push.apply(L,x[y].includeScopes),L.push("_"),L},this.expandWithTab=function(w,y){var L=this,x=w.forEachSelection(function(){return L.expandSnippetForSelection(w,y)},null,{keepOrder:!0});return x&&w.tabstopManager&&w.tabstopManager.tabNext(),x},this.expandSnippetForSelection=function(w,y){var L=w.getCursorPosition(),x=w.session.getLine(L.row),$=x.substring(0,L.column),p=x.substr(L.column),b=this.snippetMap,C;return this.getActiveScopes(w).some(function(_){var M=b[_];return M&&(C=this.findMatchingSnippet(M,$,p)),!!C},this),C?(y&&y.dryRun||(w.session.doc.removeInLine(L.row,L.column-C.replaceBefore.length,L.column+C.replaceAfter.length),this.variables.M__=C.matchBefore,this.variables.T__=C.matchAfter,this.insertSnippetForSelection(w,C.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(w,y,L){for(var x=w.length;x--;){var $=w[x];if(!($.startRe&&!$.startRe.test(y))&&!($.endRe&&!$.endRe.test(L))&&!(!$.startRe&&!$.endRe))return $.matchBefore=$.startRe?$.startRe.exec(y):[""],$.matchAfter=$.endRe?$.endRe.exec(L):[""],$.replaceBefore=$.triggerRe?$.triggerRe.exec(y)[0]:"",$.replaceAfter=$.endTriggerRe?$.endTriggerRe.exec(L)[0]:"",$}},this.snippetMap={},this.snippetNameMap={},this.register=function(w,y){var L=this.snippetMap,x=this.snippetNameMap,$=this;w||(w=[]);function p(_){return _&&!/^\^?\(.*\)\$?$|^\\b$/.test(_)&&(_="(?:"+_+")"),_||""}function b(_,M,T){return _=p(_),M=p(M),T?(_=M+_,_&&_[_.length-1]!="$"&&(_=_+"$")):(_=_+M,_&&_[0]!="^"&&(_="^"+_)),new RegExp(_)}function C(_){_.scope||(_.scope=y||"_"),y=_.scope,L[y]||(L[y]=[],x[y]={});var M=x[y];if(_.name){var T=M[_.name];T&&$.unregister(T),M[_.name]=_}L[y].push(_),_.prefix&&(_.tabTrigger=_.prefix),!_.content&&_.body&&(_.content=Array.isArray(_.body)?_.body.join(` -`):_.body),_.tabTrigger&&!_.trigger&&(!_.guard&&/^\w/.test(_.tabTrigger)&&(_.guard="\\b"),_.trigger=o.escapeRegExp(_.tabTrigger)),!(!_.trigger&&!_.guard&&!_.endTrigger&&!_.endGuard)&&(_.startRe=b(_.trigger,_.guard,!0),_.triggerRe=new RegExp(_.trigger),_.endRe=b(_.endTrigger,_.endGuard,!0),_.endTriggerRe=new RegExp(_.endTrigger))}Array.isArray(w)?w.forEach(C):Object.keys(w).forEach(function(_){C(w[_])}),this._signal("registerSnippets",{scope:y})},this.unregister=function(w,y){var L=this.snippetMap,x=this.snippetNameMap;function $(p){var b=x[p.scope||y];if(b&&b[p.name]){delete b[p.name];var C=L[p.scope||y],_=C&&C.indexOf(p);_>=0&&C.splice(_,1)}}w.content?$(w):Array.isArray(w)&&w.forEach($)},this.parseSnippetFile=function(w){w=w.replace(/\r/g,"");for(var y=[],L={},x=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,$;$=x.exec(w);){if($[1])try{L=JSON.parse($[1]),y.push(L)}catch{}if($[4])L.content=$[4].replace(/^\t/gm,""),y.push(L),L={};else{var p=$[2],b=$[3];if(p=="regex"){var C=/\/((?:[^\/\\]|\\.)*)|$/g;L.guard=C.exec(b)[1],L.trigger=C.exec(b)[1],L.endTrigger=C.exec(b)[1],L.endGuard=C.exec(b)[1]}else p=="snippet"?(L.tabTrigger=b.match(/^\S*/)[0],L.name||(L.name=b)):p&&(L[p]=b)}}return y},this.getSnippetByName=function(w,y){var L=this.snippetNameMap,x;return this.getActiveScopes(y).some(function($){var p=L[$];return p&&(x=p[w]),!!x},this),x}}).call(m.prototype);var S=function(w){if(w.tabstopManager)return w.tabstopManager;w.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=o.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(w)};(function(){this.attach=function(w){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=w,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(w){for(var y=w.action[0]=="r",L=this.selectedTabstop||{},x=L.parents||{},$=(this.tabstops||[]).slice(),p=0;p<$.length;p++){var b=$[p],C=b==L||x[b.index];if(b.rangeList.$bias=C?0:1,w.action=="remove"&&b!==L){var _=b.parents&&b.parents[L.index],M=b.rangeList.pointIndex(w.start,_);M=M<0?-M-1:M+1;var T=b.rangeList.pointIndex(w.end,_);T=T<0?-T-1:T-1;for(var R=b.rangeList.ranges.slice(M,T),D=0;D2&&(this.tabstops.length&&b.push(b.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,b))},this.addTabstopMarkers=function(w){var y=this.editor.session;w.forEach(function(L){L.markerId||(L.markerId=y.addMarker(L,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(w){var y=this.editor.session;w.forEach(function(L){y.removeMarker(L.markerId),L.markerId=null})},this.removeRange=function(w){var y=w.tabstop.indexOf(w);y!=-1&&w.tabstop.splice(y,1),y=this.ranges.indexOf(w),y!=-1&&this.ranges.splice(y,1),y=w.tabstop.rangeList.ranges.indexOf(w),y!=-1&&w.tabstop.splice(y,1),this.editor.session.removeMarker(w.markerId),w.tabstop.length||(y=this.tabstops.indexOf(w.tabstop),y!=-1&&this.tabstops.splice(y,1),this.tabstops.length||this.detach())},this.keyboardHandler=new n,this.keyboardHandler.bindKeys({Tab:function(w){a.snippetManager&&a.snippetManager.expandWithTab(w)||(w.tabstopManager.tabNext(1),w.renderer.scrollCursorIntoView())},"Shift-Tab":function(w){w.tabstopManager.tabNext(-1),w.renderer.scrollCursorIntoView()},Esc:function(w){w.tabstopManager.detach()}})}).call(S.prototype);var k=function(w,y){w.row==0&&(w.column+=y.column),w.row+=y.row},A=function(w,y){w.row==y.row&&(w.column-=y.column),w.row-=y.row};c.importCssString(` -.ace_snippet-marker { - -moz-box-sizing: border-box; - box-sizing: border-box; - background: rgba(194, 193, 208, 0.09); - border: 1px dotted rgba(211, 208, 235, 0.62); - position: absolute; -}`,"snippets.css",!1),a.snippetManager=new m;var E=i("./editor").Editor;(function(){this.insertSnippet=function(w,y){return a.snippetManager.insertSnippet(this,w,y)},this.expandSnippet=function(w){return a.snippetManager.expandWithTab(this,w)}}).call(E.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(i,a,v){var c=i("../virtual_renderer").VirtualRenderer,d=i("../editor").Editor,u=i("../range").Range,o=i("../lib/event"),h=i("../lib/lang"),t=i("../lib/dom"),n=function(f){return"suggest-aria-id:".concat(f)},r=function(f){var g=new c(f);g.$maxLines=4;var m=new d(g);return m.setHighlightActiveLine(!1),m.setShowPrintMargin(!1),m.renderer.setShowGutter(!1),m.renderer.setHighlightGutterLine(!1),m.$mouseHandler.$focusTimeout=0,m.$highlightTagPending=!0,m},l=function(f){var g=t.createElement("div"),m=new r(g);f&&f.appendChild(g),g.style.display="none",m.renderer.content.style.cursor="default",m.renderer.setStyle("ace_autocomplete"),m.renderer.container.setAttribute("role","listbox"),m.renderer.container.setAttribute("aria-label","Autocomplete suggestions"),m.setOption("displayIndentGuides",!1),m.setOption("dragDelay",150);var S=function(){};m.focus=S,m.$isFocused=!0,m.renderer.$cursorLayer.restartTimer=S,m.renderer.$cursorLayer.element.style.opacity=0,m.renderer.$maxLines=8,m.renderer.$keepTextAreaAtCursor=!1,m.setHighlightActiveLine(!1),m.session.highlight(""),m.session.$searchHighlight.clazz="ace_highlight-marker",m.on("mousedown",function(x){var $=x.getDocumentPosition();m.selection.moveToPosition($),E.start.row=E.end.row=$.row,x.stop()});var k,A=new u(-1,0,-1,1/0),E=new u(-1,0,-1,1/0);E.id=m.session.addMarker(E,"ace_active-line","fullLine"),m.setSelectOnHover=function(x){x?A.id&&(m.session.removeMarker(A.id),A.id=null):A.id=m.session.addMarker(A,"ace_line-hover","fullLine")},m.setSelectOnHover(!1),m.on("mousemove",function(x){if(!k){k=x;return}if(!(k.x==x.x&&k.y==x.y)){k=x,k.scrollTop=m.renderer.scrollTop;var $=k.getDocumentPosition().row;A.start.row!=$&&(A.id||m.setRow($),y($))}}),m.renderer.on("beforeRender",function(){if(k&&A.start.row!=-1){k.$pos=null;var x=k.getDocumentPosition().row;A.id||m.setRow(x),y(x,!0)}}),m.renderer.on("afterRender",function(){var x=m.getRow(),$=m.renderer.$textLayer,p=$.element.childNodes[x-$.config.firstRow],b=document.activeElement;if(p!==$.selectedNode&&$.selectedNode&&(t.removeCssClass($.selectedNode,"ace_selected"),b.removeAttribute("aria-activedescendant"),$.selectedNode.removeAttribute("id")),$.selectedNode=p,p){t.addCssClass(p,"ace_selected");var C=n(x);p.id=C,m.renderer.container.setAttribute("aria-activedescendant",C),b.setAttribute("aria-activedescendant",C),p.setAttribute("role","option"),p.setAttribute("aria-label",m.getData(x).value),p.setAttribute("aria-setsize",m.data.length),p.setAttribute("aria-posinset",x)}});var w=function(){y(-1)},y=function(x,$){x!==A.start.row&&(A.start.row=A.end.row=x,$||m.session._emit("changeBackMarker"),m._emit("changeHoverMarker"))};m.getHoveredRow=function(){return A.start.row},o.addListener(m.container,"mouseout",w),m.on("hide",w),m.on("changeSelection",w),m.session.doc.getLength=function(){return m.data.length},m.session.doc.getLine=function(x){var $=m.data[x];return typeof $=="string"?$:$&&$.value||""};var L=m.session.bgTokenizer;return L.$tokenizeRow=function(x){var $=m.data[x],p=[];if(!$)return p;typeof $=="string"&&($={value:$});var b=$.caption||$.value||$.name;function C(W,F){W&&p.push({type:($.className||"")+(F||""),value:W})}for(var _=b.toLowerCase(),M=(m.filterText||"").toLowerCase(),T=0,R=0,D=0;D<=M.length;D++)if(D!=R&&($.matchMask&1<C/2&&!p;D&&R+$+T>C?(M.$maxPixelHeight=R-2*this.$borderSize,b.style.top="",b.style.bottom=C-R+"px",m.isTopdown=!1):(R+=$,M.$maxPixelHeight=C-R-.2*$,b.style.top=R+"px",b.style.bottom="",m.isTopdown=!0),b.style.display="";var N=x.left;N+b.offsetWidth>_&&(N=_-b.offsetWidth),b.style.left=N+"px",this._signal("show"),k=null,m.isOpen=!0},m.goTo=function(x){var $=this.getRow(),p=this.session.getLength()-1;switch(x){case"up":$=$<=0?p:$-1;break;case"down":$=$>=p?-1:$+1;break;case"start":$=0;break;case"end":$=p;break}this.setRow($)},m.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},m.$imageSize=0,m.$borderSize=1,m};t.importCssString(` -.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { - background-color: #CAD6FA; - z-index: 1; -} -.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { - background-color: #3a674e; -} -.ace_editor.ace_autocomplete .ace_line-hover { - border: 1px solid #abbffe; - margin-top: -1px; - background: rgba(233,233,253,0.4); - position: absolute; - z-index: 2; -} -.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { - border: 1px solid rgba(109, 150, 13, 0.8); - background: rgba(58, 103, 78, 0.62); -} -.ace_completion-meta { - opacity: 0.5; - margin: 0.9em; -} -.ace_completion-message { - color: blue; -} -.ace_editor.ace_autocomplete .ace_completion-highlight{ - color: #2d69c7; -} -.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ - color: #93ca12; -} -.ace_editor.ace_autocomplete { - width: 300px; - z-index: 200000; - border: 1px lightgray solid; - position: fixed; - box-shadow: 2px 3px 5px rgba(0,0,0,.2); - line-height: 1.4; - background: #fefefe; - color: #111; -} -.ace_dark.ace_editor.ace_autocomplete { - border: 1px #484747 solid; - box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); - line-height: 1.4; - background: #25282c; - color: #c1c1c1; -}`,"autocompletion.css",!1),a.AcePopup=l,a.$singleLineEditor=r,a.getAriaId=n}),ace.define("ace/autocomplete/util",["require","exports","module"],function(i,a,v){a.parForEach=function(d,u,o){var h=0,t=d.length;t===0&&o();for(var n=0;n=0&&o.test(d[t]);t--)h.push(d[t]);return h.reverse().join("")},a.retrieveFollowingIdentifier=function(d,u,o){o=o||c;for(var h=[],t=u;tthis.filterText&&g.lastIndexOf(this.filterText,0)===0)var m=this.filtered;else var m=this.all;this.filterText=g,m=this.filterCompletions(m,this.filterText),m=m.sort(function(k,A){return A.exactMatch-k.exactMatch||A.$score-k.$score||(k.caption||k.value).localeCompare(A.caption||A.value)});var S=null;m=m.filter(function(k){var A=k.snippet||k.caption||k.value;return A===S?!1:(S=A,!0)}),this.filtered=m},this.filterCompletions=function(g,m){var S=[],k=m.toUpperCase(),A=m.toLowerCase();e:for(var E=0,w;w=g[E];E++){var y=w.caption||w.value||w.snippet;if(y){var L=-1,x=0,$=0,p,b;if(this.exactMatch){if(m!==y.substr(0,m.length))continue e}else{var C=y.toLowerCase().indexOf(A);if(C>-1)$=C;else for(var _=0;_=0&&(T<0||M0&&(L===-1&&($+=10),$+=b,x=x|1<<_),L=p}}w.matchMask=x,w.exactMatch=$?0:1,w.$score=(w.score||0)-$,S.push(w)}}return S}}).call(f.prototype),a.Autocomplete=l,a.FilteredList=f}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(i,a,v){var c=i("../range").Range,d=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function u(h,t){var n=h.getTextRange(c.fromPoints({row:0,column:0},t));return n.split(d).length-1}function o(h,t){var n=u(h,t),r=h.getValue().split(d),l=Object.create(null),f=r[n];return r.forEach(function(g,m){if(!(!g||g===f)){var S=Math.abs(n-m),k=r.length-S;l[g]?l[g]=Math.max(k,l[g]):l[g]=k}}),l}a.getCompletions=function(h,t,n,r,l){var f=o(t,n),g=Object.keys(f);l(null,g.map(function(m){return{caption:m,value:m,score:f[m],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(i,a,v){var c=i("../snippets").snippetManager,d=i("../autocomplete").Autocomplete,u=i("../config"),o=i("../lib/lang"),h=i("../autocomplete/util"),t=i("../autocomplete/text_completer"),n={getCompletions:function(w,y,L,x,$){if(y.$mode.completer)return y.$mode.completer.getCompletions(w,y,L,x,$);var p=w.session.getState(L.row),b=y.$mode.getCompletions(p,y,L,x);$(null,b)}},r=function(w){var y={};return w.replace(/\${(\d+)(:(.*?))?}/g,function(L,x,$,p){return y[x]=p||""}).replace(/\$(\d+?)/g,function(L,x){return y[x]})},l={getCompletions:function(w,y,L,x,$){var p=[],b=y.getTokenAt(L.row,L.column);b&&b.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?p.push("html-tag"):p=c.getActiveScopes(w);var C=c.snippetMap,_=[];p.forEach(function(M){for(var T=C[M]||[],R=T.length;R--;){var D=T[R],N=D.name||D.tabTrigger;N&&_.push({caption:N,snippet:D.content,meta:D.tabTrigger&&!D.name?D.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),$(null,_)},getDocTooltip:function(w){w.type=="snippet"&&!w.docHTML&&(w.docHTML=["",o.escapeHTML(w.caption),"","
",o.escapeHTML(r(w.snippet))].join(""))}},f=[l,t,n];a.setCompleters=function(w){f.length=0,w&&f.push.apply(f,w)},a.addCompleter=function(w){f.push(w)},a.textCompleter=t,a.keyWordCompleter=n,a.snippetCompleter=l;var g={name:"expandSnippet",exec:function(w){return c.expandWithTab(w)},bindKey:"Tab"},m=function(w,y){S(y.session.$mode)},S=function(w){typeof w=="string"&&(w=u.$modes[w]),w&&(c.files||(c.files={}),k(w.$id,w.snippetFileId),w.modes&&w.modes.forEach(S))},k=function(w,y){!y||!w||c.files[w]||(c.files[w]={},u.loadModule(y,function(L){L&&(c.files[w]=L,!L.snippets&&L.snippetText&&(L.snippets=c.parseSnippetFile(L.snippetText)),c.register(L.snippets||[],L.scope),L.includeScopes&&(c.snippetMap[L.scope].includeScopes=L.includeScopes,L.includeScopes.forEach(function(x){S("ace/mode/"+x)})))}))},A=function(w){var y=w.editor,L=y.completer&&y.completer.activated;if(w.command.name==="backspace")L&&!h.getCompletionPrefix(y)&&y.completer.detach();else if(w.command.name==="insertstring"){var x=h.getCompletionPrefix(y);if(x&&!L){var $=d.for(y);$.autoInsert=!1,$.showPopup(y)}}},E=i("../editor").Editor;i("../config").defineOptions(E.prototype,"editor",{enableBasicAutocompletion:{set:function(w){w?(this.completers||(this.completers=Array.isArray(w)?w:f),this.commands.addCommand(d.startCommand)):this.commands.removeCommand(d.startCommand)},value:!1},enableLiveAutocompletion:{set:function(w){w?(this.completers||(this.completers=Array.isArray(w)?w:f),this.commands.on("afterExec",A)):this.commands.removeListener("afterExec",A)},value:!1},enableSnippets:{set:function(w){w?(this.commands.addCommand(g),this.on("changeMode",m),m(null,this)):(this.commands.removeCommand(g),this.off("changeMode",m))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(i){e&&(e.exports=i)})}()})(cd);ace.config.setModuleUrl("ace/mode/json_worker",fn);function ud(e){const{responseHeaders:s,responseData:i,timeTaken:a,responseStatus:v,serverMemory:c}=e;return O.jsxs(O.Fragment,{children:[s&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"collapse collapse-arrow",children:[O.jsx("input",{type:"checkbox"}),O.jsx("div",{className:"collapse-title text-sm text-slate-500 pl-0",children:"Show Response Headers"}),O.jsx("div",{className:"collapse-content p-0",children:O.jsx(At,{maxLines:35,readOnly:!0,width:"100%",mode:"json",wrapEnabled:!0,value:s,theme:"one_dark",onLoad:function(d){d.renderer.setPadding(0),d.renderer.setScrollMargin(5,5,5,5),d.renderer.setShowPrintMargin(!1)},editorProps:{$blockScrolling:!0}})})]}),O.jsx("br",{})]}),!i&&O.jsx("div",{className:"text-center text-sm text-slate-500",children:"No Response Data"}),i&&O.jsxs("div",{className:"mockup-code",children:[O.jsx("span",{className:"pl-5 text-sm text-slate-500",children:"RESPONSE"}),O.jsx("br",{}),O.jsxs("span",{className:"pl-5 text-sm",children:["Time taken: ",O.jsxs("b",{children:[a,"ms"]}),", Status Code: ",O.jsx("b",{children:v}),", Server memory: ",O.jsx("b",{children:c})]}),O.jsx(At,{maxLines:50,width:"100%",mode:"json",wrapEnabled:!0,readOnly:!0,value:i,theme:"one_dark",onLoad:function(d){d.renderer.setPadding(0),d.renderer.setScrollMargin(5,5,5,5),d.renderer.setShowPrintMargin(!1)},editorProps:{$blockScrolling:!0}})]})]})}var gr={},hd={get exports(){return gr},set exports(e){gr=e}};(function(e,s){(function(i,a){e.exports=a(se)})(De,i=>(()=>{var a={703:(u,o,h)=>{var t=h(414);function n(){}function r(){}r.resetWarningCache=n,u.exports=function(){function l(m,S,k,A,E,w){if(w!==t){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function f(){return l}l.isRequired=l;var g={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:f,element:l,elementType:l,instanceOf:f,node:l,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:r,resetWarningCache:n};return g.PropTypes=g,g}},697:(u,o,h)=>{u.exports=h(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},639:u=>{u.exports=i}},v={};function c(u){var o=v[u];if(o!==void 0)return o.exports;var h=v[u]={exports:{}};return a[u](h,h.exports,c),h.exports}c.n=u=>{var o=u&&u.__esModule?()=>u.default:()=>u;return c.d(o,{a:o}),o},c.d=(u,o)=>{for(var h in o)c.o(o,h)&&!c.o(u,h)&&Object.defineProperty(u,h,{enumerable:!0,get:o[h]})},c.o=(u,o)=>Object.prototype.hasOwnProperty.call(u,o),c.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var d={};return(()=>{c.r(d),c.d(d,{default:()=>E});var u=c(639),o=c.n(u),h=c(697),t=c.n(h);const n=function(w){var y=w.name.split(".");return y.length>1?y[y.length-1]:"none"};function r(w,y){return function(L){if(Array.isArray(L))return L}(w)||function(L,x){var $=L==null?null:typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if($!=null){var p,b,C,_,M=[],T=!0,R=!1;try{if(C=($=$.call(L)).next,x===0){if(Object($)!==$)return;T=!1}else for(;!(T=(p=C.call($)).done)&&(M.push(p.value),M.length!==x);T=!0);}catch(D){R=!0,b=D}finally{try{if(!T&&$.return!=null&&(_=$.return(),Object(_)!==_))return}finally{if(R)throw b}}return M}}(w,y)||function(L,x){if(L){if(typeof L=="string")return l(L,x);var $=Object.prototype.toString.call(L).slice(8,-1);return $==="Object"&&L.constructor&&($=L.constructor.name),$==="Map"||$==="Set"?Array.from(L):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?l(L,x):void 0}}(w,y)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l(w,y){(y==null||y>w.length)&&(y=w.length);for(var L=0,x=new Array(y);Lw.length)&&(y=w.length);for(var L=0,x=new Array(y);L1&&(he=[he[0]]);for(var Ce=[],Se=0;Se=1e9?Math.ceil(q/1e9)+"GB":q>=1e6?Math.ceil(q/1e6)+"MB":q>=1e3?Math.ceil(q/1e3)+"KB":Math.ceil(q)+"B",we.type&&we.type.split("/")[0]==="image"?we.preview={type:"image",url:window.URL.createObjectURL(we)}:we.preview={type:"file"},Ce.length>=T){J({code:4,message:"maximum file count reached"},we);break}if(we.size>R){J({code:2,message:"".concat(we.name," is too large")},we);break}if(we.size{const w={...m};w[E]=A,S(w),n(A,E)};return se.useEffect(()=>{const A=[];for(const[E,w]of Object.entries(s.rules)){if(w.length==0)continue;const y=w[0].split("|");(y.includes("file")||y.includes("image"))&&A.push(E)}g(A)},[]),O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"form-control",children:[O.jsxs("label",{className:"input-group input-group-sm",children:[O.jsx("span",{className:`method-${a}`,children:a}),O.jsx("input",{type:"text",defaultValue:i,onChange:A=>o(A.target.value),placeholder:"Type here",className:"focus:outline-none input w-full input-bordered input-sm"}),O.jsxs("button",{className:"btn btn-sm btn-success",onClick:h,children:["GO ",O.jsx(Oo,{className:"inline-block w-4 h-4 ml-1"})]}),O.jsx("br",{})]}),v&&O.jsx("progress",{className:"progress progress-success w-full"})]}),O.jsx("br",{}),O.jsxs("div",{className:"collapse collapse-arrow",children:[O.jsx("input",{type:"checkbox"}),O.jsx("div",{className:"collapse-title text-sm text-slate-500 pl-0",children:"Set Global Headers"}),f.length!=0&&(a=="POST"||a=="PUT"||a=="DELETE")&&O.jsxs("div",{className:"text-sm text-slate-500 p-0",children:[O.jsx(Du,{className:"inline-block w-4 h-4 ml-1 text-yellow-500"}),"  This request requires a file upload. ",O.jsx("br",{}),O.jsx(Wu,{className:"inline-block w-4 h-4 ml-1 text-slate-500"}),"  Global headers will be overridden as ",O.jsx("code",{children:"application/json"})," ⇢ ",O.jsx("code",{children:"multipart/form-data"}),O.jsx("br",{})]}),O.jsx("div",{className:"collapse-content p-0",children:O.jsx(At,{height:"200px",width:"100%",mode:"json",value:c,onChange:t,theme:"one_dark",onLoad:function(A){A.renderer.setPadding(0),A.renderer.setScrollMargin(5,5,5,5),A.renderer.setShowPrintMargin(!1),A.setFontSize(14)},editorProps:{$blockScrolling:!0}})})]}),O.jsx("br",{}),(a=="GET"||a=="HEAD"||a=="DELETE")&&O.jsxs("div",{className:"mockup-code",children:[O.jsxs("span",{className:"pl-5 text-sm text-slate-500",children:["Query Params. Example ",O.jsx("code",{children:"?abc=123&def=456"})]}),O.jsx(At,{height:"200px",width:"100%",mode:"sql",wrapEnabled:!0,value:u,onChange:l,theme:"one_dark",onLoad:function(A){A.renderer.setPadding(0),A.renderer.setScrollMargin(5,5,5,5),A.renderer.setShowPrintMargin(!1),A.setFontSize(14)},editorProps:{$blockScrolling:!0}})]}),(a=="POST"||a=="PUT"||a=="PATCH")&&O.jsxs("div",{className:"mockup-code",children:[O.jsx("span",{className:"pl-5 text-sm text-slate-500",children:"REQUEST BODY"}),f.map(A=>O.jsx("div",{children:O.jsxs(fd,{className:"p-5 bg-gray-800 border border-gray-500 border-double hover:bg-gray-700 hover:border-dashed hover:cursor-pointer",onChange:E=>k(E,A),multiple:A.includes(".*"),maxFileSize:1e7,minFileSize:0,clickable:!0,children:[m[A]&&m[A].length>0&&O.jsx("div",{className:"text-sm text-gray-300",children:m[A].map((E,w)=>O.jsxs("div",{children:[w+1,") ",E.name," - ",E.size," bytes"]},E.id))}),O.jsxs("span",{className:"text-slate-500",children:[O.jsx("code",{children:O.jsx("small",{children:A})}),A.includes(".*")&&O.jsx(di,{className:"inline-block w-4 h-4 ml-1"}),O.jsx("br",{}),A.includes(".*")?"Drop or click to upload multiple files":"Drop or click to upload single file"]})]})},Te.generate())),O.jsx(At,{height:"200px",width:"100%",mode:"json",wrapEnabled:!0,value:d,onChange:r,theme:"one_dark",onLoad:function(A){A.renderer.setPadding(0),A.renderer.setScrollMargin(5,5,5,5),A.renderer.setShowPrintMargin(!1),A.setFontSize(14)},editorProps:{$blockScrolling:!0}})]})]})}function gd(e){const{activeTab:s,responseStatus:i,sqlQueriesCount:a,logsData:v,modelsData:c,setActiveTab:d}=e;return O.jsxs("div",{className:"tabs tabs-boxed",children:[O.jsxs("a",{className:`tab ${s=="info"?"tab-active":""}`,onClick:()=>d("info"),children:[O.jsx(Bu,{className:"inline-block w-5 h-5"})," Info"]}),O.jsx("a",{className:`tab ${s=="request"?"tab-active":""}`,onClick:()=>d("request"),children:O.jsxs("span",{className:"text-success font-bold",children:[O.jsx(Oo,{className:"inline-block w-5 h-5"})," Send"]})}),O.jsx("span",{className:"pr-1 mb-1",children:O.jsx(Iu,{className:"inline-block w-5 h-5"})}),O.jsxs("a",{className:`pl-0 tab ${s=="response"?"tab-active":""}`,onClick:()=>d("response"),children:[O.jsx(Uu,{className:"inline-block w-5 h-5"})," Response",i!=0&&O.jsx("div",{className:`ml-1 badge badge-sm badge-${i} badge-info`,children:i})]}),O.jsxs("a",{className:`pl-0 pr-3 tab ${s=="sql"?"tab-active":""}`,onClick:()=>d("sql"),children:[O.jsx(To,{className:"inline-block w-5 h-5 mr-1"})," SQL",i!=0&&O.jsx("div",{className:"ml-1 badge badge-xs badge-warning",children:a})]}),O.jsxs("a",{className:`pl-0 pr-3 tab ${s=="logs"?"tab-active":""}`,onClick:()=>d("logs"),children:[O.jsx(Fu,{className:"inline-block w-5 h-5 mr-1"})," Logs",i!=0&&O.jsx("div",{className:"ml-1 badge badge-xs badge-warning",children:v.split(` -`).length-1})]}),O.jsxs("a",{className:`pl-0 pr-1 tab ${s=="events"?"tab-active":""}`,onClick:()=>d("events"),children:[O.jsx(Ku,{className:"inline-block w-5 h-5 mr-1"})," Events",i!=0&&O.jsx("div",{className:"ml-1 badge badge-xs badge-warning",children:c&&c.modelsSummary?Object.keys(c.modelsSummary).length:0})]})]})}const pd={200:"OK",201:"Created",202:"Accepted",204:"No Content",400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",422:"Unprocessable Entity",429:"Too Many Requests",500:"Internal Server Error",503:"Service Unavailable"},Ls=["http","https","mailto","tel"];function md(e){const s=(e||"").trim(),i=s.charAt(0);if(i==="#"||i==="/")return s;const a=s.indexOf(":");if(a===-1)return s;let v=-1;for(;++vv||(v=s.indexOf("#"),v!==-1&&a>v)?s:"javascript:void(0)"}/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */var Ko=function(s){return s!=null&&s.constructor!=null&&typeof s.constructor.isBuffer=="function"&&s.constructor.isBuffer(s)};function an(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_s(e.position):"start"in e||"end"in e?_s(e):"line"in e||"column"in e?pr(e):""}function pr(e){return Rs(e&&e.line)+":"+Rs(e&&e.column)}function _s(e){return pr(e&&e.start)+"-"+pr(e&&e.end)}function Rs(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(s,i,a){const v=[null,null];let c={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof i=="string"&&(a=i,i=void 0),typeof a=="string"){const d=a.indexOf(":");d===-1?v[1]=a:(v[0]=a.slice(0,d),v[1]=a.slice(d+1))}i&&("type"in i||"position"in i?i.position&&(c=i.position):"start"in i||"end"in i?c=i:("line"in i||"column"in i)&&(c.start=i)),this.name=an(i)||"1:1",this.message=typeof s=="object"?s.message:s,this.stack="",typeof s=="object"&&s.stack&&(this.stack=s.stack),this.reason=this.message,this.fatal,this.line=c.start.line,this.column=c.start.column,this.position=c,this.source=v[0],this.ruleId=v[1],this.file,this.actual,this.expected,this.url,this.note}}st.prototype.file="";st.prototype.name="";st.prototype.reason="";st.prototype.message="";st.prototype.stack="";st.prototype.fatal=null;st.prototype.column=null;st.prototype.line=null;st.prototype.source=null;st.prototype.ruleId=null;st.prototype.position=null;const ft={basename:vd,dirname:wd,extname:bd,join:yd,sep:"/"};function vd(e,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');dn(e);let i=0,a=-1,v=e.length,c;if(s===void 0||s.length===0||s.length>e.length){for(;v--;)if(e.charCodeAt(v)===47){if(c){i=v+1;break}}else a<0&&(c=!0,a=v+1);return a<0?"":e.slice(i,a)}if(s===e)return"";let d=-1,u=s.length-1;for(;v--;)if(e.charCodeAt(v)===47){if(c){i=v+1;break}}else d<0&&(c=!0,d=v+1),u>-1&&(e.charCodeAt(v)===s.charCodeAt(u--)?u<0&&(a=v):(u=-1,a=d));return i===a?a=d:a<0&&(a=e.length),e.slice(i,a)}function wd(e){if(dn(e),e.length===0)return".";let s=-1,i=e.length,a;for(;--i;)if(e.charCodeAt(i)===47){if(a){s=i;break}}else a||(a=!0);return s<0?e.charCodeAt(0)===47?"/":".":s===1&&e.charCodeAt(0)===47?"//":e.slice(0,s)}function bd(e){dn(e);let s=e.length,i=-1,a=0,v=-1,c=0,d;for(;s--;){const u=e.charCodeAt(s);if(u===47){if(d){a=s+1;break}continue}i<0&&(d=!0,i=s+1),u===46?v<0?v=s:c!==1&&(c=1):v>-1&&(c=-1)}return v<0||i<0||c===0||c===1&&v===i-1&&v===a+1?"":e.slice(v,i)}function yd(...e){let s=-1,i;for(;++s0&&e.charCodeAt(e.length-1)===47&&(i+="/"),s?"/"+i:i}function Sd(e,s){let i="",a=0,v=-1,c=0,d=-1,u,o;for(;++d<=e.length;){if(d2){if(o=i.lastIndexOf("/"),o!==i.length-1){o<0?(i="",a=0):(i=i.slice(0,o),a=i.length-1-i.lastIndexOf("/")),v=d,c=0;continue}}else if(i.length>0){i="",a=0,v=d,c=0;continue}}s&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(v+1,d):i=e.slice(v+1,d),a=d-v-1;v=d,c=0}else u===46&&c>-1?c++:c=-1}return i}function dn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kd={cwd:Cd};function Cd(){return"/"}function mr(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function $d(e){if(typeof e=="string")e=new URL(e);else if(!mr(e)){const s=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw s.code="ERR_INVALID_ARG_TYPE",s}if(e.protocol!=="file:"){const s=new TypeError("The URL must be of scheme file");throw s.code="ERR_INVALID_URL_SCHEME",s}return Ad(e)}function Ad(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const s=e.pathname;let i=-1;for(;++i"u"||ri.call(s,v)},Ds=function(s,i){Os&&i.name==="__proto__"?Os(s,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):s[i.name]=i.newValue},Ns=function(s,i){if(i==="__proto__")if(ri.call(s,i)){if(Fs)return Fs(s,i).value}else return;return s[i]},Bs=function e(){var s,i,a,v,c,d,u=arguments[0],o=1,h=arguments.length,t=!1;for(typeof u=="boolean"&&(t=u,u=arguments[1]||{},o=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});od.length;let o;u&&d.push(v);try{o=e.apply(this,d)}catch(h){const t=h;if(u&&i)throw t;return v(t)}u||(o instanceof Promise?o.then(c,v):o instanceof Error?v(o):c(o))}function v(d,...u){i||(i=!0,s(d,...u))}function c(d){v(null,d)}}const Rd=Jo().freeze(),Qo={}.hasOwnProperty;function Jo(){const e=Ld(),s=[];let i={},a,v=-1;return c.data=d,c.Parser=void 0,c.Compiler=void 0,c.freeze=u,c.attachers=s,c.use=o,c.parse=h,c.stringify=t,c.run=n,c.runSync=r,c.process=l,c.processSync=f,c;function c(){const g=Jo();let m=-1;for(;++m{if(y||!L||!x)w(y);else{const $=c.stringify(L,x);$==null||(Od($)?x.value=$:x.result=$),w(y,x)}});function w(y,L){y||!L?A(y):k?k(L):m(null,L)}}}function f(g){let m;c.freeze(),Gi("processSync",c.Parser),Ki("processSync",c.Compiler);const S=rn(g);return c.process(S,k),js("processSync","process",m),S;function k(A){m=!0,Ts(A)}}}function Hs(e,s){return typeof e=="function"&&e.prototype&&(Md(e.prototype)||s in e.prototype)}function Md(e){let s;for(s in e)if(Qo.call(e,s))return!0;return!1}function Gi(e,s){if(typeof s!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Ki(e,s){if(typeof s!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Yi(e,s){if(s)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ws(e){if(!vr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function js(e,s,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+s+"` instead")}function rn(e){return Td(e)?e:new Yo(e)}function Td(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Od(e){return typeof e=="string"||Ko(e)}function Fd(e,s){const i=(s||{}).includeImageAlt;return Zo(e,typeof i=="boolean"?i:!0)}function Zo(e,s){return Id(e)&&("value"in e&&e.value||s&&"alt"in e&&e.alt||"children"in e&&zs(e.children,s))||Array.isArray(e)&&zs(e,s)||""}function zs(e,s){const i=[];let a=-1;for(;++av?0:v+s:s=s>v?v:s,i=i>0?i:0,a.length<1e4)d=Array.from(a),d.unshift(s,i),[].splice.apply(e,d);else for(i&&[].splice.apply(e,[s,i]);c0?(qe(e,e.length,0,s),e):s}const Us={}.hasOwnProperty;function qo(e){const s={};let i=-1;for(;++id))return;const L=s.events.length;let x=L,$,p;for(;x--;)if(s.events[x][0]==="exit"&&s.events[x][1].type==="chunkFlow"){if($){p=s.events[x][1].end;break}$=!0}for(S(a),y=L;yA;){const w=i[E];s.containerState=w[1],w[0].exit.call(s,e)}i.length=A}function k(){v.write([null]),c=void 0,v=void 0,s.containerState._closeFlow=void 0}}function Vd(e,s,i){return $e(e,e.attempt(this.parser.constructs.document,s,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function li(e){if(e===null||He(e)||wi(e))return 1;if(bi(e))return 2}function yi(e,s,i){const a=[];let v=-1;for(;++v1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const n=Object.assign({},e[a][1].end),r=Object.assign({},e[i][1].start);Ks(n,-o),Ks(r,o),d={type:o>1?"strongSequence":"emphasisSequence",start:n,end:Object.assign({},e[a][1].end)},u={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[i][1].start),end:r},c={type:o>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[i][1].start)},v={type:o>1?"strong":"emphasis",start:Object.assign({},d.start),end:Object.assign({},u.end)},e[a][1].end=Object.assign({},d.start),e[i][1].start=Object.assign({},u.end),h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=it(h,[["enter",e[a][1],s],["exit",e[a][1],s]])),h=it(h,[["enter",v,s],["enter",d,s],["exit",d,s],["enter",c,s]]),h=it(h,yi(s.parser.constructs.insideSpan.null,e.slice(a+1,i),s)),h=it(h,[["exit",c,s],["enter",u,s],["exit",u,s],["exit",v,s]]),e[i][1].end.offset-e[i][1].start.offset?(t=2,h=it(h,[["enter",e[i][1],s],["exit",e[i][1],s]])):t=0,qe(e,a-1,i-a+3,h),i=a+h.length-t-2;break}}for(i=-1;++i=4?d(h):i(h)}function d(h){return h===null?o(h):ue(h)?e.attempt(ig,d,o)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||ue(h)?(e.exit("codeFlowValue"),d(h)):(e.consume(h),u)}function o(h){return e.exit("codeIndented"),s(h)}}function sg(e,s,i){const a=this;return v;function v(d){return a.parser.lazy[a.now().line]?i(d):ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),v):$e(e,c,"linePrefix",4+1)(d)}function c(d){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(d):ue(d)?v(d):i(d)}}const og={name:"codeText",tokenize:cg,resolve:ag,previous:lg};function ag(e){let s=e.length-4,i=3,a,v;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[s][1].type==="lineEnding"||e[s][1].type==="space")){for(a=i;++a=4?s(d):e.interrupt(a.parser.constructs.flow,i,s)(d)}}function ra(e,s,i,a,v,c,d,u,o){const h=o||Number.POSITIVE_INFINITY;let t=0;return n;function n(S){return S===60?(e.enter(a),e.enter(v),e.enter(c),e.consume(S),e.exit(c),r):S===null||S===41||hn(S)?i(S):(e.enter(a),e.enter(d),e.enter(u),e.enter("chunkString",{contentType:"string"}),g(S))}function r(S){return S===62?(e.enter(c),e.consume(S),e.exit(c),e.exit(v),e.exit(a),s):(e.enter(u),e.enter("chunkString",{contentType:"string"}),l(S))}function l(S){return S===62?(e.exit("chunkString"),e.exit(u),r(S)):S===null||S===60||ue(S)?i(S):(e.consume(S),S===92?f:l)}function f(S){return S===60||S===62||S===92?(e.consume(S),l):l(S)}function g(S){return S===40?++t>h?i(S):(e.consume(S),g):S===41?t--?(e.consume(S),g):(e.exit("chunkString"),e.exit(u),e.exit(d),e.exit(a),s(S)):S===null||He(S)?t?i(S):(e.exit("chunkString"),e.exit(u),e.exit(d),e.exit(a),s(S)):hn(S)?i(S):(e.consume(S),S===92?m:g)}function m(S){return S===40||S===41||S===92?(e.consume(S),g):g(S)}}function sa(e,s,i,a,v,c){const d=this;let u=0,o;return h;function h(l){return e.enter(a),e.enter(v),e.consume(l),e.exit(v),e.enter(c),t}function t(l){return l===null||l===91||l===93&&!o||l===94&&!u&&"_hiddenFootnoteSupport"in d.parser.constructs||u>999?i(l):l===93?(e.exit(c),e.enter(v),e.consume(l),e.exit(v),e.exit(a),s):ue(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t):(e.enter("chunkString",{contentType:"string"}),n(l))}function n(l){return l===null||l===91||l===93||ue(l)||u++>999?(e.exit("chunkString"),t(l)):(e.consume(l),o=o||!_e(l),l===92?r:n)}function r(l){return l===91||l===92||l===93?(e.consume(l),u++,n):n(l)}}function oa(e,s,i,a,v,c){let d;return u;function u(r){return e.enter(a),e.enter(v),e.consume(r),e.exit(v),d=r===40?41:r,o}function o(r){return r===d?(e.enter(v),e.consume(r),e.exit(v),e.exit(a),s):(e.enter(c),h(r))}function h(r){return r===d?(e.exit(c),o(d)):r===null?i(r):ue(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$e(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),t(r))}function t(r){return r===d||r===null||ue(r)?(e.exit("chunkString"),h(r)):(e.consume(r),r===92?n:t)}function n(r){return r===d||r===92?(e.consume(r),t):t(r)}}function ln(e,s){let i;return a;function a(v){return ue(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),i=!0,a):_e(v)?$e(e,a,i?"linePrefix":"lineSuffix")(v):s(v)}}function ut(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mg={name:"definition",tokenize:wg},vg={tokenize:bg,partial:!0};function wg(e,s,i){const a=this;let v;return c;function c(o){return e.enter("definition"),sa.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(o)}function d(o){return v=ut(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),o===58?(e.enter("definitionMarker"),e.consume(o),e.exit("definitionMarker"),ln(e,ra(e,e.attempt(vg,$e(e,u,"whitespace"),$e(e,u,"whitespace")),i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):i(o)}function u(o){return o===null||ue(o)?(e.exit("definition"),a.parser.defined.includes(v)||a.parser.defined.push(v),s(o)):i(o)}}function bg(e,s,i){return a;function a(d){return He(d)?ln(e,v)(d):i(d)}function v(d){return d===34||d===39||d===40?oa(e,$e(e,c,"whitespace"),i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d):i(d)}function c(d){return d===null||ue(d)?s(d):i(d)}}const yg={name:"hardBreakEscape",tokenize:xg};function xg(e,s,i){return a;function a(c){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(c),v}function v(c){return ue(c)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),s(c)):i(c)}}const Sg={name:"headingAtx",tokenize:Cg,resolve:kg};function kg(e,s){let i=e.length-2,a=3,v,c;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(v={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},c={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},qe(e,a,i-a+1,[["enter",v,s],["enter",c,s],["exit",c,s],["exit",v,s]])),e}function Cg(e,s,i){const a=this;let v=0;return c;function c(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),d(t)}function d(t){return t===35&&v++<6?(e.consume(t),d):t===null||He(t)?(e.exit("atxHeadingSequence"),a.interrupt?s(t):u(t)):i(t)}function u(t){return t===35?(e.enter("atxHeadingSequence"),o(t)):t===null||ue(t)?(e.exit("atxHeading"),s(t)):_e(t)?$e(e,u,"whitespace")(t):(e.enter("atxHeadingText"),h(t))}function o(t){return t===35?(e.consume(t),o):(e.exit("atxHeadingSequence"),u(t))}function h(t){return t===null||t===35||He(t)?(e.exit("atxHeadingText"),u(t)):(e.consume(t),h)}}const $g=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Qs=["pre","script","style","textarea"],Ag={name:"htmlFlow",tokenize:_g,resolveTo:Lg,concrete:!0},Eg={tokenize:Rg,partial:!0};function Lg(e){let s=e.length;for(;s--&&!(e[s][0]==="enter"&&e[s][1].type==="htmlFlow"););return s>1&&e[s-2][1].type==="linePrefix"&&(e[s][1].start=e[s-2][1].start,e[s+1][1].start=e[s-2][1].start,e.splice(s-2,2)),e}function _g(e,s,i){const a=this;let v,c,d,u,o;return h;function h(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),t}function t(I){return I===33?(e.consume(I),n):I===47?(e.consume(I),f):I===63?(e.consume(I),v=3,a.interrupt?s:B):rt(I)?(e.consume(I),d=String.fromCharCode(I),c=!0,g):i(I)}function n(I){return I===45?(e.consume(I),v=2,r):I===91?(e.consume(I),v=5,d="CDATA[",u=0,l):rt(I)?(e.consume(I),v=4,a.interrupt?s:B):i(I)}function r(I){return I===45?(e.consume(I),a.interrupt?s:B):i(I)}function l(I){return I===d.charCodeAt(u++)?(e.consume(I),u===d.length?a.interrupt?s:b:l):i(I)}function f(I){return rt(I)?(e.consume(I),d=String.fromCharCode(I),g):i(I)}function g(I){return I===null||I===47||I===62||He(I)?I!==47&&c&&Qs.includes(d.toLowerCase())?(v=1,a.interrupt?s(I):b(I)):$g.includes(d.toLowerCase())?(v=6,I===47?(e.consume(I),m):a.interrupt?s(I):b(I)):(v=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(I):c?k(I):S(I)):I===45||Ke(I)?(e.consume(I),d+=String.fromCharCode(I),g):i(I)}function m(I){return I===62?(e.consume(I),a.interrupt?s:b):i(I)}function S(I){return _e(I)?(e.consume(I),S):$(I)}function k(I){return I===47?(e.consume(I),$):I===58||I===95||rt(I)?(e.consume(I),A):_e(I)?(e.consume(I),k):$(I)}function A(I){return I===45||I===46||I===58||I===95||Ke(I)?(e.consume(I),A):E(I)}function E(I){return I===61?(e.consume(I),w):_e(I)?(e.consume(I),E):k(I)}function w(I){return I===null||I===60||I===61||I===62||I===96?i(I):I===34||I===39?(e.consume(I),o=I,y):_e(I)?(e.consume(I),w):(o=null,L(I))}function y(I){return I===null||ue(I)?i(I):I===o?(e.consume(I),x):(e.consume(I),y)}function L(I){return I===null||I===34||I===39||I===60||I===61||I===62||I===96||He(I)?E(I):(e.consume(I),L)}function x(I){return I===47||I===62||_e(I)?k(I):i(I)}function $(I){return I===62?(e.consume(I),p):i(I)}function p(I){return _e(I)?(e.consume(I),p):I===null||ue(I)?b(I):i(I)}function b(I){return I===45&&v===2?(e.consume(I),T):I===60&&v===1?(e.consume(I),R):I===62&&v===4?(e.consume(I),W):I===63&&v===3?(e.consume(I),B):I===93&&v===5?(e.consume(I),N):ue(I)&&(v===6||v===7)?e.check(Eg,W,C)(I):I===null||ue(I)?C(I):(e.consume(I),b)}function C(I){return e.exit("htmlFlowData"),_(I)}function _(I){return I===null?F(I):ue(I)?e.attempt({tokenize:M,partial:!0},_,F)(I):(e.enter("htmlFlowData"),b(I))}function M(I,H,z){return V;function V(Z){return I.enter("lineEnding"),I.consume(Z),I.exit("lineEnding"),K}function K(Z){return a.parser.lazy[a.now().line]?z(Z):H(Z)}}function T(I){return I===45?(e.consume(I),B):b(I)}function R(I){return I===47?(e.consume(I),d="",D):b(I)}function D(I){return I===62&&Qs.includes(d.toLowerCase())?(e.consume(I),W):rt(I)&&d.length<8?(e.consume(I),d+=String.fromCharCode(I),D):b(I)}function N(I){return I===93?(e.consume(I),B):b(I)}function B(I){return I===62?(e.consume(I),W):I===45&&v===2?(e.consume(I),B):b(I)}function W(I){return I===null||ue(I)?(e.exit("htmlFlowData"),F(I)):(e.consume(I),W)}function F(I){return e.exit("htmlFlow"),s(I)}}function Rg(e,s,i){return a;function a(v){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(v),e.exit("lineEndingBlank"),e.attempt(gn,s,i)}}const Mg={name:"htmlText",tokenize:Tg};function Tg(e,s,i){const a=this;let v,c,d,u;return o;function o(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),h}function h(F){return F===33?(e.consume(F),t):F===47?(e.consume(F),L):F===63?(e.consume(F),w):rt(F)?(e.consume(F),p):i(F)}function t(F){return F===45?(e.consume(F),n):F===91?(e.consume(F),c="CDATA[",d=0,m):rt(F)?(e.consume(F),E):i(F)}function n(F){return F===45?(e.consume(F),r):i(F)}function r(F){return F===null||F===62?i(F):F===45?(e.consume(F),l):f(F)}function l(F){return F===null||F===62?i(F):f(F)}function f(F){return F===null?i(F):F===45?(e.consume(F),g):ue(F)?(u=f,N(F)):(e.consume(F),f)}function g(F){return F===45?(e.consume(F),W):f(F)}function m(F){return F===c.charCodeAt(d++)?(e.consume(F),d===c.length?S:m):i(F)}function S(F){return F===null?i(F):F===93?(e.consume(F),k):ue(F)?(u=S,N(F)):(e.consume(F),S)}function k(F){return F===93?(e.consume(F),A):S(F)}function A(F){return F===62?W(F):F===93?(e.consume(F),A):S(F)}function E(F){return F===null||F===62?W(F):ue(F)?(u=E,N(F)):(e.consume(F),E)}function w(F){return F===null?i(F):F===63?(e.consume(F),y):ue(F)?(u=w,N(F)):(e.consume(F),w)}function y(F){return F===62?W(F):w(F)}function L(F){return rt(F)?(e.consume(F),x):i(F)}function x(F){return F===45||Ke(F)?(e.consume(F),x):$(F)}function $(F){return ue(F)?(u=$,N(F)):_e(F)?(e.consume(F),$):W(F)}function p(F){return F===45||Ke(F)?(e.consume(F),p):F===47||F===62||He(F)?b(F):i(F)}function b(F){return F===47?(e.consume(F),W):F===58||F===95||rt(F)?(e.consume(F),C):ue(F)?(u=b,N(F)):_e(F)?(e.consume(F),b):W(F)}function C(F){return F===45||F===46||F===58||F===95||Ke(F)?(e.consume(F),C):_(F)}function _(F){return F===61?(e.consume(F),M):ue(F)?(u=_,N(F)):_e(F)?(e.consume(F),_):b(F)}function M(F){return F===null||F===60||F===61||F===62||F===96?i(F):F===34||F===39?(e.consume(F),v=F,T):ue(F)?(u=M,N(F)):_e(F)?(e.consume(F),M):(e.consume(F),v=void 0,D)}function T(F){return F===v?(e.consume(F),R):F===null?i(F):ue(F)?(u=T,N(F)):(e.consume(F),T)}function R(F){return F===62||F===47||He(F)?b(F):i(F)}function D(F){return F===null||F===34||F===39||F===60||F===61||F===96?i(F):F===62||He(F)?b(F):(e.consume(F),D)}function N(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),$e(e,B,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function B(F){return e.enter("htmlTextData"),u(F)}function W(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),s):i(F)}}const Dr={name:"labelEnd",tokenize:Ng,resolveTo:Dg,resolveAll:Pg},Og={tokenize:Bg},Fg={tokenize:Hg},Ig={tokenize:Wg};function Pg(e){let s=-1,i;for(;++s-1&&(d[0]=d[0].slice(a)),c>0&&d.push(e[v].slice(0,c))),d}function hp(e,s){let i=-1;const a=[];let v;for(;++i13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCharCode(i)}const $p=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ua(e){return e.replace($p,Ap)}function Ap(e,s,i){if(s)return s;if(i.charCodeAt(0)===35){const v=i.charCodeAt(1),c=v===120||v===88;return ca(i.slice(c?2:1),c?16:10)}return Pr(i)||e}const ha={}.hasOwnProperty,Ep=function(e,s,i){return typeof s!="string"&&(i=s,s=void 0),Lp(i)(Cp(Sp(i).document().write(kp()(e,s,!0))))};function Lp(e){const s={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Ne),autolinkProtocol:b,autolinkEmail:b,atxHeading:u(he),blockQuote:u(te),characterEscape:b,characterReference:b,codeFenced:u(ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:u(ge,o),codeText:u(me,o),codeTextData:b,data:b,codeFlowValue:b,definition:u(ie),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:u(q),hardBreakEscape:u(Ce),hardBreakTrailing:u(Ce),htmlFlow:u(Se,o),htmlFlowData:b,htmlText:u(Se,o),htmlTextData:b,image:u(we),label:o,link:u(Ne),listItem:u(le),listItemValue:f,listOrdered:u(Y,l),listUnordered:u(Y),paragraph:u(ce),reference:V,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:u(he),strong:u(ke),thematicBreak:u(Re)},exit:{atxHeading:t(),atxHeadingSequence:L,autolink:t(),autolinkEmail:J,autolinkProtocol:re,blockQuote:t(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:G,codeFenced:t(k),codeFencedFence:S,codeFencedFenceInfo:g,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:t(A),codeText:t(D),codeTextData:C,data:C,definition:t(),definitionDestinationString:y,definitionLabelString:E,definitionTitleString:w,emphasis:t(),hardBreakEscape:t(M),hardBreakTrailing:t(M),htmlFlow:t(T),htmlFlowData:C,htmlText:t(R),htmlTextData:C,image:t(B),label:F,labelText:W,lineEnding:_,link:t(N),listItem:t(),listOrdered:t(),listUnordered:t(),paragraph:t(),referenceString:K,resourceDestinationString:I,resourceTitleString:H,resource:z,setextHeading:t(p),setextHeadingLineSequence:$,setextHeadingText:x,strong:t(),thematicBreak:t()}};fa(s,(e||{}).mdastExtensions||[]);const i={};return a;function a(U){let X={type:"root",children:[]};const ne={stack:[X],tokenStack:[],config:s,enter:h,exit:n,buffer:o,resume:r,setData:c,getData:d},oe=[];let be=-1;for(;++be0){const We=ne.tokenStack[ne.tokenStack.length-1];(We[1]||qs).call(ne,void 0,We[0])}for(X.position={start:Ct(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:Ct(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be{const a=this.data("settings");return Ep(i,Object.assign({},a,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Mp(e,s){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(s),!0)};return e.patch(s,i),e.applyData(s,i)}function Tp(e,s){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(s,i),[e.applyData(s,i),{type:"text",value:` -`}]}function Op(e,s){const i=s.value?s.value+` -`:"",a=s.lang?s.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,v={};a&&(v.className=["language-"+a]);let c={type:"element",tagName:"code",properties:v,children:[{type:"text",value:i}]};return s.meta&&(c.data={meta:s.meta}),e.patch(s,c),c=e.applyData(s,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(s,c),c}function Fp(e,s){const i={type:"element",tagName:"del",properties:{},children:e.all(s)};return e.patch(s,i),e.applyData(s,i)}function Ip(e,s){const i={type:"element",tagName:"em",properties:{},children:e.all(s)};return e.patch(s,i),e.applyData(s,i)}function Xt(e){const s=[];let i=-1,a=0,v=0;for(;++i55295&&c<57344){const u=e.charCodeAt(i+1);c<56320&&u>56319&&u<57344?(d=String.fromCharCode(c,u),v=1):d="�"}else d=String.fromCharCode(c);d&&(s.push(e.slice(a,i),encodeURIComponent(d)),a=i+v+1,d=""),v&&(i+=v,v=0)}return s.join("")+e.slice(a)}function da(e,s){const i=String(s.identifier).toUpperCase(),a=Xt(i.toLowerCase()),v=e.footnoteOrder.indexOf(i);let c;v===-1?(e.footnoteOrder.push(i),e.footnoteCounts[i]=1,c=e.footnoteOrder.length):(e.footnoteCounts[i]++,c=v+1);const d=e.footnoteCounts[i],u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+a,id:e.clobberPrefix+"fnref-"+a+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(s,u);const o={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(s,o),e.applyData(s,o)}function Pp(e,s){const i=e.footnoteById;let a=1;for(;a in i;)a++;const v=String(a);return i[v]={type:"footnoteDefinition",identifier:v,children:[{type:"paragraph",children:s.children}],position:s.position},da(e,{type:"footnoteReference",identifier:v,position:s.position})}function Dp(e,s){const i={type:"element",tagName:"h"+s.depth,properties:{},children:e.all(s)};return e.patch(s,i),e.applyData(s,i)}function Np(e,s){if(e.dangerous){const i={type:"raw",value:s.value};return e.patch(s,i),e.applyData(s,i)}return null}function ga(e,s){const i=s.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(s.label||s.identifier)+"]"),s.type==="imageReference")return{type:"text",value:"!["+s.alt+a};const v=e.all(s),c=v[0];c&&c.type==="text"?c.value="["+c.value:v.unshift({type:"text",value:"["});const d=v[v.length-1];return d&&d.type==="text"?d.value+=a:v.push({type:"text",value:a}),v}function Bp(e,s){const i=e.definition(s.identifier);if(!i)return ga(e,s);const a={src:Xt(i.url||""),alt:s.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const v={type:"element",tagName:"img",properties:a,children:[]};return e.patch(s,v),e.applyData(s,v)}function Hp(e,s){const i={src:Xt(s.url)};s.alt!==null&&s.alt!==void 0&&(i.alt=s.alt),s.title!==null&&s.title!==void 0&&(i.title=s.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(s,a),e.applyData(s,a)}function Wp(e,s){const i={type:"text",value:s.value.replace(/\r?\n|\r/g," ")};e.patch(s,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(s,a),e.applyData(s,a)}function jp(e,s){const i=e.definition(s.identifier);if(!i)return ga(e,s);const a={href:Xt(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const v={type:"element",tagName:"a",properties:a,children:e.all(s)};return e.patch(s,v),e.applyData(s,v)}function zp(e,s){const i={href:Xt(s.url)};s.title!==null&&s.title!==void 0&&(i.title=s.title);const a={type:"element",tagName:"a",properties:i,children:e.all(s)};return e.patch(s,a),e.applyData(s,a)}function Up(e,s,i){const a=e.all(s),v=i?Vp(i):pa(s),c={},d=[];if(typeof s.checked=="boolean"){const t=a[0];let n;t&&t.type==="element"&&t.tagName==="p"?n=t:(n={type:"element",tagName:"p",properties:{},children:[]},a.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:s.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let u=-1;for(;++u1}function Gp(e,s){const i={},a=e.all(s);let v=-1;for(typeof s.start=="number"&&s.start!==1&&(i.start=s.start);++v-1?a.offset:null}}}function Jp(e,s){const i=e.all(s),a=i.shift(),v=[];if(a){const d={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(s.children[0],d),v.push(d)}if(i.length>0){const d={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},u=Nr(s.children[1]),o=Br(s.children[s.children.length-1]);u.line&&o.line&&(d.position={start:u,end:o}),v.push(d)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(v,!0)};return e.patch(s,c),e.applyData(s,c)}function Zp(e,s,i){const a=i?i.children:void 0,c=(a?a.indexOf(s):1)===0?"th":"td",d=i&&i.type==="table"?i.align:void 0,u=d?d.length:s.children.length;let o=-1;const h=[];for(;++o0,!0),a[0]),v=a.index+a[0].length,a=i.exec(s);return c.push(no(s.slice(v),v>0,!1)),c.join("")}function no(e,s,i){let a=0,v=e.length;if(s){let c=e.codePointAt(a);for(;c===eo||c===to;)a++,c=e.codePointAt(a)}if(i){let c=e.codePointAt(v-1);for(;c===eo||c===to;)v--,c=e.codePointAt(v-1)}return v>a?e.slice(a,v):""}function tm(e,s){const i={type:"text",value:em(String(s.value))};return e.patch(s,i),e.applyData(s,i)}function nm(e,s){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(s,i),e.applyData(s,i)}const im={blockquote:Mp,break:Tp,code:Op,delete:Fp,emphasis:Ip,footnoteReference:da,footnote:Pp,heading:Dp,html:Np,imageReference:Bp,image:Hp,inlineCode:Wp,linkReference:jp,link:zp,listItem:Up,list:Gp,paragraph:Kp,root:Yp,strong:Xp,table:Jp,tableCell:qp,tableRow:Zp,text:tm,thematicBreak:nm,toml:An,yaml:An,definition:An,footnoteDefinition:An};function An(){return null}const Hr=function(e){if(e==null)return am;if(typeof e=="string")return om(e);if(typeof e=="object")return Array.isArray(e)?rm(e):sm(e);if(typeof e=="function")return xi(e);throw new Error("Expected function, string, or object as test")};function rm(e){const s=[];let i=-1;for(;++i":""))+")"})}return n;function n(){let r=[],l,f,g;if((!s||v(u,o,h[h.length-1]||null))&&(r=um(i(u,h)),r[0]===io))return r;if(u.children&&r[0]!==cm)for(f=(a?u.children.length:-1)+c,g=h.concat(u);f>-1&&f{const v=so(a.identifier);v&&!ro.call(s,v)&&(s[v]=a)}),i;function i(a){const v=so(a);return v&&ro.call(s,v)?s[v]:null}}function so(e){return String(e||"").toUpperCase()}const ci={}.hasOwnProperty;function dm(e,s){const i=s||{},a=i.allowDangerousHtml||!1,v={};return d.dangerous=a,d.clobberPrefix=i.clobberPrefix===void 0||i.clobberPrefix===null?"user-content-":i.clobberPrefix,d.footnoteLabel=i.footnoteLabel||"Footnotes",d.footnoteLabelTagName=i.footnoteLabelTagName||"h2",d.footnoteLabelProperties=i.footnoteLabelProperties||{className:["sr-only"]},d.footnoteBackLabel=i.footnoteBackLabel||"Back to content",d.unknownHandler=i.unknownHandler,d.passThrough=i.passThrough,d.handlers={...im,...i.handlers},d.definition=fm(e),d.footnoteById=v,d.footnoteOrder=[],d.footnoteCounts={},d.patch=gm,d.applyData=pm,d.one=u,d.all=o,d.wrap=vm,d.augment=c,Wr(e,"footnoteDefinition",h=>{const t=String(h.identifier).toUpperCase();ci.call(v,t)||(v[t]=h)}),d;function c(h,t){if(h&&"data"in h&&h.data){const n=h.data;n.hName&&(t.type!=="element"&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),t.type==="element"&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(h){const n="type"in h?h:{position:h};hm(n)||(t.position={start:Nr(n),end:Br(n)})}return t}function d(h,t,n,r){return Array.isArray(n)&&(r=n,n={}),c(h,{type:"element",tagName:t,properties:n||{},children:r||[]})}function u(h,t){return wa(d,h,t)}function o(h){return jr(d,h)}}function gm(e,s){e.position&&(s.position=Qp(e))}function pm(e,s){let i=s;if(e&&e.data){const a=e.data.hName,v=e.data.hChildren,c=e.data.hProperties;typeof a=="string"&&(i.type==="element"?i.tagName=a:i={type:"element",tagName:a,properties:{},children:[]}),i.type==="element"&&c&&(i.properties={...i.properties,...c}),"children"in i&&i.children&&v!==null&&v!==void 0&&(i.children=v)}return i}function wa(e,s,i){const a=s&&s.type;if(!a)throw new Error("Expected node, got `"+s+"`");return ci.call(e.handlers,a)?e.handlers[a](e,s,i):e.passThrough&&e.passThrough.includes(a)?"children"in s?{...s,children:jr(e,s)}:s:e.unknownHandler?e.unknownHandler(e,s,i):mm(e,s)}function jr(e,s){const i=[];if("children"in s){const a=s.children;let v=-1;for(;++v0&&i.push({type:"text",value:` -`}),i}function wm(e){const s=[];let i=-1;for(;++i1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),o.length>0&&o.push({type:"text",value:" "}),o.push(n)}const h=v[v.length-1];if(h&&h.type==="element"&&h.tagName==="p"){const n=h.children[h.children.length-1];n&&n.type==="text"?n.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...o)}else v.push(...o);const t={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+d},children:e.wrap(v,!0)};e.patch(a,t),s.push(t)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}function ba(e,s){const i=dm(e,s),a=i.one(e,null),v=wm(i);return v&&a.children.push({type:"text",value:` -`},v),Array.isArray(a)?{type:"root",children:a}:a}const bm=function(e,s){return e&&"run"in e?xm(e,s):Sm(e||s)},ym=bm;function xm(e,s){return(i,a,v)=>{e.run(ba(i,s),a,c=>{v(c)})}}function Sm(e){return s=>ba(s,e)}class pn{constructor(s,i,a){this.property=s,this.normal=i,a&&(this.space=a)}}pn.prototype.property={};pn.prototype.normal={};pn.prototype.space=null;function ya(e,s){const i={},a={};let v=-1;for(;++v4&&i.slice(0,4)==="data"&&Em.test(s)){if(s.charAt(4)==="-"){const c=s.slice(5).replace(ao,Mm);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=s.slice(4);if(!ao.test(c)){let d=c.replace(Lm,Rm);d.charAt(0)!=="-"&&(d="-"+d),s="data"+d}}v=zr}return new v(a,s)}function Rm(e){return"-"+e.toLowerCase()}function Mm(e){return e.charAt(1).toUpperCase()}const lo={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Tm=ya([ka,Sa,Aa,Ea,$m],"html"),Om=ya([ka,Sa,Aa,Ea,Am],"svg");function Fm(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return s=>{Wr(s,"element",(i,a,v)=>{const c=v;let d;if(e.allowedElements?d=!e.allowedElements.includes(i.tagName):e.disallowedElements&&(d=e.disallowedElements.includes(i.tagName)),!d&&e.allowElement&&typeof a=="number"&&(d=!e.allowElement(i,a,c)),d&&typeof a=="number")return e.unwrapDisallowed&&i.children?c.children.splice(a,1,...i.children):c.children.splice(a,1),a})}}var xr={},Im={get exports(){return xr},set exports(e){xr=e}},Le={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ur=Symbol.for("react.element"),Vr=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),ki=Symbol.for("react.strict_mode"),Ci=Symbol.for("react.profiler"),$i=Symbol.for("react.provider"),Ai=Symbol.for("react.context"),Pm=Symbol.for("react.server_context"),Ei=Symbol.for("react.forward_ref"),Li=Symbol.for("react.suspense"),_i=Symbol.for("react.suspense_list"),Ri=Symbol.for("react.memo"),Mi=Symbol.for("react.lazy"),Dm=Symbol.for("react.offscreen"),La;La=Symbol.for("react.module.reference");function at(e){if(typeof e=="object"&&e!==null){var s=e.$$typeof;switch(s){case Ur:switch(e=e.type,e){case Si:case Ci:case ki:case Li:case _i:return e;default:switch(e=e&&e.$$typeof,e){case Pm:case Ai:case Ei:case Mi:case Ri:case $i:return e;default:return s}}case Vr:return s}}}Le.ContextConsumer=Ai;Le.ContextProvider=$i;Le.Element=Ur;Le.ForwardRef=Ei;Le.Fragment=Si;Le.Lazy=Mi;Le.Memo=Ri;Le.Portal=Vr;Le.Profiler=Ci;Le.StrictMode=ki;Le.Suspense=Li;Le.SuspenseList=_i;Le.isAsyncMode=function(){return!1};Le.isConcurrentMode=function(){return!1};Le.isContextConsumer=function(e){return at(e)===Ai};Le.isContextProvider=function(e){return at(e)===$i};Le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ur};Le.isForwardRef=function(e){return at(e)===Ei};Le.isFragment=function(e){return at(e)===Si};Le.isLazy=function(e){return at(e)===Mi};Le.isMemo=function(e){return at(e)===Ri};Le.isPortal=function(e){return at(e)===Vr};Le.isProfiler=function(e){return at(e)===Ci};Le.isStrictMode=function(e){return at(e)===ki};Le.isSuspense=function(e){return at(e)===Li};Le.isSuspenseList=function(e){return at(e)===_i};Le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Si||e===Ci||e===ki||e===Li||e===_i||e===Dm||typeof e=="object"&&e!==null&&(e.$$typeof===Mi||e.$$typeof===Ri||e.$$typeof===$i||e.$$typeof===Ai||e.$$typeof===Ei||e.$$typeof===La||e.getModuleId!==void 0)};Le.typeOf=at;(function(e){e.exports=Le})(Im);const Nm=fi(xr);function Bm(e){const s=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof s=="string"&&s.replace(/[ \t\n\f\r]/g,"")===""}function Hm(e){return e.join(" ").trim()}function Wm(e,s){const i=s||{};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}var ui={},jm={get exports(){return ui},set exports(e){ui=e}},co=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zm=/\n/g,Um=/^\s*/,Vm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Gm=/^:\s*/,Km=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ym=/^[;\s]*/,Xm=/^\s+|\s+$/g,Qm=` -`,uo="/",ho="*",Pt="",Jm="comment",Zm="declaration",qm=function(e,s){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var i=1,a=1;function v(f){var g=f.match(zm);g&&(i+=g.length);var m=f.lastIndexOf(Qm);a=~m?f.length-m:a+f.length}function c(){var f={line:i,column:a};return function(g){return g.position=new d(f),h(),g}}function d(f){this.start=f,this.end={line:i,column:a},this.source=s.source}d.prototype.content=e;function u(f){var g=new Error(s.source+":"+i+":"+a+": "+f);if(g.reason=f,g.filename=s.source,g.line=i,g.column=a,g.source=e,!s.silent)throw g}function o(f){var g=f.exec(e);if(g){var m=g[0];return v(m),e=e.slice(m.length),g}}function h(){o(Um)}function t(f){var g;for(f=f||[];g=n();)g!==!1&&f.push(g);return f}function n(){var f=c();if(!(uo!=e.charAt(0)||ho!=e.charAt(1))){for(var g=2;Pt!=e.charAt(g)&&(ho!=e.charAt(g)||uo!=e.charAt(g+1));)++g;if(g+=2,Pt===e.charAt(g-1))return u("End of comment missing");var m=e.slice(2,g-2);return a+=2,v(m),e=e.slice(g),a+=2,f({type:Jm,comment:m})}}function r(){var f=c(),g=o(Vm);if(g){if(n(),!o(Gm))return u("property missing ':'");var m=o(Km),S=f({type:Zm,property:fo(g[0].replace(co,Pt)),value:m?fo(m[0].replace(co,Pt)):Pt});return o(Ym),S}}function l(){var f=[];t(f);for(var g;g=r();)g!==!1&&(f.push(g),t(f));return f}return h(),l()};function fo(e){return e?e.replace(Xm,Pt):Pt}var ev=qm;function _a(e,s){var i=null;if(!e||typeof e!="string")return i;for(var a,v=ev(e),c=typeof s=="function",d,u,o=0,h=v.length;o0?zt.createElement(l,o,n):zt.createElement(l,o)}function rv(e){let s=-1;for(;++s for more info)`),delete En[c]}const s=Rd().use(Rp).use(e.remarkPlugins||[]).use(ym,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Fm,e),i=new Yo;typeof e.children=="string"?i.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const a=s.runSync(s.parse(i),i);if(a.type!=="root")throw new TypeError("Expected a `root` node");let v=zt.createElement(zt.Fragment,{},Ra({options:e,schema:Tm,listDepth:0},a));return e.className&&(v=zt.createElement("div",{className:e.className},v)),v}Ma.propTypes={children:pe.string,className:pe.string,allowElement:pe.func,allowedElements:pe.arrayOf(pe.string),disallowedElements:pe.arrayOf(pe.string),unwrapDisallowed:pe.bool,remarkPlugins:pe.arrayOf(pe.oneOfType([pe.object,pe.func,pe.arrayOf(pe.oneOfType([pe.bool,pe.string,pe.object,pe.func,pe.arrayOf(pe.any)]))])),rehypePlugins:pe.arrayOf(pe.oneOfType([pe.object,pe.func,pe.arrayOf(pe.oneOfType([pe.bool,pe.string,pe.object,pe.func,pe.arrayOf(pe.any)]))])),sourcePos:pe.bool,rawSourcePos:pe.bool,skipHtml:pe.bool,includeElementIndex:pe.bool,transformLinkUri:pe.oneOfType([pe.func,pe.bool]),linkTarget:pe.oneOfType([pe.func,pe.string]),transformImageUri:pe.func,components:pe.object};const uv={tokenize:pv,partial:!0},Ta={tokenize:mv,partial:!0},Oa={tokenize:vv,partial:!0},Vt={tokenize:bv,partial:!0},Fa={tokenize:wv,partial:!0},Ia={tokenize:dv,previous:Na},Pa={tokenize:gv,previous:Kr},bt={tokenize:fv,previous:Ba},gt={},hv={text:gt};let Ot=48;for(;Ot<123;)gt[Ot]=bt,Ot++,Ot===58?Ot=65:Ot===91&&(Ot=97);gt[43]=bt;gt[45]=bt;gt[46]=bt;gt[95]=bt;gt[72]=[bt,Pa];gt[104]=[bt,Pa];gt[87]=[bt,Ia];gt[119]=[bt,Ia];function fv(e,s,i){const a=this;let v,c;return d;function d(l){return!po(l)||!Ba(a.previous)||Yr(a.events)?i(l):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(l))}function u(l){return po(l)?(e.consume(l),u):l===64?(e.consume(l),o):i(l)}function o(l){return l===46?e.check(Vt,r,h)(l):l===45||l===95?e.check(Vt,i,t)(l):Ke(l)?(!c&&ai(l)&&(c=!0),e.consume(l),o):r(l)}function h(l){return e.consume(l),v=!0,c=void 0,o}function t(l){return e.consume(l),n}function n(l){return l===46?e.check(Vt,i,h)(l):o(l)}function r(l){return v&&!c?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),s(l)):i(l)}}function dv(e,s,i){const a=this;return v;function v(d){return d!==87&&d!==119||!Na(a.previous)||Yr(a.events)?i(d):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uv,e.attempt(Ta,e.attempt(Oa,c),i),i)(d))}function c(d){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),s(d)}}function gv(e,s,i){const a=this;return v;function v(f){return f!==72&&f!==104||!Kr(a.previous)||Yr(a.events)?i(f):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(f),c)}function c(f){return f===84||f===116?(e.consume(f),d):i(f)}function d(f){return f===84||f===116?(e.consume(f),u):i(f)}function u(f){return f===80||f===112?(e.consume(f),o):i(f)}function o(f){return f===83||f===115?(e.consume(f),h):h(f)}function h(f){return f===58?(e.consume(f),t):i(f)}function t(f){return f===47?(e.consume(f),n):i(f)}function n(f){return f===47?(e.consume(f),r):i(f)}function r(f){return f===null||hn(f)||wi(f)||bi(f)?i(f):e.attempt(Ta,e.attempt(Oa,l),i)(f)}function l(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),s(f)}}function pv(e,s,i){return a;function a(o){return e.consume(o),v}function v(o){return o===87||o===119?(e.consume(o),c):i(o)}function c(o){return o===87||o===119?(e.consume(o),d):i(o)}function d(o){return o===46?(e.consume(o),u):i(o)}function u(o){return o===null||ue(o)?i(o):s(o)}}function mv(e,s,i){let a,v;return c;function c(o){return o===38?e.check(Fa,u,d)(o):o===46||o===95?e.check(Vt,u,d)(o):o===null||hn(o)||wi(o)||o!==45&&bi(o)?u(o):(e.consume(o),c)}function d(o){return o===46?(v=a,a=void 0,e.consume(o),c):(o===95&&(a=!0),e.consume(o),c)}function u(o){return!v&&!a?s(o):i(o)}}function vv(e,s){let i=0;return a;function a(d){return d===38?e.check(Fa,s,v)(d):(d===40&&i++,d===41?e.check(Vt,c,v)(d):Gr(d)?s(d):Da(d)?e.check(Vt,s,v)(d):(e.consume(d),a))}function v(d){return e.consume(d),a}function c(d){return i--,i<0?s(d):v(d)}}function wv(e,s,i){return a;function a(d){return e.consume(d),v}function v(d){return rt(d)?(e.consume(d),v):d===59?(e.consume(d),c):i(d)}function c(d){return Gr(d)?s(d):i(d)}}function bv(e,s,i){return a;function a(c){return e.consume(c),v}function v(c){return Da(c)?(e.consume(c),v):Gr(c)?s(c):i(c)}}function Da(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}function Gr(e){return e===null||e===60||He(e)}function po(e){return e===43||e===45||e===46||e===95||Ke(e)}function Na(e){return e===null||e===40||e===42||e===95||e===126||He(e)}function Kr(e){return e===null||!rt(e)}function Ba(e){return e!==47&&Kr(e)}function Yr(e){let s=e.length,i=!1;for(;s--;){const a=e[s][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const yv={tokenize:Lv,partial:!0};function xv(){return{document:{[91]:{tokenize:$v,continuation:{tokenize:Av},exit:Ev}},text:{[91]:{tokenize:Cv},[93]:{add:"after",tokenize:Sv,resolveTo:kv}}}}function Sv(e,s,i){const a=this;let v=a.events.length;const c=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let d;for(;v--;){const o=a.events[v][1];if(o.type==="labelImage"){d=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!d||!d._balanced)return i(o);const h=ut(a.sliceSerialize({start:d.end,end:a.now()}));return h.charCodeAt(0)!==94||!c.includes(h.slice(1))?i(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),s(o))}}function kv(e,s){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},v={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};v.end.column++,v.end.offset++,v.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},v.end),end:Object.assign({},e[e.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},u=[e[i+1],e[i+2],["enter",a,s],e[i+3],e[i+4],["enter",v,s],["exit",v,s],["enter",c,s],["enter",d,s],["exit",d,s],["exit",c,s],e[e.length-2],e[e.length-1],["exit",a,s]];return e.splice(i,e.length-i+1,...u),e}function Cv(e,s,i){const a=this,v=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c=0,d;return u;function u(r){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),o}function o(r){return r!==94?i(r):(e.enter("gfmFootnoteCallMarker"),e.consume(r),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(r){let l;return r===null||r===91||c++>999?i(r):r===93?d?(e.exit("chunkString"),l=e.exit("gfmFootnoteCallString"),v.includes(ut(a.sliceSerialize(l)))?n(r):i(r)):i(r):(e.consume(r),He(r)||(d=!0),r===92?t:h)}function t(r){return r===91||r===92||r===93?(e.consume(r),c++,h):h(r)}function n(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),s}}function $v(e,s,i){const a=this,v=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c,d=0,u;return o;function o(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),t):i(g)}function t(g){let m;return g===null||g===91||d>999?i(g):g===93?u?(m=e.exit("gfmFootnoteDefinitionLabelString"),c=ut(a.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),l):i(g):ue(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d++,t):(e.enter("chunkString").contentType="string",n(g))}function n(g){return g===null||ue(g)||g===91||g===93||d>999?(e.exit("chunkString"),t(g)):(He(g)||(u=!0),d++,e.consume(g),g===92?r:n)}function r(g){return g===91||g===92||g===93?(e.consume(g),d++,n):n(g)}function l(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),$e(e,f,"gfmFootnoteDefinitionWhitespace")):i(g)}function f(g){return v.includes(c)||v.push(c),s(g)}}function Av(e,s,i){return e.check(gn,s,e.attempt(yv,s,i))}function Ev(e){e.exit("gfmFootnoteDefinition")}function Lv(e,s,i){const a=this;return $e(e,v,"gfmFootnoteDefinitionIndent",4+1);function v(c){const d=a.events[a.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?s(c):i(c)}}function _v(e={}){let s=e.singleTilde;const i={tokenize:v,resolveAll:a};return s==null&&(s=!0),{text:{[126]:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(c,d){let u=-1;for(;++u1?u(l):(c.consume(l),t++,r);if(t<2&&!s)return u(l);const g=c.exit("strikethroughSequenceTemporary"),m=li(l);return g._open=!m||m===2&&Boolean(f),g._close=!f||f===2&&Boolean(m),d(l)}}}const Rv={flow:{null:{tokenize:Tv,resolve:Mv}}},mo={tokenize:Ov,partial:!0};function Mv(e,s){let i=-1,a,v,c,d,u,o,h;for(;++i=4?N(F):(a._gfmTableDynamicInterruptHack=!0,R.check(a.parser.constructs.flow,function(H){return a._gfmTableDynamicInterruptHack=!1,N(H)},function(H){return a._gfmTableDynamicInterruptHack=!1,D(H)})(F))}}}function Ov(e,s,i){let a=0;return v;function v(d){return e.enter("check"),e.consume(d),c}function c(d){return d===-1||d===32?(e.consume(d),a++,a===4?s:c):d===null||He(d)?s(d):i(d)}}const Fv={tokenize:Pv},Iv={text:{[91]:Fv}};function Pv(e,s,i){const a=this;return v;function v(u){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),c)}function c(u){return He(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),d):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),d):i(u)}function d(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:Dv},s,i)):i(u)}}function Dv(e,s,i){const a=this;return $e(e,v,"whitespace");function v(c){const d=a.events[a.events.length-1];return(d&&d[1].type==="whitespace"||ue(c))&&c!==null?s(c):i(c)}}function Nv(e){return qo([hv,xv(),_v(e),Rv,Iv])}function vo(e,s){const i=String(e);if(typeof s!="string")throw new TypeError("Expected character");let a=0,v=i.indexOf(s);for(;v!==-1;)a++,v=i.indexOf(s,v+s.length);return a}function Bv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Hv={}.hasOwnProperty,Wv=function(e,s,i,a){let v,c;typeof s=="string"||s instanceof RegExp?(c=[[s,i]],v=a):(c=s,v=i),v||(v={});const d=Hr(v.ignore||[]),u=jv(c);let o=-1;for(;++o0?{type:"text",value:L}:void 0),L!==!1&&(m!==w&&A.push({type:"text",value:n.value.slice(m,w)}),Array.isArray(L)?A.push(...L):L&&A.push(L),m=w+E[0].length,k=!0),!f.global)break;E=f.exec(n.value)}return k?(me}const qi="phrasing",er=["autolink","link","image","label"],zv={transforms:[Qv],enter:{literalAutolink:Vv,literalAutolinkEmail:tr,literalAutolinkHttp:tr,literalAutolinkWww:tr},exit:{literalAutolink:Xv,literalAutolinkEmail:Yv,literalAutolinkHttp:Gv,literalAutolinkWww:Kv}},Uv={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qi,notInConstruct:er},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qi,notInConstruct:er},{character:":",before:"[ps]",after:"\\/",inConstruct:qi,notInConstruct:er}]};function Vv(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function tr(e){this.config.enter.autolinkProtocol.call(this,e)}function Gv(e){this.config.exit.autolinkProtocol.call(this,e)}function Kv(e){this.config.exit.data.call(this,e);const s=this.stack[this.stack.length-1];s.url="http://"+this.sliceSerialize(e)}function Yv(e){this.config.exit.autolinkEmail.call(this,e)}function Xv(e){this.exit(e)}function Qv(e){Wv(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Jv],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Zv]],{ignore:["link","linkReference"]})}function Jv(e,s,i,a,v){let c="";if(!Ha(v)||(/^w/i.test(s)&&(i=s+i,s="",c="http://"),!qv(i)))return!1;const d=ew(i+a);if(!d[0])return!1;const u={type:"link",title:null,url:c+s+d[0],children:[{type:"text",value:s+d[0]}]};return d[1]?[u,{type:"text",value:d[1]}]:u}function Zv(e,s,i,a){return!Ha(a,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+s+"@"+i,children:[{type:"text",value:s+"@"+i}]}}function qv(e){const s=e.split(".");return!(s.length<2||s[s.length-1]&&(/_/.test(s[s.length-1])||!/[a-zA-Z\d]/.test(s[s.length-1]))||s[s.length-2]&&(/_/.test(s[s.length-2])||!/[a-zA-Z\d]/.test(s[s.length-2])))}function ew(e){const s=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!s)return[e,void 0];e=e.slice(0,s.index);let i=s[0],a=i.indexOf(")");const v=vo(e,"(");let c=vo(e,")");for(;a!==-1&&v>c;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),c++;return[e,i]}function Ha(e,s){const i=e.input.charCodeAt(e.index-1);return(e.index===0||wi(i)||bi(i))&&(!s||i!==47)}function Wa(e){return e.label||!e.identifier?e.label||"":ua(e.identifier)}function tw(e,s,i){const a=s.indexStack,v=e.children||[],c=s.createTracker(i),d=[];let u=-1;for(a.push(-1);++u - -`}return` - -`}const iw=/\r?\n|\r/g;function rw(e,s){const i=[];let a=0,v=0,c;for(;c=iw.exec(e);)d(e.slice(a,c.index)),i.push(c[0]),a=c.index+c[0].length,v++;return d(e.slice(a)),i.join("");function d(u){i.push(s(u,v,!u))}}function ja(e){if(!e._compiled){const s=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((s?"("+s+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function sw(e,s){return yo(e,s.inConstruct,!0)&&!yo(e,s.notInConstruct,!1)}function yo(e,s,i){if(typeof s=="string"&&(s=[s]),!s||s.length===0)return i;let a=-1;for(;++a=h||t+10?" ":"")),v.shift(4),c+=v.move(rw(tw(e,i,v.current()),bw)),d(),c}function bw(e,s,i){return s===0?e:(i?"":" ")+e}function Va(e,s,i){const a=s.indexStack,v=e.children||[],c=[];let d=-1,u=i.before;a.push(-1);let o=s.createTracker(i);for(;++d0&&(u==="\r"||u===` -`)&&h.type==="html"&&(c[c.length-1]=c[c.length-1].replace(/(\r?\n|\r)$/," "),u=" ",o=s.createTracker(i),o.move(c.join(""))),c.push(o.move(s.handle(h,e,s,{...o.current(),before:u,after:t}))),u=c[c.length-1].slice(-1)}return a.pop(),c.join("")}const yw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ga.peek=$w;const xw={canContainEols:["delete"],enter:{strikethrough:kw},exit:{strikethrough:Cw}},Sw={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:yw}],handlers:{delete:Ga}};function kw(e){this.enter({type:"delete",children:[]},e)}function Cw(e){this.exit(e)}function Ga(e,s,i,a){const v=Ti(a),c=i.enter("strikethrough");let d=v.move("~~");return d+=Va(e,i,{...v.current(),before:d,after:"~"}),d+=v.move("~~"),c(),d}function $w(){return"~"}Ka.peek=Aw;function Ka(e,s,i){let a=e.value||"",v="`",c=-1;for(;new RegExp("(^|[^`])"+v+"([^`]|$)").test(a);)v+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++co&&(o=e[h].length);++mu[m])&&(u[m]=k)}f.push(S)}c[h]=f,d[h]=g}let t=-1;if(typeof i=="object"&&"length"in i)for(;++tu[t]&&(u[t]=S),r[t]=S),n[t]=k}c.splice(1,0,n),d.splice(1,0,r),h=-1;const l=[];for(;++hi==="none"?null:i),children:[]},e),this.setData("inTable",!0)}function Tw(e){this.exit(e),this.setData("inTable")}function Ow(e){this.enter({type:"tableRow",children:[]},e)}function nr(e){this.exit(e)}function ko(e){this.enter({type:"tableCell",children:[]},e)}function Fw(e){let s=this.resume();this.getData("inTable")&&(s=s.replace(/\\([\\|])/g,Iw));const i=this.stack[this.stack.length-1];i.value=s,this.exit(e)}function Iw(e,s){return s==="|"?s:e}function Pw(e){const s=e||{},i=s.tableCellPadding,a=s.tablePipeAlign,v=s.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:d,tableRow:u,tableCell:o,inlineCode:r}};function d(l,f,g,m){return h(t(l,g,m),l.align)}function u(l,f,g,m){const S=n(l,g,m),k=h([S]);return k.slice(0,k.indexOf(` -`))}function o(l,f,g,m){const S=g.enter("tableCell"),k=g.enter("phrasing"),A=Va(l,g,{...m,before:c,after:c});return k(),S(),A}function h(l,f){return Ew(l,{align:f,alignDelimiters:a,padding:i,stringLength:v})}function t(l,f,g){const m=l.children;let S=-1;const k=[],A=f.enter("table");for(;++S-1?s.start:1)+(i.options.incrementListMarker===!1?0:s.children.indexOf(e))+c);let d=c.length+1;(v==="tab"||v==="mixed"&&(s&&s.type==="list"&&s.spread||e.spread))&&(d=Math.ceil(d/4)*4);const u=i.createTracker(a);u.move(c+" ".repeat(d-c.length)),u.shift(d);const o=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,u.current()),t);return o(),h;function t(n,r,l){return r?(l?"":" ".repeat(d))+n:(l?c:c+" ".repeat(d-c.length))+n}}const Hw={exit:{taskListCheckValueChecked:Co,taskListCheckValueUnchecked:Co,paragraph:jw}},Ww={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zw}};function Co(e){const s=this.stack[this.stack.length-2];s.checked=e.type==="taskListCheckValueChecked"}function jw(e){const s=this.stack[this.stack.length-2];if(s&&s.type==="listItem"&&typeof s.checked=="boolean"){const i=this.stack[this.stack.length-1],a=i.children[0];if(a&&a.type==="text"){const v=s.children;let c=-1,d;for(;++c|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};c.inherits(h,d),a.ShHighlightRules=h}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(i,a,v){var c=i("../../lib/oop"),d=i("../../range").Range,u=i("./fold_mode").FoldMode,o=a.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};c.inherits(o,u),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,t,n){var r=h.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var l=this._getFoldWidgetBase(h,t,n);return!l&&this.startRegionRe.test(r)?"start":l},this.getFoldWidgetRange=function(h,t,n,r){var l=h.getLine(n);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(h,l,n);var m=l.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(h,m[1],n,f);var g=h.getCommentFoldRange(n,f+m[0].length,1);return g&&!g.isMultiLine()&&(r?g=this.getSectionRange(h,n):t!="all"&&(g=null)),g}if(t!=="markbegin"){var m=l.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(h,m[1],n,f):h.getCommentFoldRange(n,f,-1)}}},this.getSectionRange=function(h,t){var n=h.getLine(t),r=n.search(/\S/),l=t,f=n.length;t=t+1;for(var g=t,m=h.getLength();++tS)break;var k=this.getFoldWidgetRange(h,"all",t);if(k){if(k.start.row<=l)break;if(k.isMultiLine())t=k.end.row;else if(r==S)break}g=t}}return new d(l,f,g,h.getLine(g).length)},this.getCommentRegionBlock=function(h,t,n){for(var r=t.search(/\s*$/),l=h.getLength(),f=n,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++nf)return new d(f,r,k,t.length)}}.call(o.prototype)}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle"],function(i,a,v){var c=i("../lib/oop"),d=i("./text").Mode,u=i("./sh_highlight_rules").ShHighlightRules,o=i("../range").Range,h=i("./folding/cstyle").FoldMode,t=i("./behaviour/cstyle").CstyleBehaviour,n=function(){this.HighlightRules=u,this.foldingRules=new h,this.$behaviour=new t};c.inherits(n,d),function(){this.lineCommentStart="#",this.getNextLineIndent=function(l,f,g){var m=this.$getIndent(f),S=this.getTokenizer().getLineTokens(f,l),k=S.tokens;if(k.length&&k[k.length-1].type=="comment")return m;if(l=="start"){var A=f.match(/^.*[\{\(\[:]\s*$/);A&&(m+=g)}return m};var r={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(l,f,g){if(g!==`\r -`&&g!=="\r"&&g!==` -`)return!1;var m=this.getTokenizer().getLineTokens(f.trim(),l).tokens;if(!m)return!1;do var S=m.pop();while(S&&(S.type=="comment"||S.type=="text"&&S.value.match(/^\s+$/)));return S?S.type=="keyword"&&r[S.value]:!1},this.autoOutdent=function(l,f,g){g+=1;var m=this.$getIndent(f.getLine(g)),S=f.getTabString();m.slice(-S.length)==S&&f.remove(new o(g,m.length-S.length,g,m.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(n.prototype),a.Mode=n}),function(){ace.require(["ace/mode/sh"],function(i){e&&(e.exports=i)})}()})(Kw);ace.config.setModuleUrl("ace/mode/json_worker",fn);function Yw(e){const{curlCommand:s}=e,[i,a]=se.useState(!1);return O.jsxs(O.Fragment,{children:[O.jsxs("button",{className:"text-sm text-slate-500",onClick:()=>a(!i),children:["Show curl command",O.jsx(di,{className:"inline-block w-4 h-4 ml-1"})]}),i&&O.jsx(O.Fragment,{children:O.jsx("div",{className:"rounded mt-2",children:O.jsx(At,{maxLines:50,mode:"sh",value:s,theme:"one_dark",wrapEnabled:!1,onLoad:function(v){v.renderer.setPadding(0),v.renderer.setScrollMargin(5,5,5,5),v.renderer.setShowPrintMargin(!1)},editorProps:{$blockScrolling:!0}})})})]})}function Xw(e){const{lrdDocsItem:s,curlCommand:i}=e;return O.jsx("div",{className:"mockup-window border",children:O.jsxs("div",{className:"p-5",children:[s.doc_block&&O.jsx("div",{className:"text-sm mb-10 text-slate-500",children:O.jsx(Ma,{children:s.doc_block,remarkPlugins:[Gw]})}),O.jsx("table",{className:"table table-fixed table-compact",children:O.jsxs("tbody",{children:[O.jsxs("tr",{children:[O.jsx("th",{children:"Method"}),O.jsx("td",{children:O.jsx("span",{className:`method-${s.http_method} uppercase`,children:s.http_method})})]}),s.controller&&O.jsxs("tr",{children:[O.jsx("th",{children:"Controller"}),O.jsx("td",{children:s.controller})]}),s.method&&O.jsxs("tr",{children:[O.jsx("th",{children:"Function"}),O.jsx("td",{children:s.method})]}),s.middlewares.length!=0&&O.jsxs("tr",{children:[O.jsx("th",{children:"Middlewares"}),O.jsx("td",{children:s.middlewares.map(a=>O.jsxs("div",{children:[O.jsx("span",{className:"badge badge-ghost badge-md mb-1 rounded-sm",children:a}),O.jsx("br",{})]},Te.generate()))})]}),O.jsxs("tr",{children:[O.jsx("th",{children:"Status Codes"}),O.jsx("td",{children:O.jsxs("div",{className:"collapse",children:[O.jsx("input",{type:"checkbox"}),O.jsxs("div",{className:"collapse-title text-sm text-slate-500 pl-0 mt-2",children:["Show Response codes for this request",O.jsx(di,{className:"inline-block w-4 h-4 ml-1"})]}),O.jsx("div",{className:"collapse-content p-0",children:s.responses&&s.responses.map(a=>O.jsx("div",{children:O.jsxs("div",{className:`response response-${a}`,children:["- ",a,"   ",pd[a]]})},Te.generate()))})]})})]}),O.jsxs("tr",{children:[O.jsxs("th",{children:[O.jsx(Ou,{className:"inline-block w-4 h-4 mr-1"}),"Curl"]}),O.jsx("td",{children:O.jsx(Yw,{curlCommand:i})})]})]})})]})})}var Ao={},Qw={get exports(){return Ao},set exports(e){Ao=e}};(function(e,s){ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(i,a,v){var c=i("../lib/oop"),d=i("./text_highlight_rules").TextHighlightRules,u=function(){var o="select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|then|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct",h="true|false",t="avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",n="int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer",r=this.createKeywordMapper({"support.function":t,keyword:o,"constant.language":h,"storage.type":n},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:r,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};c.inherits(u,d),a.SqlHighlightRules=u}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(i,a,v){var c=i("../../lib/oop"),d=i("../../range").Range,u=i("./fold_mode").FoldMode,o=a.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};c.inherits(o,u),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,t,n){var r=h.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var l=this._getFoldWidgetBase(h,t,n);return!l&&this.startRegionRe.test(r)?"start":l},this.getFoldWidgetRange=function(h,t,n,r){var l=h.getLine(n);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(h,l,n);var m=l.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(h,m[1],n,f);var g=h.getCommentFoldRange(n,f+m[0].length,1);return g&&!g.isMultiLine()&&(r?g=this.getSectionRange(h,n):t!="all"&&(g=null)),g}if(t!=="markbegin"){var m=l.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(h,m[1],n,f):h.getCommentFoldRange(n,f,-1)}}},this.getSectionRange=function(h,t){var n=h.getLine(t),r=n.search(/\S/),l=t,f=n.length;t=t+1;for(var g=t,m=h.getLength();++tS)break;var k=this.getFoldWidgetRange(h,"all",t);if(k){if(k.start.row<=l)break;if(k.isMultiLine())t=k.end.row;else if(r==S)break}g=t}}return new d(l,f,g,h.getLine(g).length)},this.getCommentRegionBlock=function(h,t,n){for(var r=t.search(/\s*$/),l=h.getLength(),f=n,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++nf)return new d(f,r,k,t.length)}}.call(o.prototype)}),ace.define("ace/mode/folding/sql",["require","exports","module","ace/lib/oop","ace/mode/folding/cstyle"],function(i,a,v){var c=i("../../lib/oop"),d=i("./cstyle").FoldMode,u=a.FoldMode=function(){};c.inherits(u,d),function(){}.call(u.prototype)}),ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/mode/folding/sql"],function(i,a,v){var c=i("../lib/oop"),d=i("./text").Mode,u=i("./sql_highlight_rules").SqlHighlightRules,o=i("./folding/sql").FoldMode,h=function(){this.HighlightRules=u,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};c.inherits(h,d),function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/sql",this.snippetFileId="ace/snippets/sql"}.call(h.prototype),a.Mode=h}),function(){ace.require(["ace/mode/sql"],function(i){e&&(e.exports=i)})}()})(Qw);ace.config.setModuleUrl("ace/mode/json_worker",fn);function Jw(e){const{sqlData:s}=e;return O.jsxs(O.Fragment,{children:[!s&&O.jsx("div",{className:"text-center text-sm text-slate-500",children:"No SQL queries recorded"}),s&&O.jsxs(O.Fragment,{children:[O.jsx("p",{children:"SQL queries"}),O.jsx("div",{className:"rounded",children:O.jsx(At,{maxLines:50,width:"100%",readOnly:!0,mode:"sql",wrapEnabled:!0,value:s,theme:"one_dark",onLoad:function(i){i.renderer.setPadding(0),i.renderer.setScrollMargin(5,5,5,5),i.renderer.setShowPrintMargin(!1)},editorProps:{$blockScrolling:!0}})})]})]})}ace.config.setModuleUrl("ace/mode/json_worker",fn);function Zw(e){const{logsData:s}=e;return O.jsxs(O.Fragment,{children:[!s&&O.jsx("div",{className:"text-center text-sm text-slate-500",children:"No Laravel logs"}),s&&O.jsxs(O.Fragment,{children:[O.jsx("p",{children:"Laravel logs"}),O.jsx("div",{className:"rounded",children:O.jsx(At,{maxLines:50,width:"100%",mode:"sh",readOnly:!0,value:s,theme:"one_dark",wrapEnabled:!0,onLoad:function(i){i.renderer.setPadding(0),i.renderer.setScrollMargin(5,5,5,5),i.renderer.setShowPrintMargin(!1)},editorProps:{$blockScrolling:!0}})})]})]})}function qw(e){const{modelsData:s}=e,{modelsSummary:i,modelsTimeline:a}=s;return O.jsxs(O.Fragment,{children:[!Object.keys(i).length&&O.jsx("div",{className:"text-center text-sm text-slate-500",children:"No Models Data"}),Object.keys(i).length!=0&&O.jsxs(O.Fragment,{children:[O.jsx("h3",{className:"title",children:"Model events Summary"}),O.jsx("div",{className:"divider"}),Object.keys(i).map(v=>O.jsx("table",{className:"table table-compact table-fixed table-zebra w-full mb-10",children:O.jsx("tbody",{children:Object.keys(i[v]).map((c,d)=>O.jsxs("tr",{children:[d==0&&O.jsxs("td",{rowSpan:Object.keys(i[v]).length,children:[O.jsx("span",{className:"font-bold text-slate-500",children:"Model"}),O.jsx("br",{}),O.jsx("div",{className:"",dangerouslySetInnerHTML:{__html:oi(v.split("\\")[v.split("\\").length-1],30,"
")}})]}),O.jsxs("td",{className:"capitalize",children:[c=="created"&&O.jsx(ds,{className:"inline-block w-3 h-3 mr-1"}),c=="saved"&&O.jsx(cs,{className:"inline-block w-3 h-3 mr-1"}),c=="retrieved"&&O.jsx(us,{className:"inline-block w-3 h-3 text-white mr-1"}),c=="updated"&&O.jsx(ls,{className:"inline-block w-3 h-3 mr-1"}),c=="deleted"&&O.jsx(fs,{className:"inline-block w-3 h-3 mr-1"}),c]}),O.jsxs("td",{children:[O.jsx("span",{className:"font-bold",children:i[v][c]}),O.jsxs("span",{className:"text-slate-400 pl-1",children:["Time",i[v][c]>1?"s":""]})]})]},Te.generate()))})},Te.generate()))]}),Object.keys(a).length!=0&&O.jsxs(O.Fragment,{children:[O.jsx("h3",{className:"title",children:"Model Events Timeline"}),O.jsx("small",{className:"text-slate-500",children:"Events are in the order of occurrences"}),O.jsx("div",{className:"divider"}),O.jsx("div",{className:"flex flex-col md:grid grid-cols-12",children:Object.keys(a).map(v=>O.jsxs("div",{className:"flex md:contents",children:[O.jsxs("div",{className:"col-start-2 col-end-4 mr-10 md:mx-auto relative",children:[O.jsx("div",{className:"h-full w-3 flex items-center justify-center",children:O.jsx("div",{className:`h-full w-1 bg-${a[v].event} pointer-events-none`})}),O.jsxs("div",{className:`w-3 h-3 absolute top-1/2 rounded-full bg-${a[v].event} shadow text-center`,children:[a[v].event=="created"&&O.jsx(ds,{className:"w-3 h-3 text-black mx-auto"}),a[v].event=="saved"&&O.jsx(cs,{className:"w-3 h-3 text-black mx-auto"}),a[v].event=="retrieved"&&O.jsx(us,{className:"w-3 h-3 text-white mx-auto"}),a[v].event=="updated"&&O.jsx(ls,{className:"w-3 h-3 text-black mx-auto"}),a[v].event=="deleted"&&O.jsx(fs,{className:"w-3 h-3 text-black mx-auto"})]})]}),O.jsxs("div",{className:"col-start-4 col-end-12 rounded-md my-3 mr-auto w-full break-all",children:[O.jsx("h3",{className:"mb-1",children:O.jsx("div",{className:"",dangerouslySetInnerHTML:{__html:oi(a[v].model.split("\\")[a[v].model.split("\\").length-1],30,"
")}})}),O.jsx("p",{className:"title text-justify w-full",children:O.jsx("span",{className:`badge badge-${a[v].event} rounded-sm`,children:a[v].event})})]})]},Te.generate()))})]})]})}const Ya=(e,s,i)=>{s=s||new FormData;for(const a in e){if(e[a]===void 0)continue;const v=i?`${i}[${a}]`:a;if(e[a]instanceof FileList)for(let c=0;c{const ge=y||new FormData,me=te.split("."),ie=te.split(".").reduce((q,he,Ce)=>Ce===me.length-1&&(he==="*"||!isNaN(Number(he)))?q:q?`${q}[${he}]`:he,"");if(te.includes(".*"))for(let q=0;q{const J=JSON.parse(d);(i=="GET"||i=="HEAD"||i=="DELETE")&&(J[i+"-"+s.uri]=k),(i=="POST"||i=="PUT"||i=="PATCH")&&(J[i+"-"+s.uri]=E),u(JSON.stringify(J))},G=()=>{Z();try{JSON.parse(o)}catch(me){c("Global Request Headers are incorrect: "+me.message);return}const J=JSON.parse(o);J["X-Request-LRD"]=!0,y&&(delete J["Content-Type"],J.Accept="multipart/form-data");const te={credentials:"include",method:i,headers:J};if(i=="POST"||i=="PUT"||i=="PATCH"){try{y!=null&&Ya(JSON.parse(E),y)}catch(me){c("Request body incorrect: "+me.message);return}y!=null?te.body=y:te.body=E}const ge=performance.now();S(!0),_(""),D(""),B(""),$(""),c(null),fetch(`${a}/${r}${k}`,te).then(me=>{let ie=performance.now()-ge;return ie=Math.round((ie+Number.EPSILON)*1e3)/1e3,g(ie),F(me.status),H(JSON.stringify(Object.fromEntries(me.headers),null,2)),S(!1),me.text()}).then(me=>{let ie=!0,q;try{q=JSON.parse(me)}catch{ie=!1}const he=q&&q._lrd;if(q&&q._lrd&&q._lrd.queries){const Ce=q._lrd.queries.map(Se=>"Connection: "+Se.connection_name+" Time taken: "+Se.time+`ms: -`+Se.sql+` -`).join(` -`);_(Ce),b(q._lrd.queries.length)}if(q&&q._lrd&&q._lrd.logs){let Ce="";for(const Se of q._lrd.logs)Ce+=Se.level+": "+Se.message+` -`;D(Ce)}q&&q._lrd&&q._lrd.memory&&B(q._lrd.memory),q&&q._lrd&&q._lrd.models&&q._lrd.modelsTimeline&&T({modelsSummary:q._lrd.models,modelsTimeline:q._lrd.modelsTimeline}),ie?he&&q?.data?$(JSON.stringify(q?.data,null,2)):$(JSON.stringify(q,null,2)):$(me),V("response")}).catch(me=>{c("Response error: "+me),F(500),S(!1),V("response")})};se.useEffect(()=>{const J=JSON.parse(d);let te="";if(J[i+"-"+s.uri]&&(te=J[i+"-"+s.uri]),i=="GET"||i=="HEAD"||i=="DELETE"){if(te&&te.trim()!=""){A(te),n(Cn(a,s.uri,i,te,o));return}let ge="",me=0;for(const[ie]of Object.entries(s.rules)){me++;const he=ie.split(".").reduce((Ce,Se)=>Ce?`${Ce}[${Se!=="*"?Se:0}]`:Se,"");me==1?ge+=`?${he}= -`:ge+=`&${he}= -`}A(ge),n(Cn(a,s.uri,i,ge,o))}if(i=="POST"||i=="PUT"||i=="PATCH"){if(te&&(te.trim()!=""||te.trim()!="{}")){w(te),n(Cn(a,s.uri,i,te,o));return}const ge=Object.entries(s.rules).reduce((ie,[q,he])=>{if(he.length==0)return ie;const Ce=he[0].split("|");if(Ce.includes("file")||Ce.includes("image"))return ie;const Se=q.split(".");return Se.reduce((we,Ne,Y)=>{if(Ne=Ne==="*"?"0":Ne,Y===Se.length-1){if(!isNaN(Number(Ne)))return we=Array.isArray(we)?we:[],we;we[Ne]=Ce.includes("array")?[]:""}else Ce.includes("array")||Se[Y+1]==="*"||!isNaN(Number(Se[Y+1]))?we[Ne]=we[Ne]||[]:we[Ne]=we[Ne]||{};return we[Ne]},ie),ie},{}),me=JSON.stringify(ge,null,2);w(me),n(Cn(a,s.uri,i,me,o))}},[]);const re=J=>{h(J);try{c(null),JSON.parse(J)}catch(te){c("Global Request Headers are incorrect: "+te.message)}};return O.jsxs(O.Fragment,{children:[O.jsx(gd,{activeTab:z,responseStatus:W,sqlQueriesCount:p,logsData:R,modelsData:M,setActiveTab:V}),O.jsxs("div",{className:"mt-5",children:[v&&O.jsx("div",{className:"alert alert-error mt-2 mb-2",children:v}),z=="info"&&O.jsx(Xw,{lrdDocsItem:s,curlCommand:t}),z=="request"&&O.jsx(dd,{lrdDocsItem:s,requestUri:r,method:i,sendingRequest:m,requestHeaders:o,bodyParams:E,queryParams:k,setRequestUri:l,handleSendRequest:G,handleChangeRequestHeaders:re,handleFileChange:K,setBodyParams:w,setQueryParams:A}),z=="response"&&O.jsx(ud,{responseHeaders:I,responseData:x,timeTaken:f,responseStatus:W,serverMemory:N}),z=="sql"&&O.jsx(Jw,{sqlData:C}),z=="logs"&&O.jsx(Zw,{logsData:R}),z=="events"&&O.jsx(qw,{modelsData:M})]})]})}function wt(e){return Array.isArray?Array.isArray(e):Ja(e)==="[object Array]"}const tb=1/0;function nb(e){if(typeof e=="string")return e;let s=e+"";return s=="0"&&1/e==-tb?"-0":s}function ib(e){return e==null?"":nb(e)}function dt(e){return typeof e=="string"}function Xa(e){return typeof e=="number"}function rb(e){return e===!0||e===!1||sb(e)&&Ja(e)=="[object Boolean]"}function Qa(e){return typeof e=="object"}function sb(e){return Qa(e)&&e!==null}function Ze(e){return e!=null}function ir(e){return!e.trim().length}function Ja(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ob="Incorrect 'index' type",ab=e=>`Invalid value for key ${e}`,lb=e=>`Pattern length exceeds max of ${e}.`,cb=e=>`Missing ${e} property in key`,ub=e=>`Property 'weight' in key '${e}' must be a positive integer`,Eo=Object.prototype.hasOwnProperty;class hb{constructor(s){this._keys=[],this._keyMap={};let i=0;s.forEach(a=>{let v=Za(a);i+=v.weight,this._keys.push(v),this._keyMap[v.id]=v,i+=v.weight}),this._keys.forEach(a=>{a.weight/=i})}get(s){return this._keyMap[s]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Za(e){let s=null,i=null,a=null,v=1,c=null;if(dt(e)||wt(e))a=e,s=Lo(e),i=kr(e);else{if(!Eo.call(e,"name"))throw new Error(cb("name"));const d=e.name;if(a=d,Eo.call(e,"weight")&&(v=e.weight,v<=0))throw new Error(ub(d));s=Lo(d),i=kr(d),c=e.getFn}return{path:s,id:i,weight:v,src:a,getFn:c}}function Lo(e){return wt(e)?e:e.split(".")}function kr(e){return wt(e)?e.join("."):e}function fb(e,s){let i=[],a=!1;const v=(c,d,u)=>{if(Ze(c))if(!d[u])i.push(c);else{let o=d[u];const h=c[o];if(!Ze(h))return;if(u===d.length-1&&(dt(h)||Xa(h)||rb(h)))i.push(ib(h));else if(wt(h)){a=!0;for(let t=0,n=h.length;te.score===s.score?e.idx{this._keysMap[i.id]=a})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,dt(this.docs[0])?this.docs.forEach((s,i)=>{this._addString(s,i)}):this.docs.forEach((s,i)=>{this._addObject(s,i)}),this.norm.clear())}add(s){const i=this.size();dt(s)?this._addString(s,i):this._addObject(s,i)}removeAt(s){this.records.splice(s,1);for(let i=s,a=this.size();i{let d=v.getFn?v.getFn(s):this.getFn(s,v.path);if(Ze(d)){if(wt(d)){let u=[];const o=[{nestedArrIndex:-1,value:d}];for(;o.length;){const{nestedArrIndex:h,value:t}=o.pop();if(Ze(t))if(dt(t)&&!ir(t)){let n={v:t,i:h,n:this.norm.get(t)};u.push(n)}else wt(t)&&t.forEach((n,r)=>{o.push({nestedArrIndex:r,value:n})})}a.$[c]=u}else if(dt(d)&&!ir(d)){let u={v:d,n:this.norm.get(d)};a.$[c]=u}}}),this.records.push(a)}toJSON(){return{keys:this.keys,records:this.records}}}function qa(e,s,{getFn:i=ve.getFn,fieldNormWeight:a=ve.fieldNormWeight}={}){const v=new Xr({getFn:i,fieldNormWeight:a});return v.setKeys(e.map(Za)),v.setSources(s),v.create(),v}function bb(e,{getFn:s=ve.getFn,fieldNormWeight:i=ve.fieldNormWeight}={}){const{keys:a,records:v}=e,c=new Xr({getFn:s,fieldNormWeight:i});return c.setKeys(a),c.setIndexRecords(v),c}function Ln(e,{errors:s=0,currentLocation:i=0,expectedLocation:a=0,distance:v=ve.distance,ignoreLocation:c=ve.ignoreLocation}={}){const d=s/e.length;if(c)return d;const u=Math.abs(a-i);return v?d+u/v:u?1:d}function yb(e=[],s=ve.minMatchCharLength){let i=[],a=-1,v=-1,c=0;for(let d=e.length;c=s&&i.push([a,v]),a=-1)}return e[c-1]&&c-a>=s&&i.push([a,c-1]),i}const Dt=32;function xb(e,s,i,{location:a=ve.location,distance:v=ve.distance,threshold:c=ve.threshold,findAllMatches:d=ve.findAllMatches,minMatchCharLength:u=ve.minMatchCharLength,includeMatches:o=ve.includeMatches,ignoreLocation:h=ve.ignoreLocation}={}){if(s.length>Dt)throw new Error(lb(Dt));const t=s.length,n=e.length,r=Math.max(0,Math.min(a,n));let l=c,f=r;const g=u>1||o,m=g?Array(n):[];let S;for(;(S=e.indexOf(s,f))>-1;){let L=Ln(s,{currentLocation:S,expectedLocation:r,distance:v,ignoreLocation:h});if(l=Math.min(L,l),f=S+t,g){let x=0;for(;x=p;M-=1){let T=M-1,R=i[e.charAt(T)];if(g&&(m[T]=+!!R),C[M]=(C[M+1]<<1|1)&R,L&&(C[M]|=(k[M+1]|k[M])<<1|1|k[M+1]),C[M]&w&&(A=Ln(s,{errors:L,currentLocation:T,expectedLocation:r,distance:v,ignoreLocation:h}),A<=l)){if(l=A,f=T,f<=r)break;p=Math.max(1,2*r-f)}}if(Ln(s,{errors:L+1,currentLocation:r,expectedLocation:r,distance:v,ignoreLocation:h})>l)break;k=C}const y={isMatch:f>=0,score:Math.max(.001,A)};if(g){const L=yb(m,u);L.length?o&&(y.indices=L):y.isMatch=!1}return y}function Sb(e){let s={};for(let i=0,a=e.length;i{this.chunks.push({pattern:r,alphabet:Sb(r),startIndex:l})},n=this.pattern.length;if(n>Dt){let r=0;const l=n%Dt,f=n-l;for(;r{const{isMatch:S,score:k,indices:A}=xb(s,f,g,{location:v+m,distance:c,threshold:d,findAllMatches:u,minMatchCharLength:o,includeMatches:a,ignoreLocation:h});S&&(r=!0),n+=k,S&&A&&(t=[...t,...A])});let l={isMatch:r,score:r?n/this.chunks.length:1};return r&&a&&(l.indices=t),l}}class Lt{constructor(s){this.pattern=s}static isMultiMatch(s){return _o(s,this.multiRegex)}static isSingleMatch(s){return _o(s,this.singleRegex)}search(){}}function _o(e,s){const i=e.match(s);return i?i[1]:null}class kb extends Lt{constructor(s){super(s)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(s){const i=s===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class Cb extends Lt{constructor(s){super(s)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(s){const a=s.indexOf(this.pattern)===-1;return{isMatch:a,score:a?0:1,indices:[0,s.length-1]}}}class $b extends Lt{constructor(s){super(s)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(s){const i=s.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class Ab extends Lt{constructor(s){super(s)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(s){const i=!s.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,s.length-1]}}}class Eb extends Lt{constructor(s){super(s)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(s){const i=s.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[s.length-this.pattern.length,s.length-1]}}}class Lb extends Lt{constructor(s){super(s)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(s){const i=!s.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,s.length-1]}}}class tl extends Lt{constructor(s,{location:i=ve.location,threshold:a=ve.threshold,distance:v=ve.distance,includeMatches:c=ve.includeMatches,findAllMatches:d=ve.findAllMatches,minMatchCharLength:u=ve.minMatchCharLength,isCaseSensitive:o=ve.isCaseSensitive,ignoreLocation:h=ve.ignoreLocation}={}){super(s),this._bitapSearch=new el(s,{location:i,threshold:a,distance:v,includeMatches:c,findAllMatches:d,minMatchCharLength:u,isCaseSensitive:o,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(s){return this._bitapSearch.searchIn(s)}}class nl extends Lt{constructor(s){super(s)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(s){let i=0,a;const v=[],c=this.pattern.length;for(;(a=s.indexOf(this.pattern,i))>-1;)i=a+c,v.push([a,i-1]);const d=!!v.length;return{isMatch:d,score:d?0:1,indices:v}}}const Cr=[kb,nl,$b,Ab,Lb,Eb,Cb,tl],Ro=Cr.length,_b=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Rb="|";function Mb(e,s={}){return e.split(Rb).map(i=>{let a=i.trim().split(_b).filter(c=>c&&!!c.trim()),v=[];for(let c=0,d=a.length;c!!(e[hi.AND]||e[hi.OR]),Ib=e=>!!e[Er.PATH],Pb=e=>!wt(e)&&Qa(e)&&!Lr(e),Mo=e=>({[hi.AND]:Object.keys(e).map(s=>({[s]:e[s]}))});function il(e,s,{auto:i=!0}={}){const a=v=>{let c=Object.keys(v);const d=Ib(v);if(!d&&c.length>1&&!Lr(v))return a(Mo(v));if(Pb(v)){const o=d?v[Er.PATH]:c[0],h=d?v[Er.PATTERN]:v[o];if(!dt(h))throw new Error(ab(o));const t={keyId:kr(o),pattern:h};return i&&(t.searcher=Ar(h,s)),t}let u={children:[],operator:c[0]};return c.forEach(o=>{const h=v[o];wt(h)&&h.forEach(t=>{u.children.push(a(t))})}),u};return Lr(e)||(e=Mo(e)),a(e)}function Db(e,{ignoreFieldNorm:s=ve.ignoreFieldNorm}){e.forEach(i=>{let a=1;i.matches.forEach(({key:v,norm:c,score:d})=>{const u=v?v.weight:null;a*=Math.pow(d===0&&u?Number.EPSILON:d,(u||1)*(s?1:c))}),i.score=a})}function Nb(e,s){const i=e.matches;s.matches=[],Ze(i)&&i.forEach(a=>{if(!Ze(a.indices)||!a.indices.length)return;const{indices:v,value:c}=a;let d={indices:v,value:c};a.key&&(d.key=a.key.src),a.idx>-1&&(d.refIndex=a.idx),s.matches.push(d)})}function Bb(e,s){s.score=e.score}function Hb(e,s,{includeMatches:i=ve.includeMatches,includeScore:a=ve.includeScore}={}){const v=[];return i&&v.push(Nb),a&&v.push(Bb),e.map(c=>{const{idx:d}=c,u={item:s[d],refIndex:d};return v.length&&v.forEach(o=>{o(c,u)}),u})}class Jt{constructor(s,i={},a){this.options={...ve,...i},this.options.useExtendedSearch,this._keyStore=new hb(this.options.keys),this.setCollection(s,a)}setCollection(s,i){if(this._docs=s,i&&!(i instanceof Xr))throw new Error(ob);this._myIndex=i||qa(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(s){Ze(s)&&(this._docs.push(s),this._myIndex.add(s))}remove(s=()=>!1){const i=[];for(let a=0,v=this._docs.length;a-1&&(o=o.slice(0,i)),Hb(o,this._docs,{includeMatches:a,includeScore:v})}_searchStringList(s){const i=Ar(s,this.options),{records:a}=this._myIndex,v=[];return a.forEach(({v:c,i:d,n:u})=>{if(!Ze(c))return;const{isMatch:o,score:h,indices:t}=i.searchIn(c);o&&v.push({item:c,idx:d,matches:[{score:h,value:c,norm:u,indices:t}]})}),v}_searchLogical(s){const i=il(s,this.options),a=(u,o,h)=>{if(!u.children){const{keyId:n,searcher:r}=u,l=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(o,n),searcher:r});return l&&l.length?[{idx:h,item:o,matches:l}]:[]}const t=[];for(let n=0,r=u.children.length;n{if(Ze(u)){let h=a(i,u,o);h.length&&(c[o]||(c[o]={idx:o,item:u,matches:[]},d.push(c[o])),h.forEach(({matches:t})=>{c[o].matches.push(...t)}))}}),d}_searchObjectList(s){const i=Ar(s,this.options),{keys:a,records:v}=this._myIndex,c=[];return v.forEach(({$:d,i:u})=>{if(!Ze(d))return;let o=[];a.forEach((h,t)=>{o.push(...this._findMatches({key:h,value:d[t],searcher:i}))}),o.length&&c.push({idx:u,item:d,matches:o})}),c}_findMatches({key:s,value:i,searcher:a}){if(!Ze(i))return[];let v=[];if(wt(i))i.forEach(({v:c,i:d,n:u})=>{if(!Ze(c))return;const{isMatch:o,score:h,indices:t}=a.searchIn(c);o&&v.push({score:h,key:s,value:c,idx:d,norm:u,indices:t})});else{const{v:c,n:d}=i,{isMatch:u,score:o,indices:h}=a.searchIn(c);u&&v.push({score:o,key:s,value:c,norm:d,indices:h})}return v}}Jt.version="6.6.2";Jt.createIndex=qa;Jt.parseIndex=bb;Jt.config=ve;Jt.parseQuery=il;Fb(Ob);function jb(){const[e,s]=se.useState([]),[i,a]=se.useState([]),[v,c]=se.useState(""),[d,u]=se.useState(""),[o,h]=se.useState(!1),[t,n]=se.useState(null),[r]=je("groupby","default"),[l]=je("sort","default"),[f]=je("showGet","true"),[g]=je("showPost","true"),[m]=je("showDelete","true"),[S]=je("showPut","true"),[k]=je("showPatch","true"),[A]=je("showHead","true"),E={keys:["uri","doc_block"],threshold:.3},w=(p,b,C,_,M,T,R,D,N)=>`${p}?json=true&showGet=${b}&showPost=${C}&showDelete=${_}&showPut=${M}&showPatch=${T}&showHead=${R}&sort=${D}&groupby=${N}`;se.useEffect(()=>{let b=new URLSearchParams(window.location.search).get("api");if(!b){const _=location.protocol+"//"+location.host;u(_),b=_+"/request-docs/api"}if(b){const _=b?.split("/").slice(0,3).join("/");u(_)}c(b);const C=w(b,f,g,m,S,k,A,l,r);L(C)},[]);const y=()=>{const p=window.location.hash;if(p){const b=p.replace("#",""),C=document.getElementById(b);C&&C.scrollIntoView()}},L=p=>{h(!0),fetch(p).then(C=>C.json()).then(C=>{if(!Array.isArray(C)){n("Invalid response"),h(!1);return}n(null),s(C),a(C),h(!1),setTimeout(()=>{y()},10)}).catch(C=>{n(C.message),h(!1)})},x=p=>{if(p=p.trim(),!p){s(i);return}const C=new Jt(e,E).search(p),_=[];for(let M=0;M{const N=w(v,p,b,C,_,M,T,R,D);L(N)};return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"sticky top-0 z-50 bg-gray-400",children:[O.jsx(nh,{handleChangeSettings:$,handleSearch:x}),o&&O.jsx("progress",{className:"progress progress-success w-full"}),!o&&O.jsx("progress",{className:"progress w-full",value:"100"}),t&&O.jsx("div",{className:"alert alert-error rounded-none",children:t})]}),O.jsxs("div",{className:"main-grid grid grid-cols-10 gap-2",children:[O.jsx("div",{className:"sidebar-wrapper col-span-3",children:O.jsx("div",{className:"min-h-screen",children:O.jsx(Oh,{lrdDocsJson:e})})}),O.jsx("div",{className:"pt-10 col-span-7",children:e.map(p=>O.jsxs("div",{children:[O.jsx("div",{className:"min-h-screen",children:O.jsxs("div",{className:"main-grid grid grid-cols-10 gap-2",children:[O.jsx("div",{className:"col-span-4 ml-5",children:O.jsx(Ih,{lrdDocsItem:p,method:p.http_method})}),O.jsx("div",{className:"col-span-5 ml-5",children:O.jsx(eb,{lrdDocsItem:p,method:p.http_method,host:d})})]})}),O.jsx("div",{className:"divider"})]},Te.generate()))})]})]})}export{jb as default}; diff --git a/resources/dist/_astro/client.8c8eb78c.js b/resources/dist/_astro/client.8c8eb78c.js deleted file mode 100644 index 9048744..0000000 --- a/resources/dist/_astro/client.8c8eb78c.js +++ /dev/null @@ -1,24 +0,0 @@ -import{r as yn}from"./index.ba55fcf9.js";var Fl={},Ma={get exports(){return Fl},set exports(e){Fl=e}},ve={},Il={},Da={get exports(){return Il},set exports(e){Il=e}},Po={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e){function n(C,z){var P=C.length;C.push(z);e:for(;0>>1,Y=C[B];if(0>>1;Bl(al,P))mnl(Gt,al)?(C[B]=Gt,C[mn]=P,B=mn):(C[B]=al,C[pn]=P,B=pn);else if(mnl(Gt,P))C[B]=Gt,C[mn]=P,B=mn;else break e}}return z}function l(C,z){var P=C.sortIndex-z.sortIndex;return P!==0?P:C.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,o=u.now();e.unstable_now=function(){return u.now()-o}}var s=[],d=[],v=1,m=null,p=3,g=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(C){for(var z=t(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=C)r(d),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(d)}}function h(C){if(k=!1,f(C),!w)if(t(s)!==null)w=!0,ol(E);else{var z=t(d);z!==null&&sl(h,z.startTime-C)}}function E(C,z){w=!1,k&&(k=!1,c(N),N=-1),g=!0;var P=p;try{for(f(z),m=t(s);m!==null&&(!(m.expirationTime>z)||C&&!Ce());){var B=m.callback;if(typeof B=="function"){m.callback=null,p=m.priorityLevel;var Y=B(m.expirationTime<=z);z=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===t(s)&&r(s),f(z)}else r(s);m=t(s)}if(m!==null)var Xt=!0;else{var pn=t(d);pn!==null&&sl(h,pn.startTime-z),Xt=!1}return Xt}finally{m=null,p=P,g=!1}}var x=!1,_=null,N=-1,H=5,T=-1;function Ce(){return!(e.unstable_now()-TC||125B?(C.sortIndex=P,n(d,C),t(s)===null&&C===t(d)&&(k?(c(N),N=-1):k=!0,sl(h,P-B))):(C.sortIndex=Y,n(s,C),w||g||(w=!0,ol(E))),C},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(C){var z=p;return function(){var P=p;p=z;try{return C.apply(this,arguments)}finally{p=P}}}})(Po);(function(e){e.exports=Po})(Da);/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var To=yn,me=Il;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jl=Object.prototype.hasOwnProperty,Ra=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Su={},Eu={};function Oa(e){return jl.call(Eu,e)?!0:jl.call(Su,e)?!1:Ra.test(e)?Eu[e]=!0:(Su[e]=!0,!1)}function Fa(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ia(e,n,t,r){if(n===null||typeof n>"u"||Fa(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ie(e,n,t,r,l,i,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=u}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];q[n]=new ie(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){q[e]=new ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){q[e]=new ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){q[e]=new ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){q[e]=new ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){q[e]=new ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Li=/[\-:]([a-z])/g;function Mi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Li,Mi);q[n]=new ie(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Li,Mi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Li,Mi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!1,!1)});q.xlinkHref=new ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Di(e,n,t,r){var l=q.hasOwnProperty(n)?q[n]:null;(l!==null?l.type!==0:r||!(2o||l[u]!==i[o]){var s=` -`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{fl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?mt(e):""}function ja(e){switch(e.tag){case 5:return mt(e.type);case 16:return mt("Lazy");case 13:return mt("Suspense");case 19:return mt("SuspenseList");case 0:case 2:case 15:return e=dl(e.type,!1),e;case 11:return e=dl(e.type.render,!1),e;case 1:return e=dl(e.type,!0),e;default:return""}}function Hl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dn:return"Fragment";case Mn:return"Portal";case Ul:return"Profiler";case Ri:return"StrictMode";case Al:return"Suspense";case Vl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Do:return(e.displayName||"Context")+".Consumer";case Mo:return(e._context.displayName||"Context")+".Provider";case Oi:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fi:return n=e.displayName||null,n!==null?n:Hl(e.type)||"Memo";case Ye:n=e._payload,e=e._init;try{return Hl(e(n))}catch{}}return null}function Ua(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hl(n);case 8:return n===Ri?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oo(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Aa(e){var n=Oo(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Jt(e){e._valueTracker||(e._valueTracker=Aa(e))}function Fo(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Oo(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Er(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bl(e,n){var t=n.checked;return A({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function xu(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=sn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Io(e,n){n=n.checked,n!=null&&Di(e,"checked",n,!1)}function Wl(e,n){Io(e,n);var t=sn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ql(e,n.type,t):n.hasOwnProperty("defaultValue")&&Ql(e,n.type,sn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function _u(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Ql(e,n,t){(n!=="number"||Er(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var vt=Array.isArray;function Wn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=qt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Pt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var gt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Va=["Webkit","ms","Moz","O"];Object.keys(gt).forEach(function(e){Va.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),gt[n]=gt[e]})});function Vo(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||gt.hasOwnProperty(e)&>[e]?(""+n).trim():n+"px"}function Ho(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Vo(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Ha=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yl(e,n){if(n){if(Ha[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function Xl(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gl=null;function Ii(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,Qn=null,$n=null;function Pu(e){if(e=Kt(e)){if(typeof Zl!="function")throw Error(y(280));var n=e.stateNode;n&&(n=Zr(n),Zl(e.stateNode,e.type,n))}}function Bo(e){Qn?$n?$n.push(e):$n=[e]:Qn=e}function Wo(){if(Qn){var e=Qn,n=$n;if($n=Qn=null,Pu(e),n)for(e=0;e>>=0,e===0?32:31-(qa(e)/ba|0)|0}var bt=64,er=4194304;function ht(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=t&268435455;if(u!==0){var o=u&~l;o!==0?r=ht(o):(i&=u,i!==0&&(r=ht(i)))}else u=t&~l,u!==0?r=ht(u):i!==0&&(r=ht(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Qt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Pe(n),e[n]=t}function rc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=kt),ju=String.fromCharCode(32),Uu=!1;function as(e,n){switch(e){case"keyup":return Mc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rn=!1;function Rc(e,n){switch(e){case"compositionend":return cs(n);case"keypress":return n.which!==32?null:(Uu=!0,ju);case"textInput":return e=n.data,e===ju&&Uu?null:e;default:return null}}function Oc(e,n){if(Rn)return e==="compositionend"||!Qi&&as(e,n)?(e=os(),pr=Hi=Je=null,Rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Bu(t)}}function ms(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ms(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function vs(){for(var e=window,n=Er();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Er(e.document)}return n}function $i(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Wc(e){var n=vs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&ms(t.ownerDocument.documentElement,t)){if(r!==null&&$i(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Wu(t,i);var u=Wu(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,On=null,ti=null,Et=null,ri=!1;function Qu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ri||On==null||On!==Er(r)||(r=On,"selectionStart"in r&&$i(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Et&&Ot(Et,r)||(Et=r,r=Tr(ti,"onSelect"),0jn||(e.current=ai[jn],ai[jn]=null,jn--)}function D(e,n){jn++,ai[jn]=e.current,e.current=n}var an={},te=fn(an),se=fn(!1),Cn=an;function Zn(e,n){var t=e.type.contextTypes;if(!t)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function ae(e){return e=e.childContextTypes,e!=null}function Mr(){O(se),O(te)}function Ju(e,n,t){if(te.current!==an)throw Error(y(168));D(te,n),D(se,t)}function xs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Ua(e)||"Unknown",l));return A({},t,r)}function Dr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Cn=te.current,D(te,e),D(se,se.current),!0}function qu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=xs(e,n,Cn),r.__reactInternalMemoizedMergedChildContext=e,O(se),O(te),D(te,e)):O(se),D(se,t)}var je=null,Jr=!1,Nl=!1;function _s(e){je===null?je=[e]:je.push(e)}function nf(e){Jr=!0,_s(e)}function dn(){if(!Nl&&je!==null){Nl=!0;var e=0,n=M;try{var t=je;for(M=1;e>=u,l-=u,Ue=1<<32-Pe(n)+l|t<N?(H=_,_=null):H=_.sibling;var T=p(c,_,f[N],h);if(T===null){_===null&&(_=H);break}e&&_&&T.alternate===null&&n(c,_),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T,_=H}if(N===f.length)return t(c,_),I&&vn(c,N),E;if(_===null){for(;NN?(H=_,_=null):H=_.sibling;var Ce=p(c,_,T.value,h);if(Ce===null){_===null&&(_=H);break}e&&_&&Ce.alternate===null&&n(c,_),a=i(Ce,a,N),x===null?E=Ce:x.sibling=Ce,x=Ce,_=H}if(T.done)return t(c,_),I&&vn(c,N),E;if(_===null){for(;!T.done;N++,T=f.next())T=m(c,T.value,h),T!==null&&(a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return I&&vn(c,N),E}for(_=r(c,_);!T.done;N++,T=f.next())T=g(_,c,N,T.value,h),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?N:T.key),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return e&&_.forEach(function(lt){return n(c,lt)}),I&&vn(c,N),E}function F(c,a,f,h){if(typeof f=="object"&&f!==null&&f.type===Dn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Zt:e:{for(var E=f.key,x=a;x!==null;){if(x.key===E){if(E=f.type,E===Dn){if(x.tag===7){t(c,x.sibling),a=l(x,f.props.children),a.return=c,c=a;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ye&&io(E)===x.type){t(c,x.sibling),a=l(x,f.props),a.ref=ft(c,x,f),a.return=c,c=a;break e}t(c,x);break}else n(c,x);x=x.sibling}f.type===Dn?(a=En(f.props.children,c.mode,h,f.key),a.return=c,c=a):(h=Sr(f.type,f.key,f.props,null,c.mode,h),h.ref=ft(c,a,f),h.return=c,c=h)}return u(c);case Mn:e:{for(x=f.key;a!==null;){if(a.key===x)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){t(c,a.sibling),a=l(a,f.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Ol(f,c.mode,h),a.return=c,c=a}return u(c);case Ye:return x=f._init,F(c,a,x(f._payload),h)}if(vt(f))return w(c,a,f,h);if(ut(f))return k(c,a,f,h);or(c,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,f),a.return=c,c=a):(t(c,a),a=Rl(f,c.mode,h),a.return=c,c=a),u(c)):t(c,a)}return F}var qn=Rs(!0),Os=Rs(!1),Yt={},Fe=fn(Yt),Ut=fn(Yt),At=fn(Yt);function kn(e){if(e===Yt)throw Error(y(174));return e}function eu(e,n){switch(D(At,n),D(Ut,e),D(Fe,Yt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Kl(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Kl(n,e)}O(Fe),D(Fe,n)}function bn(){O(Fe),O(Ut),O(At)}function Fs(e){kn(At.current);var n=kn(Fe.current),t=Kl(n,e.type);n!==t&&(D(Ut,e),D(Fe,t))}function nu(e){Ut.current===e&&(O(Fe),O(Ut))}var j=fn(0);function Ur(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var zl=[];function tu(){for(var e=0;et?t:4,e(!0);var r=Pl.transition;Pl.transition={};try{e(!1),n()}finally{M=t,Pl.transition=r}}function Js(){return Ee().memoizedState}function uf(e,n,t){var r=un(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},qs(e))bs(n,t);else if(t=Ts(e,n,t,r),t!==null){var l=le();Te(t,e,r,l),ea(t,n,r)}}function of(e,n,t){var r=un(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(qs(e))bs(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var u=n.lastRenderedState,o=i(u,t);if(l.hasEagerState=!0,l.eagerState=o,Le(o,u)){var s=n.interleaved;s===null?(l.next=l,qi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=Ts(e,n,l,r),t!==null&&(l=le(),Te(t,e,r,l),ea(t,n,r))}}function qs(e){var n=e.alternate;return e===U||n!==null&&n===U}function bs(e,n){Ct=Ar=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function ea(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Ui(e,t)}}var Vr={readContext:Se,useCallback:b,useContext:b,useEffect:b,useImperativeHandle:b,useInsertionEffect:b,useLayoutEffect:b,useMemo:b,useReducer:b,useRef:b,useState:b,useDebugValue:b,useDeferredValue:b,useTransition:b,useMutableSource:b,useSyncExternalStore:b,useId:b,unstable_isNewReconciler:!1},sf={readContext:Se,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:Se,useEffect:oo,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,yr(4194308,4,Ks.bind(null,n,e),t)},useLayoutEffect:function(e,n){return yr(4194308,4,e,n)},useInsertionEffect:function(e,n){return yr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=uf.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:uo,useDebugValue:ou,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=uo(!1),n=e[0];return e=lf.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=U,l=De();if(I){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),G===null)throw Error(y(349));_n&30||Us(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,oo(Vs.bind(null,r,i,e),[e]),r.flags|=2048,Bt(9,As.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=De(),n=G.identifierPrefix;if(I){var t=Ae,r=Ue;t=(r&~(1<<32-Pe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Vt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Re]=n,e[jt]=r,aa(e,n,!1,!1),n.stateNode=e;e:{switch(u=Xl(t,r),t){case"dialog":R("cancel",e),R("close",e),l=r;break;case"iframe":case"object":case"embed":R("load",e),l=r;break;case"video":case"audio":for(l=0;lnt&&(n.flags|=128,r=!0,dt(i,!1),n.lanes=4194304)}else{if(!r)if(e=Ur(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),dt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!I)return ee(n),null}else 2*W()-i.renderingStartTime>nt&&t!==1073741824&&(n.flags|=128,r=!0,dt(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=W(),n.sibling=null,t=j.current,D(j,r?t&1|2:t&1),n):(ee(n),null);case 22:case 23:return pu(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?fe&1073741824&&(ee(n),n.subtreeFlags&6&&(n.flags|=8192)):ee(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function hf(e,n){switch(Yi(n),n.tag){case 1:return ae(n.type)&&Mr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return bn(),O(se),O(te),tu(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return nu(n),null;case 13:if(O(j),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));Jn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return O(j),null;case 4:return bn(),null;case 10:return Ji(n.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var ar=!1,ne=!1,yf=typeof WeakSet=="function"?WeakSet:Set,S=null;function Hn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){V(e,n,r)}else t.current=null}function Si(e,n,t){try{t()}catch(r){V(e,n,r)}}var yo=!1;function gf(e,n){if(li=zr,e=vs(),$i(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(o=u+l),m!==i||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++v===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ii={focusedElem:e,selectionRange:t},zr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:_e(n.type,k),F);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){V(n,n.return,h)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=yo,yo=!1,w}function xt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Si(n,t,i)}l=l.next}while(l!==r)}}function el(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ei(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function da(e){var n=e.alternate;n!==null&&(e.alternate=null,da(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Re],delete n[jt],delete n[si],delete n[bc],delete n[ef])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pa(e){return e.tag===5||e.tag===3||e.tag===4}function go(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ci(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Lr));else if(r!==4&&(e=e.child,e!==null))for(Ci(e,n,t),e=e.sibling;e!==null;)Ci(e,n,t),e=e.sibling}function xi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xi(e,n,t),e=e.sibling;e!==null;)xi(e,n,t),e=e.sibling}var Z=null,Ne=!1;function Ke(e,n,t){for(t=t.child;t!==null;)ma(e,n,t),t=t.sibling}function ma(e,n,t){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(Kr,t)}catch{}switch(t.tag){case 5:ne||Hn(t,n);case 6:var r=Z,l=Ne;Z=null,Ke(e,n,t),Z=r,Ne=l,Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Z.removeChild(t.stateNode));break;case 18:Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?_l(e.parentNode,t):e.nodeType===1&&_l(e,t),Dt(e)):_l(Z,t.stateNode));break;case 4:r=Z,l=Ne,Z=t.stateNode.containerInfo,Ne=!0,Ke(e,n,t),Z=r,Ne=l;break;case 0:case 11:case 14:case 15:if(!ne&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&Si(t,n,u),l=l.next}while(l!==r)}Ke(e,n,t);break;case 1:if(!ne&&(Hn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){V(t,n,o)}Ke(e,n,t);break;case 21:Ke(e,n,t);break;case 22:t.mode&1?(ne=(r=ne)||t.memoizedState!==null,Ke(e,n,t),ne=r):Ke(e,n,t);break;default:Ke(e,n,t)}}function wo(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new yf),n.forEach(function(r){var l=zf.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function xe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kf(r/1960))-r,10e?16:e,qe===null)var r=!1;else{if(e=qe,qe=null,Wr=0,L&6)throw Error(y(331));var l=L;for(L|=4,S=e.current;S!==null;){var i=S,u=i.child;if(S.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sW()-fu?Sn(e,0):cu|=t),ce(e,n)}function Ea(e,n){n===0&&(e.mode&1?(n=er,er<<=1,!(er&130023424)&&(er=4194304)):n=1);var t=le();e=We(e,n),e!==null&&(Qt(e,n,t),ce(e,t))}function Nf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Ea(e,t)}function zf(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Ea(e,t)}var Ca;Ca=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||se.current)oe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return oe=!1,mf(e,n,t);oe=!!(e.flags&131072)}else oe=!1,I&&n.flags&1048576&&Ns(n,Or,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;gr(e,n),e=n.pendingProps;var l=Zn(n,te.current);Yn(n,t),l=lu(null,n,r,e,l,t);var i=iu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ae(r)?(i=!0,Dr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bi(n),l.updater=qr,n.stateNode=l,l._reactInternals=n,mi(n,r,e,t),n=yi(null,n,r,!0,i,t)):(n.tag=0,I&&i&&Ki(n),re(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(gr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Tf(r),e=_e(r,e),l){case 0:n=hi(null,n,r,e,t);break e;case 1:n=mo(null,n,r,e,t);break e;case 11:n=fo(null,n,r,e,t);break e;case 14:n=po(null,n,r,_e(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),hi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),mo(e,n,r,l,t);case 3:e:{if(ua(n),e===null)throw Error(y(387));r=n.pendingProps,i=n.memoizedState,l=i.element,Ls(e,n),jr(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=et(Error(y(423)),n),n=vo(e,n,r,t,l);break e}else if(r!==l){l=et(Error(y(424)),n),n=vo(e,n,r,t,l);break e}else for(de=tn(n.stateNode.containerInfo.firstChild),pe=n,I=!0,ze=null,t=Os(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Jn(),r===l){n=Qe(e,n,t);break e}re(e,n,r,t)}n=n.child}return n;case 5:return Fs(n),e===null&&fi(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,ui(r,l)?u=null:i!==null&&ui(r,i)&&(n.flags|=32),ia(e,n),re(e,n,u,t),n.child;case 6:return e===null&&fi(n),null;case 13:return oa(e,n,t);case 4:return eu(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=qn(n,null,r,t):re(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),fo(e,n,r,l,t);case 7:return re(e,n,n.pendingProps,t),n.child;case 8:return re(e,n,n.pendingProps.children,t),n.child;case 12:return re(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,D(Fr,r._currentValue),r._currentValue=u,i!==null)if(Le(i.value,u)){if(i.children===l.children&&!se.current){n=Qe(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ve(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),di(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(y(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),di(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}re(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Yn(n,t),l=Se(l),r=r(l),n.flags|=1,re(e,n,r,t),n.child;case 14:return r=n.type,l=_e(r,n.pendingProps),l=_e(r.type,l),po(e,n,r,l,t);case 15:return ra(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),gr(e,n),n.tag=1,ae(r)?(e=!0,Dr(n)):e=!1,Yn(n,t),Ds(n,r,l),mi(n,r,l,t),yi(null,n,r,!0,e,t);case 19:return sa(e,n,t);case 22:return la(e,n,t)}throw Error(y(156,n.tag))};function xa(e,n){return Zo(e,n)}function Pf(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,n,t,r){return new Pf(e,n,t,r)}function vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tf(e){if(typeof e=="function")return vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Oi)return 11;if(e===Fi)return 14}return 2}function on(e,n){var t=e.alternate;return t===null?(t=we(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Sr(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")vu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Dn:return En(t.children,l,i,n);case Ri:u=8,l|=8;break;case Ul:return e=we(12,t,n,l|2),e.elementType=Ul,e.lanes=i,e;case Al:return e=we(13,t,n,l),e.elementType=Al,e.lanes=i,e;case Vl:return e=we(19,t,n,l),e.elementType=Vl,e.lanes=i,e;case Ro:return tl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mo:u=10;break e;case Do:u=9;break e;case Oi:u=11;break e;case Fi:u=14;break e;case Ye:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=we(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function En(e,n,t,r){return e=we(7,e,r,n),e.lanes=t,e}function tl(e,n,t,r){return e=we(22,e,r,n),e.elementType=Ro,e.lanes=t,e.stateNode={isHidden:!1},e}function Rl(e,n,t){return e=we(6,e,null,n),e.lanes=t,e}function Ol(e,n,t){return n=we(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Lf(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ml(0),this.expirationTimes=ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ml(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function hu(e,n,t,r,l,i,u,o,s){return e=new Lf(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=we(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},bi(i),e}function Mf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}n(),e.exports=ve})(Ma);var Pa,Ta,zo=Fl;Ta=zo.createRoot,Pa=zo.hydrateRoot;const Ti=({value:e,name:n})=>e?yn.createElement("astro-slot",{name:n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}}):null;Ti.shouldComponentUpdate=()=>!1;function If(e){for(const n in e)if(n.startsWith("__reactContainer"))return n}const Uf=e=>(n,t,{default:r,...l},{client:i})=>{if(!e.hasAttribute("ssr"))return;for(const[s,d]of Object.entries(l))t[s]=yn.createElement(Ti,{value:d,name:s});const u=yn.createElement(n,t,r!=null?yn.createElement(Ti,{value:r}):r),o=If(e);return o&&delete e[o],i==="only"?yn.startTransition(()=>{Ta(e).render(u)}):yn.startTransition(()=>{Pa(e,u)})};export{Uf as default}; diff --git a/resources/dist/_astro/index.3f528d64.css b/resources/dist/_astro/index.3f528d64.css deleted file mode 100644 index 160ac4b..0000000 --- a/resources/dist/_astro/index.3f528d64.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/request-docs/_astro/roboto-cyrillic-ext-400-normal.b7ef2cd1.woff2) format("woff2"),url(/request-docs/_astro/roboto-all-400-normal.e41533d5.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/request-docs/_astro/roboto-cyrillic-400-normal.495d38d4.woff2) format("woff2"),url(/request-docs/_astro/roboto-all-400-normal.e41533d5.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAAXMABIAAAAACeAAAAVwAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGiYbIBw2BmAANAhUCYM8EQwKg2iDSgsQABIUATYCJAMcBCAFgnQHIAyCSRt8CAieB2WbnmbLuYAwwpK8+iIe4P3r89wHDZaakNWCmB8R66SEWr+ILhpijnTqf6QAyyF8GVAOAPOWtmNg6llFXANTaQXCgXMubThOj6JRPCJsEWW3o1/4wX411uruvta/9FF8Zz50qenu3hVxmf4QIi1dRSzhkcR0SqA1QoiwzI2uAUbffgtBpA0YCssEQRChiaaAgMpAFvDsmKQshIEEer1l/u1J0Sbi8P6OJsQc3VHd6N0nlHe1MAhFbvPNcXJVWKNNekPqCYVx/lj8nqMi5BY4Pd6hectSY5E2Lll8SMf/HJXfEKEOfCtEMjEFBEHtpSkbjBK4aB1MIEjT/t9z/+W3j8FgVyeNWdDn7wh7b19l7pQoyFW8FXcx+P9D4NE2ErMMk4kskmVMCiwyG5ZhhyC7qZ19JoMatwj00/I0GG/uexT/v7K+Ysx9JXVwiRoC1yHR9VGAy9QQcXVQbqOGmOvEACWZm5EnyicLnfULjlggc0ldeRXQEqImnlS9kL8XAZndegKyuixM77OP24/Mzw9QQ7Kfha4v9OEOadjJ0qBYxN896pRbZI6ly/PS82Bs9iiYPpuaWJZEw83lXbg5G5JRslr2VFWPDtfbPBryeqZk5eKg/CqRD2Oz8tcvgJMiFi4RC6PWb9fnkzx74cWAeELYJFCSObI1tnxBfqwo2lPppazn26eGKDWU3KLMvOioppPNX6y4euc5FBq4y6Emd99OYa6zfpnpUhjE4Y/qoWtWQ4tIHr845ZA6bDc+AOSaR/sb6c9Otrh6uj3cUdDVKESNWgCK/GzxKQiLFKJeTz+QgzZKTIUcA2Nz9h2ppBhtbSQxfsjAtk4xoD1oes5gXYPe8UWmx+HjwQeNPfi2Wv/952vDpV/80Njw3WfWXv5IL3662ucz8dd9se78QkPd6ihDH61ZfS/s/KK0fjE+sgih+YDL5pz1vnH249tjfOAcLqZOTdvY/3jL1Hy3vqvcu358ODj2/etmVHfcdW+1t2X6R08H6p3BTzz87uDo6/H/vD/2scffaEf/ThphsXX6jLtDvp7cx6bvFUbnpWbFBWgOekJEip6LgFz63wtE+H/fXrpM++P7m8wAgZk/NJnacWXJLOW1rWO16C5ouY7SRE5T8x0iJ7MpntZyQJtPS2tuKXZpKqNf728OLK1FiJj72rq99z4Ho7G9hTQm0sqlhiEBKlWXfTDq1zbQcaP1HosN1zo/TqWGAGGywdQJhaSfHo9wDdfhs78cJKBZ5glRluQQEG030P7t9IdL+03+rRhRIHjxxwF7IsRHYeWXv0f991G5d9GJAKUIBPIT/jUpF/wa9f/Ccm9YiMnjjap8MPxDeomeuKM1ffn/fWHktrCSBT3iY20i0fZ0BBSOAgtJiYMAUDBoOigYaTtuMB4PJjiY2lFfMDPaqZe2rfYTKVcYVUK+QIPiwY175iFi5Yq4Em50vIyNq4cbYFLL2Fyqwbe4aq5Kx+XgZMhZco180ZCv3b5iqtyXD9VCUsquRpcNT74CH3LW95hzWKkvV3KxoHLNhF5fxylXMNkCLk6rio/XJGRzZWquGi/JysTM3sUM+4wfckMBveM4zKV1U1VT4QMTqQI/IFSPuDBgopvEnkF6u7kQ4gJdWIvWjkeivDg/OWNxRqSXxIolJclBKluW+uwutDVlWXtxjIc9y9fPPiBAxIqR2jR/O1ZmRftILVjVU5bo4zjbmDxi6XLWfHj/+sMns5ZFfyP9jLWD9pU5CFi/MC+Fo8Vo/+XhjzuFH9jQ3a32p2/nQ0fiTr60oFFwFV18KrXSKp2m/+AsuvlQKqXRIVOncITG9B6cRRdfSqt0RP8hVHTzrZOuHdwJDHdwJwA=) format("woff2"),url(/request-docs/_astro/roboto-all-400-normal.e41533d5.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/request-docs/_astro/roboto-greek-400-normal.daf51ab5.woff2) format("woff2"),url(/request-docs/_astro/roboto-all-400-normal.e41533d5.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/request-docs/_astro/roboto-vietnamese-400-normal.77b24796.woff2) format("woff2"),url(/request-docs/_astro/roboto-all-400-normal.e41533d5.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/request-docs/_astro/roboto-latin-ext-400-normal.3c23eb02.woff2) format("woff2"),url(/request-docs/_astro/roboto-all-400-normal.e41533d5.woff) format("woff");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/request-docs/_astro/roboto-latin-400-normal.f6734f81.woff2) format("woff2"),url(/request-docs/_astro/roboto-all-400-normal.e41533d5.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=cupcake]{color-scheme:light;--pf: 183.03 47.368% 47.216%;--sf: 338.25 71.429% 62.431%;--af: 39 84.112% 46.431%;--nf: 280 46.479% 11.137%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 183.03 100% 11.804%;--sc: 338.25 100% 15.608%;--ac: 39 100% 11.608%;--nc: 280 82.688% 82.784%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--p: 183.03 47.368% 59.02%;--s: 338.25 71.429% 78.039%;--a: 39 84.112% 58.039%;--n: 280 46.479% 13.922%;--b1: 24 33.333% 97.059%;--b2: 26.667 21.951% 91.961%;--b3: 22.5 14.286% 89.02%;--bc: 280 46.479% 13.922%;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}[data-theme=bumblebee]{color-scheme:light;--pf: 41.124 74.167% 42.353%;--sf: 49.901 94.393% 46.431%;--af: 240 33.333% 11.294%;--nf: 240 33.333% 11.294%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--ac: 240 60.274% 82.824%;--nc: 240 60.274% 82.824%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.124 74.167% 52.941%;--pc: 240 33.333% 14.118%;--s: 49.901 94.393% 58.039%;--sc: 240 33.333% 14.118%;--a: 240 33.333% 14.118%;--n: 240 33.333% 14.118%;--b1: 0 0% 100%}[data-theme=emerald]{color-scheme:light;--pf: 141.18 50% 48%;--sf: 218.88 96.078% 48%;--af: 9.8901 81.25% 44.863%;--nf: 219.23 20.312% 20.078%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.18 50% 60%;--pc: 151.11 28.421% 18.627%;--s: 218.88 96.078% 60%;--sc: 210 20% 98.039%;--a: 9.8901 81.25% 56.078%;--ac: 210 20% 98.039%;--n: 219.23 20.312% 25.098%;--nc: 210 20% 98.039%;--b1: 0 0% 100%;--bc: 219.23 20.312% 25.098%;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--pf: 229.09 95.652% 51.137%;--sf: 214.91 26.316% 47.216%;--af: 154.2 49.02% 48%;--nf: 233.33 27.273% 10.353%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 229.09 100% 92.784%;--sc: 214.91 100% 11.804%;--ac: 154.2 100% 12%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 229.09 95.652% 63.922%;--s: 214.91 26.316% 59.02%;--a: 154.2 49.02% 60%;--n: 233.33 27.273% 12.941%;--nc: 210 38.462% 94.902%;--b1: 0 0% 100%;--bc: 233.33 27.273% 12.941%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--pf: 320.73 69.62% 55.216%;--sf: 197.03 86.592% 51.922%;--af: 48 89.041% 45.647%;--nf: 253.22 60.825% 15.216%;--b2: 253.85 59.091% 23.294%;--b3: 253.85 59.091% 20.965%;--pc: 320.73 100% 13.804%;--sc: 197.03 100% 12.98%;--ac: 48 100% 11.412%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 320.73 69.62% 69.02%;--s: 197.03 86.592% 64.902%;--a: 48 89.041% 57.059%;--n: 253.22 60.825% 19.02%;--nc: 260 60% 98.039%;--b1: 253.85 59.091% 25.882%;--bc: 260 60% 98.039%;--in: 199.13 86.957% 63.922%;--inc: 257.45 63.218% 17.059%;--su: 168.1 74.233% 68.039%;--suc: 257.45 63.218% 17.059%;--wa: 48 89.041% 57.059%;--wac: 257.45 63.218% 17.059%;--er: 351.85 73.636% 56.863%;--erc: 260 60% 98.039%}[data-theme=retro]{color-scheme:light;--pf: 2.6667 73.77% 60.863%;--sf: 144.62 27.273% 57.569%;--af: 49.024 67.213% 60.863%;--nf: 41.667 16.822% 33.569%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 2.6667 73.77% 76.078%;--pc: 345 5.2632% 14.902%;--s: 144.62 27.273% 71.961%;--sc: 345 5.2632% 14.902%;--a: 49.024 67.213% 76.078%;--ac: 345 5.2632% 14.902%;--n: 41.667 16.822% 41.961%;--nc: 45 47.059% 80%;--b1: 45 47.059% 80%;--b2: 45.283 37.063% 71.961%;--b3: 42.188 35.955% 65.098%;--bc: 345 5.2632% 14.902%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem}[data-theme=cyberpunk]{color-scheme:light;--pf: 344.78 100% 58.353%;--sf: 195.12 80.392% 56%;--af: 276 74.324% 56.784%;--nf: 57.273 100% 10.353%;--b2: 56 100% 45%;--b3: 56 100% 40.5%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 56 100% 10%;--pc: 344.78 100% 14.588%;--sc: 195.12 100% 14%;--ac: 276 100% 14.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 344.78 100% 72.941%;--s: 195.12 80.392% 70%;--a: 276 74.324% 70.98%;--n: 57.273 100% 12.941%;--nc: 56 100% 50%;--b1: 56 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--pf: 353.23 73.81% 53.647%;--sf: 254.12 86.441% 61.49%;--af: 181.41 55.556% 56%;--nf: 336 42.857% 38.431%;--b2: 318.46 46.429% 80.118%;--b3: 318.46 46.429% 72.106%;--pc: 353.23 100% 13.412%;--sc: 254.12 100% 15.373%;--ac: 181.41 100% 14%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 353.23 73.81% 67.059%;--s: 254.12 86.441% 76.863%;--a: 181.41 55.556% 70%;--n: 336 42.857% 48.039%;--nc: 318.46 46.429% 89.02%;--b1: 318.46 46.429% 89.02%;--bc: 343.64 38.462% 28.039%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-btn: 1.9rem}[data-theme=halloween]{color-scheme:dark;--pf: 31.927 89.344% 41.725%;--sf: 271.22 45.794% 33.569%;--af: 91.071 100% 26.353%;--nf: 180 3.5714% 8.7843%;--b2: 0 0% 11.647%;--b3: 0 0% 10.482%;--bc: 0 0% 82.588%;--sc: 271.22 100% 88.392%;--ac: 91.071 100% 6.5882%;--nc: 180 4.8458% 82.196%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 31.927 89.344% 52.157%;--pc: 180 7.3171% 8.0392%;--s: 271.22 45.794% 41.961%;--a: 91.071 100% 32.941%;--n: 180 3.5714% 10.98%;--b1: 0 0% 12.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=garden]{color-scheme:light;--pf: 138.86 15.982% 34.353%;--sf: 96.923 37.143% 74.51%;--af: 0 67.742% 75.137%;--nf: 0 3.9106% 28.078%;--b2: 0 4.3478% 81.882%;--b3: 0 4.3478% 73.694%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 138.86 100% 88.588%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 138.86 15.982% 42.941%;--s: 96.923 37.143% 93.137%;--sc: 96 32.468% 15.098%;--a: 0 67.742% 93.922%;--ac: 0 21.951% 16.078%;--n: 0 3.9106% 35.098%;--nc: 0 4.3478% 90.98%;--b1: 0 4.3478% 90.98%;--bc: 0 3.2258% 6.0784%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--pf: 181.79 92.857% 39.529%;--sf: 274.41 30.909% 45.49%;--af: 47.059 100% 64%;--nf: 205.4 53.725% 40%;--b2: 218.61 52.511% 38.647%;--b3: 218.61 52.511% 34.782%;--bc: 218.61 100% 88.588%;--sc: 274.41 100% 91.373%;--ac: 47.059 100% 16%;--nc: 205.4 100% 90%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 181.79 92.857% 49.412%;--pc: 181.41 100% 16.667%;--s: 274.41 30.909% 56.863%;--a: 47.059 100% 80%;--n: 205.4 53.725% 50%;--b1: 218.61 52.511% 42.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=lofi]{color-scheme:light;--pf: 0 0% 4.0784%;--sf: 0 1.9608% 8%;--af: 0 0% 11.922%;--nf: 0 0% 0%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--p: 0 0% 5.098%;--pc: 0 0% 100%;--s: 0 1.9608% 10%;--sc: 0 0% 100%;--a: 0 0% 14.902%;--ac: 0 0% 100%;--n: 0 0% 0%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 0 1.9608% 90%;--bc: 0 0% 0%;--in: 212.35 100% 47.647%;--inc: 0 0% 100%;--su: 136.84 72.152% 46.471%;--suc: 0 0% 100%;--wa: 4.5614 100% 66.471%;--wac: 0 0% 100%;--er: 325.05 77.6% 49.02%;--erc: 0 0% 100%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=pastel]{color-scheme:light;--pf: 283.64 21.569% 64%;--sf: 351.63 70.492% 70.431%;--af: 158.49 54.639% 64.784%;--nf: 198.62 43.719% 48.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--pc: 283.64 59.314% 16%;--sc: 351.63 100% 17.608%;--ac: 158.49 100% 16.196%;--nc: 198.62 100% 12.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 283.64 21.569% 80%;--s: 351.63 70.492% 88.039%;--a: 158.49 54.639% 80.98%;--n: 198.62 43.719% 60.98%;--b1: 0 0% 100%;--b2: 210 20% 98.039%;--b3: 216 12.195% 83.922%;--rounded-btn: 1.9rem}[data-theme=fantasy]{color-scheme:light;--pf: 296.04 82.813% 20.078%;--sf: 200 100% 29.647%;--af: 30.894 94.378% 40.941%;--nf: 215 27.907% 13.49%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 296.04 100% 85.02%;--sc: 200 100% 87.412%;--ac: 30.894 100% 10.235%;--nc: 215 62.264% 83.373%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 296.04 82.813% 25.098%;--s: 200 100% 37.059%;--a: 30.894 94.378% 51.176%;--n: 215 27.907% 16.863%;--b1: 0 0% 100%;--bc: 215 27.907% 16.863%}[data-theme=wireframe]{color-scheme:light;--pf: 0 0% 57.725%;--sf: 0 0% 57.725%;--af: 0 0% 57.725%;--nf: 0 0% 73.725%;--bc: 0 0% 20%;--pc: 0 0% 14.431%;--sc: 0 0% 14.431%;--ac: 0 0% 14.431%;--nc: 0 0% 18.431%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,sanssecondaryerif;--p: 0 0% 72.157%;--s: 0 0% 72.157%;--a: 0 0% 72.157%;--n: 0 0% 92.157%;--b1: 0 0% 100%;--b2: 0 0% 93.333%;--b3: 0 0% 86.667%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 30.196% 50%;--er: 0 100% 50%;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pf: 0 1.9608% 16%;--sf: 0 1.9608% 16%;--af: 0 1.9608% 16%;--bc: 0 0% 80%;--pc: 0 5.3922% 84%;--sc: 0 5.3922% 84%;--ac: 0 5.3922% 84%;--nc: 0 2.5404% 83.02%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--border-btn: 1px;--tab-border: 1px;--p: 0 1.9608% 20%;--s: 0 1.9608% 20%;--a: 0 1.9608% 20%;--b1: 0 0% 0%;--b2: 0 0% 5.098%;--b3: 0 1.9608% 10%;--n: 0 1.2987% 15.098%;--nf: 0 1.9608% 20%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 100% 50%;--er: 0 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-text-case: lowercase;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pf: 0 0% 80%;--sf: 218.4 54.348% 14.431%;--af: 318.62 21.805% 20.863%;--nf: 270 4.3478% 7.2157%;--pc: 0 0% 20%;--sc: 218.4 100% 83.608%;--ac: 318.62 84.615% 85.216%;--inc: 202.35 100% 14%;--suc: 89.007 100% 10.392%;--wac: 53.906 100% 12.706%;--erc: 0 100% 14.353%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 0 0% 100%;--s: 218.4 54.348% 18.039%;--a: 318.62 21.805% 26.078%;--n: 270 4.3478% 9.0196%;--nc: 37.083 67.29% 58.039%;--b1: 240 10% 3.9216%;--b2: 270 4.3478% 9.0196%;--b3: 270 2.1739% 18.039%;--bc: 37.083 67.29% 58.039%;--in: 202.35 100% 70%;--su: 89.007 61.633% 51.961%;--wa: 53.906 68.817% 63.529%;--er: 0 100% 71.765%}[data-theme=dracula]{color-scheme:dark;--pf: 325.52 100% 58.98%;--sf: 264.71 89.474% 62.118%;--af: 31.02 100% 56.941%;--nf: 229.57 15.033% 24%;--b2: 231.43 14.894% 16.588%;--b3: 231.43 14.894% 14.929%;--pc: 325.52 100% 14.745%;--sc: 264.71 100% 15.529%;--ac: 31.02 100% 14.235%;--nc: 229.57 70.868% 86%;--inc: 190.53 100% 15.373%;--suc: 135.18 100% 12.941%;--wac: 64.909 100% 15.294%;--erc: 0 100% 93.333%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 325.52 100% 73.725%;--s: 264.71 89.474% 77.647%;--a: 31.02 100% 71.176%;--n: 229.57 15.033% 30%;--b1: 231.43 14.894% 18.431%;--bc: 60 30% 96.078%;--in: 190.53 96.61% 76.863%;--su: 135.18 94.444% 64.706%;--wa: 64.909 91.667% 76.471%;--er: 0 100% 66.667%}[data-theme=cmyk]{color-scheme:light;--pf: 202.72 83.251% 48.157%;--sf: 335.25 77.67% 47.686%;--af: 56.195 100% 47.843%;--nf: 0 0% 8.1569%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 202.72 100% 12.039%;--sc: 335.25 100% 91.922%;--ac: 56.195 100% 11.961%;--nc: 0 0% 82.039%;--inc: 192.2 100% 10.431%;--suc: 291.06 100% 87.608%;--wac: 25.027 100% 11.333%;--erc: 3.956 100% 91.137%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 202.72 83.251% 60.196%;--s: 335.25 77.67% 59.608%;--a: 56.195 100% 59.804%;--n: 0 0% 10.196%;--b1: 0 0% 100%;--in: 192.2 48.361% 52.157%;--su: 291.06 48.454% 38.039%;--wa: 25.027 84.615% 56.667%;--er: 3.956 80.531% 55.686%}[data-theme=autumn]{color-scheme:light;--pf: 344.23 95.804% 22.431%;--sf: .44444 63.38% 46.588%;--af: 27.477 56.021% 50.039%;--nf: 22.105 17.117% 34.824%;--b2: 0 0% 85.059%;--b3: 0 0% 76.553%;--bc: 0 0% 18.902%;--pc: 344.23 100% 85.608%;--sc: .44444 100% 91.647%;--ac: 27.477 100% 12.51%;--nc: 22.105 100% 88.706%;--inc: 186.94 100% 9.9216%;--suc: 164.59 100% 8.6275%;--wac: 30.141 100% 9.9216%;--erc: 353.6 100% 89.765%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 344.23 95.804% 28.039%;--s: .44444 63.38% 58.235%;--a: 27.477 56.021% 62.549%;--n: 22.105 17.117% 43.529%;--b1: 0 0% 94.51%;--in: 186.94 47.826% 49.608%;--su: 164.59 33.636% 43.137%;--wa: 30.141 84.19% 49.608%;--er: 353.6 79.116% 48.824%}[data-theme=business]{color-scheme:dark;--pf: 210 64.103% 24.471%;--sf: 200 12.931% 43.608%;--af: 12.515 79.512% 47.843%;--nf: 212.73 13.58% 12.706%;--b2: 0 0% 11.294%;--b3: 0 0% 10.165%;--bc: 0 0% 82.51%;--pc: 210 100% 86.118%;--sc: 200 100% 10.902%;--ac: 12.515 100% 11.961%;--nc: 212.73 28.205% 83.176%;--inc: 199.15 100% 88.353%;--suc: 144 100% 11.137%;--wac: 39.231 100% 12.078%;--erc: 6.3415 100% 88.667%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64.103% 30.588%;--s: 200 12.931% 54.51%;--a: 12.515 79.512% 59.804%;--n: 212.73 13.58% 15.882%;--b1: 0 0% 12.549%;--in: 199.15 100% 41.765%;--su: 144 30.973% 55.686%;--wa: 39.231 64.356% 60.392%;--er: 6.3415 55.656% 43.333%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--pf: 302.59 100% 40%;--sf: 27.294 100% 40%;--af: 72 98.425% 40.157%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 88.235%;--b3: 0 0% 79.412%;--bc: 0 0% 19.608%;--pc: 302.59 100% 90%;--sc: 27.294 100% 10%;--ac: 72 100% 10.039%;--nc: 238.42 99.052% 83.451%;--inc: 209.85 100% 11.569%;--suc: 148.87 100% 11.608%;--wac: 52.574 100% 11.451%;--erc: .78261 100% 89.02%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 302.59 100% 50%;--s: 27.294 100% 50%;--a: 72 98.425% 50.196%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 98.039%;--in: 209.85 91.628% 57.843%;--su: 148.87 49.533% 58.039%;--wa: 52.574 92.661% 57.255%;--er: .78261 100% 45.098%;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem}[data-theme=lemonade]{color-scheme:light;--pf: 88.8 96.154% 24.471%;--sf: 60 80.952% 43.765%;--af: 62.553 79.661% 70.745%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 88.8 100% 86.118%;--sc: 60 100% 10.941%;--ac: 62.553 100% 17.686%;--nc: 238.42 99.052% 83.451%;--inc: 191.61 79.118% 16.902%;--suc: 74.458 100% 15.725%;--wac: 50.182 100% 15.059%;--erc: .98361 100% 16.588%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 88.8 96.154% 30.588%;--s: 60 80.952% 54.706%;--a: 62.553 79.661% 88.431%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 100%;--in: 191.61 39.241% 84.51%;--su: 74.458 76.147% 78.627%;--wa: 50.182 87.302% 75.294%;--er: .98361 70.115% 82.941%}[data-theme=night]{color-scheme:dark;--pf: 198.44 93.204% 47.686%;--sf: 234.45 89.474% 59.137%;--af: 328.85 85.621% 56%;--b2: 222.22 47.368% 10.059%;--b3: 222.22 47.368% 9.0529%;--bc: 222.22 65.563% 82.235%;--pc: 198.44 100% 11.922%;--sc: 234.45 100% 14.784%;--ac: 328.85 100% 14%;--nc: 217.24 75.772% 83.49%;--inc: 198.46 100% 9.6078%;--suc: 172.46 100% 10.078%;--wac: 40.61 100% 12.706%;--erc: 350.94 100% 14.235%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 198.44 93.204% 59.608%;--s: 234.45 89.474% 73.922%;--a: 328.85 85.621% 70%;--n: 217.24 32.584% 17.451%;--nf: 217.06 30.357% 21.961%;--b1: 222.22 47.368% 11.176%;--in: 198.46 90.204% 48.039%;--su: 172.46 66.008% 50.392%;--wa: 40.61 88.172% 63.529%;--er: 350.94 94.558% 71.176%}[data-theme=coffee]{color-scheme:dark;--pf: 29.583 66.667% 46.118%;--sf: 182.4 24.752% 15.843%;--af: 194.19 74.4% 19.608%;--nf: 300 20% 4.7059%;--b2: 306 18.519% 9.5294%;--b3: 306 18.519% 8.5765%;--pc: 29.583 100% 11.529%;--sc: 182.4 67.237% 83.961%;--ac: 194.19 100% 84.902%;--nc: 300 13.75% 81.176%;--inc: 171.15 100% 13.451%;--suc: 92.5 100% 12.471%;--wac: 43.125 100% 13.725%;--erc: 9.7561 100% 14.941%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 29.583 66.667% 57.647%;--s: 182.4 24.752% 19.804%;--a: 194.19 74.4% 24.51%;--n: 300 20% 5.8824%;--b1: 306 18.519% 10.588%;--bc: 36.667 8.3333% 42.353%;--in: 171.15 36.527% 67.255%;--su: 92.5 25% 62.353%;--wa: 43.125 100% 68.627%;--er: 9.7561 95.349% 74.706%}[data-theme=winter]{color-scheme:light;--pf: 211.79 100% 40.627%;--sf: 246.92 47.273% 34.51%;--af: 310.41 49.388% 41.569%;--nf: 217.02 92.157% 8%;--pc: 211.79 100% 90.157%;--sc: 246.92 100% 88.627%;--ac: 310.41 100% 90.392%;--nc: 217.02 100% 82%;--inc: 191.54 100% 15.608%;--suc: 181.5 100% 13.255%;--wac: 32.308 100% 16.706%;--erc: 0 100% 14.431%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 211.79 100% 50.784%;--s: 246.92 47.273% 43.137%;--a: 310.41 49.388% 51.961%;--n: 217.02 92.157% 10%;--b1: 0 0% 100%;--b2: 216.92 100% 97.451%;--b3: 218.82 43.59% 92.353%;--bc: 214.29 30.061% 31.961%;--in: 191.54 92.857% 78.039%;--su: 181.5 46.512% 66.275%;--wa: 32.308 61.905% 83.529%;--er: 0 63.38% 72.157%}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--n) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity));border-radius:var(--rounded-badge, 1.9rem)}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled],.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.collapse.collapse{visibility:visible}.collapse{position:relative;display:grid;overflow:hidden}.collapse-title,.collapse>input[type=checkbox],.collapse-content{grid-column-start:1;grid-row-start:1}.collapse>input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.collapse-content{grid-row-start:2;overflow:hidden;max-height:0px;padding-left:1rem;padding-right:1rem;cursor:unset;transition:padding .2s ease-in-out,background-color .2s ease-in-out}.collapse-open .collapse-content,.collapse:focus:not(.collapse-close) .collapse-content,.collapse:not(.collapse-close) input[type=checkbox]:checked~.collapse-content{max-height:none}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{content:"";flex-grow:1;height:.125rem;width:100%}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group{display:flex;width:100%;align-items:stretch}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.input-group-sm{font-size:.875rem;line-height:2rem}.input-group :where(span){display:flex;align-items:center;--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity));padding-left:1rem;padding-right:1rem}.input-group>:first-child{border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.input-group>:last-child{border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.link{cursor:pointer;text-decoration-line:underline}.menu{display:flex;flex-direction:column;flex-wrap:wrap}.menu.horizontal{display:inline-flex;flex-direction:row}.menu.horizontal :where(li){flex-direction:row}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}.menu :where(li:not(.menu-title))>:where(*:not(ul)){display:flex}.menu :where(li:not(.disabled):not(.menu-title))>:where(*:not(ul)){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;outline:2px solid transparent;outline-offset:2px}.menu>:where(li > *:not(ul):focus){outline:2px solid transparent;outline-offset:2px}.menu>:where(li.disabled > *:not(ul):focus){cursor:auto}.menu>:where(li) :where(ul){display:flex;flex-direction:column;align-items:stretch}.menu>:where(li)>:where(ul){position:absolute;display:none;top:initial;left:100%;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:hover)>:where(ul){display:flex}.menu>:where(li:focus)>:where(ul){display:flex}.mockup-code{position:relative;overflow:hidden;overflow-x:auto;min-width:18rem;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));padding-top:1.25rem;padding-bottom:1.25rem;--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}.mockup-code pre[data-prefix]:before{content:attr(data-prefix);display:inline-block;text-align:right;width:2rem;opacity:.5}.mockup-window{position:relative;overflow:hidden;overflow-x:auto;padding-top:1.25rem;border-radius:var(--rounded-box, 1rem)}.mockup-window pre[data-prefix]:before{content:attr(data-prefix);display:inline-block;text-align:right}.modal{pointer-events:none;visibility:hidden;position:fixed;inset:0;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar > *){display:inline-flex;align-items:center}.progress{position:relative;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;height:.5rem;border-radius:var(--rounded-box, 1rem)}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;transition:background,box-shadow var(--animation-input, .2s) ease-in-out}.swap{position:relative;display:inline-grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.tabs{display:flex;flex-wrap:wrap;align-items:flex-end}.tab{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: hsla(var(--bc) / var(--tw-text-opacity, 1));--tab-bg: hsla(var(--b1) / var(--tw-bg-opacity, 1));--tab-border-color: hsla(var(--b3) / var(--tw-bg-opacity, 1));color:var(--tab-color);padding-left:var(--tab-padding, 1rem);padding-right:var(--tab-padding, 1rem)}.table{position:relative;text-align:left}.table th:first-child{position:sticky;position:-webkit-sticky;left:0;z-index:11}.toggle{flex-shrink:0;--tglbg: hsl(var(--b1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .5;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-badge, 1.9rem);transition:background,box-shadow var(--animation-input, .2s) ease-in-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.badge-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.badge-info{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.badge-success{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.badge-warning{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--wa) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--wac, var(--nc)) / var(--tw-text-opacity))}.badge-ghost{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.badge-outline{border-color:currentColor;--tw-border-opacity: .5;background-color:transparent;color:currentColor}.badge-outline.badge-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.badge-outline.badge-secondary{--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.badge-outline.badge-accent{--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.badge-outline.badge-info{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.badge-outline.badge-success{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.badge-outline.badge-warning{--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.badge-outline.badge-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline .badge{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary .badge{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent .badge{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--a) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-secondary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-accent .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-info .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--in) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.btn-outline.btn-success .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-warning .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--wa) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.btn-outline.btn-error .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--ac) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.btn-success:hover,.btn-success.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity))}.btn-success:focus-visible{outline:2px solid hsl(var(--su))}.btn-error{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-error:hover,.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity))}.btn-error:focus-visible{outline:2px solid hsl(var(--er))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline.btn-success{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-success:hover,.btn-outline.btn-success.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline.btn-error:hover,.btn-outline.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.collapse:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.collapse-arrow .collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;--tw-translate-y: -100%;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-duration:.15s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);top:50%;right:1.4rem;content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}[dir=rtl] .collapse-arrow .collapse-title:after{--tw-rotate: -45deg}.collapse-plus .collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);top:.9rem;right:1.4rem;content:"+";pointer-events:none}.collapse:not(.collapse-open):not(.collapse-close) input[type=checkbox],.collapse:not(.collapse-open):not(.collapse-close) .collapse-title{cursor:pointer}.collapse:focus:not(.collapse-open):not(.collapse-close) .collapse-title{cursor:unset}.collapse-title{position:relative}:where(.collapse > input[type="checkbox"]){z-index:1}.collapse-title,:where(.collapse > input[type="checkbox"]){width:100%;padding:1rem 3rem 1rem 1rem;min-height:3.75rem;transition:background-color .2s ease-in-out}.collapse-open :where(.collapse-content),.collapse:focus:not(.collapse-close) :where(.collapse-content),.collapse:not(.collapse-close) :where(input[type="checkbox"]:checked ~ .collapse-content){padding-bottom:1rem;transition:padding .2s ease-in-out,background-color .2s ease-in-out}.collapse-open.collapse-arrow .collapse-title:after,.collapse-arrow:focus:not(.collapse-close) .collapse-title:after,.collapse-arrow:not(.collapse-close) input[type=checkbox]:checked~.collapse-title:after{--tw-translate-y: -50%;--tw-rotate: 225deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[dir=rtl] .collapse-open.collapse-arrow .collapse-title:after,[dir=rtl] .collapse-arrow:focus:not(.collapse-close) .collapse-title:after,[dir=rtl] .collapse-arrow:not(.collapse-close) input[type=checkbox]:checked~.collapse-title:after{--tw-rotate: 135deg}.collapse-open.collapse-plus .collapse-title:after,.collapse-plus:focus:not(.collapse-close) .collapse-title:after,.collapse-plus:not(.collapse-close) input[type=checkbox]:checked~.collapse-title:after{content:"\2212"}.divider:before{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:after{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:not(:empty){gap:1rem}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-success{outline:2px solid hsl(var(--su))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-error{outline:2px solid hsl(var(--er))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link-info,.link-info:hover{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu.horizontal>li.bordered>a,.menu.horizontal>li.bordered>button,.menu.horizontal>li.bordered>span{border-left-width:0px;border-bottom-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,.menu[class^=px-]:not(.menu[class^="px-0"]) li>*,.menu[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,.menu[class^=p-]:not(.menu[class^="p-0"]) li>*{border-radius:var(--rounded-btn, .5rem)}.menu :where(li.bordered > *){border-left-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu :where(li)>:where(*:not(ul)){gap:.75rem;padding:.75rem 1rem;color:currentColor}.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):focus),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):hover){background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):active){--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.menu :where(li:empty){margin:.5rem 1rem;height:1px;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.menu li.hover-bordered a{border-left-width:4px;border-color:transparent}.menu li.hover-bordered a:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu.compact li>a,.menu.compact li>span{padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.menu .menu-title{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}.menu .menu-title>*{padding-top:.25rem;padding-bottom:.25rem}.menu :where(li:not(.disabled))>:where(*:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul) :where(li){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}.menu>:where(li)>:where(ul) :where(li)>:where(:not(ul)){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul)>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.mockup-code:before{content:"";margin-bottom:1rem;display:block;height:.75rem;width:.75rem;border-radius:9999px;opacity:.3;box-shadow:1.4em 0,2.8em 0,4.2em 0}.mockup-code pre{padding-right:1.25rem}.mockup-code pre:before{content:"";margin-right:2ch}.mockup-window:before{content:"";margin-bottom:1rem;display:block;height:.75rem;width:.75rem;border-radius:9999px;opacity:.3;box-shadow:1.4em 0,2.8em 0,4.2em 0}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.progress::-moz-progress-bar{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity))}.progress-success::-moz-progress-bar{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity))}.progress:indeterminate:after{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));content:"";position:absolute;top:0;bottom:0;left:-40%;width:33.333333%;border-radius:var(--rounded-box, 1rem);animation:progress-loading 5s infinite ease-in-out}.progress-success:indeterminate:after{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity))}.progress::-webkit-progress-bar{background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;border-radius:var(--rounded-box, 1rem)}.progress::-webkit-progress-value{--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));border-radius:var(--rounded-box, 1rem)}.progress-success::-webkit-progress-value{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity))}@keyframes progress-loading{50%{left:107%}}.radio:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));animation:radiomark var(--animation-input, .2s) ease-in-out;box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.swap-rotate .swap-on,.swap-rotate .swap-indeterminate,.swap-rotate input:indeterminate~.swap-on{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate.swap-active .swap-off,.swap-rotate input:indeterminate~.swap-off{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate.swap-active .swap-on,.swap-rotate input:indeterminate~.swap-indeterminate{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tab:hover{--tw-text-opacity: 1}.tab.tab-active{border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-3px}.tab:focus-visible.tab-lifted{border-bottom-right-radius:var(--tab-radius, .5rem);border-bottom-left-radius:var(--tab-radius, .5rem)}.tab-lifted.tab-active{background-color:var(--tab-bg);border-width:var(--tab-border, 1px) var(--tab-border, 1px) 0 var(--tab-border, 1px);border-left-color:var(--tab-border-color);border-right-color:var(--tab-border-color);border-top-color:var(--tab-border-color);padding-left:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-right:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-bottom:var(--tab-border, 1px);padding-top:0}.tab-lifted.tab-active:before,.tab-lifted.tab-active:after{z-index:1;content:"";display:block;position:absolute;width:var(--tab-radius, .5rem);height:var(--tab-radius, .5rem);bottom:0;--tab-grad: calc(68% - var(--tab-border, 1px));--tab-corner-bg: radial-gradient(circle at var(--circle-pos), transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .3px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .3px))}.tab-lifted.tab-active:before{left:calc(var(--tab-radius, .5rem) * -1);--circle-pos: top left;background-image:var(--tab-corner-bg)}[dir=rtl] .tab-lifted.tab-active:before{--circle-pos: top right}.tab-lifted.tab-active:after{right:calc(var(--tab-radius, .5rem) * -1);--circle-pos: top right;background-image:var(--tab-corner-bg)}[dir=rtl] .tab-lifted.tab-active:after{--circle-pos: top left}.tab-lifted.tab-active:first-child:before{background:none}.tab-lifted.tab-active:last-child:after{background:none}.tab-lifted.tab-active+.tab-lifted.tab-active:before{background:none}.tabs-boxed{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:.25rem;border-radius:var(--rounded-btn, .5rem)}.tabs-boxed .tab-active{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity));border-radius:var(--rounded-btn, .5rem)}.tabs-boxed .tab-active:hover{--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.table :where(th,td){white-space:nowrap;padding:1rem;vertical-align:middle}.table tr.active th,.table tr.active td,.table tr.active:nth-child(even) th,.table tr.active:nth-child(even) td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table tr.hover:hover th,.table tr.hover:hover td,.table tr.hover:nth-child(even):hover th,.table tr.hover:nth-child(even):hover td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){border-bottom-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.table :where(thead,tfoot) :where(th,td){--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase}.table :where(tbody th,tbody td){--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.table-zebra tbody tr:nth-child(even) th,.table-zebra tbody tr:nth-child(even) td{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}:where(.table *:first-child) :where(*:first-child) :where(th,td):first-child{border-top-left-radius:.5rem}:where(.table *:first-child) :where(*:first-child) :where(th,td):last-child{border-top-right-radius:.5rem}:where(.table *:last-child) :where(*:last-child) :where(th,td):first-child{border-bottom-left-radius:.5rem}:where(.table *:last-child) :where(*:last-child) :where(th,td):last-child{border-bottom-right-radius:.5rem}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.toggle:checked,.toggle[checked=true],.toggle[aria-checked=true]{--handleoffsetcalculator: var(--handleoffset);--tw-border-opacity: 1;--tw-bg-opacity: 1}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true],[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-border-opacity: 1;--tw-bg-opacity: 1;box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle-success:focus-visible{outline:2px solid hsl(var(--su))}.toggle-success:checked,.toggle-success[checked=true],.toggle-success[aria-checked=true]{border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-border-opacity: .1;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--bc) / var(--tw-border-opacity));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px hsl(var(--bc)) inset, var(--handleoffsetcalculator) 0 0 3px hsl(var(--bc)) inset}.badge-xs{height:.75rem;font-size:.75rem;line-height:.75rem;padding-left:.313rem;padding-right:.313rem}.badge-sm{height:1rem;font-size:.75rem;line-height:1rem;padding-left:.438rem;padding-right:.438rem}.badge-md{height:1.25rem;font-size:.875rem;line-height:1.25rem;padding-left:.563rem;padding-right:.563rem}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.input-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:2rem}.menu-horizontal{display:inline-flex;width:-moz-max-content;width:max-content;flex-direction:row}.menu-horizontal :where(li){flex-direction:row}.menu-horizontal>:where(li)>:where(ul){top:100%;left:initial}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.menu-horizontal :where(li.bordered > *){border-left-width:0px;border-bottom-width:4px}.menu-horizontal>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:first-child)>:where(*:not(ul)){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.menu-horizontal>:where(li:last-child)>:where(*:not(ul)){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.table-compact :where(th,td){padding:.5rem;font-size:.875rem;line-height:1.25rem}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-3{left:.75rem}.top-0{top:0}.top-1\/2{top:50%}.z-50{z-index:50}.col-span-3{grid-column:span 3 / span 3}.col-span-4{grid-column:span 4 / span 4}.col-span-5{grid-column:span 5 / span 5}.col-span-7{grid-column:span 7 / span 7}.col-start-2{grid-column-start:2}.col-start-4{grid-column-start:4}.col-end-12{grid-column-end:12}.col-end-4{grid-column-end:4}.float-right{float:right}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-6{margin-left:1.5rem}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mr-auto{margin-right:auto}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-7{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-none{flex:none}.table-fixed{table-layout:fixed}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-double{border-style:double}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-none{background-image:none}.p-0{padding:0}.p-5{padding:1.25rem}.px-0{padding-left:0;padding-right:0}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.text-success{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}html{font-family:Roboto,sans-serif}.ace_editor{border-radius:.25rem}.ace_editor,.ace_text-input,.ace_editor div{font-family:monospace!important}.sidebar-wrapper{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding-top:2.5rem;position:relative;width:100%}aside{height:100vh;position:fixed;overflow-y:auto;width:30%}aside>ul{display:flex;flex-direction:column;flex-wrap:wrap}aside>ul.horizontal{display:inline-flex;flex-direction:row}aside>ul.horizontal :where(li){flex-direction:row}:where(aside > ul li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}aside>ul :where(li:not(.menu-title))>:where(*:not(ul)){display:flex}aside>ul :where(li:not(.disabled):not(.menu-title))>:where(*:not(ul)){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;outline:2px solid transparent;outline-offset:2px}aside>ul>:where(li > *:not(ul):focus){outline:2px solid transparent;outline-offset:2px}aside>ul>:where(li.disabled > *:not(ul):focus){cursor:auto}aside>ul>:where(li) :where(ul){display:flex;flex-direction:column;align-items:stretch}aside>ul>:where(li)>:where(ul){position:absolute;display:none;top:initial;left:100%;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}aside>ul>:where(li:hover)>:where(ul){display:flex}aside>ul>:where(li:focus)>:where(ul){display:flex}aside>ul.horizontal>li.bordered>a,aside>ul.horizontal>li.bordered>button,aside>ul.horizontal>li.bordered>span{border-left-width:0px;border-bottom-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}aside>ul[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,aside>ul[class^=px-]:not(.menu[class^="px-0"]) li>*,aside>ul[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,aside>ul[class^=p-]:not(.menu[class^="p-0"]) li>*{border-radius:var(--rounded-btn, .5rem)}aside>ul :where(li.bordered > *){border-left-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}aside>ul :where(li)>:where(*:not(ul)){gap:.75rem;padding:.75rem 1rem;color:currentColor}aside>ul :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):focus),aside>ul :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):hover){background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}aside>ul :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),aside>ul :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):active){--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}aside>ul :where(li:empty){margin:.5rem 1rem;height:1px;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}aside>ul li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}aside>ul li.disabled>*:hover{background-color:transparent}aside>ul li.hover-bordered a{border-left-width:4px;border-color:transparent}aside>ul li.hover-bordered a:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}aside>ul.compact li>a,aside>ul.compact li>span{padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}aside>ul .menu-title{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}aside>ul .menu-title>*{padding-top:.25rem;padding-bottom:.25rem}aside>ul :where(li:not(.disabled))>:where(*:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}aside>ul>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}aside>ul>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}aside>ul>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}aside>ul>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}aside>ul>:where(li)>:where(ul) :where(li){width:100%;white-space:nowrap}aside>ul>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}aside>ul>:where(li)>:where(ul) :where(li)>:where(:not(ul)){width:100%;white-space:nowrap}aside>ul>:where(li)>:where(ul)>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}aside>ul>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}aside>ul>:where(li)>:where(ul)>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}aside>ul>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}aside>ul :where(li > *){padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}aside>ul{display:flex;flex-direction:column;padding:0;padding-left:1rem;padding-right:1rem}.menu aside>ui>li{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}.menu aside>ui>li>*{padding-top:.25rem;padding-bottom:.25rem}aside>ui>li{padding-bottom:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.title{font-size:.875rem;line-height:1.25rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}td{overflow:auto}h2[id]{scroll-margin:8rem}.table th.param-cell{font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid rgb(59 130 246);padding-left:0}.method-GET{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.method-POST{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.method-PUT{--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.method-DELETE{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.method-PATCH{--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.method-HEAD{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.bg-created{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity))}.bg-saved{--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity))}.bg-updated{--tw-bg-opacity: 1;background-color:hsl(var(--wa) / var(--tw-bg-opacity))}.bg-deleted{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity))}.bg-retrieved{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.badge-created{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.badge-outline.badge-created{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.badge-saved{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.badge-outline.badge-saved{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.badge-updated{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--wa) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--wac, var(--nc)) / var(--tw-text-opacity))}.badge-outline.badge-updated{--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.badge-deleted{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.badge-outline.badge-deleted{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.badge-retrieved{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.badge-200,.badge-201,.badge-202,.response-204{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity))}.badge-422,.badge-429,{--tw-bg-opacity: 1;background-color:hsl(var(--wa) / var(--tw-bg-opacity))}.badge-400,.badge-401,.badge-402,.badge-403,.badge-404,.badge-405,.badge-500,.badge-501,.badge-502,.badge-503{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity))}.response{margin-bottom:.5rem;width:83.333333%;border-radius:.25rem;--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity));padding-left:.75rem;padding-top:.25rem;padding-bottom:.25rem;font-weight:700}.response-200,.response-201,.response-202,.response-204{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.response-422,.response-429{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.response-400,.response-401,.response-402,.response-403,.response-404,.response-405{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.response-500,.response-501,.response-502,.response-503{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.focus-within\:text-gray-600:focus-within{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-dashed:hover{border-style:dashed}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 768px){.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:grid{display:grid}.md\:contents{display:contents}} diff --git a/resources/dist/_astro/index.ba55fcf9.js b/resources/dist/_astro/index.ba55fcf9.js deleted file mode 100644 index b0418b5..0000000 --- a/resources/dist/_astro/index.ba55fcf9.js +++ /dev/null @@ -1,9 +0,0 @@ -var Q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m={},D={get exports(){return m},set exports(e){m=e}},r={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var y=Symbol.for("react.element"),V=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),L=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),R=Symbol.iterator;function H(e){return e===null||typeof e!="object"?null:(e=R&&e[R]||e["@@iterator"],typeof e=="function"?e:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,j={};function p(e,t,n){this.props=e,this.context=t,this.refs=j,this.updater=n||C}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function O(){}O.prototype=p.prototype;function S(e,t,n){this.props=e,this.context=t,this.refs=j,this.updater=n||C}var w=S.prototype=new O;w.constructor=S;g(w,p.prototype);w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,n){var u,o={},c=null,s=null;if(t!=null)for(u in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(c=""+t.key),t)x.call(t,u)&&!P.hasOwnProperty(u)&&(o[u]=t[u]);var f=arguments.length-2;if(f===1)o.children=n;else if(1=0&&t.row=0&&t.column<=e[t.row].length}function s(e,t){t.action!="insert"&&t.action!="remove"&&r(t,"delta.action must be 'insert' or 'remove'"),t.lines instanceof Array||r(t,"delta.lines must be an Array"),(!t.start||!t.end)&&r(t,"delta.start/end must be an present");var n=t.start;i(e,t.start)||r(t,"delta.start must be contained in document");var s=t.end;t.action=="remove"&&!i(e,s)&&r(t,"delta.end must contained in document for 'remove' actions");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,"delta.range must match delta lines")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||"";switch(t.action){case"insert":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case"remove":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),ace.define("ace/lib/event_emitter",[],function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!="object"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e=="object"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e=="object"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?tthis.end.column?1:0:ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var r={row:t+1,column:0};else if(this.start.rowthis.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),ace.define("ace/document",[],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,o=e("./range").Range,u=e("./anchor").Anchor,a=function(e){this.$lines=[""],e.length===0?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},"aaa".split(/a/).length===0?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal("changeNewLineMode")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e=="\r\n"||e=="\r"||e=="\n"},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action=="insert";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action=="remove"&&e.start.row0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n=t.$lines.length)throw u=new Error("Invalid delta"),u.data={path:s.$path,linesLength:t.$lines.length,start:o.start,end:o.end},u;t.applyDelta(o,!0)}if(s.$timeout)return n.schedule(s.$timeout);s.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(s.prototype)}),ace.define("ace/mode/json/json_parse",[],function(e,t,n){"use strict";var r,i,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},o,u=function(e){throw{name:"SyntaxError",message:e,at:r,text:o}},a=function(e){return e&&e!==i&&u("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(r),r+=1,i},f=function(){var e,t="";i==="-"&&(t="-",a("-"));while(i>="0"&&i<="9")t+=i,a();if(i==="."){t+=".";while(a()&&i>="0"&&i<="9")t+=i}if(i==="e"||i==="E"){t+=i,a();if(i==="-"||i==="+")t+=i,a();while(i>="0"&&i<="9")t+=i,a()}e=+t;if(!isNaN(e))return e;u("Bad number")},l=function(){var e,t,n="",r;if(i==='"')while(a()){if(i==='"')return a(),n;if(i==="\\"){a();if(i==="u"){r=0;for(t=0;t<4;t+=1){e=parseInt(a(),16);if(!isFinite(e))break;r=r*16+e}n+=String.fromCharCode(r)}else{if(typeof s[i]!="string")break;n+=s[i]}}else{if(i=="\n"||i=="\r")break;n+=i}}u("Bad string")},c=function(){while(i&&i<=" ")a()},h=function(){switch(i){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}u("Unexpected '"+i+"'")},p,d=function(){var e=[];if(i==="["){a("["),c();if(i==="]")return a("]"),e;while(i){e.push(p()),c();if(i==="]")return a("]"),e;a(","),c()}}u("Bad array")},v=function(){var e,t={};if(i==="{"){a("{"),c();if(i==="}")return a("}"),t;while(i){e=l(),c(),a(":"),Object.hasOwnProperty.call(t,e)&&u('Duplicate key "'+e+'"'),t[e]=p(),c();if(i==="}")return a("}"),t;a(","),c()}}u("Bad object")};return p=function(){c();switch(i){case"{":return v();case"[":return d();case'"':return l();case"-":return f();default:return i>="0"&&i<="9"?f():h()}},function(e,t){var n;return o=e,r=0,i=" ",n=p(),c(),i&&u("Syntax error"),typeof t=="function"?function s(e,n){var r,i,o=e[n];if(o&&typeof o=="object")for(r in o)Object.hasOwnProperty.call(o,r)&&(i=s(o,r),i!==undefined?o[r]=i:delete o[r]);return t.call(e,n,o)}({"":n},""):n}}),ace.define("ace/mode/json_worker",[],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../worker/mirror").Mirror,s=e("./json/json_parse"),o=t.JsonWorker=function(e){i.call(this,e),this.setTimeout(200)};r.inherits(o,i),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{e&&s(e)}catch(n){var r=this.doc.indexToPosition(n.at-1);t.push({row:r.row,column:r.column,text:n.message,type:"error"})}this.sender.emit("annotate",t)}}.call(o.prototype)}) \ No newline at end of file diff --git a/resources/dist/favicon.svg b/resources/dist/favicon.svg deleted file mode 100644 index 2f70999..0000000 --- a/resources/dist/favicon.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - LRD - - - - \ No newline at end of file diff --git a/resources/dist/index.html b/resources/dist/index.html deleted file mode 100644 index f831fbb..0000000 --- a/resources/dist/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - LRD - Laravel Request Docs - - - - \ No newline at end of file diff --git a/resources/dist/sample.json b/resources/dist/sample.json deleted file mode 100644 index c253ef0..0000000 --- a/resources/dist/sample.json +++ /dev/null @@ -1,948 +0,0 @@ -[ - { - "uri": "api/register", - "methods": [ - "POST" - ], - "middlewares": [ - "api" - ], - "controller": "AuthController", - "controller_full_path": "App\\Http\\Controllers\\AuthController", - "method": "register", - "http_method": "POST", - "path_parameters": [], - "rules": { - "first_name": [ - "required|string|max:100" - ], - "last_name": [ - "required|string|max:100" - ], - "nick_name": [ - "required|string|min:7|max:100" - ], - "age": ["integer"], - "birthdate": ["date"], - "email": [ - "required|email|unique:users" - ], - "roles": [ - "array" - ], - "password": [ - "required" - ], - "password_confirm": [ - "required|same:password" - ] - }, - "docBlock": "" - }, - { - "uri": "api/chart", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "DashboardController", - "controller_full_path": "App\\Http\\Controllers\\DashboardController", - "method": "chart", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "Documentation for the dashboard chart" - }, - { - "uri": "api/documentation", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "L5Swagger\\Http\\Middleware\\Config" - ], - "controller": "SwaggerController", - "controller_full_path": "\\L5Swagger\\Http\\Controllers\\SwaggerController", - "method": "api", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/export", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "OrderController", - "controller_full_path": "App\\Http\\Controllers\\OrderController", - "method": "export", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/login", - "methods": [ - "POST" - ], - "middlewares": [ - "api" - ], - "controller": "AuthController", - "controller_full_path": "App\\Http\\Controllers\\AuthController", - "method": "login", - "http_method": "POST", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/logout", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "AuthController", - "controller_full_path": "App\\Http\\Controllers\\AuthController", - "method": "logout", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/oauth2-callback", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "L5Swagger\\Http\\Middleware\\Config" - ], - "controller": "SwaggerController", - "controller_full_path": "\\L5Swagger\\Http\\Controllers\\SwaggerController", - "method": "oauth2Callback", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/orders", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "OrderController", - "controller_full_path": "App\\Http\\Controllers\\OrderController", - "method": "index", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/orders/{order}", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "OrderController", - "controller_full_path": "App\\Http\\Controllers\\OrderController", - "method": "show", - "http_method": "GET", - "path_parameters": { - "order": [ - "string|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/permissions", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "PermissionController", - "controller_full_path": "App\\Http\\Controllers\\PermissionController", - "method": "index", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/products", - "methods": [ - "POST" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "ProductController", - "controller_full_path": "App\\Http\\Controllers\\ProductController", - "method": "store", - "http_method": "POST", - "path_parameters": [], - "rules": { - "image": [ - "required" - ], - "title": [ - "required" - ], - "description": [ - "required" - ], - "price": [ - "required|numeric" - ] - }, - "docBlock": "" - }, - { - "uri": "api/products", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "ProductController", - "controller_full_path": "App\\Http\\Controllers\\ProductController", - "method": "index", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/products/{product}", - "methods": [ - "DELETE" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "ProductController", - "controller_full_path": "App\\Http\\Controllers\\ProductController", - "method": "destroy", - "http_method": "DELETE", - "path_parameters": { - "product": [ - "string|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/products/{product}", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "ProductController", - "controller_full_path": "App\\Http\\Controllers\\ProductController", - "method": "show", - "http_method": "GET", - "path_parameters": { - "product": [ - "string|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/products/{product}", - "methods": [ - "PUT", - "PATCH" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "ProductController", - "controller_full_path": "App\\Http\\Controllers\\ProductController", - "method": "update", - "http_method": "PUT", - "path_parameters": { - "product": [ - "string|required" - ] - }, - "rules": { - "title": [ - "required" - ], - "description": [ - "required" - ], - "price": [ - "required|numeric" - ] - }, - "docBlock": "" - }, - { - "uri": "api/register", - "methods": [ - "POST" - ], - "middlewares": [ - "api" - ], - "controller": "AuthController", - "controller_full_path": "App\\Http\\Controllers\\AuthController", - "method": "register", - "http_method": "POST", - "path_parameters": [], - "rules": { - "first_name": [ - "required" - ], - "last_name": [ - "required" - ], - "nick_name": [], - "email": [ - "required" - ], - "password": [ - "required" - ], - "password_confirm": [ - "required|same:password" - ] - }, - "docBlock": "" - }, - { - "uri": "api/roles", - "methods": [ - "POST" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "RoleController", - "controller_full_path": "App\\Http\\Controllers\\RoleController", - "method": "store", - "http_method": "POST", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/roles", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "RoleController", - "controller_full_path": "App\\Http\\Controllers\\RoleController", - "method": "index", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/roles/{role}", - "methods": [ - "DELETE" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "RoleController", - "controller_full_path": "App\\Http\\Controllers\\RoleController", - "method": "destroy", - "http_method": "DELETE", - "path_parameters": { - "role": [ - "string|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/roles/{role}", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "RoleController", - "controller_full_path": "App\\Http\\Controllers\\RoleController", - "method": "show", - "http_method": "GET", - "path_parameters": { - "role": [ - "string|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/roles/{role}", - "methods": [ - "PUT", - "PATCH" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "RoleController", - "controller_full_path": "App\\Http\\Controllers\\RoleController", - "method": "update", - "http_method": "PUT", - "path_parameters": { - "role": [ - "string|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/upload", - "methods": [ - "POST" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "ImageController", - "controller_full_path": "App\\Http\\Controllers\\ImageController", - "method": "upload", - "http_method": "POST", - "path_parameters": [], - "rules": { - "image": [ - "required|mimes:jpg,jpeg,gif,png|max:8192" - ] - }, - "docBlock": "" - }, - { - "uri": "api/user", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "user", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/users", - "methods": [ - "POST" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "store", - "http_method": "POST", - "path_parameters": [], - "rules": { - "first_name": [ - "required" - ], - "last_name": [ - "required" - ], - "email": [ - "required|email|unique:users" - ], - "role_id": [ - "required" - ] - }, - "docBlock": "" - }, - { - "uri": "api/users", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "index", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "api/users/info", - "methods": [ - "PUT" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "updateInfo", - "http_method": "PUT", - "path_parameters": [], - "rules": { - "password": [ - "required" - ], - "password_confirm": [ - "required|same:password" - ] - }, - "docBlock": "" - }, - { - "uri": "api/users/password", - "methods": [ - "PUT" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "updatePassword", - "http_method": "PUT", - "path_parameters": [], - "rules": { - "password": [ - "required" - ], - "password_confirm": [ - "required|same:password" - ] - }, - "docBlock": "" - }, - { - "uri": "api/users/{user}", - "methods": [ - "DELETE" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "destroy", - "http_method": "DELETE", - "path_parameters": { - "user": [ - "int|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/users/{user}", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "show", - "http_method": "GET", - "path_parameters": { - "user": [ - "int|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "api/users/{user}", - "methods": [ - "PUT", - "PATCH" - ], - "middlewares": [ - "api", - "auth:api" - ], - "controller": "UserController", - "controller_full_path": "App\\Http\\Controllers\\UserController", - "method": "update", - "http_method": "PUT", - "path_parameters": { - "user": [ - "int|required" - ] - }, - "rules": { - "first_name": [ - "required" - ], - "last_name": [ - "required" - ], - "email": [ - "required|email" - ], - "role_id": [ - "required" - ] - }, - "docBlock": "" - }, - { - "uri": "oauth/authorize", - "methods": [ - "DELETE" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "DenyAuthorizationController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\DenyAuthorizationController", - "method": "deny", - "http_method": "DELETE", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/authorize", - "methods": [ - "POST" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "ApproveAuthorizationController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\ApproveAuthorizationController", - "method": "approve", - "http_method": "POST", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/authorize", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "AuthorizationController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\AuthorizationController", - "method": "authorize", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/clients", - "methods": [ - "POST" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "ClientController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\ClientController", - "method": "store", - "http_method": "POST", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/clients", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "ClientController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\ClientController", - "method": "forUser", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/clients/{client_id}", - "methods": [ - "DELETE" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "ClientController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\ClientController", - "method": "destroy", - "http_method": "DELETE", - "path_parameters": { - "client_id": [ - "int|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/clients/{client_id}", - "methods": [ - "PUT" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "ClientController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\ClientController", - "method": "update", - "http_method": "PUT", - "path_parameters": { - "client_id": [ - "int|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/personal-access-tokens", - "methods": [ - "POST" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "PersonalAccessTokenController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\PersonalAccessTokenController", - "method": "store", - "http_method": "POST", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/personal-access-tokens", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "PersonalAccessTokenController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\PersonalAccessTokenController", - "method": "forUser", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/personal-access-tokens/{token_id}", - "methods": [ - "DELETE" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "PersonalAccessTokenController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\PersonalAccessTokenController", - "method": "destroy", - "http_method": "DELETE", - "path_parameters": { - "token_id": [ - "int|required" - ] - }, - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/scopes", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "ScopeController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\ScopeController", - "method": "all", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/token", - "methods": [ - "POST" - ], - "middlewares": [ - "throttle" - ], - "controller": "AccessTokenController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\AccessTokenController", - "method": "issueToken", - "http_method": "POST", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/token/refresh", - "methods": [ - "POST" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "TransientTokenController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\TransientTokenController", - "method": "refresh", - "http_method": "POST", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/tokens", - "methods": [ - "GET", - "HEAD" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "AuthorizedAccessTokenController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\AuthorizedAccessTokenController", - "method": "forUser", - "http_method": "GET", - "path_parameters": [], - "rules": [], - "docBlock": "" - }, - { - "uri": "oauth/tokens/{token_id}", - "methods": [ - "DELETE" - ], - "middlewares": [ - "web", - "auth" - ], - "controller": "AuthorizedAccessTokenController", - "controller_full_path": "\\Laravel\\Passport\\Http\\Controllers\\AuthorizedAccessTokenController", - "method": "destroy", - "http_method": "DELETE", - "path_parameters": { - "token_id": [ - "int|required" - ] - }, - "rules": [], - "docBlock": "" - } -] \ No newline at end of file