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