Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
asset.~act.js.riotjs.js Maven / Gradle / Ivy
/* Riot v3.12.0, @license MIT */
var e,t;e=this,t=function(){"use strict";function s(e,t){return(t||document).querySelector(e)}var t,r,x=[],_={},a="yield",y="__global_mixin",A="riot-",u=["ref","data-ref"],p="data-is",f="if",d="each",n="no-reorder",O="show",N="hide",i="key",b="__riot-events__",c="string",F="object",o="undefined",l="function",h="http://www.w3.org/1999/xlink",m="http://www.w3.org/2000/svg",g=/^xlink:(\w+)/,v=typeof window===o?void 0:window,w=/^on/,E=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g,C={viewbox:"viewBox",preserveaspectratio:"preserveAspectRatio"},j=/^(?:disabled|checked|readonly|required|allowfullscreen|auto(?:focus|play)|compact|controls|default|formnovalidate|hidden|ismap|itemscope|loop|multiple|muted|no(?:resize|shade|validate|wrap)?|open|reversed|seamless|selected|sortable|truespeed|typemustmatch)$/,S=0|(v&&v.document||{}).documentMode;function k(e){return"svg"===e?document.createElementNS(m,e):document.createElement(e)}function T(e,t,r){var n=g.exec(t);n&&n[1]?e.setAttributeNS(h,n[1],r):e.setAttribute(t,r)}var e,L,I={},R=!1;v&&(e=k("style"),L=s("style[type=riot]"),T(e,"type","text/css"),L?(L.id&&(e.id=L.id),L.parentNode.replaceChild(e,L)):document.head.appendChild(e),r=(t=e).styleSheet);var M={styleNode:t,add:function(e,t){I[t]=e,R=!0},inject:function(){if(v&&R){R=!1;var e=Object.keys(I).map(function(e){return I[e]}).join("\n");r?r.cssText=e:t.innerHTML=e}},remove:function(e){delete I[e],R=!0}},P=function(){var u=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],c=u.reduce(function(e,t){return e+t.slice(-1)},""),l=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,p=/[$\w]/;function f(e,t){for(;0<=--t&&/\s/.test(e[t]););return t}return function(e,t){var r=/.*/g,n=r.lastIndex=t++,i=r.exec(e)[0].match(l);if(i){var o=n+i[0].length,s=e[n=f(e,n)];if(n<0||~"[{(,;:?=|&!^~>%*/".indexOf(s))return o;if("."===s)"."===e[n-1]&&(t=o);else if("+"===s||"-"===s)(e[--n]!==s||(n=f(e,n))<0||!p.test(e[n]))&&(t=o);else if(~c.indexOf(s)){for(var a=n+1;0<=--n&&p.test(e[n]););~u.indexOf(e.slice(n+1,a))&&(t=o)}}return t}}(),$=function(e){var t,r,n="g",i=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,o=i.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,s=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),a=/(?=[[\]()*+?.^$|])/g,u=i.source+"|"+/(\/)(?![*\/])/.source,x={"(":RegExp("([()])|"+u,n),"[":RegExp("([[\\]])|"+u,n),"{":RegExp("([{}])|"+u,n)},c="{ }",l=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+u,n),c,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],p=void 0,y=[];function f(e){return e}function d(e,t){return t||(t=y),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?n:"")}function h(e){if(e===c)return l;var t=e.split(" ");if(2!==t.length||s.test(e))throw new Error('Unsupported brackets "'+e+'"');return(t=t.concat(e.replace(a,"\\").split(" ")))[4]=d(1 %s",e.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}.bind({data:t,tmpl:e})):e}n.hasExpr=$.hasExpr,n.loopKeys=$.loopKeys,n.clearCache=function(){r={}},n.errorHandler=null;var a=/\u2057/g,u=/\u2057(\d+)~/g;var l=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,p={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g};function c(o,e,t){if(o=o.replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var r,n=[],i=0;o&&(r=o.match(l))&&!r.index;){var s,a,u=/,|([[{(])|$/g;for(o=RegExp.rightContext,s=r[2]?t[r[2]].slice(1,-1).trim().replace(/\s+/g," "):r[1];a=(r=u.exec(o))[1];)c(a,u);a=o.slice(0,r.index),o=RegExp.rightContext,n[i++]=d(a,1,s)}o=i?1'+t+"","application/xml").documentElement,!0);e.appendChild(n)}else e.innerHTML=t}function Y(e,t){if(e)for(var r;r=E.exec(e);)t(r[1].toLowerCase(),r[2]||r[3]||r[4])}function ee(){return document.createDocumentFragment()}function te(e,t,r){e.insertBefore(t,r.parentNode&&r)}function re(r){return Object.keys(r).reduce(function(e,t){return e+" "+t+": "+r[t]+";"},"")}function ne(e,t,r){if(e){var n,i=t(e,r);if(!1===i)return;for(e=e.firstChild;e;)n=e.nextSibling,ne(e,t,i),e=n}}var ie=Object.freeze({$$:G,$:s,createDOMPlaceholder:K,mkEl:k,setAttr:T,toggleVisibility:W,getAttr:J,remAttr:Q,setInnerHTML:X,walkAttrs:Y,createFrag:ee,safeInsert:te,styleObjectToString:re,walkNodes:ne});function oe(e){return V(e)||null===e}function se(e){return oe(e)||""===e}function ae(e){return typeof e===l}function ue(e){return e&&typeof e===F}function ce(e){var t=e.ownerSVGElement;return!!t||null===t}function le(e){return Array.isArray(e)||e instanceof Array}function pe(e){return j.test(e)}function fe(e){return typeof e===c}var de=Object.freeze({isBlank:se,isFunction:ae,isObject:ue,isSvg:ce,isWritable:B,isArray:le,isBoolAttr:pe,isNil:oe,isString:fe,isUndefined:V});function he(e,t){return-1!==e.indexOf(t)}function me(e,t){for(var r=e?e.length:0,n=0;n|>([\S\s]*?)<\/yield\s*>|>)/gi,Se=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,ke=/ |>([\S\s]*?)<\/yield\s*>)/gi,Te={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Le=S&&S<10?/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,Ie="div",Re="svg";function Me(e,t,r){var n=e&&e.match(/^\s*<([-\w]+)/),i=n&&n[1].toLowerCase(),o=k(r?Re:Ie);return e=function(e,r){if(!Ce.test(e))return e;var n={};return r=r&&r.replace(Se,function(e,t,r){return n[t]=n[t]||r,""}).trim(),e.replace(ke,function(e,t,r){return n[t]||r||""}).replace(je,function(e,t){return r||t||""})}(e,t),Le.test(i)?o=function(e,t,r){var n="o"===r[0],i=n?"select>":"table>";if(e.innerHTML="<"+i+t.trim()+""+i,i=e.firstChild,n)i.selectedIndex=-1;else{var o=Te[r];o&&1===i.childElementCount&&(i=s(o,i))}return i}(o,e,i):X(o,e,r),o}var Pe=/^on/;function $e(e){for(var t=e;t.__.isAnonymous&&t.parent;)t=t.parent;return t}function Fe(e,t,r,n){var i,o=function(e,t,r){var n=this.__.parent,i=this.__.item;if(!i)for(;n&&!i;)i=n.__.item,n=n.__.parent;if(B(r,"currentTarget")&&(r.currentTarget=e),B(r,"target")&&(r.target=r.srcElement),B(r,"which")&&(r.which=r.charCode||r.keyCode),r.item=i,t.call(this,r),Z.autoUpdate&&!r.preventUpdate){var o=$e(this);o.isMounted&&o.update()}}.bind(n,r,t);r[e]=null,i=e.replace(w,""),he(n.__.listeners,r)||n.__.listeners.push(r),r[b]||(r[b]={}),r[b][e]&&r.removeEventListener(i,r[b][e]),r[b][e]=o,r.addEventListener(i,o,!1)}function ze(e,t,r,n){var i=vt(e,t,r),o=t.tagName||Ne(t.root,!0),s=$e(n);return ye(i,"parent",s),i.__.parent=n,Ae(s.tags,o,i),s!==n&&Ae(n.tags,o,i),i}function He(e,t,r,n){if(le(e[t])){var i=e[t].indexOf(r);-1!==i&&e[t].splice(i,1),e[t].length?1!==e[t].length||n||(e[t]=e[t][0]):delete e[t]}else e[t]===r&&delete e[t]}function Ue(e,t){var r,n,i=K(),o=K(),s=ee();for(this.root.insertBefore(i,this.root.firstChild),this.root.appendChild(o),this.__.head=n=i,this.__.tail=o;n;)r=n.nextSibling,s.appendChild(n),this.__.virts.push(n),n=r;t?e.insertBefore(s,t.__.head):e.appendChild(s)}function Ve(e,t){if(t.parentNode){var r=ee();Ue.call(e,r),t.parentNode.replaceChild(r,t)}}function Be(e){if(!this.root||!J(this.root,"virtualized")){var t,r,n=e.dom,i=(t=e.attr)?(t=t.replace(A,""),C[t]&&(t=C[t]),t):null,o=he([O,N],i),s=e.root&&"VIRTUAL"===e.root.tagName,a=this.__.isAnonymous,u=n&&(e.parent||n.parentNode),c="style"===i,l="class"===i;if(e._riot_id)e.__.wasCreated?e.update():(e.mount(),s&&Ve(e,e.root));else{if(e.update)return e.update();var p,f,d,h,m,g,v,x=o&&!a?Ee.call(this):this,y=!se(r=z(e.expr,x)),b=ue(r);if(b&&(l?r=z(JSON.stringify(r),this):c&&(r=re(r))),!e.attr||e.wasParsedOnce&&y&&!1!==r||Q(n,J(n,e.attr)?e.attr:i),e.bool&&(r=!!r&&i),e.isRtag)return f=this,d=r,m=(p=e).tag||p.dom._tag,g=(m?m.__:{}).head,v="VIRTUAL"===p.dom.tagName,void(m&&p.tagName===d?m.update():(m&&(v&&(h=K(),g.parentNode.insertBefore(h,g)),m.unmount(!0)),fe(d)&&(p.impl=_[d],p.impl&&(p.tag=m=ze(p.impl,{root:p.dom,parent:f,tagName:d},p.dom.innerHTML,f),me(p.attrs,function(e){return T(m.root,e.name,e.value)}),p.tagName=d,m.mount(),v&&Ve(m,h||m.root),f.__.onUnmount=function(){var e=m.opts.dataIs;He(m.parent.tags,e,m),He(m.__.parent.tags,e,m),m.unmount()}))));if((!e.wasParsedOnce||e.value!==r)&&(e.value=r,e.wasParsedOnce=!0,!b||l||c||o)){if(y||(r=""),!i)return r+="",void(u&&("TEXTAREA"===(e.parent=u).tagName?(u.value=r,S||(n.nodeValue=r)):n.nodeValue=r));switch(!0){case ae(r):w=i,Pe.test(w)&&Fe(i,r,n,this);break;case o:W(n,i===N?!r:r);break;default:e.bool&&(n[i]=r),"value"===i&&n.value!==r?n.value=r:y&&!1!==r&&T(n,i,r),c&&n.hidden&&W(n,!1)}var w}}}}function qe(e){me(e,Be.bind(this))}function De(e,t,r,n,i){if(!e||!r){var o=e?Ee.call(this):t||this;me(i,function(e){e.expr&&Be.call(o,e.expr),n[be(e.name).replace(A,"")]=e.expr?e.expr.value:e.value})}}function Ze(e){if(!e){var t=Object.keys(_);return t+Ze(t)}return e.filter(function(e){return!/[^-\w]/.test(e)}).reduce(function(e,t){var r=t.trim().toLowerCase();return e+",["+p+'="'+r+'"]'},"")}function Ge(e,t){var r=this,n=r.name,i=r.tmpl,o=r.css,s=r.attrs,a=r.onCreate;return _[n]||(Ke(n,i,o,s,a),_[n].class=this.constructor),xt(e,n,t,this),o&&M.inject(),this}function Ke(e,t,r,n,i){return ae(n)&&(i=n,/^[\w-]+\s?=/.test(r)?(n=r,r=""):n=""),r&&(ae(r)?i=r:M.add(r,e)),e=e.toLowerCase(),_[e]={name:e,tmpl:t,attrs:n,fn:i},e}function We(e,t,r,n,i){return r&&M.add(r,e),_[e]={name:e,tmpl:t,attrs:n,fn:i},e}function Je(e,i,o){var t,r,s=[];if(M.inject(),(ue(i)||ae(i))&&(o=i,i=0),t=fe(e)?(e="*"===e?r=Ze():e+Ze(e.split(/, */)))?G(e):[]:e,"*"===i){if(i=r||Ze(),t.tagName)t=G(i,t);else{var n=[];me(t,function(e){return n.push(G(i,e))}),t=n}i=0}return function e(t){if(t.tagName){var r,n=J(t,p);i&&n!==i&&T(t,p,n=i),(r=xt(t,n||t.tagName.toLowerCase(),ae(o)?o():o))&&s.push(r)}else t.length&&me(t,e)}(t),s}var Qe={},Xe=Qe[y]={},Ye=0;function et(e,t,r){if(ue(e))et("__"+Ye+++"__",e,!0);else{var n=r?Xe:Qe;if(!t){if(V(n[e]))throw new Error("Unregistered mixin: "+e);return n[e]}n[e]=ae(t)?q(t.prototype,n[e]||{})&&t:q(n[e]||{},t)}}function tt(){return me(x,function(e){return e.update()})}function rt(e){return M.remove(e),delete _[e]}var nt=Object.freeze({Tag:Ge,tag:Ke,tag2:We,mount:Je,mixin:et,update:tt,unregister:rt,version:"v3.12.0"});function it(e,t){var r,n=this.parent;n&&(le(r=n.tags[e])?r.splice(t,0,r.splice(r.indexOf(this),1)[0]):Ae(n.tags,e,this))}function ot(e,t){for(var r,n=this.__.head,i=ee();n;)if(r=n.nextSibling,i.appendChild(n),(n=r)===this.__.tail){i.appendChild(n),e.insertBefore(i,t.__.head);break}}function st(e,t,r){var n={};return n[e.key]=t,e.pos&&(n[e.pos]=r),n}function at(e,t){e.splice(t,1),this.unmount(),He(this.parent,this,this.__.tagName,!0)}function ut(A,O,N){var E=typeof J(A,n)!==c||Q(A,n),C=J(A,i),j=!!C&&z.hasExpr(C),S=Ne(A),k=_[S],e=A.parentNode,t=K(),T=Oe(A),L=J(A,f),I=[],R=A.innerHTML,M=!_[S],P="VIRTUAL"===A.tagName,$=[];return Q(A,d),Q(A,i),(N=z.loopKeys(N)).isLoop=!0,L&&Q(A,f),e.insertBefore(t,A),e.removeChild(A),N.update=function(){N.value=z(N.val,O);var g=N.value,v=ee(),x=!le(g)&&!fe(g),y=t.parentNode,b=[],w=x&&!!g;if(y){x&&(g=g?Object.keys(g).map(function(e){return st(N,g[e],e)}):[]);var _=0;me(g,function(e,t){var r=t-_,n=!w&&N.key?st(N,e,t):e;if(!L||z(L,q(D(O),n))){var i,o,s,a,u=(o=e,s=n,a=j,(i=C)?a?z(i,s):o[i]:o),c=!x&&E&&typeof e===F||C,l=$.indexOf(u),p=-1===l,f=!p&&c?l:r,d=I[f],h=r>=$.length,m=c&&p||!c&&!d||!I[r];m?((d=vt(k,{parent:O,isLoop:!0,isAnonymous:M,tagName:S,root:A.cloneNode(M),item:n,index:r},R)).mount(),h?function(e,t){t?Ue.call(this,e):e.appendChild(this.root)}.apply(d,[v||y,P]):function(e,t,r){r?Ue.apply(this,[e,t]):te(e,this.root,t.root)}.apply(d,[y,I[r],P]),h||$.splice(r,0,n),I.splice(r,0,d),T&&Ae(O.tags,S,d,!0)):f!==r&&c&&((C||he(g,$[f]))&&(function(e,t,r){r?ot.apply(this,[e,t]):te(e,this.root,t.root)}.apply(d,[y,I[r],P]),I.splice(r,0,I.splice(f,1)[0]),$.splice(r,0,$.splice(f,1)[0])),N.pos&&(d[N.pos]=r),!T&&d.tags&&function(t){var r=this;me(Object.keys(this.tags),function(e){it.apply(r.tags[e],[e,t])})}.call(d,r)),q(d.__,{item:n,index:r,parent:O}),b[r]=u,m||d.update(n)}else _++}),function(e,t,r){for(var n=t.length,i=e.length-r;i)[\S\s]*?-->/.source+"|"+zt,"g"),Bt=/<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^"'/>]*(?:(?:"[^"]*"|'[^']*'|\/[^>])[^'"/>]*)*)|\s*)(\/?)>/g,qt=/>[ \t]+<(-?[A-Za-z]|\/[-A-Za-z])/g,Dt=["style","src","d","value"],Zt=/^(?:input|img|br|wbr|hr|area|base|col|embed|keygen|link|meta|param|source|track)$/,Gt=/]*|"[^"]*")*)?>([\S\s]+?)<\/pre\s*>/gi,Kt=/^"(?:number|date(?:time)?|time|month|email|color)\b/i,Wt=/^\s*import(?!\w)(?:(?:\s|[^\s'"])*)['|"].*\n?/gm,Jt=/[ \t]+$/gm,Qt=Lt(/@#\d/,"x01"),Xt=Lt(/@#(\d+)/g,"x01"),Yt="#",er="⁗",tr='"',rr="'";function nr(e){var t,r=Vt;for(1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n")),r.lastIndex=0;t=r.exec(e);)"<"===t[0][0]&&(e=RegExp.leftContext+RegExp.rightContext,r.lastIndex=t[3]+1);return e}function ir(e,t){var r,n,i,o=[];for(Ut.lastIndex=0,e=e.replace(/\s+/g," ");r=Ut.exec(e);){var s=r[1].toLowerCase(),a=r[2];a?(a[0]!==tr&&(a=tr+(a[0]===rr?a.slice(1,-1):a)+tr),"type"===s&&Kt.test(a)?n=a:(Qt.test(a)&&("value"===s&&(i=1),-1!==Dt.indexOf(s)&&(s="riot-"+s)),o.push(s+"="+a))):o.push(s)}return n&&(i&&(n=tr+t._bp[0]+rr+n.slice(1,-1)+rr+t._bp[1]+tr),o.push("type="+n)),o.join(" ")}function or(e,t,r){var n=r._bp;if(e&&n[4].test(e)){for(var i,o=t.expr&&(t.parser||t.type)?lr:0,s=$.split(e,0,n),a=1;a"+t:"",r&&(t+=" "+ir(r,i)),"<"+t+n+">"}),!t.whitespace){var r=[];/]/.test(e)&&(e=e.replace(Gt,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(qt,"><$1")),sr(e,i).replace(Jt,"")}var ur=/^[ \t]*(((?:async|\*)\s*)?([$_A-Za-z][$\w]*))\s*\([^()]*\)\s*{/m;function cr(e){var t,r,n,i,o,s,a=[],u=RegExp,c=function(e,t){for(var r,n,i,o,s,a,u=new RegExp(Mt,"g"),c=$.skipRegex,l=0|t,p=[[]],f=[],d=u,h=d.lastIndex=l;a=d.exec(e);){if(o=a.index,s=d.lastIndex,n="",i=a[1]){if("{"===i)f.push("}");else if("}"===i){if(f.pop()!==i)throw new Error("Unexpected '}'");"`"===f[f.length-1]&&(i=f.pop())}else"/"===i&&o+1<(s=c(e,o))&&(n=e.slice(o,s));"`"===i&&(s=$t(e,s,f),n=e.slice(o,s),d=f.length?r||(r=new RegExp(Pt,"g")):u)}else"/"===(n=a[0])[0]?(n="*"===n[1]?" ":"",e=e.slice(l,o)+n+e.slice(s),s=o+n.length,n=""):2===n.length&&(n="");n&&(p[0].push(e.slice(h,o)),p.push(n),h=s),d.lastIndex=s}return p[0].push(e.slice(h)),p}(e);for(e=c.shift().join("<%>");t=e.match(ur);)a.push(u.leftContext),n=l(e=u.rightContext),i=t[1],o=t[2]||"",s=t[3],s=(r=!/^(?:if|while|for|switch|catch|function)$/.test(s))?t[0].replace(i,"this."+s+" ="+o+" function"):t[0],a.push(s,e.slice(0,n)),e=e.slice(n),r&&!/^\s*.\s*bind\b/.test(e)&&a.push(".bind(this)");return a.length&&(e=a.join("")+e),c.length&&(e=e.replace(/<%>/g,function(){return c.shift()})),e;function l(e){for(var t=/[{}]/g,r=1;r&&t.exec(e);)"{"===e[t.lastIndex-1]?++r:--r;return r?e.length:t.lastIndex}}function lr(e,t,r,n,i){return/\S/.test(e)?(r||(r=t.type),(t.parser||r&&It._req("js."+r,!0)||cr)(e,n,i).replace(/\r\n?/g,"\n").replace(Jt,"")):""}var pr=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+zt,"g");function fr(e,t,r,n){var i,o;(n=n||{},r)&&("css"!==r&&(e=It._req("css."+r,!0)(t,e,n.parserOpts||{},n.url)));return e=e.replace($.R_MLCOMMS,"").replace(/\s+/g," ").trim(),t&&(i=t,o=":scope",e=e.replace(pr,function(e,t,r){return r?(r=r.replace(/[^,]+/g,function(e){var t=e.trim();return 0===t.indexOf(i)?e:t&&"from"!==t&&"to"!==t&&"%"!==t.slice(-1)?t=t.indexOf(o)<0?i+" "+t+',[data-is="'+i+'"] '+t:t.replace(o,i)+","+t.replace(o,'[data-is="'+i+'"]'):e}),t?t+" "+r:r):e})),e}var dr=/\stype\s*=\s*(?:(['"])(.+?)\1|(\S+))/i,hr="\\s*=\\s*("+Ht+"|{[^}]+}|\\S+)",mr=/\/>\n|^<(?:\/?-?[A-Za-z][-\w\xA0-\xFF]*\s*|-?[A-Za-z][-\w\xA0-\xFF]*\s+[-\w:\xA0-\xFF][\S\s]*?)>\n/;function gr(e,t){return e?(e=rr+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+rr,t&&-1!==e.indexOf("\n")?e.replace(/\n/g,"\\n"):e):"''"}function vr(e){if(e){var t=e.match(dr);if(t=t&&(t[2]||t[3]))return t.replace("text/","")}return""}function xr(e,t){if(e){var r=e.match(RegExp("\\s"+t+hr,"i"));if(r=r&&r[1])return/^['"]/.test(r)?r.slice(1,-1):r}return""}function yr(e){var t=xr(e,"options").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'");return t?JSON.parse(t):null}var br=RegExp(/^([ \t]*)<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^'"/>]+(?:(?:@|\/[^>])[^'"/>]*)*)|\s*)?(?:\/>|>[ \t]*\n?([\S\s]*)^\1<\/\2\s*>|>(.*)<\/\2\s*>)/.source.replace("@",Ht),"gim"),wr=/