surprise
2023-12-29 18377dc5d61caf3a6a0835e17015ac2601f8709d
1
2
3
4
5
6
7
8
(()=>{var lt=(F=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(F,{get:(V,N)=>(typeof require<"u"?require:V)[N]}):F)(function(F){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+F+'" is not supported')});/*! rasterizeHTML.js - v1.3.0 - 2018-03-18
* http://www.github.com/cburgmer/rasterizeHTML.js
* Copyright (c) 2018 Christoph Burgmer; Licensed MIT */var pt={};(function(F){pt.rasterizeHTML=F()})(function(){return function F(V,N,w){function A(p,n){if(!N[p]){if(!V[p]){var h=typeof lt=="function"&&lt;if(!n&&h)return h(p,!0);if(x)return x(p,!0);var b=new Error("Cannot find module '"+p+"'");throw b.code="MODULE_NOT_FOUND",b}var i=N[p]={exports:{}};V[p][0].call(i.exports,function(C){var d=V[p][1][C];return A(d||C)},i,i.exports,F,V,N,w)}return N[p].exports}for(var x=typeof lt=="function"&&lt,g=0;g<w.length;g++)A(w[g]);return A}({1:[function(F,V,N){var w,A;A=function(x,g,p,n){var h=function(m){"use strict";var f={},E=[];return f.joinUrl=function(u,l){return u?m.resolve(u,l):l},f.getConstantUniqueIdFor=function(u){return E.indexOf(u)<0&&E.push(u),E.indexOf(u)},f.clone=function(u){var l,a={};for(l in u)u.hasOwnProperty(l)&&(a[l]=u[l]);return a},f.parseOptionalParameters=function(u){var l,a,e={canvas:null,options:{}};return u[0]==null||(l=u[0],typeof(a=l)=="object"&&a!==null&&Object.prototype.toString.apply(l).match(/\[object (Canvas|HTMLCanvasElement)\]/i))?(e.canvas=u[0]||null,e.options=f.clone(u[1])):e.options=f.clone(u[0]),e},f}(x),b=function(m){"use strict";var f={},E=function(u,l,a){var e=u[l];return u[l]=function(){var c=Array.prototype.slice.call(arguments);return a.apply(this,[c,e])},e};return f.baseUrlRespectingXhr=function(u,l){return function(){var a=new u;return E(a,"open",function(e,c){var t=e.shift(),o=e.shift(),r=m.joinUrl(l,o);return c.apply(this,[t,r].concat(e))}),a}},f.finishNotifyingXhr=function(u){var l,a=0,e=0,c=!1,t=new Promise(function(r){l=function(){a-e<=0&&c&&r({totalCount:a})}}),o=function(){var r=new u;return E(r,"send",function(y,s){return a+=1,s.apply(this,arguments)}),r.addEventListener("load",function(){e+=1,l()}),r};return o.waitForRequestsToFinish=function(){return c=!0,l(),t},o},f}(h),i=function(m){"use strict";var f={},E=function(l){return Array.prototype.slice.call(l)},u={active:!0,hover:!0,focus:!1,target:!1};return f.fakeUserAction=function(l,a,e){var c=l.querySelector(a),t=":"+e,o="rasterizehtml"+e;c&&(u[e]?m.addClassNameRecursively(c,o):m.addClassName(c,o),m.rewriteCssSelectorWith(l,t,"."+o))},f.persistInputValues=function(l){var a=l.querySelectorAll("input"),e=l.querySelectorAll("textarea"),c=function(t){return t.type==="checkbox"||t.type==="radio"};E(a).filter(c).forEach(function(t){t.checked?t.setAttribute("checked",""):t.removeAttribute("checked")}),E(a).filter(function(t){return!c(t)}).forEach(function(t){t.setAttribute("value",t.value)}),E(e).forEach(function(t){t.textContent=t.value})},f.rewriteTagNameSelectorsToLowerCase=function(l){m.lowercaseCssTypeSelectors(l,m.findHtmlOnlyNodeNames(l))},f}(function(){"use strict";var m={},f=function(a){return Array.prototype.slice.call(a)};m.addClassName=function(a,e){a.className+=" "+e},m.addClassNameRecursively=function(a,e){m.addClassName(a,e),a.parentNode!==a.ownerDocument&&m.addClassNameRecursively(a.parentNode,e)};var E=function(a,e){var c,t,o,r,y=a.cssText.replace(/^[^\{]+/,"");t=e+" "+y,o=(c=a).parentStyleSheet,r=f(o.cssRules).indexOf(c),o.insertRule(t,r+1),o.deleteRule(r)},u=function(a){var e;a.textContent=(e=a.sheet.cssRules,f(e).reduce(function(c,t){return c+t.cssText},""))},l=function(a,e,c){var t="((?:^|[^.#:\\w])|(?=\\W))("+e.join("|")+")(?=\\W|$)";f(a.querySelectorAll("style")).forEach(function(o){var r,y,s;o.sheet===void 0&&(r=o,y=document.implementation.createHTMLDocument(""),(s=document.createElement("style")).textContent=r.textContent,y.body.appendChild(s),r.sheet=s.sheet);var R=f(o.sheet.cssRules).filter(function(S){return S.selectorText&&new RegExp(t,"i").test(S.selectorText)});R.length&&(R.forEach(function(S){var T=S.selectorText.replace(new RegExp(t,"gi"),function(P,O,D){return O+c(D)});T!==S.selectorText&&E(S,T)}),u(o))})};return m.rewriteCssSelectorWith=function(a,e,c){l(a,[e],function(){return c})},m.lowercaseCssTypeSelectors=function(a,e){l(a,e,function(c){return c.toLowerCase()})},m.findHtmlOnlyNodeNames=function(a){for(var e,c=a.ownerDocument.createTreeWalker(a,NodeFilter.SHOW_ELEMENT),t={},o={};e=c.currentNode.tagName.toLowerCase(),c.currentNode.namespaceURI==="http://www.w3.org/1999/xhtml"?t[e]=!0:o[e]=!0,c.nextNode(););return Object.keys(t).filter(function(r){return!o[r]})},m}()),C=function(m,f,E,u){"use strict";var l={};l.executeJavascript=function(o,r){return new Promise(function(y){var s,R,S,T,P,O=(s=u.document,R="iframe",S=r.width,T=r.height,(P=s.createElement(R)).style.visibility="hidden",P.style.width=S+"px",P.style.height=T+"px",P.style.position="absolute",P.style.top=-1e4-T+"px",P.style.left=-1e4-S+"px",s.getElementsByTagName("body")[0].appendChild(P),P),D=o.outerHTML,H=[],z=r.executeJsTimeout||0,j=function(){var U=O.contentDocument;u.document.getElementsByTagName("body")[0].removeChild(O),y({document:U,errors:H})},L=O.contentWindow.XMLHttpRequest,v=f.finishNotifyingXhr(L),M=f.baseUrlRespectingXhr(v,r.baseUrl);O.onload=function(){var U;(U=z,0<U?new Promise(function($){setTimeout($,U)}):Promise.resolve()).then(v.waitForRequestsToFinish).then(j)},O.contentDocument.open(),O.contentWindow.XMLHttpRequest=M,O.contentWindow.onerror=function(U){H.push({resourceType:"scriptExecution",msg:U})},O.contentDocument.write("<!DOCTYPE html>"),O.contentDocument.write(D),O.contentDocument.close()})};var a=function(o,r,y,s,R){var S,T,P,O,D,H,z,j,L,v,M,U=Math.max(o.scrollWidth,o.clientWidth),$=Math.max(o.scrollHeight,o.clientHeight);return r?(S=(H=function(k,W){var X=k.querySelector(W);if(X)return X;if(k.ownerDocument.querySelector(W)===k)return k;throw{message:"Clipping selector not found"}}(o,r).getBoundingClientRect()).top,T=H.left,P=H.width,O=H.height):(T=S=0,P=U,O=$),j={width:P,height:O},L=y,v=s,M=R,z={width:Math.max(j.width*M,L),height:Math.max(j.height*M,v)},D=u.getComputedStyle(o.ownerDocument.documentElement).fontSize,{left:T,top:S,width:z.width,height:z.height,viewportWidth:U,viewportHeight:$,rootFontSize:D}};l.calculateDocumentContentSize=function(o,r){return new Promise(function(y,s){var R,S,T,P,O,D,H,z,j,L,v,M,U=r.zoom||1;S=r.width,T=r.height,P=U,j=Math.floor(S/P),L=Math.floor(T/P),O=u.document,D=j,H=L,(z=O.createElement("iframe")).style.width=D+"px",z.style.height=H+"px",z.style.visibility="hidden",z.style.position="absolute",z.style.top=-1e4-H+"px",z.style.left=-1e4-D+"px",z.style.borderWidth=0,z.sandbox="allow-same-origin",z.scrolling="no",R=z,u.document.getElementsByTagName("body")[0].appendChild(R),R.onload=function(){var $,k,W,X=R.contentDocument;try{$=a((k=X,W=o.tagName,k.querySelector(W)),r.clip,r.width,r.height,U),y($)}catch(J){s(J)}finally{u.document.getElementsByTagName("body")[0].removeChild(R)}},R.contentDocument.open(),R.contentDocument.write("<!DOCTYPE html>"),R.contentDocument.write((M=(v=o).tagName.toLowerCase())==="html"||M==="body"?v.outerHTML:'<body style="margin: 0;">'+v.outerHTML+"</body>"),R.contentDocument.close()})},l.parseHtmlFragment=function(o){var r=u.document.implementation.createHTMLDocument("");r.documentElement.innerHTML=o;var y=r.querySelector("body").firstChild;if(!y)throw"Invalid source";return y},l.parseHTML=function(o){var r=u.document.implementation.createHTMLDocument("");return r.documentElement.innerHTML=o,function(y,s){var R,S,T,P,O=/<html((?:\s+[^>]*)?)>/im.exec(s),D=u.document.implementation.createHTMLDocument("");if(O)for(R="<div"+O[1]+"></div>",D.documentElement.innerHTML=R,T=D.querySelector("div"),S=0;S<T.attributes.length;S++)P=T.attributes[S],y.documentElement.setAttribute(P.name,P.value)}(r,o),r};var e=function(o){try{return E.failOnParseError(o)}catch(r){throw{message:"Invalid source",originalError:r}}};l.validateXHTML=function(o){var r=new DOMParser().parseFromString(o,"application/xml");e(r)};var c=null,t=function(o,r){return new Promise(function(y,s){var R,S,T=new window.XMLHttpRequest,P=m.joinUrl(r.baseUrl,o),O=(R=P,(S=r.cache)==="none"||S==="repeated"?(c!==null&&S==="repeated"||(c=Date.now()),R+"?_="+c):R),D=function(H){s({message:"Unable to load page",originalError:H})};T.addEventListener("load",function(){T.status===200||T.status===0?y(T.responseXML):D(T.statusText)},!1),T.addEventListener("error",function(H){D(H)},!1);try{T.open("GET",O,!0),T.responseType="document",T.send(null)}catch(H){D(H)}})};return l.loadDocument=function(o,r){return t(o,r).then(function(y){return e(y)})},l}(h,b,p,window),d=function(m){"use strict";var f,E={},u=function(o,r){return r?URL.createObjectURL(new Blob([o],{type:"image/svg+xml"})):"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)},l=function(o){o instanceof Blob&&URL.revokeObjectURL(o)},a='<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><foreignObject></foreignObject></svg>',e=function(o){return new Promise(function(r,y){var s=document.createElement("canvas"),R=new Image;R.onload=function(){var S=s.getContext("2d");try{S.drawImage(R,0,0),s.toDataURL("image/png"),r(!0)}catch{r(!1)}},R.onerror=y,R.src=o})},c=function(){return new Promise(function(o,r){var y;(function(){if(m.Blob)try{return new Blob(["<b></b>"],{type:"text/xml"}),!0}catch{}return!1})()&&m.URL?(y=u(a,!0),e(y).then(function(s){return l(y),!s&&e(u(a,!1)).then(function(R){return R})},function(){return!1})).then(function(s){o(!s)},function(){r()}):o(!1)})},t=function(o){return(f===void 0&&(f=c()),f).then(function(r){return u(o,r)})};return E.renderSvg=function(o){return new Promise(function(r,y){var s,R,S=function(){s&&l(s)};(R=new Image).onload=function(){R.onload=null,R.onerror=null,S(),r(R)},R.onerror=function(){S(),y()},t(o).then(function(T){s=T,R.src=s},y)})},E}(window);return function(m,f,E){"use strict";var u={};u.drawDocument=function(){var a,e,c,t,o,r,y,s=arguments[0],R=Array.prototype.slice.call(arguments,1),S=m.parseOptionalParameters(R),T=s.documentElement?s.documentElement:s;return E.rasterize(T,S.canvas,(c=(a=S).canvas,t=a.options,o=c?c.width:300,r=c?c.height:200,y={width:t.width!==void 0?t.width:o,height:t.height!==void 0?t.height:r},(e=m.clone(a.options)).width=y.width,e.height=y.height,e))},u.drawHTML=function(){var a,e,c,t,o=arguments[0],r=Array.prototype.slice.call(arguments,1),y=m.parseOptionalParameters(r);return a=o,e=y.canvas,c=y.options,t=f.parseHTML(a),u.drawDocument(t,e,c)};var l=function(a,e,c){return f.loadDocument(a,c).then(function(t){var o=function(r,y,s){var R=document.implementation.createHTMLDocument("");R.replaceChild(r.documentElement,R.documentElement);var S=s?m.clone(s):{};return s.baseUrl||(S.baseUrl=y),{document:R,options:S}}(t,a,c);return u.drawDocument(o.document,e,o.options)})};return u.drawURL=function(){var a=arguments[0],e=Array.prototype.slice.call(arguments,1),c=m.parseOptionalParameters(e);return l(a,c.canvas,c.options)},u}(h,C,function(m,f,E,u,l,a){"use strict";var e={},c=function(r){return{message:"Error rendering page",originalError:r}},t=function(r){return l.renderSvg(r).then(function(y){return{image:y,svg:r}},function(y){throw c(y)})},o=function(r,y,s){return u.drawDocumentAsSvg(r,s).then(t).then(function(R){return y&&function(S,T){try{T.getContext("2d").drawImage(S,0,0)}catch(P){throw c(P)}}(R.image,y),R})};return e.rasterize=function(r,y,s){var R;return(R=m.clone(s)).inlineScripts=s.executeJs===!0,a.inlineReferences(r,R).then(function(S){return s.executeJs?(T=r,P=s,f.executeJavascript(T,P).then(function(O){var D=O.document;return E.persistInputValues(D),{document:D,errors:O.errors}})).then(function(O){return{element:O.document.documentElement,errors:S.concat(O.errors)}}):{element:r,errors:S};var T,P}).then(function(S){return o(S.element,y,s).then(function(T){return{image:T.image,svg:T.svg,errors:S.errors}})})},e}(h,C,i,function(m,f,E,u){"use strict";var l={},a=function(c){var t=Object.keys(c);return t.length?" "+t.map(function(o){return o+'="'+c[o]+'"'}).join(" "):""},e=function(c,t,o){var r=u.serializeToString(c);f.validateXHTML(r);var y,s,R,S,T,P,O,D,H=(y=t,s=Math.round(y.viewportWidth),R=Math.round(y.viewportHeight),{x:-y.left,y:-y.top,width:s,height:R});return T=(S=H).style||"",S.style=T+"float: left;",H.externalResourcesRequired=!0,'<svg xmlns="http://www.w3.org/2000/svg"'+a((O=o||1,D={width:(P=t).width,height:P.height,"font-size":P.rootFontSize},O!==1&&(D.style="transform:scale("+O+"); transform-origin: 0 0;"),D))+'><style scoped="">html::-webkit-scrollbar { display: none; }</style><foreignObject'+a(H)+">"+r+"</foreignObject></svg>"};return l.getSvgForDocument=function(c,t,o){return E.rewriteTagNameSelectorsToLowerCase(c),e(c,t,o)},l.drawDocumentAsSvg=function(c,t){return["hover","active","focus","target"].forEach(function(o){t[o]&&E.fakeUserAction(c,t[o],o)}),f.calculateDocumentContentSize(c,t).then(function(o){return l.getSvgForDocument(c,o,t.zoom)})},l}(0,C,i,g),d,n))},(w=this)===void 0&&window!==void 0&&(w=window),typeof V=="object"&&V.exports?V.exports=A(F("url"),F("xmlserializer"),F("sane-domparser-error"),F("inlineresources")):w.rasterizeHTML=A(w.url,w.xmlserializer,w.sanedomparsererror,w.inlineresources)},{inlineresources:5,"sane-domparser-error":14,url:15,xmlserializer:17}],2:[function(F,V,N){(function(w){(function(A){typeof N=="object"&&V!==void 0?V.exports=A():(typeof window<"u"?window:w!==void 0?w:typeof self<"u"?self:this).cssFontFaceSrc=A()})(function(){return function A(x,g,p){function n(i,C){if(!g[i]){if(!x[i]){var d=typeof F=="function"&&F;if(!C&&d)return d(i,!0);if(h)return h(i,!0);var m=new Error("Cannot find module '"+i+"'");throw m.code="MODULE_NOT_FOUND",m}var f=g[i]={exports:{}};x[i][0].call(f.exports,function(E){var u=x[i][1][E];return n(u||E)},f,f.exports,A,x,g,p)}return g[i].exports}for(var h=typeof F=="function"&&F,b=0;b<p.length;b++)n(p[b]);return n}({1:[function(A,x,g){"use strict";function p(n,h,b,i){this.message=n,this.expected=h,this.found=b,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,p)}(function(n,h){function b(){this.constructor=n}b.prototype=h.prototype,n.prototype=new b})(p,Error),p.buildMessage=function(n,h){var b,i={literal:function(f){return'"'+d(f.text)+'"'},class:function(f){var E,u="";for(E=0;E<f.parts.length;E++)u+=f.parts[E]instanceof Array?m(f.parts[E][0])+"-"+m(f.parts[E][1]):m(f.parts[E]);return"["+(f.inverted?"^":"")+u+"]"},any:function(f){return"any character"},end:function(f){return"end of input"},other:function(f){return f.description}};function C(f){return f.charCodeAt(0).toString(16).toUpperCase()}function d(f){return f.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+C(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+C(E)})}function m(f){return f.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+C(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+C(E)})}return"Expected "+function(f){var E,u,l,a=new Array(f.length);for(E=0;E<f.length;E++)a[E]=(l=f[E],i[l.type](l));if(a.sort(),0<a.length){for(u=E=1;E<a.length;E++)a[E-1]!==a[E]&&(a[u]=a[E],u++);a.length=u}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(n)+" but "+((b=h)?'"'+d(b)+'"':"end of input")+" found."},x.exports={SyntaxError:p,parse:function(n,h){h=h!==void 0?h:{};var b,i={},C={start:tt},d=tt,m="",f=function(){return[]},E=",",u=W(",",!1),l=function(I,q){return[I].concat(q)},a=function(I){return[I]},e=function(I,q){return{url:I,format:q}},c=function(I){return{url:I}},t="url(",o=W("url(",!1),r=")",y=W(")",!1),s=function(I){return I},R="format(",S=W("format(",!1),T="local(",P=W("local(",!1),O=function(I){return{local:I}},D=/^[^)]/,H=X([")"],!0,!1),z=function(I){return mt.extractValue(I.join(""))},j=/^[ \t\r\n\f]/,L=X([" ","    ","\r",`
`,"\f"],!1,!1),v=0,M=[{line:1,column:1}],U=0,$=[],k=0;if("startRule"in h){if(!(h.startRule in C))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');d=C[h.startRule]}function W(I,q){return{type:"literal",text:I,ignoreCase:q}}function X(I,q,_){return{type:"class",parts:I,inverted:q,ignoreCase:_}}function J(I){var q,_=M[I];if(_)return _;for(q=I-1;!M[q];)q--;for(_={line:(_=M[q]).line,column:_.column};q<I;)n.charCodeAt(q)===10?(_.line++,_.column=1):_.column++,q++;return M[I]=_}function G(I,q){var _=J(I),Y=J(q);return{start:{offset:I,line:_.line,column:_.column},end:{offset:q,line:Y.line,column:Y.column}}}function B(I){v<U||(U<v&&(U=v,$=[]),$.push(I))}function et(I,q,_){return new p(p.buildMessage(I,q),I,q,_)}function tt(){var I,q;return(I=function _(){var Y,at,rt,Q,it,ot;if(Y=v,(at=Z())!==i){for(rt=[],Q=st();Q!==i;)rt.push(Q),Q=st();if(rt!==i)if(n.charCodeAt(v)===44?(Q=E,v++):(Q=i,k===0&&B(u)),Q!==i){for(it=[],ot=st();ot!==i;)it.push(ot),ot=st();it!==i&&(ot=_())!==i?(at=l(at,ot),Y=at):(v=Y,Y=i)}else v=Y,Y=i;else v=Y,Y=i}else v=Y,Y=i;return Y===i&&(Y=v,(at=Z())!==i&&(at=a(at)),Y=at),Y}())===i&&(I=v,(q=m)!==i&&(q=f()),I=q),I}function Z(){var I,q,_,Y,at;return(I=function(){var rt,Q,it,ot,ut,ct,ft,ht;if(rt=v,(Q=nt())!==i){if(it=[],(ot=st())!==i)for(;ot!==i;)it.push(ot),ot=st();else it=i;it!==i&&(ut=v,n.substr(v,7)===R?(ct=R,v+=7):(ct=i,k===0&&B(S)),ct!==i&&(ft=K())!==i?(n.charCodeAt(v)===41?(ht=r,v++):(ht=i,k===0&&B(y)),ht!==i?(ct=s(ft),ut=ct):(v=ut,ut=i)):(v=ut,ut=i),(ot=ut)!==i)?(Q=e(Q,ot),rt=Q):(v=rt,rt=i)}else v=rt,rt=i;return rt===i&&(rt=v,(Q=nt())!==i&&(Q=c(Q)),rt=Q),rt}())===i&&(q=v,n.substr(v,6)===T?(_=T,v+=6):(_=i,k===0&&B(P)),_!==i&&(Y=K())!==i?(n.charCodeAt(v)===41?(at=r,v++):(at=i,k===0&&B(y)),at!==i?(_=O(Y),q=_):(v=q,q=i)):(v=q,q=i),I=q),I}function nt(){var I,q,_,Y;return I=v,n.substr(v,4)===t?(q=t,v+=4):(q=i,k===0&&B(o)),q!==i&&(_=K())!==i?(n.charCodeAt(v)===41?(Y=r,v++):(Y=i,k===0&&B(y)),Y!==i?I=q=s(_):(v=I,I=i)):(v=I,I=i),I}function K(){var I,q;if(I=[],D.test(n.charAt(v))?(q=n.charAt(v),v++):(q=i,k===0&&B(H)),q!==i)for(;q!==i;)I.push(q),D.test(n.charAt(v))?(q=n.charAt(v),v++):(q=i,k===0&&B(H));else I=i;return I!==i&&(I=z(I)),I}function st(){var I;return j.test(n.charAt(v))?(I=n.charAt(v),v++):(I=i,k===0&&B(L)),I}var mt=A("../util");if((b=d())!==i&&v===n.length)return b;throw b!==i&&v<n.length&&B({type:"end"}),et($,U<n.length?n.charAt(U):null,U<n.length?G(U,U+1):G(U,U))}}},{"../util":3}],2:[function(A,x,g){var p=A("./grammar");g.SyntaxError=function(n,h){this.message=n,this.offset=h},g.parse=function(n){try{return p.parse(n)}catch(h){throw new g.SyntaxError(h.message,h.offset)}},g.serialize=function(n){return n.map(function(h){var b;return h.url?(b='url("'+h.url+'")',h.format&&(b+=' format("'+h.format+'")')):b='local("'+h.local+'")',b}).join(", ")}},{"./grammar":1}],3:[function(A,x,g){g.extractValue=function(p){return n=p.replace(/^[\t\r\f\n ]*(.+?)[\t\r\f\n ]*$/,"$1"),b=/^'(.*)'$/,(h=/^"(.*)"$/).test(n)?n.replace(h,"$1"):b.test(n)?n.replace(b,"$1"):n;var n,h,b}},{}]},{},[2])(2)})}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(F,V,N){"use strict";var w=F("./cssSupport");N.extractCssUrl=function(A){var x,g=/^url\(("[^"]+"|'[^']+'|[^\)]+)\)/;if(!g.test(A))throw new Error("Invalid url");return x=g.exec(A)[1],w.unquoteString(x.replace(/^[\t\r\f\n ]*(.+?)[\t\r\f\n ]*$/,"$1"))},N.parse=function(A){return function(x){var g,p=`(url\\(\\s*(?:"[^"]*"|'[^']*'|[^\\(]+)\\s*\\)|[^,\\s]+)`,n="(?:\\s*"+p+")+",h=new RegExp(n,"g"),b=[],i=function(C){var d,m=new RegExp(p,"g"),f=[];for(d=m.exec(C);d;)f.push(d[1]),d=m.exec(C);return f};if(x.match(new RegExp(`^\\s*((?:\\s*(url\\(\\s*(?:"[^"]*"|'[^']*'|[^\\(]+)\\s*\\)|[^,\\s]+))+)(?:\\s*,\\s*((?:\\s*(url\\(\\s*(?:"[^"]*"|'[^']*'|[^\\(]+)\\s*\\)|[^,\\s]+))+))*\\s*$`))){for(g=h.exec(x);g;)b.push(i(g[0])),g=h.exec(x);return b}return[]}(A).map(function(x){var g=function(p){var n;for(n=0;n<p.length;n++)try{return{url:N.extractCssUrl(p[n]),idx:n}}catch{}}(x);return g?{preUrl:x.slice(0,g.idx),url:g.url,postUrl:x.slice(g.idx+1)}:{preUrl:x}})},N.serialize=function(A){return A.map(function(x){var g=[].concat(x.preUrl);return x.url&&g.push('url("'+x.url+'")'),x.postUrl&&(g=g.concat(x.postUrl)),g.join(" ")}).join(", ")}},{"./cssSupport":4}],4:[function(F,V,N){"use strict";N.unquoteString=function(w){var A=/^"(.*)"$/,x=/^'(.*)'$/;return A.test(w)?w.replace(A,"$1"):x.test(w)?w.replace(x,"$1"):w},N.rulesForCssText=function(w){var A,x=document.implementation.createHTMLDocument(""),g=document.createElement("style");return g.textContent=w,x.body.appendChild(g),A=g.sheet.cssRules,Array.prototype.slice.call(A)},N.cssRulesToText=function(w){return w.reduce(function(A,x){return A+x.cssText},"")},N.exchangeRule=function(w,A,x){w[w.indexOf(A)]=N.rulesForCssText(x)[0]},N.changeFontFaceRuleSrc=function(w,A,x){var g="@font-face { font-family: "+A.style.getPropertyValue("font-family")+"; ";A.style.getPropertyValue("font-style")&&(g+="font-style: "+A.style.getPropertyValue("font-style")+"; "),A.style.getPropertyValue("font-weight")&&(g+="font-weight: "+A.style.getPropertyValue("font-weight")+"; "),g+="src: "+x+"}",N.exchangeRule(w,A,g)}},{}],5:[function(F,V,N){"use strict";var w=F("./util"),A=F("./inlineImage"),x=F("./inlineScript"),g=F("./inlineCss"),p=F("./cssSupport"),n=function(C){return C.map(function(d,m){var f;return m===C.length-1&&(d={baseUrl:(f=d.baseUrl,w.joinUrl(f,"."))}),JSON.stringify(d)})},h=function(C,d){return d.cache!==!1&&d.cache!=="none"&&d.cacheBucket?w.memoize(C,n,d.cacheBucket):C},b=function(C,d,m){var f=p.rulesForCssText(C);return g.loadCSSImportsForRules(f,d,m).then(function(E){return g.loadAndInlineCSSResourcesForRules(f,m).then(function(u){var l=E.errors.concat(u.errors),a=E.hasChanges||u.hasChanges;return a&&(C=p.cssRulesToText(f)),{hasChanges:a,content:C,errors:l}})})};N.loadAndInlineStyles=function(C,d){var m,f,E=(f=C.getElementsByTagName("style"),Array.prototype.filter.call(f,function(a){return!a.attributes.type||a.attributes.type.value==="text/css"})),u=[],l=[];return(m=w.clone(d)).baseUrl=m.baseUrl||w.getDocumentBaseUrl(C),Promise.all(E.map(function(a){return(e=a,c=m,t=l,o=e.textContent,h(b,c)(o,t,c).then(function(r){return r.hasChanges&&(e.childNodes[0].nodeValue=r.content),w.cloneArray(r.errors)})).then(function(r){u=u.concat(r)});var e,c,t,o})).then(function(){return u})};var i=function(C,d){return w.ajax(C,d).then(function(m){return{content:m,cssRules:p.rulesForCssText(m)}}).then(function(m){var f=g.adjustPathsOfCssResources(C,m.cssRules);return{content:m.content,cssRules:m.cssRules,hasChanges:f}}).then(function(m){return g.loadCSSImportsForRules(m.cssRules,[],d).then(function(f){return{content:m.content,cssRules:m.cssRules,hasChanges:m.hasChanges||f.hasChanges,errors:f.errors}})}).then(function(m){return g.loadAndInlineCSSResourcesForRules(m.cssRules,d).then(function(f){return{content:m.content,cssRules:m.cssRules,hasChanges:m.hasChanges||f.hasChanges,errors:m.errors.concat(f.errors)}})}).then(function(m){var f=m.content;return m.hasChanges&&(f=p.cssRulesToText(m.cssRules)),{content:f,errors:m.errors}})};N.loadAndInlineCssLinks=function(C,d){var m,f=(m=C.getElementsByTagName("link"),Array.prototype.filter.call(m,function(u){return u.attributes.rel&&u.attributes.rel.value==="stylesheet"&&(!u.attributes.type||u.attributes.type.value==="text/css")})),E=[];return Promise.all(f.map(function(u){return(l=u,a=d,e=l.attributes.href.value,c=w.getDocumentBaseUrl(l.ownerDocument),t=w.clone(a),!t.baseUrl&&c&&(t.baseUrl=c),h(i,a)(e,t).then(function(o){return{content:o.content,errors:w.cloneArray(o.errors)}})).then(function(o){var r,y,s,R;r=u,y=o.content+`
`,R=r.parentNode,(y=y.trim())&&((s=r.ownerDocument.createElement("style")).type="text/css",s.appendChild(r.ownerDocument.createTextNode(y)),R.insertBefore(s,r)),R.removeChild(r),E=E.concat(o.errors)},function(o){E.push({resourceType:"stylesheet",url:o.url,msg:"Unable to load stylesheet "+o.url})});var l,a,e,c,t})).then(function(){return E})},N.loadAndInlineImages=A.inline,N.loadAndInlineScript=x.inline,N.inlineReferences=function(C,d){var m=[],f=[N.loadAndInlineImages,N.loadAndInlineStyles,N.loadAndInlineCssLinks];return d.inlineScripts!==!1&&f.push(N.loadAndInlineScript),Promise.all(f.map(function(E){return E(C,d).then(function(u){m=m.concat(u)})})).then(function(){return m})}},{"./cssSupport":4,"./inlineCss":6,"./inlineImage":7,"./inlineScript":8,"./util":9}],6:[function(F,V,N){"use strict";var w=F("./util"),A=F("./cssSupport"),x=F("./backgroundValueParser"),g=F("css-font-face-src"),p=function(u,l,a){u.style.setProperty(l,a,u.style.getPropertyPriority(l))},n=function(u){return u.filter(function(l){return l.type===window.CSSRule.STYLE_RULE&&(l.style.getPropertyValue("background-image")||l.style.getPropertyValue("background"))})},h=function(u){var l=[];return u.forEach(function(a){a.style.getPropertyValue("background-image")?l.push({property:"background-image",value:a.style.getPropertyValue("background-image"),rule:a}):a.style.getPropertyValue("background")&&l.push({property:"background",value:a.style.getPropertyValue("background"),rule:a})}),l},b=function(u){return u.filter(function(l){return l.type===window.CSSRule.FONT_FACE_RULE&&l.style.getPropertyValue("src")})},i=function(u){return u.filter(function(l){return l.type===window.CSSRule.IMPORT_RULE&&l.href})},C=function(u){var l=[];return u.forEach(function(a,e){a.url&&!w.isDataUri(a.url)&&l.push(e)}),l},d=function(u){var l=[];return u.forEach(function(a,e){a.url&&!w.isDataUri(a.url)&&l.push(e)}),l};N.adjustPathsOfCssResources=function(u,l){var a=n(l),e=h(a),c=!1;return e.forEach(function(t){var o,r=x.parse(t.value),y=C(r);0<y.length&&(y.forEach(function(s){var R=r[s].url,S=w.joinUrl(u,R);r[s].url=S}),o=x.serialize(r),p(t.rule,t.property,o),c=!0)}),b(l).forEach(function(t){var o,r,y=t.style.getPropertyValue("src");try{o=g.parse(y)}catch{return}0<(r=d(o)).length&&(r.forEach(function(s){var R=o[s].url,S=w.joinUrl(u,R);o[s].url=S}),A.changeFontFaceRuleSrc(l,t,g.serialize(o)),c=!0)}),i(l).forEach(function(t){var o=t.href,r=w.joinUrl(u,o);A.exchangeRule(l,t,"@import url("+r+");"),c=!0}),c};var m=function(u,l,a){var e=u.indexOf(l);u.splice(e,1),a.forEach(function(c,t){u.splice(e+t,0,c)})};N.loadCSSImportsForRules=function(u,l,a){var e=i(u),c=[],t=!1;return Promise.all(e.map(function(o){return(r=u,y=o,s=l,R=a,T=y.href,T=A.unquoteString(T),S=w.joinUrl(R.baseUrl,T),0<=s.indexOf(S)?(m(r,y,[]),Promise.resolve([])):(s.push(S),w.ajax(T,R).then(function(P){var O=A.rulesForCssText(P);return N.loadCSSImportsForRules(O,s,R).then(function(D){return N.adjustPathsOfCssResources(T,O),m(r,y,O),D.errors})},function(P){throw{resourceType:"stylesheet",url:P.url,msg:"Unable to load stylesheet "+P.url}}))).then(function(P){c=c.concat(P),t=!0},function(P){c.push(P)});var r,y,s,R,S,T})).then(function(){return{hasChanges:t,errors:c}})};var f=function(u,l){var a=n(u),e=h(a),c=[],t=!1;return Promise.all(e.map(function(o){return(r=o.value,y=l,s=x.parse(r),R=C(s),S=!1,w.collectAndReportErrors(R.map(function(T){var P=s[T].url;return w.getDataURIForImageURL(P,y).then(function(O){s[T].url=O,S=!0},function(O){throw{resourceType:"backgroundImage",url:O.url,msg:"Unable to load background-image "+O.url}})})).then(function(T){return{backgroundValue:x.serialize(s),hasChanges:S,errors:T}})).then(function(T){T.hasChanges&&(p(o.rule,o.property,T.backgroundValue),t=!0),c=c.concat(T.errors)});var r,y,s,R,S})).then(function(){return{hasChanges:t,errors:c}})},E=function(u,l){var a=b(u),e=[],c=!1;return Promise.all(a.map(function(t){return function(o,r){var y,s,R=!1;try{y=g.parse(o)}catch{y=[]}return s=d(y),w.collectAndReportErrors(s.map(function(S){var T=y[S],P=T.format||"woff";return w.binaryAjax(T.url,r).then(function(O){var D=btoa(O);T.url="data:font/"+P+";base64,"+D,R=!0},function(O){throw{resourceType:"fontFace",url:O.url,msg:"Unable to load font-face "+O.url}})})).then(function(S){return{srcDeclarationValue:g.serialize(y),hasChanges:R,errors:S}})}(t.style.getPropertyValue("src"),l).then(function(o){o.hasChanges&&(A.changeFontFaceRuleSrc(u,t,o.srcDeclarationValue),c=!0),e=e.concat(o.errors)})})).then(function(){return{hasChanges:c,errors:e}})};N.loadAndInlineCSSResourcesForRules=function(u,l){var a=!1,e=[];return Promise.all([f,E].map(function(c){return c(u,l).then(function(t){a=a||t.hasChanges,e=e.concat(t.errors)})})).then(function(){return{hasChanges:a,errors:e}})}},{"./backgroundValueParser":3,"./cssSupport":4,"./util":9,"css-font-face-src":2}],7:[function(F,V,N){"use strict";var w=F("./util"),A=function(x){return Array.prototype.slice.call(x)};N.inline=function(x,g){var p,n=A(x.getElementsByTagName("img")),h=A(x.getElementsByTagName("image")),b=(p=x.getElementsByTagName("input"),Array.prototype.filter.call(p,function(C){return C.type==="image"}));n=(n=n.concat(h)).concat(b);var i=n.filter(function(C){var d=null;return C.hasAttribute("src")?d=C.getAttribute("src"):C.hasAttributeNS("http://www.w3.org/1999/xlink","href")?d=C.getAttributeNS("http://www.w3.org/1999/xlink","href"):C.hasAttribute("href")&&(d=C.getAttribute("href")),d!==null&&!w.isDataUri(d)});return w.collectAndReportErrors(i.map(function(C){return function(d,m){var f=null;d.hasAttribute("src")?f=d.getAttribute("src"):d.hasAttributeNS("http://www.w3.org/1999/xlink","href")?f=d.getAttributeNS("http://www.w3.org/1999/xlink","href"):d.hasAttribute("href")&&(f=d.getAttribute("href"));var E=w.getDocumentBaseUrl(d.ownerDocument),u=w.clone(m);return!u.baseUrl&&E&&(u.baseUrl=E),w.getDataURIForImageURL(f,u).then(function(l){return l},function(l){throw{resourceType:"image",url:l.url,msg:"Unable to load image "+l.url}})}(C,g).then(function(d){C.attributes.src?C.attributes.src.value=d:C.attributes["xlink:href"]?C.attributes["xlink:href"].value=d:C.attributes.href&&(C.attributes.href.value=d)})}))}},{"./util":9}],8:[function(F,V,N){"use strict";var w=F("./util");N.inline=function(A,x){var g,p=(g=A.getElementsByTagName("script"),Array.prototype.filter.call(g,function(n){return!!n.attributes.src}));return w.collectAndReportErrors(p.map(function(n){return(h=n,b=x,i=h.attributes.src.value,C=w.getDocumentBaseUrl(h.ownerDocument),d=w.clone(b),!d.baseUrl&&C&&(d.baseUrl=C),w.ajax(i,d).catch(function(m){throw{resourceType:"script",url:m.url,msg:"Unable to load script "+m.url}})).then(function(m){var f,E;E=m,(f=n).attributes.removeNamedItem("src"),f.textContent=E.replace(/<\//g,"<\\/")});var h,b,i,C,d}))}},{"./util":9}],9:[function(F,V,N){"use strict";var w=F("url");N.getDocumentBaseUrl=function(g){return g.baseURI!=="about:blank"?g.baseURI:null},N.clone=function(g){var p,n={};for(p in g)g.hasOwnProperty(p)&&(n[p]=g[p]);return n},N.cloneArray=function(g){return Array.prototype.slice.apply(g,[0])},N.joinUrl=function(g,p){return g?w.resolve(g,p):p},N.isDataUri=function(g){return/^data:/.test(g)},N.collectAndReportErrors=function(g){var p=[];return Promise.all(g.map(function(n){return n.catch(function(h){p.push(h)})})).then(function(){return p})};var A=null;N.ajax=function(g,p){return new Promise(function(n,h){var b,i,C,d=new window.XMLHttpRequest,m=N.joinUrl(p.baseUrl,g),f=function(){h({msg:"Unable to load url",url:m})};i=m,b=(C=p.cache)===!1||C==="none"||C==="repeated"?(A!==null&&C==="repeated"||(A=Date.now()),i+"?_="+A):i,d.addEventListener("load",function(){d.status===200||d.status===0?n(d.response):f()},!1),d.addEventListener("error",f,!1);try{d.open("GET",b,!0),d.overrideMimeType(p.mimeType),d.send(null)}catch{f()}})},N.binaryAjax=function(g,p){var n=N.clone(p);return n.mimeType="text/plain; charset=x-user-defined",N.ajax(g,n).then(function(h){for(var b="",i=0;i<h.length;i++)b+=String.fromCharCode(255&h.charCodeAt(i));return b})},N.getDataURIForImageURL=function(g,p){return N.binaryAjax(g,p).then(function(n){var h,b,i=btoa(n);return"data:"+((b=function(C,d){return C.substring(0,d.length)===d})(h=n,"<?xml")||b(h,"<svg")?"image/svg+xml":"image/png")+";base64,"+i})};var x=[];N.memoize=function(g,p,n){if(typeof n!="object")throw new Error("cacheBucket is not an object");return function(){var h,b,i=Array.prototype.slice.call(arguments),C=p(i),d=(b=g,x.indexOf(b)<0&&x.push(b),x.indexOf(b));return n[d]&&n[d][C]?n[d][C]:(h=g.apply(null,i),n[d]=n[d]||{},n[d][C]=h)}}},{url:15}],10:[function(F,V,N){(function(w){(function(A){var x=typeof N=="object"&&N&&!N.nodeType&&N,g=typeof V=="object"&&V&&!V.nodeType&&V,p=typeof w=="object"&&w;p.global!==p&&p.window!==p&&p.self!==p||(A=p);var n,h,b=2147483647,i=36,C=1,d=26,m=38,f=700,E=72,u=128,l="-",a=/^xn--/,e=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,t={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},o=i-C,r=Math.floor,y=String.fromCharCode;function s(j){throw RangeError(t[j])}function R(j,L){for(var v=j.length,M=[];v--;)M[v]=L(j[v]);return M}function S(j,L){var v=j.split("@"),M="";return 1<v.length&&(M=v[0]+"@",j=v[1]),M+R((j=j.replace(c,".")).split("."),L).join(".")}function T(j){for(var L,v,M=[],U=0,$=j.length;U<$;)55296<=(L=j.charCodeAt(U++))&&L<=56319&&U<$?(64512&(v=j.charCodeAt(U++)))==56320?M.push(((1023&L)<<10)+(1023&v)+65536):(M.push(L),U--):M.push(L);return M}function P(j){return R(j,function(L){var v="";return 65535<L&&(v+=y((L-=65536)>>>10&1023|55296),L=56320|1023&L),v+=y(L)}).join("")}function O(j,L){return j+22+75*(j<26)-((L!=0)<<5)}function D(j,L,v){var M=0;for(j=v?r(j/f):j>>1,j+=r(j/L);o*d>>1<j;M+=i)j=r(j/o);return r(M+(o+1)*j/(j+m))}function H(j){var L,v,M,U,$,k,W,X,J,G,B,et=[],tt=j.length,Z=0,nt=u,K=E;for((v=j.lastIndexOf(l))<0&&(v=0),M=0;M<v;++M)128<=j.charCodeAt(M)&&s("not-basic"),et.push(j.charCodeAt(M));for(U=0<v?v+1:0;U<tt;){for($=Z,k=1,W=i;tt<=U&&s("invalid-input"),B=j.charCodeAt(U++),(i<=(X=B-48<10?B-22:B-65<26?B-65:B-97<26?B-97:i)||X>r((b-Z)/k))&&s("overflow"),Z+=X*k,!(X<(J=W<=K?C:K+d<=W?d:W-K));W+=i)k>r(b/(G=i-J))&&s("overflow"),k*=G;K=D(Z-$,L=et.length+1,$==0),r(Z/L)>b-nt&&s("overflow"),nt+=r(Z/L),Z%=L,et.splice(Z++,0,nt)}return P(et)}function z(j){var L,v,M,U,$,k,W,X,J,G,B,et,tt,Z,nt,K=[];for(et=(j=T(j)).length,L=u,$=E,k=v=0;k<et;++k)(B=j[k])<128&&K.push(y(B));for(M=U=K.length,U&&K.push(l);M<et;){for(W=b,k=0;k<et;++k)L<=(B=j[k])&&B<W&&(W=B);for(W-L>r((b-v)/(tt=M+1))&&s("overflow"),v+=(W-L)*tt,L=W,k=0;k<et;++k)if((B=j[k])<L&&++v>b&&s("overflow"),B==L){for(X=v,J=i;!(X<(G=J<=$?C:$+d<=J?d:J-$));J+=i)nt=X-G,Z=i-G,K.push(y(O(G+nt%Z,0))),X=r(nt/Z);K.push(y(O(X,0))),$=D(v,tt,M==U),v=0,++M}++v,++L}return K.join("")}if(n={version:"1.3.2",ucs2:{decode:T,encode:P},decode:H,encode:z,toASCII:function(j){return S(j,function(L){return e.test(L)?"xn--"+z(L):L})},toUnicode:function(j){return S(j,function(L){return a.test(L)?H(L.slice(4).toLowerCase()):L})}},x&&g)if(V.exports==x)g.exports=n;else for(h in n)n.hasOwnProperty(h)&&(x[h]=n[h]);else A.punycode=n})(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],11:[function(F,V,N){"use strict";V.exports=function(A,x,g,p){x=x||"&",g=g||"=";var n={};if(typeof A!="string"||A.length===0)return n;var h=/\+/g;A=A.split(x);var b=1e3;p&&typeof p.maxKeys=="number"&&(b=p.maxKeys);var i,C,d=A.length;0<b&&b<d&&(d=b);for(var m=0;m<d;++m){var f,E,u,l,a=A[m].replace(h,"%20"),e=a.indexOf(g);0<=e?(f=a.substr(0,e),E=a.substr(e+1)):(f=a,E=""),u=decodeURIComponent(f),l=decodeURIComponent(E),i=n,C=u,Object.prototype.hasOwnProperty.call(i,C)?w(n[u])?n[u].push(l):n[u]=[n[u],l]:n[u]=l}return n};var w=Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"}},{}],12:[function(F,V,N){"use strict";var w=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};V.exports=function(p,n,h,b){return n=n||"&",h=h||"=",p===null&&(p=void 0),typeof p=="object"?x(g(p),function(i){var C=encodeURIComponent(w(i))+h;return A(p[i])?x(p[i],function(d){return C+encodeURIComponent(w(d))}).join(n):C+encodeURIComponent(w(p[i]))}).join(n):b?encodeURIComponent(w(b))+h+encodeURIComponent(w(p)):""};var A=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"};function x(p,n){if(p.map)return p.map(n);for(var h=[],b=0;b<p.length;b++)h.push(n(p[b],b));return h}var g=Object.keys||function(p){var n=[];for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&n.push(h);return n}},{}],13:[function(F,V,N){"use strict";N.decode=N.parse=F("./decode"),N.encode=N.stringify=F("./encode")},{"./decode":11,"./encode":12}],14:[function(F,V,N){"use strict";var w=[new RegExp(`^<h3[^>]*>This page contains the following errors:</h3><div[^>]*>(.+?)
?</div>`),new RegExp(`^(.+)
`)],A=function(x){var g,p,n,h,b=(g=x,p=new XMLSerializer,Array.prototype.map.call(g.childNodes,function(i){return p.serializeToString(i)}).join(""));for(n=0;n<w.length;n++)if(h=w[n].exec(b))return h[1]};N.failOnParseError=function(x){return function(g){var p;if(g===null)throw new Error("Parse error");var n,h=(n=g).documentElement.tagName==="parsererror"&&n.documentElement.namespaceURI==="http://www.mozilla.org/newlayout/xml/parsererror.xml"?n.documentElement:(n.documentElement.tagName==="xml"||n.documentElement.tagName==="html")&&n.documentElement.childNodes&&0<n.documentElement.childNodes.length&&n.documentElement.childNodes[0].nodeName==="parsererror"?n.documentElement.childNodes[0]:n.documentElement.tagName==="html"&&n.documentElement.childNodes&&0<n.documentElement.childNodes.length&&n.documentElement.childNodes[0].nodeName==="body"&&n.documentElement.childNodes[0].childNodes&&n.documentElement.childNodes[0].childNodes.length&&n.documentElement.childNodes[0].childNodes[0].nodeName==="parsererror"?n.documentElement.childNodes[0].childNodes[0]:void 0;if(h!==void 0)throw p=A(h)||"Parse error",new Error(p)}(x),x}},{}],15:[function(F,V,N){"use strict";var w=F("punycode"),A=F("./util");function x(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}N.parse=a,N.resolve=function(e,c){return a(e,!1,!0).resolve(c)},N.resolveObject=function(e,c){return e?a(e,!1,!0).resolveObject(c):c},N.format=function(e){return A.isString(e)&&(e=a(e)),e instanceof x?e.format():x.prototype.format.call(e)},N.Url=x;var g=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,n=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`,"    "]),b=["'"].concat(h),i=["%","/","?",";","#"].concat(b),C=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},u={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=F("querystring");function a(e,c,t){if(e&&A.isObject(e)&&e instanceof x)return e;var o=new x;return o.parse(e,c,t),o}x.prototype.parse=function(e,c,t){if(!A.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),r=o!==-1&&o<e.indexOf("#")?"?":"#",y=e.split(r);y[0]=y[0].replace(/\\/g,"/");var s=e=y.join(r);if(s=s.trim(),!t&&e.split("#").length===1){var R=n.exec(s);if(R)return this.path=s,this.href=s,this.pathname=R[1],R[2]?(this.search=R[2],this.query=c?l.parse(this.search.substr(1)):this.search.substr(1)):c&&(this.search="",this.query={}),this}var S=g.exec(s);if(S){var T=(S=S[0]).toLowerCase();this.protocol=T,s=s.substr(S.length)}if(t||S||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var P=s.substr(0,2)==="//";!P||S&&E[S]||(s=s.substr(2),this.slashes=!0)}if(!E[S]&&(P||S&&!u[S])){for(var O,D,H=-1,z=0;z<C.length;z++)(j=s.indexOf(C[z]))!==-1&&(H===-1||j<H)&&(H=j);for((D=H===-1?s.lastIndexOf("@"):s.lastIndexOf("@",H))!==-1&&(O=s.slice(0,D),s=s.slice(D+1),this.auth=decodeURIComponent(O)),H=-1,z=0;z<i.length;z++){var j;(j=s.indexOf(i[z]))!==-1&&(H===-1||j<H)&&(H=j)}H===-1&&(H=s.length),this.host=s.slice(0,H),s=s.slice(H),this.parseHost(),this.hostname=this.hostname||"";var L=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!L)for(var v=this.hostname.split(/\./),M=(z=0,v.length);z<M;z++){var U=v[z];if(U&&!U.match(d)){for(var $="",k=0,W=U.length;k<W;k++)127<U.charCodeAt(k)?$+="x":$+=U[k];if(!$.match(d)){var X=v.slice(0,z),J=v.slice(z+1),G=U.match(m);G&&(X.push(G[1]),J.unshift(G[2])),J.length&&(s="/"+J.join(".")+s),this.hostname=X.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),L||(this.hostname=w.toASCII(this.hostname));var B=this.port?":"+this.port:"",et=this.hostname||"";this.host=et+B,this.href+=this.host,L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!f[T])for(z=0,M=b.length;z<M;z++){var tt=b[z];if(s.indexOf(tt)!==-1){var Z=encodeURIComponent(tt);Z===tt&&(Z=escape(tt)),s=s.split(tt).join(Z)}}var nt=s.indexOf("#");nt!==-1&&(this.hash=s.substr(nt),s=s.slice(0,nt));var K=s.indexOf("?");if(K!==-1?(this.search=s.substr(K),this.query=s.substr(K+1),c&&(this.query=l.parse(this.query)),s=s.slice(0,K)):c&&(this.search="",this.query={}),s&&(this.pathname=s),u[T]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var st=this.search||"";this.path=B+st}return this.href=this.format(),this},x.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var c=this.protocol||"",t=this.pathname||"",o=this.hash||"",r=!1,y="";this.host?r=e+this.host:this.hostname&&(r=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&A.isObject(this.query)&&Object.keys(this.query).length&&(y=l.stringify(this.query));var s=this.search||y&&"?"+y||"";return c&&c.substr(-1)!==":"&&(c+=":"),this.slashes||(!c||u[c])&&r!==!1?(r="//"+(r||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):r||(r=""),o&&o.charAt(0)!=="#"&&(o="#"+o),s&&s.charAt(0)!=="?"&&(s="?"+s),c+r+(t=t.replace(/[?#]/g,function(R){return encodeURIComponent(R)}))+(s=s.replace("#","%23"))+o},x.prototype.resolve=function(e){return this.resolveObject(a(e,!1,!0)).format()},x.prototype.resolveObject=function(e){if(A.isString(e)){var c=new x;c.parse(e,!1,!0),e=c}for(var t=new x,o=Object.keys(this),r=0;r<o.length;r++){var y=o[r];t[y]=this[y]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),R=0;R<s.length;R++){var S=s[R];S!=="protocol"&&(t[S]=e[S])}return u[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!u[e.protocol]){for(var T=Object.keys(e),P=0;P<T.length;P++){var O=T[P];t[O]=e[O]}return t.href=t.format(),t}if(t.protocol=e.protocol,e.host||E[e.protocol])t.pathname=e.pathname;else{for(var D=(e.pathname||"").split("/");D.length&&!(e.host=D.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),t.pathname=D.join("/")}if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var H=t.pathname||"",z=t.search||"";t.path=H+z}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var j=t.pathname&&t.pathname.charAt(0)==="/",L=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=L||j||t.host&&e.pathname,M=v,U=t.pathname&&t.pathname.split("/")||[],$=(D=e.pathname&&e.pathname.split("/")||[],t.protocol&&!u[t.protocol]);if($&&(t.hostname="",t.port=null,t.host&&(U[0]===""?U[0]=t.host:U.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(D[0]===""?D[0]=e.host:D.unshift(e.host)),e.host=null),v=v&&(D[0]===""||U[0]==="")),L)t.host=e.host||e.host===""?e.host:t.host,t.hostname=e.hostname||e.hostname===""?e.hostname:t.hostname,t.search=e.search,t.query=e.query,U=D;else if(D.length)U||(U=[]),U.pop(),U=U.concat(D),t.search=e.search,t.query=e.query;else if(!A.isNullOrUndefined(e.search))return $&&(t.hostname=t.host=U.shift(),(G=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=G.shift(),t.host=t.hostname=G.shift())),t.search=e.search,t.query=e.query,A.isNull(t.pathname)&&A.isNull(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t;if(!U.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var k=U.slice(-1)[0],W=(t.host||e.host||1<U.length)&&(k==="."||k==="..")||k==="",X=0,J=U.length;0<=J;J--)(k=U[J])==="."?U.splice(J,1):k===".."?(U.splice(J,1),X++):X&&(U.splice(J,1),X--);if(!v&&!M)for(;X--;X)U.unshift("..");!v||U[0]===""||U[0]&&U[0].charAt(0)==="/"||U.unshift(""),W&&U.join("/").substr(-1)!=="/"&&U.push("");var G,B=U[0]===""||U[0]&&U[0].charAt(0)==="/";return $&&(t.hostname=t.host=B?"":U.length?U.shift():"",(G=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=G.shift(),t.host=t.hostname=G.shift())),(v=v||t.host&&U.length)&&!B&&U.unshift(""),U.length?t.pathname=U.join("/"):(t.pathname=null,t.path=null),A.isNull(t.pathname)&&A.isNull(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},x.prototype.parseHost=function(){var e=this.host,c=p.exec(e);c&&((c=c[0])!==":"&&(this.port=c.substr(1)),e=e.substr(0,e.length-c.length)),e&&(this.hostname=e)}},{"./util":16,punycode:10,querystring:13}],16:[function(F,V,N){"use strict";V.exports={isString:function(w){return typeof w=="string"},isObject:function(w){return typeof w=="object"&&w!==null},isNull:function(w){return w===null},isNullOrUndefined:function(w){return w==null}}},{}],17:[function(F,V,N){var w,A;w=this,A=function(){var x=function(h){var b=h.tagName;return h.namespaceURI==="http://www.w3.org/1999/xhtml"&&(b=b.toLowerCase()),b},g=function(h){return Array.prototype.map.call(h.childNodes,function(b){return n(b)}).join("")},p=function(h,b){var i,C,d="<"+x(h);return d+=(i=h,C=b,0<=Array.prototype.map.call(i.attributes||i.attrs,function(m){return m.name}).indexOf("xmlns")||!C&&i.namespaceURI===i.parentNode.namespaceURI?"":' xmlns="'+i.namespaceURI+'"'),Array.prototype.forEach.call(h.attributes||h.attrs,function(m){var f,E;d+=(E=(f=m).value," "+f.name+'="'+E.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+'"')}),0<h.childNodes.length?(d+=">",d+=g(h),d+="</"+x(h)+">"):d+="/>",d},n=function(h,b){var i,C=b&&b.rootNode;return h.nodeName==="#document"||h.nodeName==="#document-fragment"?g(h):h.tagName?p(h,C):h.nodeName==="#text"?((i=h).nodeValue||i.value||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):h.nodeName==="#comment"?"<!--"+h.data.replace(/-/g,"&#45;")+"-->":h.nodeName==="#cdata-section"?"<![CDATA["+h.nodeValue+"]]>":void 0};return{serializeToString:function(h){return n(h,{rootNode:!0}).replace(/[\x00-\x08\x0B\x0C\x0E-\x1F]/g,"")}}},typeof V=="object"&&V.exports?V.exports=A():w.xmlserializer=A()},{}]},{},[1])(1)});var gt=pt.rasterizeHTML;})();