import{C as _}from"./index.991aca48.entry.js";function x(h,k){for(var o=0;o<k.length;o++){const a=k[o];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in h)){const d=Object.getOwnPropertyDescriptor(a,u);d&&Object.defineProperty(h,u,d.get?d:{enumerable:!0,get:()=>a[u]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var I={};(function(h,k){(function(o){o(_)})(function(o){o.defineMode("smarty",function(a,u){var d=u.rightDelimiter||"}",c=u.leftDelimiter||"{",b=u.version||2,p=o.getMode(a,u.baseMode||"null"),y=["debug","extends","function","include","literal"],f={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},v;function n(e,t){return v=t,e}function w(e,t,r){return t.tokenize=r,r(e,t)}function S(e,t){return t==null&&(t=e.pos),b===3&&c=="{"&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function s(e,t){for(var r=e.string,l=e.pos;;){var i=r.indexOf(c,l);if(l=i+c.length,i==-1||!S(e,i+c.length))break}if(i==e.pos)return e.match(c),e.eat("*")?w(e,t,m("comment","*"+d)):(t.depth++,t.tokenize=z,v="startTag","tag");i>-1&&(e.string=r.slice(0,i));var g=p.token(e,t.base);return i>-1&&(e.string=r),g}function z(e,t){if(e.match(d,!0))return b===3?(t.depth--,t.depth<=0&&(t.tokenize=s)):t.tokenize=s,n("tag",null);if(e.match(c,!0))return t.depth++,n("tag","startTag");var r=e.next();if(r=="$")return e.eatWhile(f.validIdentifier),n("variable-2","variable");if(r=="|")return n("operator","pipe");if(r==".")return n("operator","property");if(f.stringChar.test(r))return t.tokenize=W(r),n("string","string");if(f.operatorChars.test(r))return e.eatWhile(f.operatorChars),n("operator","operator");if(r=="["||r=="]")return n("bracket","bracket");if(r=="("||r==")")return n("bracket","operator");if(/\d/.test(r))return e.eatWhile(/\d/),n("number","number");if(t.last=="variable"){if(r=="@")return e.eatWhile(f.validIdentifier),n("property","property");if(r=="|")return e.eatWhile(f.validIdentifier),n("qualifier","modifier")}else{if(t.last=="pipe")return e.eatWhile(f.validIdentifier),n("qualifier","modifier");if(t.last=="whitespace")return e.eatWhile(f.validIdentifier),n("attribute","modifier")}if(t.last=="property")return e.eatWhile(f.validIdentifier),n("property",null);if(/\s/.test(r))return v="whitespace",null;var l="";r!="/"&&(l+=r);for(var i=null;i=e.eat(f.validIdentifier);)l+=i;for(var g=0,O=y.length;g<O;g++)if(y[g]==l)return n("keyword","keyword");return/\s/.test(r)?null:n("tag","tag")}function W(e){return function(t,r){for(var l=null,i=null;!t.eol();){if(i=t.peek(),t.next()==e&&l!=="\\"){r.tokenize=z;break}l=i}return"string"}}function m(e,t){return function(r,l){for(;!r.eol();){if(r.match(t)){l.tokenize=s;break}r.next()}return e}}return{startState:function(){return{base:o.startState(p),tokenize:s,last:null,depth:0}},copyState:function(e){return{base:o.copyState(p,e.base),tokenize:e.tokenize,last:e.last,depth:e.depth}},innerMode:function(e){if(e.tokenize==s)return{mode:p,state:e.base}},token:function(e,t){var r=t.tokenize(e,t);return t.last=v,r},indent:function(e,t,r){return e.tokenize==s&&p.indent?p.indent(e.base,t,r):o.Pass},blockCommentStart:c+"*",blockCommentEnd:"*"+d}}),o.defineMIME("text/x-smarty","smarty")})})();const D=x({__proto__:null,default:I},[I]);export{D as s};
