/*! For license information please see converse.min.js.LICENSE.txt */ (()=>{var e,t,n,i,s={8999:(e,t)=>{"use strict";function n(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var i=n({HTML:"text/html",isHTML:function(e){return e===i.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),s=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===s.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.freeze=n,t.MIME_TYPE=i,t.NAMESPACE=s},6647:(e,t,n)=>{var i=n(8999),s=n(976),r=n(5257),o=n(7686),a=s.DOMImplementation,c=i.NAMESPACE,l=o.ParseError,d=o.XMLReader;function u(e){this.options=e||{locator:{}}}function h(){this.cdata=!1}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function f(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function p(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}u.prototype.parseFromString=function(e,t){var n=this.options,i=new d,s=n.domBuilder||new h,o=n.errorHandler,a=n.locator,l=n.xmlns||{},u=/\/x?html?$/.test(t),m=u?r.HTML_ENTITIES:r.XML_ENTITIES;return a&&s.setDocumentLocator(a),i.errorHandler=function(e,t,n){if(!e){if(t instanceof h)return t;e=t}var i={},s=e instanceof Function;function r(t){var r=e[t];!r&&s&&(r=2==e.length?function(n){e(t,n)}:e),i[t]=r&&function(e){r("[xmldom "+t+"]\t"+e+f(n))}||function(){}}return n=n||{},r("warning"),r("error"),r("fatalError"),i}(o,s,a),i.domBuilder=n.domBuilder||s,u&&(l[""]=c.HTML),l.xml=l.xml||c.XML,e&&"string"==typeof e?i.parse(e,l,m):i.errorHandler.error("invalid doc source"),s.doc},h.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var s=this.doc,r=s.createElementNS(e,n||t),o=i.length;p(this,r),this.currentElement=r,this.locator&&m(this.locator,r);for(var a=0;a{var i=n(8999).NAMESPACE;function s(e){return""!==e}function r(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function o(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(s):[]}(e);return Object.keys(t.reduce(r,{}))}function a(e,t){for(var n in e)t[n]=e[n]}function c(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,a(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var l={},d=l.ELEMENT_NODE=1,u=l.ATTRIBUTE_NODE=2,h=l.TEXT_NODE=3,m=l.CDATA_SECTION_NODE=4,f=l.ENTITY_REFERENCE_NODE=5,g=l.ENTITY_NODE=6,p=l.PROCESSING_INSTRUCTION_NODE=7,v=l.COMMENT_NODE=8,y=l.DOCUMENT_NODE=9,_=l.DOCUMENT_TYPE_NODE=10,b=l.DOCUMENT_FRAGMENT_NODE=11,w=l.NOTATION_NODE=12,S={},x={},E=(S.INDEX_SIZE_ERR=(x[1]="Index size error",1),S.DOMSTRING_SIZE_ERR=(x[2]="DOMString size error",2),S.HIERARCHY_REQUEST_ERR=(x[3]="Hierarchy request error",3)),A=(S.WRONG_DOCUMENT_ERR=(x[4]="Wrong document",4),S.INVALID_CHARACTER_ERR=(x[5]="Invalid character",5),S.NO_DATA_ALLOWED_ERR=(x[6]="No data allowed",6),S.NO_MODIFICATION_ALLOWED_ERR=(x[7]="No modification allowed",7),S.NOT_FOUND_ERR=(x[8]="Not found",8)),C=(S.NOT_SUPPORTED_ERR=(x[9]="Not supported",9),S.INUSE_ATTRIBUTE_ERR=(x[10]="Attribute in use",10));function T(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,x[e]),this.message=x[e],Error.captureStackTrace&&Error.captureStackTrace(this,T);return n.code=e,t&&(this.message=this.message+": "+t),n}function k(){}function j(e,t){this._node=e,this._refresh=t,$(this)}function $(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);le(e,"length",n.length),a(n,e),e._inc=t}}function N(){}function O(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function I(e,t,n,s){if(s?t[O(t,s)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(s&&F(r,e,s),function(e,t,n){e&&e._inc++,n.namespaceURI===i.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(r,e,n))}}function M(e,t,n){var i=O(t,n);if(!(i>=0))throw T(A,new Error(e.tagName+"@"+n));for(var s=t.length-1;i"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function z(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(z(e,t))return!0}while(e=e.nextSibling)}function P(){}function F(e,t,n,s){e&&e._inc++,n.namespaceURI===i.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function U(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var s=t.firstChild,r=0;s;)i[r++]=s,s=s.nextSibling;i.length=r}}}function B(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,U(e.ownerDocument,e),t}function q(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===b){var s=t.firstChild;if(null==s)return t;var r=t.lastChild}else s=r=t;var o=n?n.previousSibling:e.lastChild;s.previousSibling=o,r.nextSibling=n,o?o.nextSibling=s:e.firstChild=s,null==n?e.lastChild=r:n.previousSibling=r;do{s.parentNode=e}while(s!==r&&(s=s.nextSibling));return U(e.ownerDocument||e,e),t.nodeType==b&&(t.firstChild=t.lastChild=null),t}function H(){this._nsMap={}}function G(){}function W(){}function V(){}function J(){}function Q(){}function Z(){}function Y(){}function X(){}function K(){}function ee(){}function te(){}function ne(){}function ie(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,s=i.prefix,r=i.namespaceURI;if(r&&null==s&&null==(s=i.lookupPrefix(r)))var o=[{namespace:r,prefix:null}];return oe(this,n,e,t,o),n.join("")}function se(e,t,n){var s=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===s&&r===i.XML||r===i.XMLNS)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix===s)return a.namespace!==r}return!0}function re(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,L),'"')}function oe(e,t,n,s,r){if(r||(r=[]),s){if(!(e=s(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case d:var o=e.attributes,a=o.length,c=e.firstChild,l=e.tagName,g=l;if(!(n=i.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var w,S=0;S=0;x--)if(""===(E=r[x]).prefix&&E.namespace===e.namespaceURI){w=E.namespace;break}if(w!==e.namespaceURI)for(x=r.length-1;x>=0;x--){var E;if((E=r[x]).namespace===e.namespaceURI){E.prefix&&(g=E.prefix+":"+l);break}}}t.push("<",g);for(var A=0;A"),n&&/^script$/i.test(l))for(;c;)c.data?t.push(c.data):oe(c,t,n,s,r.slice()),c=c.nextSibling;else for(;c;)oe(c,t,n,s,r.slice()),c=c.nextSibling;t.push("")}else t.push("/>");return;case y:case b:for(c=e.firstChild;c;)oe(c,t,n,s,r.slice()),c=c.nextSibling;return;case u:return re(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&]/g,L).replace(/]]>/g,"]]>"));case m:return t.push("");case v:return t.push("\x3c!--",e.data,"--\x3e");case _:var j=e.publicId,$=e.systemId;if(t.push("");else if($&&"."!=$)t.push(" SYSTEM ",$,">");else{var N=e.internalSubset;N&&t.push(" [",N,"]"),t.push(">")}return;case p:return t.push("");case f:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ae(e,t,n){var i;switch(t.nodeType){case d:(i=t.cloneNode(!1)).ownerDocument=e;case b:break;case u:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var s=t.firstChild;s;)i.appendChild(ae(e,s,n)),s=s.nextSibling;return i}function ce(e,t,n){var i=new t.constructor;for(var s in t){var r=t[s];"object"!=typeof r&&r!=i[s]&&(i[s]=r)}switch(t.childNodes&&(i.childNodes=new k),i.ownerDocument=e,i.nodeType){case d:var o=t.attributes,a=i.attributes=new N,c=o.length;a._ownerElement=i;for(var l=0;l0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==u?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==u?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},a(l,D),a(l,D.prototype),P.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==b){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==d&&(this.documentElement=e),q(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return ae(this,e,t)},getElementById:function(e){var t=null;return z(this.documentElement,(function(n){if(n.nodeType==d&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=o(e);return new j(this,(function(n){var i=[];return t.length>0&&z(n.documentElement,(function(s){if(s!==n&&s.nodeType===d){var r=s.getAttribute("class");if(r){var a=e===r;if(!a){var c=o(r);a=t.every((l=c,function(e){return l&&-1!==l.indexOf(e)}))}a&&i.push(s)}}var l})),i}))},createElement:function(e){var t=new H;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new k,(t.attributes=new N)._ownerElement=t,t},createDocumentFragment:function(){var e=new ee;return e.ownerDocument=this,e.childNodes=new k,e},createTextNode:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new J;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new Q;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new te;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new G;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new H,i=t.split(":"),s=n.attributes=new N;return n.childNodes=new k,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,s._ownerElement=n,n},createAttributeNS:function(e,t){var n=new G,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},c(P,D),H.prototype={nodeType:d,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===b?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t),i=e.lastChild}return i=e.lastChild,t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,U(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new j(this,(function(t){var n=[];return z(t,(function(i){i===t||i.nodeType!=d||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new j(this,(function(n){var i=[];return z(n,(function(s){s===n||s.nodeType!==d||"*"!==e&&s.namespaceURI!==e||"*"!==t&&s.localName!=t||i.push(s)})),i}))}},P.prototype.getElementsByTagName=H.prototype.getElementsByTagName,P.prototype.getElementsByTagNameNS=H.prototype.getElementsByTagNameNS,c(H,D),G.prototype.nodeType=u,c(G,D),W.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(x[E])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},c(W,D),V.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},c(V,W),J.prototype={nodeName:"#comment",nodeType:v},c(J,W),Q.prototype={nodeName:"#cdata-section",nodeType:m},c(Q,W),Z.prototype.nodeType=_,c(Z,D),Y.prototype.nodeType=w,c(Y,D),X.prototype.nodeType=g,c(X,D),K.prototype.nodeType=f,c(K,D),ee.prototype.nodeName="#document-fragment",ee.prototype.nodeType=b,c(ee,D),te.prototype.nodeType=p,c(te,D),ne.prototype.serializeToString=function(e,t,n){return ie.call(e,t,n)},D.prototype.toString=ie;try{if(Object.defineProperty){function de(e){switch(e.nodeType){case d:case b:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(de(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(j.prototype,"length",{get:function(){return $(this),this.$$length}}),Object.defineProperty(D.prototype,"textContent",{get:function(){return de(this)},set:function(e){switch(this.nodeType){case d:case b:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),le=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DocumentType=Z,t.DOMException=T,t.DOMImplementation=R,t.Element=H,t.Node=D,t.NodeList=k,t.XMLSerializer=ne},5257:(e,t,n)=>{var i=n(8999).freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},539:(e,t,n)=>{var i=n(976);t.u=i.DOMImplementation,i.XMLSerializer,t.DOMParser=n(6647).DOMParser},7686:(e,t,n)=>{var i=n(8999).NAMESPACE,s=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+s.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+s.source+r.source+"*(?::"+s.source+r.source+"*)?$");function a(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function c(){}function l(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function d(e,t,n,s,r,o){function a(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}for(var c,l=++t,d=0;;){var u=e.charAt(l);switch(u){case"=":if(1===d)c=e.slice(t,l),d=3;else{if(2!==d)throw new Error("attribute equal must after attrName");d=3}break;case"'":case'"':if(3===d||1===d){if(1===d&&(o.warning('attribute value must after "="'),c=e.slice(t,l)),t=l+1,!((l=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");a(c,h=e.slice(t,l).replace(/&#?\w+;/g,r),t-1),d=5}else{if(4!=d)throw new Error('attribute value must after "="');a(c,h=e.slice(t,l).replace(/&#?\w+;/g,r),t),o.warning('attribute "'+c+'" missed start quot('+u+")!!"),t=l+1,d=5}break;case"/":switch(d){case 0:n.setTagName(e.slice(t,l));case 5:case 6:case 7:d=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==d&&n.setTagName(e.slice(t,l)),l;case">":switch(d){case 0:n.setTagName(e.slice(t,l));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,l)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===d&&(h=c),4==d?(o.warning('attribute "'+h+'" missed quot(")!'),a(c,h.replace(/&#?\w+;/g,r),t)):(i.isHTML(s[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),a(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return l;case"€":u=" ";default:if(u<=" ")switch(d){case 0:n.setTagName(e.slice(t,l)),d=6;break;case 1:c=e.slice(t,l),d=2;break;case 4:var h=e.slice(t,l).replace(/&#?\w+;/g,r);o.warning('attribute "'+h+'" missed quot(")!!'),a(c,h,t);case 5:d=6}else switch(d){case 2:n.tagName,i.isHTML(s[""])&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),a(c,c,t),t=l,d=1;break;case 5:o.warning('attribute space is required"'+c+'"!!');case 6:d=1,t=l;break;case 3:d=4,t=l;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function u(e,t,n){for(var s=e.tagName,r=null,o=e.length;o--;){var a=e[o],c=a.qName,l=a.value;if((m=c.indexOf(":"))>0)var d=a.prefix=c.slice(0,m),u=c.slice(m+1),h="xmlns"===d&&u;else u=c,d=null,h="xmlns"===c&&"";a.localName=u,!1!==h&&(null==r&&(r={},f(n,n={})),n[h]=r[h]=l,a.uri=i.XMLNS,t.startPrefixMapping(h,l))}for(o=e.length;o--;)(d=(a=e[o]).prefix)&&("xml"===d&&(a.uri=i.XML),"xmlns"!==d&&(a.uri=n[d||""]));var m;(m=s.indexOf(":"))>0?(d=e.prefix=s.slice(0,m),u=e.localName=s.slice(m+1)):(d=null,u=e.localName=s);var g=e.uri=n[d||""];if(t.startElement(g,u,s,e),!e.closed)return e.currentNSMap=n,e.localNSMap=r,!0;if(t.endElement(g,u,s),r)for(d in r)t.endPrefixMapping(d)}function h(e,t,n,i,s){if(/^(?:script|textarea)$/i.test(n)){var r=e.indexOf("",t),o=e.substring(t+1,r);if(/[&<]/.test(o))return/^script$/i.test(n)?(s.characters(o,0,o.length),r):(o=o.replace(/&#?\w+;/g,i),s.characters(o,0,o.length),r)}return t+1}function m(e,t,n,i){var s=i[n];return null==s&&((s=e.lastIndexOf(""))t?(n.comment(e,t+4,s-t-4),s+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var s=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,s-t-9),n.endCDATA(),s+3}var r=function(e,t){var n,i=[],s=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(s.lastIndex=t,s.exec(e);n=s.exec(e);)if(i.push(n),n[1])return i}(e,t),o=r.length;if(o>1&&/!doctype/i.test(r[0][0])){var a=r[1][0],c=!1,l=!1;o>3&&(/^public$/i.test(r[2][0])?(c=r[3][0],l=o>4&&r[4][0]):/^system$/i.test(r[2][0])&&(l=r[3][0]));var d=r[o-1];return n.startDTD(a,c,l),n.endDTD(),d.index+d[0].length}return-1}function p(e,t,n){var i=e.indexOf("?>",t);if(i){var s=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return s?(s[0].length,n.processingInstruction(s[1],s[2]),i+2):-1}return-1}function v(){this.attributeNames={}}a.prototype=new Error,a.prototype.name=a.name,c.prototype={parse:function(e,t,n){var s=this.domBuilder;s.startDocument(),f(t,t={}),function(e,t,n,s,r){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(r.error("entity not found:"+e),e)}function c(t){if(t>E){var n=e.substring(E,t).replace(/&#?\w+;/g,o);w&&f(E),s.characters(n,0,t-E),E=t}}function f(t,n){for(;t>=_&&(n=b.exec(e));)y=n.index,_=y+n[0].length,w.lineNumber++;w.columnNumber=t-y+1}for(var y=0,_=0,b=/.*(?:\r\n?|\n)|.*$/g,w=s.locator,S=[{currentNSMap:t}],x={},E=0;;){try{var A=e.indexOf("<",E);if(A<0){if(!e.substr(E).match(/^\s*$/)){var C=s.doc,T=C.createTextNode(e.substr(E));C.appendChild(T),s.currentElement=T}return}switch(A>E&&c(A),e.charAt(A+1)){case"/":var k=e.indexOf(">",A+3),j=e.substring(A+2,k).replace(/[ \t\n\r]+$/g,""),$=S.pop();k<0?(j=e.substring(A+2).replace(/[\s<].*/,""),r.error("end tag name: "+j+" is not complete:"+$.tagName),k=A+1+j.length):j.match(/\sE?E=k:c(Math.max(A,E)+1)}}(e,t,n,s,this.errorHandler),s.endDocument()}},v.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=c,t.ParseError=a},4567:(e,t,n)=>{"use strict";const i=n(4095),s=n(257);e.exports={atob:i,btoa:s}},4095:e=>{"use strict";function t(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e);return t<0?void 0:t}e.exports=function(e){if((e=(e=`${e}`).replace(/[ \t\n\f\r]/g,"")).length%4==0&&(e=e.replace(/==?$/,"")),e.length%4==1||/[^+/0-9A-Za-z]/.test(e))return null;let n="",i=0,s=0;for(let r=0;r>16),n+=String.fromCharCode((65280&i)>>8),n+=String.fromCharCode(255&i),i=s=0);return 12===s?(i>>=4,n+=String.fromCharCode(i)):18===s&&(i>>=2,n+=String.fromCharCode((65280&i)>>8),n+=String.fromCharCode(255&i)),n}},257:e=>{"use strict";function t(e){if(e>=0&&e<64)return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e]}e.exports=function(e){let n;for(e=`${e}`,n=0;n255)return null;let i="";for(n=0;n>2,s[1]=(3&e.charCodeAt(n))<<4,e.length>n+1&&(s[1]|=e.charCodeAt(n+1)>>4,s[2]=(15&e.charCodeAt(n+1))<<2),e.length>n+2&&(s[2]|=e.charCodeAt(n+2)>>6,s[3]=63&e.charCodeAt(n+2));for(let e=0;e{e.exports={default:n(1966),__esModule:!0}},5460:(e,t,n)=>{e.exports={default:n(4064),__esModule:!0}},9251:(e,t,n)=>{e.exports={default:n(9791),__esModule:!0}},1683:(e,t,n)=>{"use strict";t.__esModule=!0;var i,s=(i=n(9251))&&i.__esModule?i:{default:i};t.default=function(e){return function(){var t=e.apply(this,arguments);return new s.default((function(e,n){return function i(r,o){try{var a=t[r](o),c=a.value}catch(e){return void n(e)}if(!a.done)return s.default.resolve(c).then((function(e){i("next",e)}),(function(e){i("throw",e)}));e(c)}("next")}))}}},8339:(e,t,n)=>{"use strict";t.__esModule=!0;var i,s=(i=n(6561))&&i.__esModule?i:{default:i};t.default=function(e,t,n){return t in e?(0,s.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8161:(e,t,n)=>{e.exports=n(7371)},1505:function(e,t,n){var i,s;void 0===(s="function"==typeof(i=function(){"use strict";var e=void 0!==n.g?n.g:this||window,t=document,i=t.documentElement,s=e.BSN={},r=s.supports=[],o="data-toggle",a="data-dismiss",c="Alert",l="Button",d="Collapse",u="Dropdown",h="Modal",m="Popover",f="Tab",g="data-backdrop",p="data-target",v="data-title",y="aria-expanded",_="aria-hidden",b="aria-selected",w="click",S="focus",x="hover",E="keydown",A="keyup",C="resize",T="onmouseleave"in t?["mouseenter","mouseleave"]:["mouseover","mouseout"],k="show",j="shown",$="hide",N="hidden",O="change",I="getAttribute",M="Transition",R="Duration",D="Webkit",L="tabindex",z="active",P="show",F="collapsing",U="left",B="right",q="top",H="bottom",G=/\b(top|bottom|left|right)+/,W=0,V="fixed-top",J="fixed-bottom",Q=D+M in i.style||M.toLowerCase()in i.style,Z=D+M in i.style?D.toLowerCase()+M+"End":M.toLowerCase()+"end",Y=D+R in i.style?D.toLowerCase()+M+R:M.toLowerCase()+R,X=function(e){e.focus?e.focus():e.setActive()},K=function(e,t){e.classList.add(t)},ee=function(e,t){e.classList.remove(t)},te=function(e,t){return e.classList.contains(t)},ne=function(e,t){return[].slice.call(e.getElementsByClassName(t))},ie=function(e,n){return"object"==typeof e?e:(n||t).querySelector(e)},se=function(e,n){var i=n.charAt(0),s=n.substr(1);if("."===i){for(;e&&e!==t;e=e.parentNode)if(null!==ie(n,e.parentNode)&&te(e,s))return e}else if("#"===i)for(;e&&e!==t;e=e.parentNode)if(e.id===s)return e;return!1},re=function(e,t,n,i){i=i||!1,e.addEventListener(t,n,i)},oe=function(e,t,n,i){i=i||!1,e.removeEventListener(t,n,i)},ae=function(e,t,n,i){re(e,t,(function s(r){n(r),oe(e,t,s,i)}),i)},ce=!!function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});ae(e,"testPassive",null,n)}catch(e){}return t}()&&{passive:!0},le=function(t){var n=Q?e.getComputedStyle(t)[Y]:0;return"number"!=typeof(n=parseFloat(n))||isNaN(n)?0:1e3*n},de=function(e,t){var n=0;le(e)?ae(e,Z,(function(e){!n&&t(e),n=1})):setTimeout((function(){!n&&t(),n=1}),17)},ue=function(e,t,n){var i=new CustomEvent(e+".bs."+t);i.relatedTarget=n,this.dispatchEvent(i)},he=function(n,s,r,o){var a,c,l,d,u,h,m=s.offsetWidth,f=s.offsetHeight,g=i.clientWidth||t.body.clientWidth,p=i.clientHeight||t.body.clientHeight,v=n.getBoundingClientRect(),y=o===t.body?{y:e.pageYOffset||i.scrollTop,x:e.pageXOffset||i.scrollLeft}:{x:o.offsetLeft+o.scrollLeft,y:o.offsetTop+o.scrollTop},_=v.right-v.left,b=v.bottom-v.top,w=te(s,"popover"),S=ie(".arrow",s),x=v.top+b/2-f/2<0,E=v.left+_/2-m/2<0,A=v.left+m/2+_/2>=g,C=v.top+f/2+b/2>=p,T=v.top-f<0,k=v.left-m<0,j=v.top+f+b>=p,$=v.left+m+_>=g;r=(r=(r=(r=(r=(r===U||r===B)&&k&&$?q:r)===q&&T?H:r)===H&&j?q:r)===U&&k?B:r)===B&&$?U:r,-1===s.className.indexOf(r)&&(s.className=s.className.replace(G,r)),u=S.offsetWidth,h=S.offsetHeight,r===U||r===B?(c=r===U?v.left+y.x-m-(w?u:0):v.left+y.x+_,x?(a=v.top+y.y,l=b/2-u):C?(a=v.top+y.y-f+b,l=f-b/2-u):(a=v.top+y.y-f/2+b/2,l=f/2-(w?.9*h:h/2))):r!==q&&r!==H||(a=r===q?v.top+y.y-f-(w?h:0):v.top+y.y+b,E?(c=0,d=v.left+_/2-u):A?(c=g-1.01*m,d=m-(g-v.left)+_/2-u/2):(c=v.left+y.x-m/2+_/2,d=m/2-(w?u:u/2))),s.style.top=a+"px",s.style.left=c+"px",l&&(S.style.top=l+"px"),d&&(S.style.left=d+"px")};s.version="2.0.27";var me=function(e){e=ie(e);var t=this,n="alert",i=se(e,".alert"),s=function(n){i=se(n.target,".alert"),(e=ie('[data-dismiss="alert"]',i))&&i&&(e===n.target||e.contains(n.target))&&t.close()},r=function(){ue.call(i,"closed",n),oe(e,w,s),i.parentNode.removeChild(i)};this.close=function(){i&&e&&te(i,P)&&(ue.call(i,"close",n),ee(i,P),i&&(te(i,"fade")?de(i,r):r()))},c in e||re(e,w,s),e.Alert=t};r.push([c,me,'[data-dismiss="alert"]']);var fe=function(e){e=ie(e);var n=!1,i="button",s="checked",r="LABEL",o="INPUT",a=function(t){var a=t.target.tagName===r?t.target:t.target.parentNode.tagName===r?t.target.parentNode:null;if(a){var c=ne(a.parentNode,"btn"),l=a.getElementsByTagName(o)[0];if(l){if("checkbox"===l.type&&(l.checked?(ee(a,z),l.getAttribute(s),l.removeAttribute(s),l.checked=!1):(K(a,z),l.getAttribute(s),l.setAttribute(s,s),l.checked=!0),n||(n=!0,ue.call(l,O,i),ue.call(e,O,i))),"radio"===l.type&&!n&&(!l.checked||0===t.screenX&&0==t.screenY)){K(a,z),K(a,S),l.setAttribute(s,s),l.checked=!0,ue.call(l,O,i),ue.call(e,O,i),n=!0;for(var d=0,u=c.length;d1?o-1:0:40===s&&o×',y=ie(i.container),_=ie(l),b=se(n,".modal"),S=se(n,".fixed-top"),E=se(n,".fixed-bottom");this.template=i.template?i.template:null,this.trigger=i.trigger?i.trigger:s||x,this.animation=i.animation&&i.animation!==f?i.animation:r||f,this.placement=i.placement?i.placement:o||q,this.delay=parseInt(i.delay||c)||200,this.dismissible=!(!i.dismissible&&"true"!==a),this.container=y||_||S||E||b||t.body;var A=this,O=i.title||n.getAttribute(v)||null,I=i.content||n.getAttribute(g)||null;if(I||this.template){var M=null,R=0,D=this.placement,L=function(e){null!==M&&e.target===ie(".close",M)&&A.hide()},z=function(i){w!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&i(n,"blur",A.hide),A.dismissible&&i(t,w,L),i(e,C,A.hide,ce)},F=function(){z(re),ue.call(n,j,d)},U=function(){z(oe),A.container.removeChild(M),R=null,M=null,ue.call(n,N,d)};this.toggle=function(){null===M?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout((function(){null===M&&(D=A.placement,function(){O=i.title||n.getAttribute(v),I=(I=i.content||n.getAttribute(g))?I.trim():null,M=t.createElement(h);var e=t.createElement(h);if(e.setAttribute(u,"arrow"),M.appendChild(e),null!==I&&null===A.template){if(M.setAttribute("role","tooltip"),null!==O){var s=t.createElement("h3");s.setAttribute(u,"popover-header"),s.innerHTML=A.dismissible?O+p:O,M.appendChild(s)}var r=t.createElement(h);r.setAttribute(u,"popover-body"),r.innerHTML=A.dismissible&&null===O?I+p:I,M.appendChild(r)}else{var o=t.createElement(h);A.template=A.template.trim(),o.innerHTML=A.template,M.innerHTML=o.firstChild.innerHTML}A.container.appendChild(M),M.style.display="block",M.setAttribute(u,"popover bs-popover-"+D+" "+A.animation)}(),he(n,M,D,A.container),!te(M,P)&&K(M,P),ue.call(n,k,d),A.animation?de(M,F):F())}),20)},this.hide=function(){clearTimeout(R),R=setTimeout((function(){M&&null!==M&&te(M,P)&&(ue.call(n,$,d),ee(M,P),A.animation?de(M,U):U())}),A.delay)},m in n||(A.trigger===x?(re(n,T[0],A.show),A.dismissible||re(n,T[1],A.hide)):w!=A.trigger&&"focus"!=A.trigger||re(n,A.trigger,A.toggle)),n.Popover=A}};r.push([m,ye,'[data-toggle="popover"]']);var _e=function(e,t){var n=(e=ie(e)).getAttribute("data-height"),i="tab";t=t||{},this.height=!!Q&&(t.height||"true"===n);var s,r,o,a,c,l,d,u=this,h=se(e,".nav"),m=!1,g=h&&ie(".dropdown-toggle",h),p=function(){m.style.height="",ee(m,F),h.isAnimating=!1},v=function(){m?l?p():setTimeout((function(){m.style.height=d+"px",m.offsetWidth,de(m,p)}),50):h.isAnimating=!1,ue.call(s,j,i,r)},y=function(){m&&(o.style.float=U,a.style.float=U,c=o.scrollHeight),K(a,z),ue.call(s,k,i,r),ee(o,z),ue.call(r,N,i,s),m&&(d=a.scrollHeight,l=d===c,K(m,F),m.style.height=c+"px",m.offsetHeight,o.style.float="",a.style.float=""),te(a,"fade")?setTimeout((function(){K(a,P),de(a,v)}),20):v()};if(h){h.isAnimating=!1;var _=function(){var e,t=ne(h,z);return 1!==t.length||te(t[0].parentNode,"dropdown")?t.length>1&&(e=t[t.length-1]):e=t[0],e},S=function(){return ie(_().getAttribute("href"))};this.show=function(){a=ie((s=s||e).getAttribute("href")),r=_(),o=S(),h.isAnimating=!0,ee(r,z),r.setAttribute(b,"false"),K(s,z),s.setAttribute(b,"true"),g&&(te(e.parentNode,"dropdown-menu")?te(g,z)||K(g,z):te(g,z)&&ee(g,z)),ue.call(r,$,i,s),te(o,"fade")?(ee(o,P),de(o,y)):y()},f in e||re(e,w,(function(e){e.preventDefault(),s=e.currentTarget,!h.isAnimating&&!te(s,z)&&u.show()})),u.height&&(m=S().parentNode),e.Tab=u}};r.push([f,_e,'[data-toggle="tab"]']);var be=function(e,t){for(var n=0,i=t.length;n{window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadImageElement=function(e,t){return new Promise((function(n,i){e.addEventListener("load",(function(){n(e)}),!1),e.addEventListener("error",(function(e){i(e)}),!1),e.src=t}))},t.resize=function(e,t,n,i){if(!n&&!i)return{currentWidth:e,currentHeight:t};var s=e/t,r=void 0,o=void 0;return s>n/i?o=(r=Math.min(e,n))/s:r=(o=Math.min(t,i))*s,{width:r,height:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64ToFile=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/jpeg",n=window.atob(e),i=[],s=0;s8)return r.drawImage(e,0,0,s.width,s.height),s;switch(i>4&&(s.width=n,s.height=t),i){case 2:r.translate(t,0),r.scale(-1,1);break;case 3:r.translate(t,n),r.rotate(Math.PI);break;case 4:r.translate(0,n),r.scale(1,-1);break;case 5:r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:r.rotate(.5*Math.PI),r.translate(0,-n);break;case 7:r.rotate(.5*Math.PI),r.translate(t,-n),r.scale(-1,1);break;case 8:r.rotate(-.5*Math.PI),r.translate(-t,0)}return i>4?r.drawImage(e,0,0,s.height,s.width):r.drawImage(e,0,0,s.width,s.height),s},t.canvasToBlob=function(e,t){return new Promise((function(n,i){e.toBlob((function(e){n(e)}),"image/jpeg",t)}))},t.size=function(e){return{kB:.001*e,MB:1e-6*e}},t.blobToBase64=function(e){return new Promise((function(t,n){var i=new window.FileReader;i.addEventListener("load",(function(e){t(e.target.result)}),!1),i.addEventListener("error",(function(e){n(e)}),!1),i.readAsDataURL(e)}))}},function(e,t,n){e.exports=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractOrientation=function(e){return new Promise((function(t,n){var i=new window.FileReader;i.onload=function(e){var n=new DataView(e.target.result);65496!==n.getUint16(0,!1)&&t(-2);for(var i=n.byteLength,s=2;s=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var s=i.arg;j(n)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:N(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),g}}}function b(e,t,n,i){var s=t&&t.prototype instanceof S?t:S,r=Object.create(s.prototype),o=new $(i||[]);return r._invoke=function(e,t,n){var i=u;return function(s,r){if(i===m)throw new Error("Generator is already running");if(i===f){if("throw"===s)throw r;return O()}for(n.method=s,n.arg=r;;){var o=n.delegate;if(o){var a=T(o,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var c=w(e,t,n);if("normal"===c.type){if(i=n.done?f:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=f,n.method="throw",n.arg=c.arg)}}}(e,n,o),r}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function S(){}function x(){}function E(){}function A(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function C(e){var t;this._invoke=function(n,i){function r(){return new Promise((function(t,r){!function t(n,i,r,o){var a=w(e[n],e,i);if("throw"!==a.type){var c=a.arg,l=c.value;return l&&"object"==typeof l&&s.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,r,o)}),(function(e){t("throw",e,r,o)})):Promise.resolve(l).then((function(e){c.value=e,r(c)}),o)}o(a.arg)}(n,i,t,r)}))}return t=t?t.then(r,r):r()}}function T(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,T(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var s=w(i,e.iterator,t.arg);if("throw"===s.type)return t.method="throw",t.arg=s.arg,t.delegate=null,g;var r=s.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i=0,r=s&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,e.exports=n(5),s)i.regeneratorRuntime=r;else try{delete i.regeneratorRuntime}catch(e){i.regeneratorRuntime=void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=c(n(2)),s=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setOptions(t)}return s(e,[{key:"setOptions",value:function(e){var t={targetSize:1/0,quality:.75,minQuality:.5,qualityStepSize:.1,maxWidth:1920,maxHeight:1920,resize:!0,throwIfSizeNotReached:!1,autoRotate:!0},n=new Proxy(e,{get:function(e,n){return n in e?e[n]:t[n]}});this.options=n}},{key:"_compressFile",value:function(){var e=l(i.default.mark((function e(t){var n,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new a.default(t),(s={}).start=window.performance.now(),s.quality=this.options.quality,s.startType=n.type,e.next=7,n.load();case 7:return e.next=9,this._compressImage(n,s);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_compressImage",value:function(){var e=l(i.default.mark((function e(t,n){var s,a,c,l,d;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.startWidth=t.width,n.startHeight=t.height,s=void 0,a=void 0,this.options.resize?(c=(0,o.resize)(t.width,t.height,this.options.maxWidth,this.options.maxHeight),s=c.width,a=c.height):(s=t.width,a=t.height),n.endWidth=s,n.endHeight=a,l=this.doAutoRotation?void 0:1,d=t.getCanvas(s,a,l),n.iterations=0,n.startSizeMB=r.size(t.size).MB,e.next=12,this._loopCompression(d,t,n);case 12:return n.endSizeMB=r.size(t.size).MB,n.sizeReducedInPercent=(n.startSizeMB-n.endSizeMB)/n.startSizeMB*100,n.end=window.performance.now(),n.elapsedTimeInSeconds=(n.end-n.start)/1e3,n.endType=t.type,e.abrupt("return",{photo:t,info:n});case 18:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_loopCompression",value:function(){var e=l(i.default.mark((function e(t,n,s){var o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.iterations++,e.t0=n,e.next=4,r.canvasToBlob(t,s.quality);case 4:if(e.t1=e.sent,e.t0.setData.call(e.t0,e.t1),1==s.iterations&&(n.width=s.endWidth,n.height=s.endHeight),!(r.size(n.size).MB>this.options.targetSize)){e.next=24;break}if(!(s.quality.toFixed(10)-.1{n(7252);var i=n(6356).Object;e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},4064:(e,t,n)=>{n(4304),e.exports=n(6356).Object.keys},9791:(e,t,n)=>{n(5693),n(5758),n(4291),n(9870),n(814),n(955),e.exports=n(6356).Promise},8640:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},5678:e=>{e.exports=function(){}},1241:e=>{e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},2854:(e,t,n)=>{var i=n(9773);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},7343:(e,t,n)=>{var i=n(1520),s=n(5836),r=n(9271);e.exports=function(e){return function(t,n,o){var a,c=i(t),l=s(c.length),d=r(o,l);if(e&&n!=n){for(;l>d;)if((a=c[d++])!=a)return!0}else for(;l>d;d++)if((e||d in c)&&c[d]===n)return e||d||0;return!e&&-1}}},2791:(e,t,n)=>{var i=n(103),s=n(3309)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:r?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},103:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},6356:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},2389:(e,t,n)=>{var i=n(8640);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,s){return e.call(t,n,i,s)}}return function(){return e.apply(t,arguments)}}},7009:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},6033:(e,t,n)=>{e.exports=!n(2889)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},3640:(e,t,n)=>{var i=n(9773),s=n(8942).document,r=i(s)&&i(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},1159:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3948:(e,t,n)=>{var i=n(8942),s=n(6356),r=n(2389),o=n(7270),a=n(9638),c=function(e,t,n){var l,d,u,h=e&c.F,m=e&c.G,f=e&c.S,g=e&c.P,p=e&c.B,v=e&c.W,y=m?s:s[t]||(s[t]={}),_=y.prototype,b=m?i:f?i[t]:(i[t]||{}).prototype;for(l in m&&(n=t),n)(d=!h&&b&&void 0!==b[l])&&a(y,l)||(u=d?b[l]:n[l],y[l]=m&&"function"!=typeof b[l]?n[l]:p&&d?r(u,i):v&&b[l]==u?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):g&&"function"==typeof u?r(Function.call,u):u,g&&((y.virtual||(y.virtual={}))[l]=u,e&c.R&&_&&!_[l]&&o(_,l,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},2889:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},5766:(e,t,n)=>{var i=n(2389),s=n(281),r=n(692),o=n(2854),a=n(5836),c=n(4492),l={},d={},u=e.exports=function(e,t,n,u,h){var m,f,g,p,v=h?function(){return e}:c(e),y=i(n,u,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(m=a(e.length);m>_;_++)if((p=t?y(o(f=e[_])[0],f[1]):y(e[_]))===l||p===d)return p}else for(g=v.call(e);!(f=g.next()).done;)if((p=s(g,y,f.value,t))===l||p===d)return p};u.BREAK=l,u.RETURN=d},8942:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},9638:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},7270:(e,t,n)=>{var i=n(8397),s=n(4785);e.exports=n(6033)?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},4455:(e,t,n)=>{var i=n(8942).document;e.exports=i&&i.documentElement},2375:(e,t,n)=>{e.exports=!n(6033)&&!n(2889)((function(){return 7!=Object.defineProperty(n(3640)("div"),"a",{get:function(){return 7}}).a}))},2240:e=>{e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},4083:(e,t,n)=>{var i=n(103);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},692:(e,t,n)=>{var i=n(4098),s=n(3309)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[s]===e)}},9773:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},281:(e,t,n)=>{var i=n(2854);e.exports=function(e,t,n,s){try{return s?t(i(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},3463:(e,t,n)=>{"use strict";var i=n(8910),s=n(4785),r=n(8200),o={};n(7270)(o,n(3309)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(o,{next:s(1,n)}),r(e,t+" Iterator")}},8534:(e,t,n)=>{"use strict";var i=n(7757),s=n(3948),r=n(9858),o=n(7270),a=n(4098),c=n(3463),l=n(8200),d=n(7471),u=n(3309)("iterator"),h=!([].keys&&"next"in[].keys()),m="keys",f="values",g=function(){return this};e.exports=function(e,t,n,p,v,y,_){c(n,t,p);var b,w,S,x=function(e){if(!h&&e in T)return T[e];switch(e){case m:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",A=v==f,C=!1,T=e.prototype,k=T[u]||T["@@iterator"]||v&&T[v],j=k||x(v),$=v?A?x("entries"):j:void 0,N="Array"==t&&T.entries||k;if(N&&(S=d(N.call(new e)))!==Object.prototype&&S.next&&(l(S,E,!0),i||"function"==typeof S[u]||o(S,u,g)),A&&k&&k.name!==f&&(C=!0,j=function(){return k.call(this)}),i&&!_||!h&&!C&&T[u]||o(T,u,j),a[t]=j,a[E]=g,v)if(b={values:A?j:x(f),keys:y?j:x(m),entries:$},_)for(w in b)w in T||r(T,w,b[w]);else s(s.P+s.F*(h||C),t,b);return b}},4589:(e,t,n)=>{var i=n(3309)("iterator"),s=!1;try{var r=[7][i]();r.return=function(){s=!0},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var r=[7],o=r[i]();o.next=function(){return{done:n=!0}},r[i]=function(){return o},e(r)}catch(e){}return n}},3434:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},4098:e=>{e.exports={}},7757:e=>{e.exports=!0},7189:(e,t,n)=>{var i=n(8942),s=n(6673).set,r=i.MutationObserver||i.WebKitMutationObserver,o=i.process,a=i.Promise,c="process"==n(103)(o);e.exports=function(){var e,t,n,l=function(){var i,s;for(c&&(i=o.domain)&&i.exit();e;){s=e.fn,e=e.next;try{s()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(c)n=function(){o.nextTick(l)};else if(!r||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var d=a.resolve(void 0);n=function(){d.then(l)}}else n=function(){s.call(i,l)};else{var u=!0,h=document.createTextNode("");new r(l).observe(h,{characterData:!0}),n=function(){h.data=u=!u}}return function(i){var s={fn:i,next:void 0};t&&(t.next=s),e||(e=s,n()),t=s}}},8278:(e,t,n)=>{"use strict";var i=n(8640);function s(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new s(e)}},8910:(e,t,n)=>{var i=n(2854),s=n(5244),r=n(1159),o=n(6962)("IE_PROTO"),a=function(){},c=function(){var e,t=n(3640)("iframe"),i=r.length;for(t.style.display="none",n(4455).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("