ui/art-template */ "undefined"!=typeof self&&self,t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(22),a=function(t,e){e.onerror(t,e);var n=function(){return"{Template Error}"};return n.mappings=[],n.sourcesContent=[],n},c=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e?n=e:n.source=e,e=(n=o.$extend(n)).source,!0===n.debug&&(n.cache=!1,n.minimize=!1,n.compileDebug=!0),n.compileDebug&&(n.minimize=!1),n.filename&&(n.filename=n.resolveFilename(n.filename,n));var c=n.filename,u=n.cache,s=n.caches;if(u&&c){var f=s.get(c);if(f)return f}if(!e)try{e=n.loader(c,n),n.source=e}catch(t){var l=new i({name:"CompileError",path:c,message:"template not found: "+t.message,stack:t.stack});if(n.bail)throw l;return a(l,n)}var p=void 0,h=new r(n);try{p=h.build()}catch(l){if(l=new i(l),n.bail)throw l;return a(l,n)}var d=function(e,r){try{return p(e,r)}catch(o){if(!n.compileDebug)return n.cache=!1,n.compileDebug=!0,t(n)(e,r);if(o=new i(o),n.bail)throw o;return a(o,n)()}};return d.mappings=p.mappings,d.sourcesContent=p.sourcesContent,d.toString=function(){return p.toString()},u&&c&&s.set(c,d),d};c.Compiler=r,t.exports=c},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var e={type:"invalid",value:t[0]};return t[1]?(e.type="string",e.closed=!(!t[3]&&!t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}},function(t,e,n){"use strict";function r(){this.$extend=function(t){return i(t=t||{},t instanceof r?t:this)}}var o=n(10),i=n(12),a=n(13),c=n(14),u=n(15),s=n(16),f=n(17),l=n(18),p=n(19),h=n(21),d={source:null,filename:null,rules:[l,f],escape:!0,debug:!1,bail:!0,cache:!0,minimize:!0,compileDebug:!1,resolveFilename:h,include:a,htmlMinifier:p,htmlMinifierOptions:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,ignoreCustomFragments:[]},onerror:c,loader:s,caches:u,root:"/",extname:".art",ignore:[],imports:o};r.prototype=d,t.exports=new r},function(t,e){},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(23),a=function(t,e){return e instanceof Object?r({filename:t},e):o({filename:t,source:e})};a.render=r,a.compile=o,a.defaults=i,t.exports=a},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){return r(t,n)(e)}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e|\([\w\W]*?\))\s*{[\s;]*$)/,"$1})"],[/(^[\w\W]*?\([\w\W]*?\)\s*{[\s;]*$)/,"$1}"]],n=0;n2&&void 0!==arguments[2]?arguments[2]:{},i=[new o("string",t)],a=0;ad&&(p=new o("string",g.slice(d,h.index),p),v.push(p)),p=new o("expression",h[0],p),h[0]=r(p),p.script=c.use.apply(n,h),v.push(p),d=h.index+h[0].length;d]/;r.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var r="",i=void 0,a=void 0,c=void 0;for(i=n.index,a=0;i {{"+n+"}}")};switch("#"===e&&p("#value","@value"),l){case"set":o="var "+c.join("").trim();break;case"if":o="if("+c.join("").trim()+"){";break;case"else":var h=c.indexOf("if");~h?(c.splice(0,h+1),o="}else if("+c.join("").trim()+"){"):o="}else{";break;case"/if":o="}";break;case"each":(s=r._split(a)).shift(),"as"===s[1]&&(p("each object as value index","each object value index"),s.splice(1,1)),o="$each("+(s[0]||"$data")+",function("+(s[1]||"$value")+","+(s[2]||"$index")+"){";break;case"/each":o="})";break;case"block":(s=r._split(a)).shift(),o="block("+s.join(",").trim()+",function(){";break;case"/block":o="})";break;case"echo":l="print",p("echo value","value");case"print":case"include":case"extend":if(0!==c.join("").trim().indexOf("(")){(s=r._split(a)).shift(),o=l+"("+s.join(",")+")";break}default:if(~c.indexOf("|")){var d=a.reduce(function(t,e){var n=e.value,r=e.type;return"|"===n?t.push([]):"whitespace"!==r&&"comment"!==r&&(t.length||t.push([]),":"===n&&1===t[t.length-1].length?p("value | filter: argv","value | filter argv"):t[t.length-1].push(e)),t},[]).map(function(t){return r._split(t)});o=d.reduce(function(t,e){var n=e.shift();return e.unshift(t),"$imports."+n+"("+e.join(",")+")"},d.shift().join(" ").trim())}f=f||"escape"}return u.code=o,u.output=f,u},_split:function(t){t=t.filter(function(t){var e=t.type;return"whitespace"!==e&&"comment"!==e});for(var e=0,n=t.shift(),r=/\]|\)/,o=[[n]];e/,use:function(t,e,n,r){return n={"-":"raw","=":"escape","":!1,"==":"raw","=#":"raw"}[n],e&&(r="/*"+r+"*/",n=!1),{code:r,output:n}}}},function(t,e,n){"use strict";var r="undefined"==typeof window;t.exports=function(t,e){if(r){var o,i=n(20).minify,a=e.htmlMinifierOptions,c=e.rules.map(function(t){return t.test});(o=a.ignoreCustomFragments).push.apply(o,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e> ":" ")+n+"| "+t}).join("\n");return(r||"anonymous")+":"+o+":"+i+"\n"+l+"\n\n"+e+": "+c+(a?"\n generated: "+a:"")}(t),Error.captureStackTrace&&Error.captureStackTrace(n,n.constructor),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,Error),e}();t.exports=r},function(t,e,n){"use strict";t.exports=n(2)}])},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=e});return s||n?r+"_"+(s?s+"x"+s:"")+(n?"q"+n:"")+"."+u:""+r},o.default.defaults.imports.toLowerCase=c,o.default.defaults.imports.toUpperCase=u;var s={};e.renderArtTemplate=function(t,e){return(s[t]||o.default.compile(t))(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prependHead=function(t,e){return t.replace("",""+e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.newFunctionWithCache=function(){for(var t=[],e=0;e0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]