import{g as j}from"./index-15e3682d.js";function z(T,w){for(var S=0;Sr[I]})}}}return Object.freeze(Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};(function(T,w){ace.define("ace/ext/whitespace",["require","exports","module","ace/lib/lang"],function(S,r,I){var b=S("../lib/lang");r.$detectIndentation=function(e,n){for(var t=[],l=[],s=0,c=0,o=Math.min(e.length,1e3),a=0;a0&&!(c%f)&&!(u%f)&&(l[f]=(l[f]||0)+1),t[u]=(t[u]||0)+1}c=u}for(;av.score&&(v={score:g,length:a})}if(v.score&&v.score>1.4)var m=v.length;if(s>h+1)return(m==1||hs+1)return{ch:" ",length:m}},r.detectIndentation=function(e){var n=e.getLines(0,1e3),t=r.$detectIndentation(n)||{};return t.ch&&e.setUseSoftTabs(t.ch==" "),t.length&&e.setTabSize(t.length),t},r.trimTrailingSpace=function(e,n){var t=e.getDocument(),l=t.getAllLines(),s=n&&n.trimEmpty?-1:0,c=[],o=-1;n&&n.keepCursorPosition&&(e.selection.rangeCount?e.selection.rangeList.ranges.forEach(function(A,v,h){var g=h[v+1];g&&g.cursor.row==A.cursor.row||c.push(A.cursor)}):c.push(e.selection.getCursor()),o=0);for(var a=c[o]&&c[o].row,i=0,u=l.length;is&&(d=c[o].column),o++,a=c[o]?c[o].row:-1),d>s&&t.removeInLine(i,d,f.length)}},r.convertIndentation=function(e,n,t){var l=e.getTabString()[0],s=e.getTabSize();t||(t=s),n||(n=l);for(var c=n==" "?n:b.stringRepeat(n,t),o=e.doc,a=o.getAllLines(),i={},u={},f=0,d=a.length;f