Comparing version 5.6.2 to 6.0.0
{ | ||
"name": "remixml", | ||
"version": "5.6.2", | ||
"version": "6.0.0", | ||
"description": "XML/HTML-like macro language/template compiler engine", | ||
@@ -5,0 +5,0 @@ "main": "remixml.min.js", |
@@ -45,5 +45,4 @@ <h1>Remixml</h1> | ||
It runs inside any webbrowser (starting at IE11 and up) or NodeJS environment. | ||
Asynchronous control requires `Promise` support (and thus does not work | ||
in IE11). | ||
It runs inside any webbrowser or NodeJS environment supporting at least | ||
ECMAScript ES2018. | ||
@@ -50,0 +49,0 @@ Minified and gzip-compressed, it is less than 7 KB of code. |
@@ -29,3 +29,2 @@ /** @license | ||
const Obj = Object; | ||
const ie11 = /./.sticky != 0; | ||
@@ -50,11 +49,10 @@ const /** !Object */ eumapobj | ||
); | ||
const /** !RegExp */ varentity = regexpy( | ||
"([\\w$]+\\.[\\w$]+(?:[.[][\\w$]+]?)*)(?::([\\w$]*))?(?:%([^;]*))?;"); | ||
const /** !RegExp */ varentity | ||
= /([\w$]+\.[\w$]+(?:[.[][\w$]+]?)*)(?::([\w$]*))?(?:%([^;]*))?;/y; | ||
const /** !RegExp */ qemrx | ||
= regexpy("!(?:--([\0-\xff]*?)(?:--|$)|([^-][\0-\xff]*?))(?:>|$)" | ||
+ "|\\?([\0-\xff]*?)(?:\\?>|$)"); | ||
const /** !RegExp */ noparserx = regexpy("(?:noparse|comment)\\s"); | ||
= /!(?:--(.*?)(?:--|$)|([^-].*?))(?:>|$)|\?(.*?)(?:\?>|$)/ys; | ||
const /** !RegExp */ noparserx = /(?:noparse|comment)\s/y; | ||
const /** !RegExp */ textrx = regexpy("[^&<]+(" + entend + "[^&<]*)*"); | ||
const /** !RegExp */ params = | ||
regexpy("\\s*((?:[^-:_a-zA-Z<&>\\s/]\\s*)*)(?:([-:_a-zA-Z][-:\\w]*|/)\\s*(?:=\\s*(\"[^\"]*\"|'[^']*'))?|[<&>])"); | ||
/\s*((?:[^-:_a-zA-Z<&>\s\/]\s*)*)(?:([-:_a-zA-Z][-:\w]*|\/)\s*(?:=\s*("[^"]*"|'[^']*'))?|[<&>])/y; | ||
const /** !RegExp */ simplelabel = /^[_a-zA-Z]\w*$/; | ||
@@ -445,3 +443,3 @@ const /** !RegExp */ scriptend = /<\/script>/g; | ||
txtentity.lastIndex = 0; | ||
while (a5 = execy(txtentity, sbj)) | ||
while (a5 = txtentity.exec(sbj)) | ||
{ if (a5[1]) | ||
@@ -593,3 +591,3 @@ { obj += sep + "(function(){" + varent(a5) | ||
qemrx.lastIndex = ++lasttoken; | ||
if (rm = execy(qemrx, rxmls)) | ||
if (rm = qemrx.exec(rxmls)) | ||
{ lasttoken = qemrx.lastIndex; | ||
@@ -604,3 +602,3 @@ if (!comment) | ||
{ noparserx.lastIndex = 0; | ||
if (execy(noparserx, ts = rm[3])) | ||
if (noparserx.exec(ts = rm[3])) | ||
{ if (ts[0] === "n") // noparse or comment? | ||
@@ -636,3 +634,3 @@ obj += "H.push(" | ||
function /** string */parseparam() | ||
{ rm = execy(params, rxmls); | ||
{ rm = params.exec(rxmls); | ||
if (RUNTIMEDEBUG && rm[1]) | ||
@@ -1002,3 +1000,3 @@ logcontext(0, 'Skipping malformed parameter "' + rm[1] + '"'); | ||
if (!noparse) | ||
{ if (rm = execy(varentity, rxmls)) | ||
{ if (rm = varentity.exec(rxmls)) | ||
{ lasttoken = varentity.lastIndex; | ||
@@ -1015,6 +1013,6 @@ if (!comment) | ||
textrx.lastIndex = lasttoken; | ||
if (!execy(textrx, rxmls)) | ||
if (!textrx.exec(rxmls)) | ||
console.error("**" + rxmls + "**"); | ||
textrx.lastIndex = lasttoken; | ||
ts += execy(textrx, rxmls)[0]; | ||
ts += textrx.exec(rxmls)[0]; | ||
lasttoken = textrx.lastIndex; | ||
@@ -1137,28 +1135,5 @@ if (!comment) | ||
function /** !RegExp */ regexpy(/** string */ expr) | ||
{ return RegExp(expr, ie11 ? "g" : "y"); | ||
{ return RegExp(expr, "y"); | ||
} | ||
function /** Array */ execy(/** !RegExp */ expr,/** string */ haystack) | ||
{ if (ie11) | ||
{ var /** number */ last = expr.lastIndex; | ||
var /** Array */ ret = expr.exec(haystack); | ||
return ret && /** @type {?} */(last == ret.index) && ret; | ||
} | ||
return expr.exec(haystack); | ||
} | ||
if (!Obj.assign) | ||
Obj.defineProperty(Obj, "assign", | ||
{ "value": function(d, s, i) | ||
{ if (s) for (i in s) d[i] = s[i]; return d; | ||
} | ||
}); | ||
if (!Obj.entries) | ||
Obj.entries = function(m) | ||
{ var k = m ? Obj.keys(m) : [], i = k.length, r = new Array(i); | ||
while (i--) | ||
r[i] = [k[i], m[k[i]]]; | ||
return r; | ||
}; | ||
const /** !Object */ g = | ||
@@ -1165,0 +1140,0 @@ { "remixml2js": remixml2js, |
@@ -37,3 +37,2 @@ /** @license | ||
const Obj = Object; | ||
const ie11 = /./.sticky != 0; | ||
@@ -58,11 +57,10 @@ const /** !Object */ eumapobj | ||
); | ||
const /** !RegExp */ varentity = regexpy( | ||
"([\\w$]+\\.[\\w$]+(?:[.[][\\w$]+]?)*)(?::([\\w$]*))?(?:%([^;]*))?;"); | ||
const /** !RegExp */ varentity | ||
= /([\w$]+\.[\w$]+(?:[.[][\w$]+]?)*)(?::([\w$]*))?(?:%([^;]*))?;/y; | ||
const /** !RegExp */ qemrx | ||
= regexpy("!(?:--([\0-\xff]*?)(?:--|$)|([^-][\0-\xff]*?))(?:>|$)" | ||
+ "|\\?([\0-\xff]*?)(?:\\?>|$)"); | ||
const /** !RegExp */ noparserx = regexpy("(?:noparse|comment)\\s"); | ||
= /!(?:--(.*?)(?:--|$)|([^-].*?))(?:>|$)|\?(.*?)(?:\?>|$)/ys; | ||
const /** !RegExp */ noparserx = /(?:noparse|comment)\s/y; | ||
const /** !RegExp */ textrx = regexpy("[^&<]+(" + entend + "[^&<]*)*"); | ||
const /** !RegExp */ params = | ||
regexpy("\\s*((?:[^-:_a-zA-Z<&>\\s/]\\s*)*)(?:([-:_a-zA-Z][-:\\w]*|/)\\s*(?:=\\s*(\"[^\"]*\"|'[^']*'))?|[<&>])"); | ||
/\s*((?:[^-:_a-zA-Z<&>\s\/]\s*)*)(?:([-:_a-zA-Z][-:\w]*|\/)\s*(?:=\s*("[^"]*"|'[^']*'))?|[<&>])/y; | ||
const /** !RegExp */ simplelabel = /^[_a-zA-Z]\w*$/; | ||
@@ -453,3 +451,3 @@ const /** !RegExp */ scriptend = /<\/script>/g; | ||
txtentity.lastIndex = 0; | ||
while (a5 = execy(txtentity, sbj)) | ||
while (a5 = txtentity.exec(sbj)) | ||
{ if (a5[1]) | ||
@@ -601,3 +599,3 @@ { obj += sep + "(function(){" + varent(a5) | ||
qemrx.lastIndex = ++lasttoken; | ||
if (rm = execy(qemrx, rxmls)) | ||
if (rm = qemrx.exec(rxmls)) | ||
{ lasttoken = qemrx.lastIndex; | ||
@@ -612,3 +610,3 @@ if (!comment) | ||
{ noparserx.lastIndex = 0; | ||
if (execy(noparserx, ts = rm[3])) | ||
if (noparserx.exec(ts = rm[3])) | ||
{ if (ts[0] === "n") // noparse or comment? | ||
@@ -644,3 +642,3 @@ obj += "H.push(" | ||
function /** string */parseparam() | ||
{ rm = execy(params, rxmls); | ||
{ rm = params.exec(rxmls); | ||
if (RUNTIMEDEBUG && rm[1]) | ||
@@ -1010,3 +1008,3 @@ logcontext(0, 'Skipping malformed parameter "' + rm[1] + '"'); | ||
if (!noparse) | ||
{ if (rm = execy(varentity, rxmls)) | ||
{ if (rm = varentity.exec(rxmls)) | ||
{ lasttoken = varentity.lastIndex; | ||
@@ -1023,6 +1021,6 @@ if (!comment) | ||
textrx.lastIndex = lasttoken; | ||
if (!execy(textrx, rxmls)) | ||
if (!textrx.exec(rxmls)) | ||
console.error("**" + rxmls + "**"); | ||
textrx.lastIndex = lasttoken; | ||
ts += execy(textrx, rxmls)[0]; | ||
ts += textrx.exec(rxmls)[0]; | ||
lasttoken = textrx.lastIndex; | ||
@@ -1145,28 +1143,5 @@ if (!comment) | ||
function /** !RegExp */ regexpy(/** string */ expr) | ||
{ return RegExp(expr, ie11 ? "g" : "y"); | ||
{ return RegExp(expr, "y"); | ||
} | ||
function /** Array */ execy(/** !RegExp */ expr,/** string */ haystack) | ||
{ if (ie11) | ||
{ var /** number */ last = expr.lastIndex; | ||
var /** Array */ ret = expr.exec(haystack); | ||
return ret && /** @type {?} */(last == ret.index) && ret; | ||
} | ||
return expr.exec(haystack); | ||
} | ||
if (!Obj.assign) | ||
Obj.defineProperty(Obj, "assign", | ||
{ "value": function(d, s, i) | ||
{ if (s) for (i in s) d[i] = s[i]; return d; | ||
} | ||
}); | ||
if (!Obj.entries) | ||
Obj.entries = function(m) | ||
{ var k = m ? Obj.keys(m) : [], i = k.length, r = new Array(i); | ||
while (i--) | ||
r[i] = [k[i], m[k[i]]]; | ||
return r; | ||
}; | ||
const /** !Object */ g = | ||
@@ -1173,0 +1148,0 @@ { "remixml2js": remixml2js, |
@@ -14,32 +14,27 @@ (function(){"use strict"; | ||
*/ | ||
function fa(m){var u=0;return function(){return u<m.length?{done:!1,value:m[u++]}:{done:!0}}}var oa="function"==typeof Object.defineProperties?Object.defineProperty:function(m,u,H){m!=Array.prototype&&m!=Object.prototype&&(m[u]=H.value)};function pa(m){m=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,m];for(var u=0;u<m.length;++u){var H=m[u];if(H&&H.Math==Math)return H}return globalThis}var za=pa(this); | ||
function Aa(){Aa=function(){};za.Symbol||(za.Symbol=Ba)}function Ca(m,u){this.c=m;oa(this,"description",{configurable:!0,writable:!0,value:u})}Ca.prototype.toString=function(){return this.c};var Ba=function(){function m(H){if(this instanceof m)throw new TypeError("Symbol is not a constructor");return new Ca("jscomp_symbol_"+(H||"")+"_"+u++,H)}var u=0;return m}(); | ||
function Sa(){Aa();var m=za.Symbol.iterator;m||(m=za.Symbol.iterator=za.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[m]&&oa(Array.prototype,m,{configurable:!0,writable:!0,value:function(){return Ta(fa(this))}});Sa=function(){}}function Ta(m){Sa();m={next:m};m[za.Symbol.iterator]=function(){return this};return m}function Ua(m){var u="undefined"!=typeof Symbol&&Symbol.iterator&&m[Symbol.iterator];return u?u.call(m):{next:fa(m)}} | ||
(function(){function m(a){return"string"===typeof a}function u(a){return Va[a]}function H(a){return Wa[a]}function Xa(a,b){a[b]=1;return a}function Ya(a,b,c,f,k){b._._tag[c]=function(l,n,p){delete n[""];p=C(n,p,k?k.split(Da).reduce(Xa,{}):{},f);return a(p)}}function ja(a,b){var c=a.match(Za);return c?(a=T(c[1]),b?[a]:"["+a+"]"):a}function Ea(a,b){return qa(ra(a,b))}function Fa(a){return a.replace($a," ")}function Ga(a,b,c){t.defineProperty(a,b,{get:c,configurable:!0})}function Ha(a){return a.match(ab)? | ||
"."+a:'["'+a+'"]'}function Ia(a){var b="",c="",f;for(Ja.lastIndex=0;f=da(Ja,a);)b=f[1]?b+(c+"(function(){"+Ka(f)+'return x}catch(x){}return ""})()'):b+(c+JSON.stringify(f[0])),c="+";return b}function La(a,b,c){a="try{let x=Z($,"+ja(a);b&&(a+=","+b);c&&(b||(a+=",0"),a+=","+c);return a+");"}function Ka(a){var b=a[2],c=a[3];return La(JSON.stringify(a[1]),m(b)&&JSON.stringify(b),c&&JSON.stringify(c))}function sa(a){return"(function(){try{return("+a+')}catch(x){D(x)}return ""})()'}function Ma(a){return"(_=$._,"+ | ||
(a?sa(a):'""')+")"}function ha(a){a&&(0>a.indexOf("(")?(0<=(a=JSON.parse(a)).indexOf("_")&&(a="_=$._,"+a),a=sa(a)):(a='"'===a.slice(-1)?'"'===a[0]?a.slice(1,-1):'"+'+a.slice(0,-1):('"'===a[0]?a.slice(1):'"+'+a)+'+"',0<=a.indexOf("{")&&(a="("+a+")"),a=sa('eval("'+a+'")'),a=0>a.indexOf("_")?a:"(_=$._,"+a+")"));return a}function ra(a,b){function c(x,aa){var ta=D,I=a.slice(0,v),la=(I.match(bb)||"").length+1;I=I.match(cb)[0].length+1;ta(aa+" at "+(la+":"+I),a.substr(v-64,128+(x?x.length:0)))}function f(){2=== | ||
(q[2]&6)&&(q[2]|=4,d+="H._c=function(H,$){")}function k(x,aa){J||(d+='H.push(W=L("'+x[0][0]+'"));W[0]='+JSON.stringify(x[aa])+";")}var l=b&4,n=l?"async ":"",p=l?"await ":"",d="("+n+'function($){"use strict";var I,W,_,H=N($);',J=l=0,ua="w,v="+n+"function(){"+p+"w();",Na=")};w=("+n+"function(W){",Oa="});"+p+"v()}",db=p+"X(J,H,$)";p="do{if((k=Y(H))===m)break;H="+p+"E(m=k,$"+(b?","+b:"")+")}while(--n);J.push.apply(J,H)}";for(var y,q=[0,{},4,""],ea=[q],v=0,e={};;e={a:e.a,b:e.b}){var w,g="";if(v>=a.length){var r= | ||
q[0];if(r){c(r,"Missing </"+r+">");a+="</"+r+">";continue}break}a:switch(a[v]){case "<":r=function(){w=da(ma,a);w[1]&&c(0,'Skipping malformed parameter "'+w[1]+'"');return z=w[2]};var ba=function(x){return function(aa,ta){var I=x.a("mkmapping");if(I){var la=I.slice(1,-1).split(eb);for(d+=aa;I=la.pop();)d+=ta+Ha(I)+"=k["+la.length+"];"}else if(""===I)return 1}}(e);e.a=function(x){return function(aa){return(aa=x.b[aa])&&Ia(aa)}}(e);va.lastIndex=++v;if(w=da(va,a)){v=va.lastIndex;J||(w[1]?k(w,1):w[2]? | ||
(w[0]="<",k(w,2)):(wa.lastIndex=0,da(wa,g=w[3])?"n"===g[0]&&(d+="H.push("+JSON.stringify(g.slice(wa.lastIndex))+");"):k(w,3)));break}ma.lastIndex=v;e.b={};var z;if("/"===r())e.b[z]=1,r();else if(!z){v=ma.lastIndex;break a}for(e.b[""]=z;;){if(!r()){v=ma.lastIndex;break}e.b[z]=w[3]?w[3].slice(1,-1):z}var W=e.b["/"];delete e.b["/"];r=e.b[""];if(1!==W){do{ea.push(q=[r,e.b,0,d]);d="";e.b["-"]&&(delete e.b["-"],q[2]=1);switch(r){case "noparse":if(!l++)continue;break;case "comment":l||J++}if(!J){delete e.b[""]; | ||
d+="W=H;";if(!l)switch(r){case "set":d+="{let H=L(),";var h=e.a("var")||e.a("variable");y=0;if(h){var ca=e.a("expr");d+=ua;q[2]|=16;y=d.length;if(g=e.a("selector"))d+="B($,w=L(),H,"+g+");H=w;";else{void 0!==e.b.json&&(d+="H=JSON.parse(Y(H));");if(g=e.a("split"))d+="H=Y(H).split("+(ha(ca)||g)+");",ca=void 0;void 0!==ca&&(d+="H="+(ha(ca)||Ma("eval(Y(H))"))+";");if(g=e.a("join"))d+="H=H.join("+g+");";ba("let k=H[0];H={};","H")}d.length!==y&&(y=0);h=ja(h,1);Array.isArray(h)?d+=h[0]+"=A("+(void 0!==e.b.clone? | ||
(y=0,"O(H,"+h[0]+")"):"H"):(y=0,d+="A(H,$,"+h);d+=Na}else if(g=e.a("tag")){f();d+="v=0;Q("+g+",$,"+n+"function(H,a,$,W){let o=$;$=C(a,$,{";(g=e.a("args"))&&(g=g.replace(fb,""))&&(d+='"'+g.replace(Da,'":1,"')+'":1');d+="}";if(g=e.a("scope"))d+=","+g;d+=");"}continue;case "insert":if(h=e.a("var")||e.a("variable")){d+=La(h,e.a("quote"),e.a("format"));if(g=e.a("join"))d+="x=x.join?x.join("+g+"):x;";h=e.a("limit");if((g=e.a("offset"))||void 0!==h)d+="x=F(x,"+g+(void 0!==h?","+h:"")+");";d+="I=K($,H,x)}catch(x){I=0}"}else if(void 0!== | ||
(h=e.a("expr")))d+="{let H=L(),"+ua+("H="+(ha(h)||Ma("eval(Y(H))"))+";W.push(A(H)")+Na,q[2]|=8;else switch(e.a("variables")){case "dump":d+="log((W="+e.a("scope")+")?$[W]:$);"}continue;case "replace":h=e.a("flags");void 0===h&&(h="g");d+="{let H=L(),J=W,v=P("+(e.a("regexp")||e.a("from").replace(gb,"\\$1"))+","+JSON.stringify(h)+","+(ha(e.a("expr"))||e.a("to"))+");";continue;case "trim":d+="{let H=L(),J=W;";continue;case "maketag":d+="{let H=L("+e.a("name")+"),J=W;";continue;case "attrib":d+="{let H=L(),v="+ | ||
e.a("name")+",J=W;";continue;case "for":d+="{I=0;let g,i,k,m,J=W,n=0;";d=(h=e.a("in"))?d+("g=G($,"+ja(h)+((g=e.a("orderby"))?",(m=$._,function(_){let _index=_[0];$._=_=_[1];return["+ha(g)+"]}));$._=m":")")+";while(!(m=g.next()).done){k=(m=m.value)[1];i=m[0];W=S({_value:k,"):d+("for(i=+"+(e.a("from")||0)+",m="+((h=e.a("step"))?"+("+h+"||1)":1)+",k=+"+(e.a("to")||0)+";m<0?i>=k:i<=k;i+=m){W=S({");d+="_recno:++n,_index:i});let o=$;$=C(W,$,{}";if(g=e.a("scope"))d+=","+g;d+=");";1===ba("k=(m=$._)._value;", | ||
"m")&&(d+="M($._,$._._value);");continue;case "eval":d+="{let H=L(),n="+(void 0===(g=e.a("recurse"))?1:0<g?+g:0)+",J=W,k,m=0;";continue;case "unset":if(g=e.a("tag"))h=function(x){x="._._tag"+x;d+="$"+x+"=$._._&&$._"+x+";"},f(),ca=ja(g,1),Array.isArray(ca)?h(ca[0].slice(1)):(d+="{let v="+ca+";",h("[v]"),d+="}");else if(g=e.a("var")||e.a("variable"))h=ja(g,1),d+=Array.isArray(h)?"delete "+h[0]+";":'eval("delete $."+'+h+");";continue;case "delimiter":d+="if($._._recno>1){";continue;case "elif":g="(!I&&"; | ||
case "if":d+="if"+g+"(I="+(ha(e.a("expr"))||0)+")"+(g?")":"")+"{";continue;case "then":d+="if(I){";continue;case "else":d+="if(!I){";continue}d+="{let J=W,H=S({";(h=e.b["::"])&&(e.b["::"]=h.slice(0,-1)+":;");h="";for(z in e.b)if(g=e.a(z))d+=h+(hb.test(z)?z:'"'+z+'"')+":"+g,h=",";d+='},"'+r+'")'}if(!W&&(h="script"===r?ib:"style"===r?jb:0)){h.lastIndex=v;h.exec(a);ba=h.lastIndex;d+=";";!J&&(g=a.slice(v,ba-3-r.length))&&(d+="H[0]="+JSON.stringify(g)+";");v=ba;W=1;break}J||(d+=";",q[2]|=2)}while(0)}if(W)for(;;){q= | ||
ea.pop();g=q[0];ba=0;if(r!==g){c(r,(g?"Expected </"+g+"> got </":"Missing <")+r+">");for(W=ea.length;W;)if(ea[--W][0]===r){ba=1;break}if(!ba){ea.push(q);break}}b:do{switch(g){case "noparse":if(!--l)break b;break;case "comment":if(!l){J--;break b}break;case 0:break b}if(!J)if(l)d+="J.push(H)}";else{c:do switch(g){case "set":if("{"!==d.slice(-1)&&y){W=d.slice(y).match(kb);d=d.slice(0,y-11-ua.length)+W[1]+W[2]+";";break c}d+=q[2]&16?Oa:"})}";break;case "insert":q[2]&8&&(d+=Oa);break;case "replace":d+= | ||
"J.push.apply(J,R(H,v))}";break;case "trim":d+="J.push.apply(J,U(R(H)))}";break;case "maketag":d+="J.push(H)}";break;case "attrib":d+="V(H,v,J)}";case "unset":break c;case "for":d+="$=o;I=1}}";break;case "if":case "then":case "elif":case "else":d+="I=1}";break c;case "eval":d+=p;break;case "nooutput":d+="J=[];";default:q[2]&4&&(d+="};");case "script":case "style":d+=db;case "delimiter":d+="}"}while(0);y=0}}while(0);d=q[3]+d;if(!ba){q=ea[ea.length-1];break}}break;case "&":xa.lastIndex=++v;if(!l&&(w= | ||
da(xa,a))){v=xa.lastIndex;J||(d+=Ka(w)+"I=K($,H,x)}catch(x){I=0}",y=0);break}g="&";default:ka.lastIndex=v,da(ka,a)||console.error("**"+a+"**"),ka.lastIndex=v,g+=da(ka,a)[0],v=ka.lastIndex,J||(!l&&b&1&&(g=Fa(g)),!g||q[2]&1&&"0}"!==d.slice(-2)&&g.match(lb)||(d+="H.push("+JSON.stringify(g)+");"))}}return d+="return H})"}function qa(a){try{var b=eval(a)}catch(c){D(c,a),mb(a),b=function(){return""}}return b}function ia(a){return RegExp(a,Pa?"g":"y")}function da(a,b){if(Pa){var c=a.lastIndex;return(a=a.exec(b))&& | ||
c==a.index&&a}return a.exec(b)}var nb=("object"==typeof document?document:null)&&window,t=Object,Pa=0!=/./.sticky,Va={"+":"%2B"," ":"+","\t":"%09","\n":"%0A","\r":"%0D","?":"%3F","&":"%26","#":"%23","<":"%3C"},Wa={"&":"&","<":"<"},Da=/\s*,\s*/g,eb=/\s*,\s*/,Ja=ia("(?:[^&]+|(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&]*))+|&([\\w$]+(?:[.[][\\w$]+]?)*\\.[\\w$]+)(?::([\\w$]*))?(?:%([^;]*))?;"),xa=ia("([\\w$]+\\.[\\w$]+(?:[.[][\\w$]+]?)*)(?::([\\w$]*))?(?:%([^;]*))?;"),va= | ||
ia("!(?:--([\x00-\u00ff]*?)(?:--|$)|([^-][\x00-\u00ff]*?))(?:>|$)|\\?([\x00-\u00ff]*?)(?:\\?>|$)"),wa=ia("(?:noparse|comment)\\s"),ka=ia("[^&<]+(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&<]*)*"),ma=ia("\\s*((?:[^-:_a-zA-Z<&>\\s/]\\s*)*)(?:([-:_a-zA-Z][-:\\w]*|/)\\s*(?:=\\s*(\"[^\"]*\"|'[^']*'))?|[<&>])"),hb=/^[_a-zA-Z]\w*$/,ib=/<\/script>/g,jb=/<\/style>/g,Za=/^"([^(+]+)"$/,ab=/^[A-Za-z_][\w]*$/,bb=/\n/g,cb=/[^\n]*$/,kb=/([^=]+=).+(".*")/,lb=/^\s+$/,$a=/\s\s+/g,ob=/</g,pb= | ||
/[+ \t\n\r?&#<]/g,qb=/[&<]/g,fb=/[^-:\w,]+/g,gb=/([\\^$*+?.|()[{])/g,rb=/"/g,sb=/[.[\]]+/,Qa={},ya,mb=console.debug,Ra=console.error;M=function(a,b){try{t.assign(a,b)}catch(c){}};D=function(a,b){Ra("Remixml expression: "+(b?JSON.stringify(b):"")+"\n",a)};E=function(a,b,c){return Ea(a,c)(b)};P=function(a,b,c){return function(f){return(Array.isArray(f)?f.join(", "):f).replace(RegExp(a,b),c)}};U=function(a){var b;m(b=a[0])&&" "===b[0]&&!(a[0]=b.substr(1))&&a.splice(0,1);var c=a.length-1;m(b=a[c])&&" "=== | ||
b.slice(-1)&&!(a[c]=b.slice(0,-1))&&a.splice(c,1);return a};F=function(a,b,c){b=+(b||0);c=+c;return 0>c?a.slice(b,c):0<c?a.slice(b,b+c):0==c?a.slice(b):""};R=function(a,b){for(var c,f=a.length,k=b||Fa;f--;){switch((c=a[f])[""]){case "!":case "<":case "?":if(!b)break;default:R(c,b);continue;case void 0:if(a[f]=k(c))continue}a.splice(f,1)}return a};S=function(a,b){b=L(b);t.assign(b,a);delete b["::"];(a=a["::"])&&t.assign(b,a);return b};L=function(a){var b=[];b[""]=a||1;return b};N=function(a){var b= | ||
a._;b||(a._=b={});b._tag||(b._tag={});!a["var"]&&a.__&&(a["var"]=a.__);return L()};C=function(a,b,c,f){if(1!==a[""])if(Ga(a,"_contents",function(){var l=a._c;l?l(a.slice(),b):a[""]=1;return a}),c)Ga(a,"_restargs",function(){var l,n={};for(l in this)switch(l[0]){default:0<=l||c[l]||(n[l]=this[l]);case "_":case void 0:}return n});else return a;var k;(k=t.assign({},b))._=t.assign(a,{_:b._,_tag:t.assign({},b._._tag)});f&&(k[f]=a);return k};V=function(a,b,c){void 0===c[b]&&(c[b]=1!==a.length||a[0][""]? | ||
a.length?a:"":a[0])};X=function(a,b,c){var f=c._._tag[b[""]];if(f)return f(a,b,c);if(f=b._c)delete b._c,f(b,c);a.push(b)};Q=function(a,b,c){b._._tag[a]=c};G=function(a,b,c){if((b=(b=Array.isArray(b)?b[0]:VE(a,b))||0)&&0<=b.size)a=b.entries();else if(a=t.entries(b),0<=b.length&&a.splice(b.length),c)try{a=a.sort(function(f,k){var l,n;f=c(f);k=c(k);var p=0;for(l=f.length;p<l;p++){var d=0;Array.isArray(f[p])&&(d=1,f[p]=f[p][0],k[p]=k[p][0]);if(n=f[p]>k[p]||-(f[p]!==k[p]))break}return d?-n:n})}catch(f){D(f, | ||
c)}Aa();Sa();return a[Symbol.iterator]()};B=function(a,b,c,f){for(var k=0;k<c.length;){var l=c[k++];switch(l[""]){default:B(a,b,l,f);return;case f:b.push(C(l,a));case void 0:}}};T=function(a){var b=a.split(sb),c;a="$";b=Ua(b);for(c=b.next();!c.done;c=b.next())c=c.value,a+=Ha(c);return a};Z=function(a,b,c,f){b=Array.isArray(b)?b[0]:VE(a,b);null==b&&(b="");"function"===typeof b&&(b=b(a._,a));if(b[""])switch(c){case "r":case "recurse":case "":case "none":if(!f)break;default:b=Y(b)}else- -b==b&&(b+=""); | ||
f&&!b[""]&&ya&&(b=ya(f,b,a));switch(c){case "json":b=JSON.stringify(b).replace(ob,"\\\\u003c");break;case "uric":b=b.replace(pb,u);break;default:b[""]||(b=Array.isArray(b)?b.join(", "):b,b=(f=Qa[c])?f(b):b.replace(qb,H));case "":case "none":case "r":case "recurse":}switch(b.length){case 0:b="";break;case 1:1===b[""]&&(b=b[0])}if("r"===c)for(c="";b!==c&&0<=b.indexOf("&");)c=b,b=VE(a,["("+Ia(b)+")"]);return b};O=function(a,b){var c;if(b)for(c in b)delete b[c];else b=[];b=t.assign(b,a);for(c=b.length;c--;)b[c][""]&& | ||
(b[c]=O(b[c]));return b};K=function(a,b,c){c[""]?(1===c[""]?b.push.apply(b,O(c)):b.push(c),c=1):c||void 0!==c&&c?(b.push(c),c=1):c=0;return c};sizeof=function(a){return Number(a)===a?1:a?a.length||1!==a[""]||t.keys(a).length:0};desc=function(a){return- -a===a?-a:[a,1]};abstract2dom=function(a,b){return na.abstract2dom(a,b)};abstract2txt=Y=function(a,b){for(;;){switch(a[""]){case void 0:return a;case 1:switch(a.length){case 0:return"";case 1:a=a[0];continue}}break}var c,f=a[""];switch(f){case "!":return"\x3c!--"+ | ||
a[0]+"--\x3e";case "<":return"<!"+a[0]+">";case "?":return"<?"+a[0]+"?>";case 1:f=c="";break;default:c="<"+f;var k,l=Ua(t.keys(a).splice(a.length));for(k=l.next();!k.done;k=l.next())switch(k=k.value,k[0]){default:var n=a[k];null!=n&&(n[""]&&(n=n.join("")),c+=" "+k,k!==n&&(c+='="'+(n.replace?n.replace(rb,"&dquot;"):n)+'"'));case "_":case void 0:}if(!a.length)return c+(b&&"br"!==f?"></"+f+">":"/>");c+=">"}for(k=0;void 0!==(l=a[k++]);)c+=l[""]?Y(l,b):l;f&&(c+="</"+f+">");return c};t.assign||t.defineProperty(t, | ||
"assign",{value:function(a,b,c){if(b)for(c in b)a[c]=b[c];return a}});t.entries||(t.entries=function(a){for(var b=a?t.keys(a):[],c=b.length,f=Array(c);c--;)f[c]=[b[c],a[b[c]]];return f});var na={remixml2js:ra,js2obj:qa,compile:Ea,parse2txt:function(a,b,c){m(a)&&(a=qa(ra(a,c)));return Y(a(b))},abstract2txt:Y,add_filter:function(a,b){Qa[a]=b},set_proc_fmt:function(a){ya=a},set_tag:function(a,b,c,f,k){N(b);Ya(a,b,c,f,k)},set_log_callback:function(a){Ra=a}};"function"==typeof define&&define.amd?define("remixml", | ||
[],na):"object"==typeof exports?t.assign(exports,na):nb.Remixml=na}).call(this); | ||
'use strict';(function(){function ea(a){return"string"===typeof a}function Ga(a){return Ha[a]}function Ia(a){return Ja[a]}function Ka(a,b){a[b]=1;return a}function La(a,b,c,e,l){b._._tag[c]=function(g,u,m){delete u[""];m=C(u,m,l?l.split(sa).reduce(Ka,{}):{},e);return a(m)}}function ca(a,b){var c=a.match(Ma);return c?(a=T(c[1]),b?[a]:"["+a+"]"):a}function ta(a,b){return ja(ka(a,b))}function ua(a){return a.replace(Na," ")}function va(a,b,c){w.defineProperty(a,b,{get:c,configurable:!0})}function wa(a){return a.match(Oa)? | ||
"."+a:'["'+a+'"]'}function xa(a){var b="",c="",e;for(ya.lastIndex=0;e=ya.exec(a);)b=e[1]?b+(c+"(function(){"+za(e)+'return x}catch(x){}return ""})()'):b+(c+JSON.stringify(e[0])),c="+";return b}function Aa(a,b,c){a="try{let x=Z($,"+ca(a);b&&(a+=","+b);c&&(b||(a+=",0"),a+=","+c);return a+");"}function za(a){var b=a[2],c=a[3];return Aa(JSON.stringify(a[1]),ea(b)&&JSON.stringify(b),c&&JSON.stringify(c))}function la(a){return"(function(){try{return("+a+')}catch(x){D(x)}return ""})()'}function Ba(a){return"(_=$._,"+ | ||
(a?la(a):'""')+")"}function ba(a){a&&(0>a.indexOf("(")?(0<=(a=JSON.parse(a)).indexOf("_")&&(a="_=$._,"+a),a=la(a)):(a='"'===a.slice(-1)?'"'===a[0]?a.slice(1,-1):'"+'+a.slice(0,-1):('"'===a[0]?a.slice(1):'"+'+a)+'+"',0<=a.indexOf("{")&&(a="("+a+")"),a=la('eval("'+a+'")'),a=0>a.indexOf("_")?a:"(_=$._,"+a+")"));return a}function ka(a,b){function c(n,v){var ma=D,H=a.slice(0,r),fa=(H.match(Pa)||"").length+1;H=H.match(Qa)[0].length+1;ma(v+" at "+(fa+":"+H),a.substr(r-64,128+(n?n.length:0)))}function e(){2=== | ||
(p[2]&6)&&(p[2]|=4,d+="H._c=function(H,$){")}function l(n,v){I||(d+='H.push(W=L("'+n[0][0]+'"));W[0]='+JSON.stringify(n[v])+";")}var g=b&4;const u=g?"async ":"";var m=g?"await ":"",d="("+u+'function($){"use strict";var I,W,_,H=N($);',I=g=0;const na="w,v="+u+"function(){"+m+"w();",Ca=")};w=("+u+"function(W){",Da="});"+m+"v()}",Ra=m+"X(J,H,$)";m="do{if((k=Y(H))===m)break;H="+m+"E(m=k,$"+(b?","+b:"")+")}while(--n);J.push.apply(J,H)}";for(var x,p=[0,{},4,""],aa=[p],r=0;;){var t,f="";if(r>=a.length){var q= | ||
p[0];if(q){c(q,"Missing </"+q+">");a+="</"+q+">";continue}break}a:switch(a[r]){case "<":q=function(){t=ha.exec(a);t[1]&&c(0,'Skipping malformed parameter "'+t[1]+'"');return y=t[2]};var z=function(v,ma){var H=h("mkmapping");if(H){let fa=H.slice(1,-1).split(Sa);for(d+=v;H=fa.pop();)d+=ma+wa(H)+"=k["+fa.length+"];"}else if(""===H)return 1},h=function(v){return(v=n[v])&&xa(v)};oa.lastIndex=++r;if(t=oa.exec(a)){r=oa.lastIndex;I||(t[1]?l(t,1):t[2]?(t[0]="<",l(t,2)):(pa.lastIndex=0,pa.exec(f=t[3])?"n"=== | ||
f[0]&&(d+="H.push("+JSON.stringify(f.slice(pa.lastIndex))+");"):l(t,3)));break}ha.lastIndex=r;let n={};var y;if("/"===q())n[y]=1,q();else if(!y){r=ha.lastIndex;break a}for(n[""]=y;;){if(!q()){r=ha.lastIndex;break}n[y]=t[3]?t[3].slice(1,-1):y}var J=n["/"];delete n["/"];q=n[""];if(1!==J){do{aa.push(p=[q,n,0,d]);d="";n["-"]&&(delete n["-"],p[2]=1);switch(q){case "noparse":if(!g++)continue;break;case "comment":g||I++}if(!I){delete n[""];d+="W=H;";if(!g)switch(q){case "set":d+="{let H=L(),";var k=h("var")|| | ||
h("variable");x=0;if(k){var W=h("expr");d+=na;p[2]|=16;x=d.length;if(f=h("selector"))d+="B($,w=L(),H,"+f+");H=w;";else{void 0!==n.json&&(d+="H=JSON.parse(Y(H));");if(f=h("split"))d+="H=Y(H).split("+(ba(W)||f)+");",W=void 0;void 0!==W&&(d+="H="+(ba(W)||Ba("eval(Y(H))"))+";");if(f=h("join"))d+="H=H.join("+f+");";z("let k=H[0];H={};","H")}d.length!==x&&(x=0);k=ca(k,1);Array.isArray(k)?d+=k[0]+"=A("+(void 0!==n.clone?(x=0,"O(H,"+k[0]+")"):"H"):(x=0,d+="A(H,$,"+k);d+=Ca}else if(f=h("tag")){e();d+="v=0;Q("+ | ||
f+",$,"+u+"function(H,a,$,W){let o=$;$=C(a,$,{";(f=h("args"))&&(f=f.replace(Ta,""))&&(d+='"'+f.replace(sa,'":1,"')+'":1');d+="}";if(f=h("scope"))d+=","+f;d+=");"}continue;case "insert":if(k=h("var")||h("variable")){d+=Aa(k,h("quote"),h("format"));if(f=h("join"))d+="x=x.join?x.join("+f+"):x;";k=h("limit");if((f=h("offset"))||void 0!==k)d+="x=F(x,"+f+(void 0!==k?","+k:"")+");";d+="I=K($,H,x)}catch(x){I=0}"}else if(void 0!==(k=h("expr")))d+="{let H=L(),"+na+("H="+(ba(k)||Ba("eval(Y(H))"))+";W.push(A(H)")+ | ||
Ca,p[2]|=8;else switch(h("variables")){case "dump":d+="log((W="+h("scope")+")?$[W]:$);"}continue;case "replace":k=h("flags");void 0===k&&(k="g");d+="{let H=L(),J=W,v=P("+(h("regexp")||h("from").replace(Ua,"\\$1"))+","+JSON.stringify(k)+","+(ba(h("expr"))||h("to"))+");";continue;case "trim":d+="{let H=L(),J=W;";continue;case "maketag":d+="{let H=L("+h("name")+"),J=W;";continue;case "attrib":d+="{let H=L(),v="+h("name")+",J=W;";continue;case "for":d+="{I=0;let g,i,k,m,J=W,n=0;";d=(k=h("in"))?d+("g=G($,"+ | ||
ca(k)+((f=h("orderby"))?",(m=$._,function(_){let _index=_[0];$._=_=_[1];return["+ba(f)+"]}));$._=m":")")+";while(!(m=g.next()).done){k=(m=m.value)[1];i=m[0];W=S({_value:k,"):d+("for(i=+"+(h("from")||0)+",m="+((k=h("step"))?"+("+k+"||1)":1)+",k=+"+(h("to")||0)+";m<0?i>=k:i<=k;i+=m){W=S({");d+="_recno:++n,_index:i});let o=$;$=C(W,$,{}";if(f=h("scope"))d+=","+f;d+=");";1===z("k=(m=$._)._value;","m")&&(d+="M($._,$._._value);");continue;case "eval":d+="{let H=L(),n="+(void 0===(f=h("recurse"))?1:0<f?+f: | ||
0)+",J=W,k,m=0;";continue;case "unset":if(f=h("tag"))k=function(v){v="._._tag"+v;d+="$"+v+"=$._._&&$._"+v+";"},e(),W=ca(f,1),Array.isArray(W)?k(W[0].slice(1)):(d+="{let v="+W+";",k("[v]"),d+="}");else if(f=h("var")||h("variable"))k=ca(f,1),d+=Array.isArray(k)?"delete "+k[0]+";":'eval("delete $."+'+k+");";continue;case "delimiter":d+="if($._._recno>1){";continue;case "elif":f="(!I&&";case "if":d+="if"+f+"(I="+(ba(h("expr"))||0)+")"+(f?")":"")+"{";continue;case "then":d+="if(I){";continue;case "else":d+= | ||
"if(!I){";continue}d+="{let J=W,H=S({";(k=n["::"])&&(n["::"]=k.slice(0,-1)+":;");k="";for(y in n)if(f=h(y))d+=k+(Va.test(y)?y:'"'+y+'"')+":"+f,k=",";d+='},"'+q+'")'}if(!J&&(k="script"===q?Wa:"style"===q?Xa:0)){k.lastIndex=r;k.exec(a);z=k.lastIndex;d+=";";!I&&(f=a.slice(r,z-3-q.length))&&(d+="H[0]="+JSON.stringify(f)+";");r=z;J=1;break}I||(d+=";",p[2]|=2)}while(0)}if(J)for(;;){p=aa.pop();z=p[0];f=0;if(q!==z){c(q,(z?"Expected </"+z+"> got </":"Missing <")+q+">");for(J=aa.length;J;)if(aa[--J][0]===q){f= | ||
1;break}if(!f){aa.push(p);break}}b:do{switch(z){case "noparse":if(!--g)break b;break;case "comment":if(!g){I--;break b}break;case 0:break b}if(!I)if(g)d+="J.push(H)}";else{c:do switch(z){case "set":if("{"!==d.slice(-1)&&x){J=d.slice(x).match(Ya);d=d.slice(0,x-11-na.length)+J[1]+J[2]+";";break c}d+=p[2]&16?Da:"})}";break;case "insert":p[2]&8&&(d+=Da);break;case "replace":d+="J.push.apply(J,R(H,v))}";break;case "trim":d+="J.push.apply(J,U(R(H)))}";break;case "maketag":d+="J.push(H)}";break;case "attrib":d+= | ||
"V(H,v,J)}";case "unset":break c;case "for":d+="$=o;I=1}}";break;case "if":case "then":case "elif":case "else":d+="I=1}";break c;case "eval":d+=m;break;case "nooutput":d+="J=[];";default:p[2]&4&&(d+="};");case "script":case "style":d+=Ra;case "delimiter":d+="}"}while(0);x=0}}while(0);d=p[3]+d;if(!f){p=aa[aa.length-1];break}}break;case "&":qa.lastIndex=++r;if(!g&&(t=qa.exec(a))){r=qa.lastIndex;I||(d+=za(t)+"I=K($,H,x)}catch(x){I=0}",x=0);break}f="&";default:da.lastIndex=r,da.exec(a)||console.error("**"+ | ||
a+"**"),da.lastIndex=r,f+=da.exec(a)[0],r=da.lastIndex,I||(!g&&b&1&&(f=ua(f)),!f||p[2]&1&&"0}"!==d.slice(-2)&&f.match(Za)||(d+="H.push("+JSON.stringify(f)+");"))}}return d+="return H})"}function ja(a){try{var b=eval(a)}catch(c){D(c,a),$a(a),b=function(){return""}}return b}const ab=("object"==typeof document?document:null)&&window,w=Object,Ha={"+":"%2B"," ":"+","\t":"%09","\n":"%0A","\r":"%0D","?":"%3F","&":"%26","#":"%23","<":"%3C"},Ja={"&":"&","<":"<"},sa=/\s*,\s*/g,Sa=/\s*,\s*/,ya=RegExp("(?:[^&]+|(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&]*))+|&([\\w$]+(?:[.[][\\w$]+]?)*\\.[\\w$]+)(?::([\\w$]*))?(?:%([^;]*))?;", | ||
"y"),qa=/([\w$]+\.[\w$]+(?:[.[][\w$]+]?)*)(?::([\w$]*))?(?:%([^;]*))?;/y,oa=/!(?:--(.*?)(?:--|$)|([^-].*?))(?:>|$)|\?(.*?)(?:\?>|$)/ys,pa=/(?:noparse|comment)\s/y,da=RegExp("[^&<]+(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&<]*)*","y"),ha=/\s*((?:[^-:_a-zA-Z<&>\s\/]\s*)*)(?:([-:_a-zA-Z][-:\w]*|\/)\s*(?:=\s*("[^"]*"|'[^']*'))?|[<&>])/y,Va=/^[_a-zA-Z]\w*$/,Wa=/<\/script>/g,Xa=/<\/style>/g,Ma=/^"([^(+]+)"$/,Oa=/^[A-Za-z_][\w]*$/,Pa=/\n/g,Qa=/[^\n]*$/,Ya=/([^=]+=).+(".*")/,Za=/^\s+$/, | ||
Na=/\s\s+/g,bb=/</g,cb=/[+ \t\n\r?&#<]/g,db=/[&<]/g,Ta=/[^-:\w,]+/g,Ua=/([\\^$*+?.|()[{])/g,eb=/"/g,fb=/[.[\]]+/,Ea={};var ra,$a=console.debug,Fa=console.error;M=function(a,b){try{w.assign(a,b)}catch(c){}};D=function(a,b){Fa("Remixml expression: "+(b?JSON.stringify(b):"")+"\n",a)};E=function(a,b,c){return ta(a,c)(b)};P=function(a,b,c){return function(e){return(Array.isArray(e)?e.join(", "):e).replace(RegExp(a,b),c)}};U=function(a){var b;ea(b=a[0])&&" "===b[0]&&!(a[0]=b.substr(1))&&a.splice(0,1);var c= | ||
a.length-1;ea(b=a[c])&&" "===b.slice(-1)&&!(a[c]=b.slice(0,-1))&&a.splice(c,1);return a};F=function(a,b,c){b=+(b||0);c=+c;return 0>c?a.slice(b,c):0<c?a.slice(b,b+c):0==c?a.slice(b):""};R=function(a,b){for(var c,e=a.length,l=b||ua;e--;){switch((c=a[e])[""]){case "!":case "<":case "?":if(!b)break;default:R(c,b);continue;case void 0:if(a[e]=l(c))continue}a.splice(e,1)}return a};S=function(a,b){b=L(b);w.assign(b,a);delete b["::"];(a=a["::"])&&w.assign(b,a);return b};L=function(a){var b=[];b[""]=a||1; | ||
return b};N=function(a){var b=a._;b||(a._=b={});b._tag||(b._tag={});!a["var"]&&a.__&&(a["var"]=a.__);return L()};C=function(a,b,c,e){if(1!==a[""])if(va(a,"_contents",function(){let g=a._c;g?g(a.slice(),b):a[""]=1;return a}),c)va(a,"_restargs",function(){var g,u={};for(g in this)switch(g[0]){default:0<=g||c[g]||(u[g]=this[g]);case "_":case void 0:}return u});else return a;var l;(l=w.assign({},b))._=w.assign(a,{_:b._,_tag:w.assign({},b._._tag)});e&&(l[e]=a);return l};V=function(a,b,c){void 0===c[b]&& | ||
(c[b]=1!==a.length||a[0][""]?a.length?a:"":a[0])};X=function(a,b,c){var e=c._._tag[b[""]];if(e)return e(a,b,c);if(e=b._c)delete b._c,e(b,c);a.push(b)};Q=function(a,b,c){b._._tag[a]=c};G=function(a,b,c){if((b=(b=Array.isArray(b)?b[0]:VE(a,b))||0)&&0<=b.size)a=b.entries();else if(a=w.entries(b),0<=b.length&&a.splice(b.length),c)try{a=a.sort(function(e,l){var g,u;e=c(e);l=c(l);var m=0;for(g=e.length;m<g;m++){var d=0;Array.isArray(e[m])&&(d=1,e[m]=e[m][0],l[m]=l[m][0]);if(u=e[m]>l[m]||-(e[m]!==l[m]))break}return d? | ||
-u:u})}catch(e){D(e,c)}return a[Symbol.iterator]()};B=function(a,b,c,e){for(var l=0;l<c.length;){let g=c[l++];switch(g[""]){default:B(a,b,g,e);return;case e:b.push(C(g,a));case void 0:}}};T=function(a){var b=a.split(fb),c;a="$";for(c of b)a+=wa(c);return a};Z=function(a,b,c,e){b=Array.isArray(b)?b[0]:VE(a,b);null==b&&(b="");"function"===typeof b&&(b=b(a._,a));if(b[""])switch(c){case "r":case "recurse":case "":case "none":if(!e)break;default:b=Y(b)}else- -b==b&&(b+="");e&&!b[""]&&ra&&(b=ra(e,b,a)); | ||
switch(c){case "json":b=JSON.stringify(b).replace(bb,"\\\\u003c");break;case "uric":b=b.replace(cb,Ga);break;default:b[""]||(b=Array.isArray(b)?b.join(", "):b,b=(e=Ea[c])?e(b):b.replace(db,Ia));case "":case "none":case "r":case "recurse":}switch(b.length){case 0:b="";break;case 1:1===b[""]&&(b=b[0])}if("r"===c)for(c="";b!==c&&0<=b.indexOf("&");)c=b,b=VE(a,["("+xa(b)+")"]);return b};O=function(a,b){var c;if(b)for(c in b)delete b[c];else b=[];b=w.assign(b,a);for(c=b.length;c--;)b[c][""]&&(b[c]=O(b[c])); | ||
return b};K=function(a,b,c){c[""]?(1===c[""]?b.push.apply(b,O(c)):b.push(c),c=1):c||void 0!==c&&c?(b.push(c),c=1):c=0;return c};sizeof=function(a){return Number(a)===a?1:a?a.length||1!==a[""]||w.keys(a).length:0};desc=function(a){return- -a===a?-a:[a,1]};abstract2dom=function(a,b){return ia.abstract2dom(a,b)};abstract2txt=Y=function(a,b){for(;;){switch(a[""]){case void 0:return a;case 1:switch(a.length){case 0:return"";case 1:a=a[0];continue}}break}var c,e=a[""];switch(e){case "!":return"\x3c!--"+ | ||
a[0]+"--\x3e";case "<":return"<!"+a[0]+">";case "?":return"<?"+a[0]+"?>";case 1:e=c="";break;default:c="<"+e;for(var l of w.keys(a).splice(a.length))switch(l[0]){default:var g=a[l];null!=g&&(g[""]&&(g=g.join("")),c+=" "+l,l!==g&&(c+='="'+(g.replace?g.replace(eb,"&dquot;"):g)+'"'));case "_":case void 0:}if(!a.length)return c+(b&&"br"!==e?"></"+e+">":"/>");c+=">"}for(g=0;void 0!==(l=a[g++]);)c+=l[""]?Y(l,b):l;e&&(c+="</"+e+">");return c};const ia={remixml2js:ka,js2obj:ja,compile:ta,parse2txt:function(a, | ||
b,c){ea(a)&&(a=ja(ka(a,c)));return Y(a(b))},abstract2txt:Y,add_filter:function(a,b){Ea[a]=b},set_proc_fmt:function(a){ra=a},set_tag:function(a,b,c,e,l){N(b);La(a,b,c,e,l)},set_log_callback:function(a){Fa=a}};"function"==typeof define&&define.amd?define("remixml",[],ia):"object"==typeof exports?w.assign(exports,ia):ab.Remixml=ia}).call(this); | ||
}).call(this); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
556314
7099
549