)([\s\S]*?)(-1){return minify(e,r)}}return e}var b=c("html,head,body,colgroup,tbody");var E=c("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th");var y=c("meta,link,script,style,template,noscript");var w=c("dt,dd");var A=c("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul");var _=c("a,audio,del,ins,map,noscript,video");var S=c("rb,rt,rtc,rp");var O=c("rb,rtc,rp");var R=c("option,optgroup");var T=c("tbody,tfoot");var C=c("thead,tbody,tfoot");var P=c("td,th");var L=c("html,head,body");var x=c("html,body");var I=c("head,colgroup,caption");var D=c("dt,thead");var U=c("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rb,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp");function canRemoveParentTag(e,r){switch(e){case"html":case"head":return true;case"body":return!y(r);case"colgroup":return r==="col";case"tbody":return r==="tr"}return false}function isStartTagMandatory(e,r){switch(r){case"colgroup":return e==="colgroup";case"tbody":return C(e)}return false}function canRemovePrecedingTag(e,r){switch(e){case"html":case"head":case"body":case"colgroup":case"caption":return true;case"li":case"optgroup":case"tr":return r===e;case"dt":case"dd":return w(r);case"p":return A(r);case"rb":case"rt":case"rp":return S(r);case"rtc":return O(r);case"option":return R(r);case"thead":case"tbody":return T(r);case"tfoot":return r==="tbody";case"td":case"th":return P(r)}return false}var F=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse("+"?:down|up|over|move|out)|key(?:press|down|up)))$");function canDeleteEmptyAttribute(e,r,t,n){var o=!t||/^\s*$/.test(t);if(!o){return false}if(typeof n.removeEmptyAttributes==="function"){return n.removeEmptyAttributes(r,e)}return e==="input"&&r==="value"||F.test(r)}function hasAttrName(e,r){for(var t=r.length-1;t>=0;t--){if(r[t].name===e){return true}}return false}function canRemoveElement(e,r){switch(e){case"textarea":return false;case"audio":case"script":case"video":if(hasAttrName("src",r)){return false}break;case"iframe":if(hasAttrName("src",r)||hasAttrName("srcdoc",r)){return false}break;case"object":if(hasAttrName("data",r)){return false}break;case"applet":if(hasAttrName("code",r)){return false}break}return true}function canCollapseWhitespace(e){return!/^(?:script|style|pre|textarea)$/.test(e)}function canTrimWhitespace(e){return!/^(?:pre|textarea)$/.test(e)}function normalizeAttr(e,r,t,n){var i=n.name(e.name),s=e.value;if(n.decodeEntities&&s){s=o(s,{isAttributeValue:true})}if(n.removeRedundantAttributes&&isAttributeRedundant(t,i,s,r)||n.removeScriptTypeAttributes&&t==="script"&&i==="type"&&isScriptTypeAttribute(s)||n.removeStyleLinkTypeAttributes&&(t==="style"||t==="link")&&i==="type"&&isStyleLinkTypeAttribute(s)){return}if(s){s=cleanAttributeValue(t,i,s,n,r)}if(n.removeEmptyAttributes&&canDeleteEmptyAttribute(t,i,s,n)){return}if(n.decodeEntities&&s){s=s.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1")}return{attr:e,name:i,value:s}}function buildAttr(e,r,t,n,o){var i=e.name,s=e.value,a=e.attr,u=a.quote,l,c;if(typeof s!=="undefined"&&(!t.removeAttributeQuotes||~s.indexOf(o)||!canRemoveAttributeQuotes(s))){if(!t.preventAttributesEscaping){if(typeof t.quoteCharacter==="undefined"){var f=(s.match(/'/g)||[]).length;var p=(s.match(/"/g)||[]).length;u=f/,/<\?[\s\S]*?\?>/],includeAutoGeneratedTags:true,log:identity,minifyCSS:identity,minifyJS:identity,minifyURLs:identity};Object.keys(e).forEach(function(t){var o=e[t];if(t==="caseSensitive"){if(o){r.name=identity}}else if(t==="log"){if(typeof o==="function"){r.log=o}}else if(t==="minifyCSS"&&typeof o!=="function"){if(!o){return}if(typeof o!=="object"){o={}}r.minifyCSS=function(e,t){e=e.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(e,t,n,o,i){return t+n+r.minifyURLs(o)+n+i});var i=new n(o).minify(wrapCSS(e,t));if(i.errors.length>0){i.errors.forEach(r.log);return e}return unwrapCSS(i.styles,t)}}else if(t==="minifyJS"&&typeof o!=="function"){if(!o){return}if(typeof o!=="object"){o={}}(o.parse||(o.parse={})).bare_returns=false;r.minifyJS=function(e,t){var n=e.match(/^\s*\s*$/,""):e;o.parse.bare_returns=t;var s=u.minify(i,o);if(s.error){r.log(s.error);return e}return s.code.replace(/;$/,"")}}else if(t==="minifyURLs"&&typeof o!=="function"){if(!o){return}if(typeof o==="string"){o={site:o}}else if(typeof o!=="object"){o={}}r.minifyURLs=function(e){try{return s.relate(e,o)}catch(t){r.log(t);return e}}}else{r[t]=o}});return r}function uniqueId(e){var r;do{r=Math.random().toString(36).replace(/^0\.[0-9]*/,"")}while(~e.indexOf(r));return r}var B=c("script,style");function createSortFns(e,r,t,n){var o=r.sortAttributes&&Object.create(null);var s=r.sortClassName&&new a;function attrNames(e){return e.map(function(e){return r.name(e.name)})}function shouldSkipUID(e,r){return!r||e.indexOf(r)===-1}function shouldSkipUIDs(e){return shouldSkipUID(e,t)&&shouldSkipUID(e,n)}function scan(e){var t,n;new i(e,{start:function(e,i){if(o){if(!o[e]){o[e]=new a}o[e].add(attrNames(i).filter(shouldSkipUIDs))}for(var u=0,l=i.length;u-1){scan(e)}}})}var u=r.log;r.log=identity;r.sortAttributes=false;r.sortClassName=false;scan(minify(e,r));r.log=u;if(o){var l=Object.create(null);for(var c in o){l[c]=o[c].createSorter()}r.sortAttributes=function(e,r){var t=l[e];if(t){var n=Object.create(null);var o=attrNames(r);o.forEach(function(e,t){(n[e]||(n[e]=[])).push(r[t])});t.sort(o).forEach(function(e,t){r[t]=n[e].shift()})}}}if(s){var f=s.createSorter();r.sortClassName=function(e){return f.sort(e.split(/[ \n\f\r]+/)).join(" ")}}}function minify(e,r,t){if(r.collapseWhitespace){e=collapseWhitespace(e,r,true,true)}var s=[],a,u="",l,c="",d=[],h=[],m=[],g="",v="",y=[],w=[],A,S,O;e=e.replace(/([\s\S]*?)/g,function(t,n){if(!A){A=uniqueId(e);var o=new RegExp("^"+A+"([0-9]+)$");if(r.ignoreCustomComments){r.ignoreCustomComments=r.ignoreCustomComments.slice()}else{r.ignoreCustomComments=[]}r.ignoreCustomComments.push(o)}var i="\x3c!--"+A+y.length+"--\x3e";y.push(n);return i});var R=r.ignoreCustomFragments.map(function(e){return e.source});if(R.length){var T=new RegExp("\\s*(?:"+R.join("|")+")+\\s*","g");e=e.replace(T,function(t){if(!S){S=uniqueId(e);O=new RegExp("(\\s*)"+S+"([0-9]+)"+S+"(\\s*)","g");if(r.minifyCSS){r.minifyCSS=function(e){return function(r,t){r=r.replace(O,function(e,r,t){var n=w[+t];return n[1]+S+t+S+n[2]});var o=[];(new n).minify(wrapCSS(r,t)).warnings.forEach(function(e){var t=O.exec(e);if(t){var n=S+t[2]+S;r=r.replace(n,ignoreCSS(n));o.push(n)}});r=e(r,t);o.forEach(function(e){r=r.replace(ignoreCSS(e),e)});return r}}(r.minifyCSS)}if(r.minifyJS){r.minifyJS=function(e){return function(r,t){return e(r.replace(O,function(e,r,t){var n=w[+t];return n[1]+S+t+S+n[2]}),t)}}(r.minifyJS)}}var o=S+w.length+S;w.push(/^(\s*)[\s\S]*?(\s*)$/.exec(t));return"\t"+o+"\t"})}if(r.sortAttributes&&typeof r.sortAttributes!=="function"||r.sortClassName&&typeof r.sortClassName!=="function"){createSortFns(e,r,A,S)}function _canCollapseWhitespace(e,t){return r.canCollapseWhitespace(e,t,canCollapseWhitespace)}function _canTrimWhitespace(e,t){return r.canTrimWhitespace(e,t,canTrimWhitespace)}function removeStartTag(){var e=s.length-1;while(e>0&&!/^<[^/!]/.test(s[e])){e--}s.length=Math.max(0,e)}function removeEndTag(){var e=s.length-1;while(e>0&&!/^<\//.test(s[e])){e--}s.length=Math.max(0,e)}function trimTrailingWhitespace(e,t){for(var n=null;e>=0&&_canTrimWhitespace(n);e--){var o=s[e];var i=o.match(/^<\/([\w:-]+)>$/);if(i){n=i[1]}else if(/>$/.test(o)||(s[e]=collapseWhitespaceSmart(o,null,t,r))){break}}}function squashTrailingWhitespace(e){var r=s.length-1;if(s.length>1){var t=s[s.length-1];if(/^(?:=0;){var R=normalizeAttr(t[_],t,e,r);if(R){A.unshift(buildAttr(R,w,r,O,S));O=false}}if(A.length>0){s.push(" ");s.push.apply(s,A)}else if(f&&b(e)){g=e}s.push(s.pop()+(w?"/":"")+">");if(i&&!r.includeAutoGeneratedTags){removeStartTag();g=""}},end:function(e,t,n){if(e.toLowerCase()==="svg"){r=Object.getPrototypeOf(r)}e=r.name(e);if(r.collapseWhitespace){if(h.length){if(e===h[h.length-1]){h.pop()}}else{squashTrailingWhitespace("/"+e)}if(m.length&&e===m[m.length-1]){m.pop()}}var o=false;if(e===c){c="";o=!l}if(r.removeOptionalTags){if(o&&L(g)){removeStartTag()}g="";if(U(e)&&v&&!D(v)&&(v!=="p"||!_(e))){removeEndTag()}v=E(e)?e:""}if(r.removeEmptyElements&&o&&canRemoveElement(e,t)){removeStartTag();g="";v=""}else{if(n&&!r.includeAutoGeneratedTags){v=""}else{s.push(""+e+">")}a="/"+e;if(!f(e)){u=""}else if(o){u+="|"}}},chars:function(e,t,n){t=t===""?"comment":t;n=n===""?"comment":n;if(r.decodeEntities&&e&&!B(c)){e=o(e)}if(r.collapseWhitespace){if(!h.length){if(t==="comment"){var i=s[s.length-1];if(i.indexOf(A)===-1){if(!i){t=a}if(s.length>1&&(!i||!r.conservativeCollapse&&/ $/.test(u))){var f=s.length-2;s[f]=s[f].replace(/\s+$/,function(r){e=r+e;return""})}}}if(t){if(t==="/nobr"||t==="wbr"){if(/^\s/.test(e)){var b=s.length-1;while(b>0&&s[b].lastIndexOf("<"+t)!==0){b--}trimTrailingWhitespace(b-1,"br")}}else if(p(t.charAt(0)==="/"?t.slice(1):t)){e=collapseWhitespace(e,r,/(?:^|\s)$/.test(u))}}if(t||n){e=collapseWhitespaceSmart(e,t,n,r)}else{e=collapseWhitespace(e,r,true,true)}if(!e&&/\s$/.test(u)&&t&&t.charAt(0)==="/"){trimTrailingWhitespace(s.length-1,n)}}if(!m.length&&n!=="html"&&!(t&&n)){e=collapseWhitespace(e,r,false,false,true)}}if(r.processScripts&&B(c)){e=processScript(e,r,d)}if(isExecutableScript(c,d)){e=r.minifyJS(e)}if(isStyleSheet(c,d)){e=r.minifyCSS(e)}if(r.removeOptionalTags&&e){if(g==="html"||g==="body"&&!/^\s/.test(e)){removeStartTag()}g="";if(x(v)||I(v)&&!/^\s/.test(e)){removeEndTag()}v=""}a=/^\s*$/.test(e)?t:"comment";if(r.decodeEntities&&e&&!B(c)){e=e.replace(/&((?:Iacute|aacute|uacute|plusmn|Otilde|otilde|agrave|Agrave|Yacute|yacute|Oslash|oslash|atilde|Atilde|brvbar|ccedil|Ccedil|Ograve|curren|divide|eacute|Eacute|ograve|Oacute|egrave|Egrave|Ugrave|frac12|frac14|frac34|ugrave|oacute|iacute|Ntilde|ntilde|Uacute|middot|igrave|Igrave|iquest|Aacute|cedil|laquo|micro|iexcl|Icirc|icirc|acirc|Ucirc|Ecirc|ocirc|Ocirc|ecirc|ucirc|Aring|aring|AElig|aelig|acute|pound|raquo|Acirc|times|THORN|szlig|thorn|COPY|auml|ordf|ordm|Uuml|macr|uuml|Auml|ouml|Ouml|para|nbsp|euml|quot|QUOT|Euml|yuml|cent|sect|copy|sup1|sup2|sup3|iuml|Iuml|ETH|shy|reg|not|yen|amp|AMP|REG|uml|eth|deg|gt|GT|LT|lt)(?!;)|(?:#?[0-9a-zA-Z]+;))/g,"&$1").replace(/