/* Riot v3.6.1, @license MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.riot=t()}(this,function(){"use strict";function e(e){return mt.test(e)}function t(e){return typeof e===st}function n(e){return e&&typeof e===rt}function r(e){return typeof e===it}function i(e){return typeof e===nt}function s(e){return r(e)||null===e||""===e}function o(e){return Array.isArray(e)||e instanceof Array}function a(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return r(e[t])||n&&n.writable}function u(e){return ht.test(e)}function c(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function l(e,t){return(t||document).querySelector(e)}function p(){return document.createDocumentFragment()}function f(){return document.createTextNode("")}function h(e){return!!e.ownerSVGElement}function d(e){return"svg"===e?document.createElementNS(at,e):document.createElement(e)}function g(e,t){if(r(e.innerHTML)){var n=(new DOMParser).parseFromString(t,"application/xml"),i=e.ownerDocument.importNode(n.documentElement,!0);e.appendChild(i)}else e.innerHTML=t}function m(e,t){e.style.display=t?"":"none",e.hidden=!t}function v(e,t){e.removeAttribute(t)}function x(e){return Object.keys(e).reduce(function(t,n){return t+" "+n+": "+e[n]+";"},"")}function y(e,t){return e.getAttribute(t)}function b(e,t,n){var r=ut.exec(t);r&&r[1]?e.setAttributeNS(ot,r[1],n):e.setAttribute(t,n)}function _(e,t,n){e.insertBefore(t,n.parentNode&&n)}function w(e,t){if(e)for(var n;n=dt.exec(e);)t(n[1].toLowerCase(),n[2]||n[3]||n[4])}function O(e,t,n){if(e){var r,i=t(e,n);if(!1===i)return;for(e=e.firstChild;e;)r=e.nextSibling,O(e,t,i),e=r}}function j(e,t){for(var n=e?e.length:0,r=0;rr;)n--,F.apply(t[n],[t,n])}function F(e,t){e.splice(t,1),this.unmount(),he(this.parent,this,this.__.tagName,!0)}function H(e){var t=this;j(Object.keys(this.tags),function(n){oe.apply(t.tags[n],[n,e])})}function z(e,t,n){n?ve.apply(this,[e,t]):_(e,this.root,t.root)}function B(e,t,n){n?me.apply(this,[e,t]):_(e,this.root,t.root)}function U(e,t){t?me.call(this,e):e.appendChild(this.root)}function V(e,t,n){v(e,Je);var r,s=typeof y(e,Xe)!==nt||v(e,Xe),a=le(e),u=De[a],c=e.parentNode,l=f(),h=ie(e),d=y(e,Qe),g=[],m=[],x=!De[a],b="VIRTUAL"===e.tagName;return n=St.loopKeys(n),n.isLoop=!0,d&&v(e,Qe),c.insertBefore(l,e),c.removeChild(e),n.update=function(){n.value=St(n.val,t);var c=p(),f=n.value,v=!o(f)&&!i(f),y=l.parentNode;y&&(v?f=(r=f||!1)?Object.keys(f).map(function(e){return $(n,f[e],e)}):[]:r=!1,d&&(f=f.filter(function(e,r){return n.key&&!v?!!St(d,$(n,e,r,t)):!!St(d,A(Object.create(t),e))})),j(f,function(i,o){var l=s&&typeof i===rt&&!r,p=m.indexOf(i),d=-1===p,v=!d&&l?p:o,_=g[v],w=o>=m.length,O=l&&d||!l&&!_;i=!r&&n.key?$(n,i,o):i,O?((_=new re(u,{parent:t,isLoop:!0,isAnonymous:x,tagName:a,root:e.cloneNode(x),item:i,index:o},e.innerHTML)).mount(),w?U.apply(_,[c||y,b]):B.apply(_,[y,g[o],b]),w||m.splice(o,0,i),g.splice(o,0,_),h&&fe(t.tags,a,_,!0)):v!==o&&l&&(N(f,m[v])&&(z.apply(_,[y,g[o],b]),g.splice(o,0,g.splice(v,1)[0]),m.splice(o,0,m.splice(v,1)[0])),n.pos&&(_[n.pos]=o),!h&&_.tags&&H.call(_,o)),_.__.item=i,_.__.index=o,_.__.parent=t,O||_.update(i)}),P(f,g),m=f.slice(),y.insertBefore(c,l))},n.unmount=function(){j(g,function(e){e.unmount()})},n}function q(e,t,n){var r=this;O(e,function(t,i){var s,o,a,u=t.nodeType,c=i.parent;if(!n&&t===e)return{parent:c};if(3===u&&"STYLE"!==t.parentNode.tagName&&St.hasExpr(t.nodeValue)&&c.children.push({dom:t,expr:t.nodeValue}),1!==u)return i;var l="VIRTUAL"===t.tagName;if(s=y(t,Je))return l&&b(t,"loopVirtual",!0),c.children.push(V(t,r,s)),!1;if(s=y(t,Qe))return c.children.push(Object.create(kt).init(t,r,s)),!1;if((o=y(t,We))&&St.hasExpr(o))return c.children.push({isRtag:!0,expr:o,dom:t,attrs:[].slice.call(t.attributes)}),!1;if(a=ie(t),l&&(y(t,"virtualized")&&t.parentElement.removeChild(t),a||y(t,"virtualized")||y(t,"loopVirtual")||(a={tmpl:t.outerHTML})),a&&(t!==e||n)){if(!l||y(t,We)){var p={root:t,parent:r,hasImpl:!0};return c.children.push(ae(a,p,t.innerHTML,r)),!1}b(t,"virtualized",!0);var f=new re({tmpl:t.outerHTML},{root:t,parent:r},t.innerHTML);c.children.push(f)}return D.apply(r,[t,t.attributes,function(e,t){t&&c.children.push(t)}]),{parent:c}},{parent:{children:t}})}function D(t,n,r){var i=this;j(n,function(n){if(!n)return!1;var s,o=n.name,a=e(o);N(Ge,o)?s=Object.create(Rt).init(t,i,o,n.value):St.hasExpr(n.value)&&(s={dom:t,expr:n.value,attr:o,bool:a}),r(n,s)})}function Z(e,t,n){var r="o"===n[0],i=r?"select>":"table>";if(e.innerHTML="<"+i+t.trim()+""}),!t.whitespace){var r=[];/]/.test(e)&&(e=e.replace(vn,function(e){return r.push(e),""})),e=e.trim().replace(/\s+/g," "),r.length&&(e=e.replace(/\u0002/g,function(){return r.shift()}))}return t.compact&&(e=e.replace(dn,"><$1")),Oe(e,n).replace(bn,"")}function Ne(e){var t,n,r,i,s,o,a=[],u=RegExp;for(~e.indexOf("/")&&(e=function(e,t,n){for(t.lastIndex=0;n=t.exec(e);)n[1]?t.lastIndex=Ct.skipRegex(e,n.index):"/"===n[0][0]&&(e=e.slice(0,n.index)+" "+e.slice(t.lastIndex),t.lastIndex=n.index+1);return e}(e,An));t=e.match(Cn);)a.push(u.leftContext),r=function(e,t){var n,r=1;for(t.lastIndex=0;r&&(n=t.exec(e));)"{"===n[0]?++r:"}"===n[0]&&--r;return r?e.length:t.lastIndex}(e=u.rightContext,Sn),i=t[1],s=t[2]||"",o=t[3],o=(n=!/^(?:if|while|for|switch|catch|function)$/.test(o))?t[0].replace(i,"this."+o+" ="+s+" function"):t[0],a.push(o,e.slice(0,r)),e=e.slice(r),n&&!/^\s*.\s*bind\b/.test(e)&&a.push(".bind(this)");return a.length?a.join("")+e:e}function Ee(e,t,n,r,i){return/\S/.test(e)?(n||(n=t.type),(t.parser||n&&an._req("js."+n,!0)||Ne)(e,r,i).replace(/\r\n?/g,"\n").replace(bn,"")):""}function Ce(e,t){return t.replace(Tn,function(t,n,r){return r?(r=r.replace(/[^,]+/g,function(t){var n=t.trim();return 0===n.indexOf(e)?t:n&&"from"!==n&&"to"!==n&&"%"!==n.slice(-1)?n=n.indexOf(":scope")<0?e+" "+n+',[data-is="'+e+'"] '+n:n.replace(":scope",e)+","+n.replace(":scope",'[data-is="'+e+'"]'):t}),n?n+" "+r:r):t})}function Se(e,t,n,r){return r=r||{},n&&"css"!==n&&(e=an._req("css."+n,!0)(t,e,r.parserOpts||{},r.url)),e=e.replace(Ct.R_MLCOMMS,"").replace(/\s+/g," ").trim(),t&&(e=Ce(t,e)),e}function Ae(e,t){return e?(e=En+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+En,t&&~e.indexOf("\n")?e.replace(/\n/g,"\\n"):e):"''"}function Te(e,t,n,r,i,s,o){var a=o.debug?",\n ":", ",u="});";return i&&"\n"!==i.slice(-1)&&(u="\n"+u),s+"riot.tag2('"+e+En+a+Ae(t,1)+a+Ae(n)+a+Ae(r)+", function(opts) {\n"+i+u}function Le(e){if(/<[-\w]/.test(e))for(var t,n=e.lastIndexOf("<"),r=e.length;~n;){if(t=e.slice(n,r).match(Rn))return n+=t.index+t[0].length,"<-/>\n"===(t=e.slice(0,n)).slice(-5)&&(t=t.slice(0,-5)),[t,e.slice(n)];r=n,n=e.lastIndexOf("<",n-1)}return["",e]}function ke(e){if(e){var t=e.match(Ln);if(t=t&&(t[2]||t[3]))return t.replace("text/","")}return""}function Re(e,t){if(e){var n=e.match(RegExp("\\s"+t+kn,"i"));if(n=n&&n[1])return/^['"]/.test(n)?n.slice(1,-1):n}return""}function Ie(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}function Me(e){var t=Ie(Re(e,"options"));return t?JSON.parse(t):null}function $e(e,t,n,r){var i=ke(n),s=Re(n,"src"),o=un({},t.parserOptions.js);return!s&&Ee(e,t,i,un(o,Me(n)),r)}function Pe(e,t,n,r,i){var s=un({},t.parserOptions.style),o={parserOpts:un(s,Me(n)),url:r};return Se(e,i,ke(n)||t.style,o)}function Fe(e,t,n,r){return an._req("html."+n,!0)(e,r,t)}function He(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&(200===r.status||!r.status&&r.responseText.length)&&t(r.responseText,n,e)},r.open("GET",e,!0),r.send("")}function ze(e,t){if(typeof e===nt){var n=d("script"),r=document.documentElement;t&&(e+="\n//# sourceURL="+t+".js"),n.text=e,r.appendChild(n),r.removeChild(n)}}function Be(e,t){function n(){Ot.trigger("ready"),jt=!0,e&&e()}function r(e,t,r){ze(Pn.compile(e,t,r),r),--s||n()}var i=c('script[type="riot/tag"]'),s=i.length;if(s)for(var o=0;o=0&&/\s/.test(e[t]););return t}var t="[{(,;:?=|&!^~>%*/",n=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],r=n.reduce(function(e,t){return e+t.slice(-1)},""),i=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,s=/[$\w]/;return function(o,a){var u=/.*/g,c=u.lastIndex=a++,l=u.exec(o)[0].match(i);if(l){var p=c+l[0].length,f=o[c=e(o,c)];if(c<0||~t.indexOf(f))return p;if("."===f)"."===o[c-1]&&(a=p);else if("+"===f||"-"===f)(o[--c]!==f||(c=e(o,c))<0||!s.test(o[c]))&&(a=p);else if(~r.indexOf(f)){for(var h=c+1;--c>=0&&s.test(o[c]););~n.indexOf(o.slice(c+1,h))&&(a=p)}}return a}}(),Ct=function(e){function t(e){return e}function n(e,t){return t||(t=y),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?u:"")}function r(e){if(e===m)return v;var t=e.split(" ");if(2!==t.length||f.test(e))throw new Error('Unsupported brackets "'+e+'"');return t=t.concat(e.replace(h,"\\").split(" ")),t[4]=n(t[1].length>1?/{[\S\s]*?}/:v[4],t),t[5]=n(e.length>3?/\\({|})/g:v[5],t),t[6]=n(v[6],t),t[7]=RegExp("\\\\("+t[3]+")|([[({])|("+t[3]+")|"+d,u),t[8]=e,t}function i(e){return e instanceof RegExp?o(e):y[e]}function s(e){(e||(e=m))!==y[8]&&(y=r(e),o=e===m?t:n,y[9]=o(v[9])),x=e}var o,a,u="g",c=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,l=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,p=l.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,f=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),h=/(?=[[\]()*+?.^$|])/g,d=l.source+"|"+/(\/)(?![*\/])/.source,g={"(":RegExp("([()])|"+d,u),"[":RegExp("([[\\]])|"+d,u),"{":RegExp("([{}])|"+d,u)},m="{ }",v=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+d,u),m,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],x=void 0,y=[];return i.split=function(e,t,n){function r(e){d&&(e=d+e,d=""),t||o?p.push(e&&e.replace(n[5],"$1")):p.push(e)}function i(n,r,i){return i&&(r=Et(e,n)),t&&r>n+2&&(c="⁗"+h.length+"~",h.push(e.slice(n,r)),d+=e.slice(a,n)+c,a=r),r}n||(n=y);var s,o,a,u,c,l,p=[],f=n[6],h=[],d="";for(o=a=f.lastIndex=0;s=f.exec(e);){if(l=f.lastIndex,u=s.index,o){if(s[2]){var m=s[2],v=g[m],x=1;for(v.lastIndex=l;s=v.exec(e);)if(s[1]){if(s[1]===m)++x;else if(!--x)break}else v.lastIndex=i(s.index,v.lastIndex,s[2]);f.lastIndex=x?e.length:v.lastIndex;continue}if(!s[3]){f.lastIndex=i(u,l,s[4]);continue}}s[1]||(r(e.slice(a,u)),a=f.lastIndex,(f=n[6+(o^=1)]).lastIndex=a)}return e&&a %s",t.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}function n(e){var t=r(e);return"try{return "!==t.slice(0,11)&&(t="return "+t),new Function("E",t+";")}function r(e){var t,n=Ct.split(e.replace(a,'"'),1),r=n.qblocks;if(n.length>2||n[0]){var s,o,c=[];for(s=o=0;s1?"["+i.join(",")+'].join(" ").trim()':i[0]:s(e,t)}return e}function s(e,t,n){var r;return e=e.replace(f,function(e,t,n,i,s){return n&&(i=r?0:i+e.length,"this"!==n&&"global"!==n&&"window"!==n?(e=t+'("'+n+p+n,i&&(r="."===(s=s[i])||"("===s||"["===s)):i&&(r=!h.test(s.slice(i)))),e}),r&&(e="try{return "+e+"}catch(e){E(e,this)}"),n?e=(r?"function(){"+e+"}.call(this)":"("+e+")")+'?"'+n+'":""':t&&(e="function(v){"+(r?e.replace("return ","v="):"v=("+e+")")+';return v||v===0?v:""}.call(this)'),e}var o={};e.hasExpr=Ct.hasExpr,e.loopKeys=Ct.loopKeys,e.clearCache=function(){o={}},e.errorHandler=null;var a=/\u2057/g,u=/\u2057(\d+)~/g,c=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,l={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g},p='"in this?this:'+("object"!=typeof window?"global":"window")+").",f=/[,{][\$\w]+(?=:)|(^ *|[^$\w\.{])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,h=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;return e.version=Ct.version="v3.0.8",e}(),At=function(e){e=e||{};var t={},n=Array.prototype.slice;return Object.defineProperties(e,{on:{value:function(n,r){return"function"==typeof r&&(t[n]=t[n]||[]).push(r),e},enumerable:!1,writable:!1,configurable:!1},off:{value:function(n,r){if("*"!=n||r)if(r)for(var i,s=t[n],o=0;i=s&&s[o];++o)i==r&&s.splice(o--,1);else delete t[n];else t={};return e},enumerable:!1,writable:!1,configurable:!1},one:{value:function(t,n){function r(){e.off(t,r),n.apply(e,arguments)}return e.on(t,r)},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(r){var i,s,o,a=arguments,u=arguments.length-1,c=new Array(u);for(o=0;o|>([\S\s]*?)<\/yield\s*>|>)/gi,$t=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,Pt=/|>([\S\s]*?)<\/yield\s*>)/gi,Ft={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Ht=vt&&vt<10?lt:pt,zt="div",Bt="svg",Ut={},Vt=Ut[Ze]={},qt=0,Dt=Object.freeze({Tag:W,tag:Q,tag2:J,mount:X,mixin:Y,update:ee,unregister:te,version:"v3.6.1"}),Zt=0,Kt=Object.freeze({getTag:ie,inheritFrom:se,moveChildTag:oe,initChildTag:ae,getImmediateCustomParentTag:ue,unmountAll:ce,getTagName:le,cleanUpData:pe,arrayishAdd:fe,arrayishRemove:he,mountTo:de,makeReplaceVirtual:ge,makeVirtual:me,moveVirtual:ve,selectTags:xe}),Gt=Lt,Wt={tmpl:St,brackets:Ct,styleManager:Nt,vdom:qe,styleNode:Nt.styleNode,dom:yt,check:xt,misc:Tt,tags:Kt},Qt=W,Jt=Q,Xt=J,Yt=X,en=Y,tn=ee,nn=te,rn=At,sn=A({},Dt,{observable:At,settings:Gt,util:Wt}),on=Object.freeze({settings:Gt,util:Wt,Tag:Qt,tag:Jt,tag2:Xt,mount:Yt,mixin:en,update:tn,unregister:nn,version:"v3.6.1",observable:rn,default:sn}),an=function(e){function t(t){var n=e[t];if(n)return n;throw new Error('Parser "'+t+'" not loaded.')}function n(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function r(e,r,i,s){return i=n({pretty:!0,filename:s,doctype:"html"},i),t(e).render(r,i)}var i={};return i.html={jade:function(e,t,n){return console.log('DEPRECATION WARNING: jade was renamed "pug" - The jade parser will be removed in riot@3.0.0!'),r("jade",e,t,n)},pug:function(e,t,n){return r("pug",e,t,n)}},i.css={less:function(e,r,i,s){var o;return i=n({sync:!0,syncImport:!0,filename:s},i),t("less").render(r,i,function(e,t){if(e)throw e;o=t.css}),o}},i.js={es6:function(e,r,i){return t("Babel").transform(e,n({plugins:[["transform-es2015-template-literals",{loose:!0}],"transform-es2015-literals","transform-es2015-function-name","transform-es2015-arrow-functions","transform-es2015-block-scoped-functions",["transform-es2015-classes",{loose:!0}],"transform-es2015-object-super","transform-es2015-shorthand-properties","transform-es2015-duplicate-keys",["transform-es2015-computed-properties",{loose:!0}],["transform-es2015-for-of",{loose:!0}],"transform-es2015-sticky-regex","transform-es2015-unicode-regex","check-es2015-constants",["transform-es2015-spread",{loose:!0}],"transform-es2015-parameters",["transform-es2015-destructuring",{loose:!0}],"transform-es2015-block-scoping","transform-es2015-typeof-symbol",["transform-es2015-modules-commonjs",{allowTopLevelThis:!0}],["transform-regenerator",{async:!1,asyncGenerators:!1}]]},r)).code},buble:function(e,r,i){return r=n({source:i,modules:!1},r),t("buble").transform(e,r).code},coffee:function(e,r){return t("CoffeeScript").compile(e,n({bare:!0},r))},livescript:function(e,r){return t("livescript").compile(e,n({bare:!0,header:!1},r))},typescript:function(e,n){return t("typescript")(e,n)},none:function(e){return e}},i.js.javascript=i.js.none,i.js.coffeescript=i.js.coffee,i._req=function(e){var t=e.split(".");if(2!==t.length)throw new Error("Bad format for parsers._req");var n=i[t[0]][t[1]];if(n)return n;throw new Error('Parser "'+e+'" not found.')},i.utils={extend:n},i}(window||global),un=an.utils.extend,cn=/"[^"\n\\]*(?:\\[\S\s][^"\n\\]*)*"|'[^'\n\\]*(?:\\[\S\s][^'\n\\]*)*'/.source,ln=Ct.R_STRINGS.source,pn=/ *([-\w:\xA0-\xFF]+) ?(?:= ?('[^']*'|"[^"]*"|\S+))?/g,fn=RegExp(//.source+"|"+cn,"g"),hn=/<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^"'\/>]*(?:(?:"[^"]*"|'[^']*'|\/[^>])[^'"\/>]*)*)|\s*)(\/?)>/g,dn=/>[ \t]+<(-?[A-Za-z]|\/[-A-Za-z])/g,gn=["style","src","d","value"],mn=/^(?:input|img|br|wbr|hr|area|base|col|embed|keygen|link|meta|param|source|track)$/,vn=/]*|"[^"]*")*)?>([\S\s]+?)<\/pre\s*>/gi,xn=/^"(?:number|date(?:time)?|time|month|email|color)\b/i,yn=/^\s*import(?!\w)(?:(?:\s|[^\s'"])*)['|"].*\n?/gm,bn=/[ \t]+$/gm,_n=ye(/@#\d/,"x01"),wn=ye(/@#(\d+)/g,"x01"),On="#",jn="⁗",Nn='"',En="'",Cn=/^[ \t]*(((?:async|\*)\s*)?([$_A-Za-z][$\w]*))\s*\([^()]*\)\s*{/m,Sn=RegExp("[{}]|"+Ct.S_QBLOCKS,"g"),An=RegExp(Ct.R_MLCOMMS.source+"|//[^\r\n]*|"+Ct.S_QBLOCK2,"g"),Tn=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+cn,"g"),Ln=/\stype\s*=\s*(?:(['"])(.+?)\1|(\S+))/i,kn="\\s*=\\s*("+ln+"|{[^}]+}|\\S+)",Rn=/\/>\n|^<(?:\/?-?[A-Za-z][-\w\xA0-\xFF]*\s*|-?[A-Za-z][-\w\xA0-\xFF]*\s+[-\w:\xA0-\xFF][\S\s]*?)>\n/,In=RegExp(/^([ \t]*)<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^'"\/>]+(?:(?:@|\/[^>])[^'"\/>]*)*)|\s*)?(?:\/>|>[ \t]*\n?([\S\s]*)^\1<\/\2\s*>|>(.*)<\/\2\s*>)/.source.replace("@",ln),"gim"),Mn=/]*)?>\n?([\S\s]*?)<\/script\s*>/gi,$n=/]*)?>\n?([\S\s]*?)<\/style\s*>/gi,Pn={compile:function(e,t,n){var r,i=[],s={template:{},js:{},style:{}};t||(t={}),t.parserOptions=un(s,t.parserOptions||{}),r=t.exclude?function(e){return t.exclude.indexOf(e)<0}:function(){return 1},n||(n="");var o=Ct.array(t.brackets);return t.template&&(e=Fe(e,n,t.template,t.parserOptions.template)),e=be(e).replace(In,function(e,s,a,u,c,l){var p="",f="",h="",d="",g=[];if(g._bp=o,a=a.toLowerCase(),u=u&&r("attribs")?Oe(_e(we(u,t,g),g),g):"",(c||(c=l))&&/\S/.test(c))if(l)r("html")&&(h=je(l,t,g));else{var m=Le((c=(c=(c=c.replace(RegExp("^"+s,"gm"),"")).replace(Mn,function(e,i,s){if(r("js")){var o=$e(s,t,i,n);o&&(p+=(p?"\n":"")+o)}return""})).replace($n,function(e,i,s){return r("css")&&(f+=(f?" ":"")+Pe(s,t,i,n,a)),""})).replace(bn,""));r("html")&&(h=je(m[0],t,g)),r("js")&&((c=Ee(m[1],t,null,null,n))&&(p+=(p?"\n":"")+c),p=p.replace(yn,function(e){return d+=e.trim()+"\n",""}))}return p=/\S/.test(p)?p.replace(/\n{3,}/g,"\n\n"):"",t.entities?(i.push({tagName:a,html:h,css:f,attribs:u,js:p,imports:d}),""):Te(a,h,f,u,p,d,t)}),t.entities?i:e},compileHTML:function(e,t,n){return Array.isArray(t)?(n=t,t={}):(n||(n=[]),t||(t={})),n._bp=Ct.array(t.brackets),je(be(e),t,n)},compileCSS:function(e,t,n){return t&&"object"==typeof t?(n=t,t=""):n||(n={}),Se(e,n.tagName,t,n)},compileJS:function(e,t,n,r){return"string"==typeof t&&(r=n,n=t,t={}),n&&"object"==typeof n&&(r=n,n=""),r||(r={}),Ee(e,t||{},n,r.parserOptions,r.url)},parsers:an,version:"v3.2.3"},Fn=Pn.parsers,Hn=function(e,r,i){if(typeof e===nt){if(n(r)&&(i=r,r=!1),/^\s*